/*
Theme Name: BarberPrime
Theme URI: https://barberprime.dev
Author: BarberPrime Studio
Description: Tema WordPress premium para barbearias modernas com sistema nativo de agendamento, SEO avançado, dark mode e performance otimizada.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: barberprime
Tags: barber, booking, dark-mode, seo, performance, mobile-first
*/

/* === CSS DESIGN TOKENS === */
:root {
    --color-bg:          #FAFAF8;
    --color-bg-2:        #F0EDE8;
    --color-surface:     #FFFFFF;
    --color-border:      #E5E0D8;
    --color-text:        #1A1612;
    --color-text-2:      #5C5549;
    --color-text-3:      #9A9188;
    --color-accent:      #C8A96E;
    --color-accent-dark: #A8893E;
    --color-accent-light:#E8D5A8;
    --color-cta:         #1A1612;
    --color-cta-text:    #FAFAF8;
    --color-danger:      #C0392B;
    --color-success:     #27AE60;

    /* Aliases legados — mantidos para retrocompatibilidade */
    --gold:         var(--color-accent);
    --gold-light:   var(--color-accent-light);
    --gold-dark:    var(--color-accent-dark);
    --surface:      var(--color-surface);
    --border:       var(--color-border);
    --text-muted:   var(--color-text-2);
    --text-secondary: var(--color-text-2);

    --font-display: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
    --font-body:    'DM Sans', 'DM Sans Fallback', system-ui, sans-serif;
    --space-xs:.25rem; --space-sm:.5rem; --space-md:1rem;
    --space-lg:1.5rem; --space-xl:2.5rem; --space-2xl:4rem;
    --space-3xl:6rem; --space-4xl:10rem;
    --container-max:1280px;
    --radius-sm:4px; --radius-md:8px; --radius-lg:16px; --radius-full:9999px;
    --shadow-sm:0 1px 3px rgba(26,22,18,.08);
    --shadow-md:0 4px 16px rgba(26,22,18,.12);
    --shadow-lg:0 8px 32px rgba(26,22,18,.16);
    --shadow-xl:0 16px 48px rgba(26,22,18,.20);
    --transition:.25s cubic-bezier(.4,0,.2,1);
    --transition-slow:.45s cubic-bezier(.4,0,.2,1);
    --header-height:72px;
}
[data-theme="dark"] {
    --color-bg:#111008; --color-bg-2:#1C1A12; --color-surface:#221F16;
    --color-border:#33302A; --color-text:#F5F0E8; --color-text-2:#B8B0A0;
    --color-text-3:#6B6358; --color-accent-dark:#E8C97E;
    --color-accent-light:#3A3020; --color-cta:#C8A96E; --color-cta-text:#111008;
    --shadow-sm:0 1px 3px rgba(0,0,0,.3); --shadow-md:0 4px 16px rgba(0,0,0,.4);
    --shadow-lg:0 8px 32px rgba(0,0,0,.5); --shadow-xl:0 16px 48px rgba(0,0,0,.6);
}

/* === RESET === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;font-size:16px;-webkit-text-size-adjust:100%}
body{font-family:var(--font-body);background-color:var(--color-bg);color:var(--color-text);line-height:1.65;transition:background-color var(--transition),color var(--transition);overflow-x:hidden}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--color-accent);text-decoration:none;transition:color var(--transition)}
a:hover{color:var(--color-accent-dark)}

/* ===== ACCESSIBILITY: keyboard focus ===== */
:focus-visible{outline:3px solid var(--color-accent,var(--color-accent));outline-offset:3px;border-radius:3px}
:focus:not(:focus-visible){outline:none}
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--color-accent);outline-offset:3px;border-radius:3px}
ul,ol{list-style:none}
h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700;line-height:1.2;color:var(--color-text)}
p{margin-bottom:1em} p:last-child{margin-bottom:0}

