/* ==========================================================================
   base.css — Raviva Dental
   Design tokens (CSS variables), reset, global typography, buttons and
   shared utility classes (.wrap, .eyebrow, .section-head, .reveal, etc).
   Loaded on every page, first in the stylesheet order.
   ========================================================================== */

:root {
    /* Core palette — Beige / Cream / Wood-brown (v12.0.0: accent tones
       updated to the new brand swatch set — A37510 / A6660D / 8A4E12 /
       876524 / E6CD95. --brown-mid and --brown-deep are kept as variable
       NAMES only, for backwards compatibility with every stylesheet that
       already references them — their values below are no longer green. */
    --ice: #f7f1e6;          /* warm ivory/cream */
    --mist: #eee4e1fa;
    --sand: #e7d8c9;
    --rose: #e6beae;
    --brown: #876524;        /* wood brown — CTA hover, dividers, avatar fills */
    --brown-mid: #A37510;        /* primary accent — buttons, icons, backgrounds */
    --dark: #613e05ef;
    --dark-mid: #312d17; /*page-banner Gradient*/
    --white:  #FBFAF5;

    /* Extended palette (site expansion) */
    --brown-deep: #8b5406d3;   /* deep accent — eyebrows, icons, CTA gradients */
    --cream: #EEDEC5;
    --ink-soft: #4c5957;

    /* Brand gold — the lightest swatch in the new palette. Used
       specifically for nav-link hover/active states and the mobile
       hamburger/X icon, so the navigation reads as tied to the brand
       mark rather than the general accent (--brown-mid / --brown-deep)
       used elsewhere. */
    --logo-gold: #e4c685;
    --wood-dark: #8A4E12;    /* darkest swatch — small text needing more contrast than --brown */

    --line: rgba(38, 51, 50, 0.1);
    --shadow-soft: 0 20px 50px -25px rgba(38, 51, 50, 0.25);
    --radius-pearl: 60% 40% 55% 45% / 45% 55% 45% 55%;

    /* Star rating */
    --star-gold: #e0a83c;

    /* ---------- Z-index scale (v8.0.0) ----------------------------------
       One shared scale for every layered/fixed element on the site, so
       stacking order is predictable no matter which stylesheet an element
       lives in. Higher number = sits on top. Previously the mobile nav
       drawer had no z-index of its own and could end up hidden behind
       other fixed/positioned page content (e.g. the back-to-top button);
       giving every layer an explicit, documented slot here fixes that.
         --z-content        content-layer decorative bits (hero overlay,
                             page-banner, breadcrumbs) — effectively "0"
         --z-back-to-top    the floating back-to-top button
         --z-navbar         the sticky/fixed site navbar
         --z-mobile-drawer  the mobile slide-in nav drawer (.nav-links)
         --z-mobile-toggle  the hamburger/X button that opens/closes it
         --z-skip-link      the accessibility "skip to content" link
       ---------------------------------------------------------------- */
    --z-content: 5;
    --z-back-to-top: 40;
    --z-navbar: 50;
    --z-mobile-drawer: 55;
    --z-mobile-toggle: 60;
    --z-skip-link: 100;
    /* Cookie consent banner/modal (added — cookie-consent.css) sits
       above literally everything else, including the skip link, since
       it's a blocking, must-be-seen compliance UI element. */
    --z-cookie-consent: 500;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
    color: var(--dark);
    background: var(--ice);
}

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

a {
    color: inherit;
}

.site-new,
.site-new h1,
.site-new h2,
.site-new h3,
.eyebrow {
    font-family: 'Fraunces', Georgia, serif;
}

.site-new { overflow-x: clip; }

.site-new section {
    padding: 110px 20px;
    position: relative;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: var(--brown-deep);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--brown);
}

.section-head {
    max-width: 640px;
    margin-bottom: 60px;
}

.section-head.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.site-new h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--dark);
}

.site-new p {
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 16.5px;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
    border-radius: 40px;
    transition: 0.25s ease;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: 'Manrope', Arial, Helvetica, sans-serif;
}

.btn-primary {
    background: var(--brown-mid);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brown-deep);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- Scroll reveal (shared by every section) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Shared avatar circle (used in team / testimonials) ---------- */
.avatar {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    font-family: 'Fraunces', serif;
    font-size: 44px;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 22px;
}

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed;
    right: 26px;
    bottom: 26px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dark);
    color: var(--logo-gold);
    display: grid;
    place-items: center;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: var(--z-back-to-top);
}

.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Shared form feedback (booking form + review form) ---------- */
.form-success,
.form-error {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 500;
}

.form-success {
    display: none;
    background: var(--brown-mid);
    color: var(--white);
}

.form-success.show { display: block; }

.form-error {
    display: none;
    background: #d9534f;
    color: var(--white);
}

.form-error.show { display: block; }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--dark);
    color: var(--white);
    padding: 14px 22px;
    z-index: var(--z-skip-link);
    border-radius: 0 0 10px 0;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* ---------- Global responsive tweaks ---------- */
@media (max-width: 600px) {
    .site-new section { padding: 80px 16px; }
}
