:root {
    color-scheme: light;
    --bg: #fbfaf7;
    --surface: #ffffff;
    --surface-2: #f1eee8;
    --text: #171513;
    --muted: #686058;
    --line: #ded8cd;
    --gold: #b98a3a;
    --gold-2: #d2a75a;
    --copper: #8f4f2f;
    --charcoal: #201c18;
    --header-bg: rgba(251, 250, 247, 0.88);
    --shadow: 0 22px 60px rgba(32, 28, 24, 0.12);
    --radius: 8px;
    --focus: 0 0 0 4px rgba(185, 138, 58, 0.24);
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0d0d0c;
    --surface: #171513;
    --surface-2: #211e1a;
    --text: #f7f0e6;
    --muted: #beb4a6;
    --line: #38322b;
    --gold: #d0a24e;
    --gold-2: #f0c979;
    --copper: #b86c42;
    --charcoal: #090908;
    --header-bg: rgba(13, 13, 12, 0.88);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
    --focus: 0 0 0 4px rgba(208, 162, 78, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    transition: background-color 220ms ease, color 220ms ease;
}

body,
.site-header,
.site-footer,
.service-card,
.value-card,
.form-card,
.contact-card,
.appointment-result,
.mini-panel,
input,
select,
textarea,
.btn {
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

code {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    padding: 0.08rem 0.35rem;
    font-size: 0.92em;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link,
.sr-only,
.hidden-field {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    z-index: 1000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 0.75rem 1rem;
    background: var(--gold);
    color: #111;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: max-content;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 1px solid color-mix(in srgb, var(--gold) 72%, transparent);
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.brand strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.18rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.site-nav a {
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 0.9rem;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: var(--text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.theme-toggle,
.menu-toggle {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.theme-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 900;
}

.theme-toggle__icon {
    display: none;
}

[data-theme="light"] .theme-toggle__sun,
[data-theme="dark"] .theme-toggle__moon {
    display: inline;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px auto;
    background: currentColor;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 900;
    gap: 0.45rem;
    padding: 0.78rem 1.05rem;
    text-align: center;
}

.btn--small {
    min-height: 40px;
    padding: 0.62rem 0.9rem;
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #17120b;
}

.btn--dark {
    background: var(--charcoal);
    color: #fff7eb;
}

[data-theme="dark"] .btn--dark {
    background: #f7f0e6;
    color: #15110d;
}

.btn--ghost {
    border-color: rgba(255, 255, 255, 0.42);
    color: #fff7eb;
}

.btn--outline {
    border-color: var(--line);
    background: transparent;
    color: var(--text);
}

.hero {
    position: relative;
    min-height: 720px;
    display: grid;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(90deg, rgba(7, 7, 6, 0.92) 0%, rgba(7, 7, 6, 0.76) 34%, rgba(7, 7, 6, 0.22) 78%), url("../img/barbex-hero.png");
    background-position: center;
    background-size: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;
    height: 160px;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-content {
    padding-block: 7rem 5rem;
    color: #fff7eb;
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.85rem;
    color: var(--gold-2);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
}

.hero-text {
    max-width: 640px;
    margin: 1.4rem 0 0;
    color: rgba(255, 247, 235, 0.82);
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-facts {
    display: grid;
    max-width: 780px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 3rem 0 0;
}

.hero-facts div {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    backdrop-filter: blur(12px);
}

.hero-facts dt {
    color: var(--gold-2);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-facts dd {
    margin: 0.25rem 0 0;
    color: #fff;
}

.section {
    padding-block: clamp(4rem, 7vw, 7rem);
}

.section--muted {
    background: var(--surface-2);
}

.section--band {
    background: linear-gradient(135deg, var(--charcoal), #3a241b);
    color: #fff7eb;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section h2,
.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section p,
.page-hero p {
    color: var(--muted);
}

.section--band p,
.section--band .section-kicker {
    color: rgba(255, 247, 235, 0.82);
}

.intro-grid,
.split,
.feature-layout,
.story-grid,
.contact-layout,
.appointment-layout {
    display: grid;
    gap: clamp(1.5rem, 4vw, 4rem);
}

.intro-grid,
.split,
.feature-layout,
.story-grid,
.contact-layout,
.appointment-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
}

.card-grid {
    display: grid;
    gap: 1rem;
}

.card-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.value-card,
.contact-card,
.form-card,
.appointment-result,
.mini-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.service-card,
.value-card {
    padding: 1.35rem;
}

.service-card__top,
.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.service-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gold) 18%, transparent);
    color: var(--gold);
    font-weight: 900;
}

.service-card h2,
.service-card h3,
.value-card h2,
.feature-list h3 {
    margin: 1rem 0 0.45rem;
    line-height: 1.15;
}

.service-card p,
.value-card p,
.feature-list p {
    margin: 0;
    color: var(--muted);
}

.service-meta {
    margin-top: 1.25rem;
}

.service-meta strong {
    color: var(--gold);
    font-size: 1.2rem;
}

.service-meta a {
    color: var(--text);
    font-weight: 900;
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
}

.section-action {
    margin-top: 2rem;
}

.visual-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.visual-panel img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

.feature-list {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 1.8rem;
}

.feature-list div {
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}

.page-hero {
    padding-block: clamp(5rem, 9vw, 8rem) clamp(3rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 86% 20%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 26rem),
        linear-gradient(135deg, var(--surface-2), var(--bg));
}

.page-hero .container {
    max-width: 920px;
}

.page-hero--appointment .container {
    max-width: 1120px;
}

.page-hero p {
    max-width: 720px;
    margin-bottom: 0;
}

.price-board {
    display: grid;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    padding: 0.8rem;
}

.price-board div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.85rem;
}

.price-board div:last-child {
    border-bottom: 0;
}

.price-board strong {
    color: var(--gold-2);
}

.visual-stack {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
}

.visual-tile {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.12)),
        repeating-linear-gradient(45deg, var(--surface-2) 0 12px, var(--surface) 12px 24px);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.visual-tile--large {
    min-height: 376px;
    grid-row: span 2;
}

.visual-tile--gold {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    color: #15110d;
}

.value-card span {
    color: var(--gold);
    font-weight: 900;
}

.contact-layout,
.appointment-layout {
    align-items: start;
}

.calendar-booking {
    display: grid;
    gap: 1.5rem;
}

.calendar-booking__heading {
    max-width: 760px;
}

.calendar-booking__heading h2 {
    margin-bottom: 0.75rem;
}

.calendar-booking__frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0.5rem;
}

.calendar-booking__frame iframe {
    display: block;
    width: 100%;
    min-height: 600px;
    background: #fff;
}

.calendar-booking__note {
    margin: 0;
    font-size: 0.92rem;
}

.contact-card,
.form-card,
.appointment-result,
.mini-panel {
    padding: 1.5rem;
}

.contact-card {
    position: sticky;
    top: 96px;
}

.form-card h2,
.contact-card h2,
.appointment-result h2 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    padding: 0.86rem 0.9rem;
}

textarea {
    resize: vertical;
}

.form-note {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.mini-panel {
    display: grid;
    gap: 0.35rem;
}

.mini-panel span {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.mini-panel strong {
    font-size: 1.5rem;
}

.mini-panel small {
    color: var(--muted);
}

.result-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-2);
    margin-top: 1rem;
    padding: 1rem;
}

.result-box dl {
    margin: 0;
}

.result-box div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.75rem;
    padding-block: 0.45rem;
}

.result-box dt {
    color: var(--muted);
    font-weight: 900;
}

.result-box dd {
    margin: 0;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.section--map {
    padding-top: clamp(3rem, 6vw, 5rem);
}

.split--map {
    grid-template-columns: 0.32fr 1fr;
    margin-bottom: 1.5rem;
}

.map-shell {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.map-shell iframe {
    display: block;
    width: 100%;
    height: min(54vw, 460px);
    min-height: 320px;
    border: 0;
    filter: saturate(0.88) contrast(1.02);
}

[data-theme="dark"] .map-shell iframe {
    filter: grayscale(0.15) invert(0.9) hue-rotate(180deg) contrast(0.92);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--charcoal);
    color: #fff7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 2rem;
    padding-block: 3rem;
}

.brand--footer .brand small,
.site-footer p,
.site-footer a {
    color: rgba(255, 247, 235, 0.74);
}

.site-footer h2 {
    margin: 0 0 1rem;
    color: #fff7eb;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: 1rem;
    color: rgba(255, 247, 235, 0.58);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 120;
    display: inline-flex;
    align-items: center;
    width: 58px;
    height: 58px;
    justify-content: center;
    border-radius: 999px;
    background: #19b85a;
    color: #fff;
    box-shadow: 0 18px 38px rgba(25, 184, 90, 0.34);
    padding: 0;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float__icon {
    width: 32px;
    height: 32px;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(25, 184, 90, 0.46);
}

@media (max-width: 920px) {
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 78px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
        padding: 0.5rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 6px;
        padding: 0.95rem;
    }

    .hero {
        min-height: 650px;
    }

    .intro-grid,
    .split,
    .feature-layout,
    .story-grid,
    .contact-layout,
    .appointment-layout,
    .split--map {
        grid-template-columns: 1fr;
    }

    .card-grid--three,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .header-inner {
        min-height: 70px;
    }

    .brand small {
        display: none;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
    }

    .site-nav {
        inset: 70px 12px auto;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding-block: 4.5rem 3.5rem;
    }

    .hero-facts,
    .card-grid--three,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .visual-panel img {
        height: 360px;
    }

    .visual-stack {
        grid-template-columns: 1fr;
    }

    .visual-tile--large {
        min-height: 240px;
        grid-row: auto;
    }

    .calendar-booking__frame {
        padding: 0.25rem;
    }

    .result-box div {
        grid-template-columns: 1fr;
        gap: 0.1rem;
    }

    .whatsapp-float {
        width: 54px;
        height: 54px;
    }
}