/* ==========================================
   VARIÁVEIS GLOBAIS EXTRAS (aliases para o tema)
========================================== */
:root {
    --gold: var(--color-accent);
    --gold-light: #e8c855;
    --dark: #0D0B07;
    --surface: #1a1710;
    --surface-alt: #111008;
    --border: #2a2820;
    --text-primary: #F5F0E8;
    --text-secondary: #B8B0A0;
    --text-muted: #6B6358;
}
[data-theme="light"] {
    --gold: var(--color-accent-dark);
    --dark: #FFFFFF;
    --surface: #F5F2EC;
    --surface-alt: #EDEAE3;
    --border: #E0DAD0;
    --text-primary: #1A1612;
    --text-secondary: #5C5549;
    --text-muted: #9A9188;
}

/* ==========================================
   RESET
========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-body, 'DM Sans', system-ui, sans-serif);
    background: var(--dark);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ==========================================
   CONTAINER
========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 48px);
}

/* ==========================================
   BOTÕES
========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,175,55,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================
   HEADER
========================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(13, 11, 7, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
#site-header.scrolled {
    background: rgba(13, 11, 7, 0.97);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
[data-theme="light"] #site-header {
    background: rgba(255, 255, 255, 0.9);
}
[data-theme="light"] #site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}

.site-logo {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    flex-shrink: 0;
}

/* NAV */
#primary-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
#primary-menu a {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.2s;
    position: relative;
}
#primary-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a { color: var(--gold); }
#primary-menu a:hover::after,
#primary-menu .current-menu-item > a::after { transform: scaleX(1); }

/* Dark mode toggle */
#dark-mode-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}
#dark-mode-toggle:hover { border-color: var(--gold); color: var(--gold); }
#dark-mode-toggle svg { width: 18px; height: 18px; }

/* Mobile hamburger */
#menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    color: var(--text-primary);
    flex-direction: column;
    gap: 4px;
}
#menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s;
}

/* Mobile overlay */
#mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0,0,0,0.5);
}
#mobile-menu-overlay.active {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}
#mobile-menu-panel {
    background: var(--surface);
    width: 280px;
    height: 100%;
    padding: 80px 24px 24px;
    overflow-y: auto;
    box-shadow: -4px 0 24px rgba(0,0,0,0.3);
}
#mobile-menu-panel .menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
#mobile-menu-panel .menu a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: background 0.2s, color 0.2s;
}
#mobile-menu-panel .menu a:hover { background: var(--border); color: var(--gold); }

/* ==========================================
   HERO
========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0D0B07 0%, #1a1510 50%, #0D0B07 100%);
    z-index: 0;
}
.hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 30px;
    padding: 6px 20px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.hero-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title .accent { color: var(--gold); font-style: italic; }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s ease infinite;
    z-index: 1;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================
   SEÇÕES GERAIS
========================================== */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 20px;
    padding: 4px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-display, 'Playfair Display', serif);
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 12px;
}
.section-subtitle {
    color: var(--text-secondary);
    max-width: 560px;
    margin-inline: auto;
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* ==========================================
   SERVIÇOS
========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.35);
    border-color: rgba(212,175,55,0.3);
}
.service-card-thumb { height: 200px; overflow: hidden; }
.service-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.service-card:hover .service-card-thumb img { transform: scale(1.05); }
.service-card-body { padding: 22px; }
.service-card-name { font-family: var(--font-display, serif); font-size: 1.2rem; margin-bottom: 8px; }
.service-card-desc { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; margin-bottom: 16px; }
.service-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.service-card-price { color: var(--gold); font-weight: 700; font-size: 1.1rem; }
.service-card-duration { color: var(--text-muted); font-size: 0.8rem; display: flex; align-items: center; gap: 4px; }

/* ==========================================
   DEPOIMENTOS
========================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
}
.testimonial-stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; letter-spacing: 3px; }
.testimonial-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #b8960c);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem; color: #000; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: 0.9rem; }
.testimonial-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ==========================================
   EQUIPE
========================================== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.team-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.team-photo { height: 260px; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-info { padding: 20px; }
.team-name { font-family: var(--font-display, serif); font-size: 1.15rem; margin-bottom: 4px; }
.team-role { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.team-bio { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* ==========================================
   GALERIA
========================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
.gallery-grid .gallery-item { overflow: hidden; border-radius: 12px; }
.gallery-grid .gallery-item:nth-child(1) { grid-column: span 8; grid-row: span 2; }
.gallery-grid .gallery-item:nth-child(2) { grid-column: span 4; }
.gallery-grid .gallery-item:nth-child(3) { grid-column: span 4; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: span 6; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: span 6; }
.gallery-grid .gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-grid .gallery-item:hover img { transform: scale(1.06); }
.bp-gallery-item { cursor: zoom-in; }

/* ==========================================
   STATS
========================================== */
.stats-section { padding: 60px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-number {
    font-family: var(--font-display, serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { color: var(--text-secondary); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================
   BLOG
========================================== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.blog-card-thumb { height: 220px; overflow: hidden; }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 24px; }
.blog-card-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-card-title { font-family: var(--font-display, serif); font-size: 1.2rem; line-height: 1.35; margin-bottom: 10px; }
.blog-card-title a { color: var(--text-primary); transition: color 0.2s; }
.blog-card-title a:hover { color: var(--gold); }
.blog-card-excerpt { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

/* ==========================================
   FOOTER
========================================== */
.site-footer { background: var(--color-bg-2); border-top: 1px solid var(--color-border); padding: 72px 0 0; color: var(--color-text); }
[data-theme="dark"] .site-footer { background: #080602; border-top-color: #1a1710; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 60px; }
.footer-brand-logo { font-family: var(--font-display, serif); font-size: 1.75rem; color: var(--gold); margin-bottom: 12px; }
.footer-tagline { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social-link {
    width: 40px; height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social-link:hover { background: var(--gold); color: #000; border-color: var(--gold); }

.footer-col-title {
    font-family: var(--font-display, serif);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.footer-menu { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-menu a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-menu a:hover { color: var(--gold); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 12px; }
.footer-contact-item svg { flex-shrink: 0; color: var(--gold); margin-top: 2px; }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }
.footer-legal { display: flex; gap: 20px; list-style: none; }
.footer-legal a { color: var(--text-muted); font-size: 0.8rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--gold); }

/* ==========================================
   WHATSAPP FLUTUANTE
========================================== */
.whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 990;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: wa-pulse 2.5s ease infinite;
}
.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    animation: none;
}
@keyframes wa-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ==========================================
   FADE-IN ANIMATION
========================================== */
.bp-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.bp-fade-in.visible { opacity: 1; transform: none; }
.bp-fade-in[style*="delay"] { transition-delay: attr(style delay); }

/* ==========================================
   BOOKING SECTION (homepage)
========================================== */
.booking-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--surface) 50%, var(--dark) 100%);
}

/* ==========================================
   CTA SECTIONS
========================================== */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section.gold-bg {
    background: linear-gradient(135deg, #b8960c, var(--gold));
    color: #000;
}
.cta-section.dark-bg { background: var(--surface); }

/* ==========================================
   BREADCRUMB
========================================== */
.bp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.bp-breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.bp-breadcrumb a:hover { color: var(--gold); }
.bp-breadcrumb .sep { opacity: 0.5; }
.bp-breadcrumb .current { color: var(--text-secondary); }

/* ==========================================
   PAGINATION
========================================== */
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a, .nav-links span {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.nav-links a:hover { border-color: var(--gold); color: var(--gold); }
.nav-links .current { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }

/* ==========================================
   COMMENTS (WP default override)
========================================== */
#comments { margin-top: 60px; }
.comments-title { font-family: var(--font-display, serif); font-size: 1.5rem; margin-bottom: 32px; }
.comment-list { list-style: none; }
.comment { padding: 24px; background: var(--surface); border-radius: 12px; border: 1px solid var(--border); margin-bottom: 16px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; }
.comment-content p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }
.comment-reply-link { color: var(--gold); font-size: 0.8rem; font-weight: 700; }

/* ==========================================
   ENTRY CONTENT (Gutenberg/classic editor)
========================================== */
.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--font-display, serif);
    margin: 32px 0 14px;
    line-height: 1.3;
}
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content p { margin-bottom: 18px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; line-height: 1.7; }
.entry-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 24px;
    background: rgba(212,175,55,0.05);
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-style: italic;
    color: var(--text-secondary);
}
.entry-content img { border-radius: 12px; margin: 24px 0; }
.entry-content a { color: var(--gold); text-decoration: underline; }
.entry-content code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.875em;
}
.entry-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

/* ==========================================
   RESPONSIVIDADE
========================================== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .stats-grid  { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .gallery-grid .gallery-item:nth-child(1) { grid-column: span 12; grid-row: span 1; }
    .gallery-grid .gallery-item:nth-child(n+2) { grid-column: span 4; }
}

@media (max-width: 768px) {
    #primary-menu { display: none; }
    #menu-toggle  { display: flex; }
    .hero-title   { font-size: clamp(2rem, 8vw, 3rem); }
    .footer-grid  { grid-template-columns: 1fr; }
    .stats-grid   { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .team-grid, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
    .gallery-grid .gallery-item { grid-column: span 12 !important; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group .btn { width: 100%; justify-content: center; }
    #bp-booking-wizard .container { padding: 16px; }
    #bp-step-content { padding: 0 16px 24px; }
    #bp-nav-footer { padding: 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 1.75rem; }
}

/* ==========================================
   FOCO — Acessibilidade (WCAG 2.1 AA)
========================================== */
:focus-visible {
    outline: 3px solid var(--gold, var(--color-accent));
    outline-offset: 3px;
    border-radius: 4px;
}
:focus:not(:focus-visible) {
    outline: none;
}
/* High contrast focus for buttons */
.bp-btn:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}
/* Skip link */
.bp-skip-link:focus {
    position: fixed !important;
    left: 50% !important;
    top: 8px !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 99999 !important;
    padding: 10px 20px !important;
    background: var(--color-accent) !important;
    color: #000 !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
}
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --gold: #FFD700;
        --border: #555;
    }
}

/* ==========================================
   WORDPRESS BLOCK BUTTONS — garantia de legibilidade
========================================== */
.wp-block-button__link,
.wp-block-button .wp-block-button__link,
.wp-element-button {
    color: #000 !important;
    background-color: var(--color-accent) !important;
    font-weight: 800;
    border-radius: 9px;
    padding: 13px 32px !important;
    text-decoration: none !important;
    display: inline-block;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: all .25s;
    box-shadow: 0 4px 14px rgba(212,175,55,.35);
    font-family: 'DM Sans', system-ui, sans-serif;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: #e8c855 !important;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212,175,55,.45);
}
.wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--color-accent) !important;
    background: transparent !important;
    border: 2px solid var(--color-accent);
    box-shadow: none;
}
[data-theme="light"] .wp-block-button__link,
[data-theme="light"] .wp-block-button .wp-block-button__link,
[data-theme="light"] .wp-element-button {
    color: #000 !important;
    background-color: var(--color-accent-dark) !important;
    box-shadow: 0 4px 14px rgba(184,150,12,.3);
}
[data-theme="light"] .wp-block-button__link:hover,
[data-theme="light"] .wp-element-button:hover {
    background-color: #a07d0a !important;
    box-shadow: 0 6px 20px rgba(184,150,12,.4);
}
[data-theme="light"] .wp-block-button.is-style-outline .wp-block-button__link {
    color: var(--color-accent-dark) !important;
    border-color: var(--color-accent-dark);
    background: transparent !important;
    box-shadow: none;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,*::before,*::after{
        animation-duration:.01ms!important;
        animation-iteration-count:1!important;
        transition-duration:.01ms!important;
        scroll-behavior:auto!important;
    }
}
