/* ============================================================
   HANAN HULAIHEL — Labour-Law Office
   "Hebrew Law-Review" — warm-paper editorial system
   One light theme across home / booking / service pages.
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
    /* Paper & surfaces */
    --paper:        #f4eee2;   /* warm ivory page */
    --paper-2:      #ece3d1;   /* deeper band */
    --paper-3:      #e6dcc6;   /* darkest band */
    --surface:      #fbf8f1;   /* card */
    --surface-raised:#ffffff;

    /* Ink (deep forest near-black) */
    --ink:          #17251c;
    --ink-2:        #283a2e;
    --ink-soft:     #586657;   /* secondary text */
    --ink-faint:    #646e61;   /* muted / captions; AA on paper */

    /* Brand greens */
    --forest:       #234a32;
    --forest-deep:  #16301f;
    --forest-soft:  rgba(35, 74, 50, 0.08);

    /* Brass accent (muted, not glowy) */
    --brass:        #9a7a3c;
    --brass-deep:   #7c6230;
    --brass-light:  #b89a5c;
    --brass-soft:   rgba(154, 122, 60, 0.14);

    /* Rare warm accent for callouts */
    --clay:         #a14e2c;
    --clay-soft:    rgba(161, 78, 44, 0.10);

    /* Lines */
    --line:         rgba(23, 37, 28, 0.14);
    --line-soft:    rgba(23, 37, 28, 0.08);
    --line-strong:  rgba(23, 37, 28, 0.30);

    /* Shadows — warm, brass-tinted, layered (echo the paper brand) */
    --shadow-sm: 0 1px 2px rgba(23,37,28,0.04), 0 2px 10px rgba(23,37,28,0.04);
    --shadow-md: 0 8px 32px -8px rgba(154,122,60,0.16), 0 2px 6px rgba(23,37,28,0.08);
    --shadow-lg: 0 28px 64px -20px rgba(154,122,60,0.20), 0 6px 18px rgba(23,37,28,0.18);

    /* Radius — crisp, print-like */
    --r-xs: 2px;
    --r-sm: 4px;
    --r-md: 7px;
    --r-lg: 12px;

    /* Layout */
    --container:        1180px;
    --container-narrow: 760px;
    --gutter:           clamp(1.25rem, 4vw, 3rem);
    --section-pad:      clamp(4.5rem, 9vw, 8.5rem);
    --nav-h:            72px;

    /* Motion */
    --ease:      cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    --font-serif: 'Frank Ruhl Libre', 'David Libre', 'Times New Roman', serif;
    --font-sans:  'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    font-family: var(--font-sans);
    color: var(--ink-2);
    background-color: var(--paper);
    background-image:
        radial-gradient(120% 80% at 100% 0%, rgba(154,122,60,0.06), transparent 60%),
        radial-gradient(100% 90% at 0% 100%, rgba(35,74,50,0.05), transparent 55%);
    background-attachment: fixed;
    line-height: 1.72;
    font-weight: 400;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

/* Page fade-in — CSS-only, ends visible even if JS fails (reliability) */
@media (prefers-reduced-motion: no-preference) {
    body { animation: pageIn 0.7s var(--ease) both; }
    @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--ink);
    line-height: 1.14;
    font-weight: 700;
    letter-spacing: -0.01em;
}

p { text-wrap: pretty; }

a { color: var(--forest); text-decoration: none; transition: color 0.25s var(--ease-soft); }
a:hover { color: var(--brass-deep); }

strong { color: var(--ink); font-weight: 600; }

::selection { background: var(--brass); color: #fff; }

/* ---------- Grain overlay ---------- */
.grain-overlay { position: relative; }
.grain-overlay::after {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-size: 220px 220px;
    pointer-events: none; z-index: 1; opacity: 0.35; mix-blend-mode: multiply;
}

/* ---------- Accessibility ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; inset-block-start: -120%; inset-inline-start: 1rem;
    background: var(--forest); color: var(--paper);
    padding: 0.7rem 1.4rem; z-index: 9999; border-radius: 0 0 var(--r-sm) var(--r-sm);
    font-weight: 600; font-family: var(--font-sans); text-decoration: none;
}
.skip-link:focus { inset-block-start: 0; color: var(--paper); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* Unmistakable keyboard focus on the booking flow + CTAs (brass ring can vanish
   against cream buttons, so pair the outline with an inner forest ring on cells) */
.btn-primary:focus-visible, .btn-secondary:focus-visible {
    outline: 2px solid var(--brass); outline-offset: 4px;
}
.cal-cell:focus-visible, .time-slot:focus-visible {
    outline: 2px solid var(--brass); outline-offset: 1px;
    box-shadow: inset 0 0 0 2px var(--forest);
}
/* On the dark hero, a light ring reads better than brass */
.hero-cinematic .btn-primary:focus-visible, .hero-cinematic .btn-secondary:focus-visible {
    outline-color: #fdfaf2;
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
.reveal {
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    will-change: opacity, transform;
}
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- Shared layout utilities ---------- */
[hidden], .hidden { display: none !important; }

.section-container,
.nav-container,
.footer-content { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* Editorial kicker / label */
.section-label,
.hero-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.28em; text-transform: uppercase;
    color: var(--brass-deep);
    position: relative;
}
.section-label::before {
    content: ''; display: inline-block;
    width: 1.8rem; height: 1px; background: var(--brass);
    vertical-align: middle; margin-inline-end: 0.7rem;
}

/* Section heading block */
.section-header { margin-block-end: clamp(2.5rem, 5vw, 4rem); max-width: 42rem; }
.section-title {
    font-size: clamp(2rem, 4.2vw, 3rem);
    margin-block-start: 1rem; color: var(--ink);
    font-weight: 700;
}

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    font-family: var(--font-sans); font-size: 0.97rem; font-weight: 600;
    padding: 0.95rem 2rem; border-radius: var(--r-sm);
    cursor: pointer; border: 1px solid transparent;
    text-decoration: none; line-height: 1; position: relative;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease-soft), color 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.btn-primary {
    background: var(--forest); color: var(--paper);
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--ink-faint); color: var(--paper); cursor: not-allowed; transform: none; box-shadow: none; opacity: 0.7; }

.btn-secondary {
    background: transparent; color: var(--ink);
    border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--forest); color: var(--forest); transform: translateY(-2px); }

.full-width { width: 100%; }

/* ============================================================
   NAVIGATION — masthead
   ============================================================ */
.glass-nav {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1000;
    background: rgba(244, 238, 226, 0.82);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-block-end: 1px solid transparent;
    transition: background 0.4s var(--ease-soft), border-color 0.4s, box-shadow 0.4s;
}
.glass-nav::before {
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass-light) 50%, var(--brass) 70%, transparent);
    opacity: 0.85;
}
.glass-nav.scrolled {
    background: rgba(246, 241, 231, 0.94);
    border-block-end-color: var(--line);
    box-shadow: 0 6px 24px -16px rgba(23,37,28,0.4);
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h);
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo img {
    height: 64px; width: 148px;
    object-fit: contain; object-position: center; padding: 0;
    background: transparent;
}
.logo-text {
    font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
    color: var(--ink); letter-spacing: -0.01em; white-space: nowrap;
}
@media (max-width: 560px) {
    .logo { gap: 0; }
    .logo img { width: 132px; height: 56px; }
    .logo-text { display: none; }
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
    font-family: var(--font-sans); font-size: 0.97rem; font-weight: 500;
    color: var(--ink-soft); position: relative; padding-block: 0.4rem;
    transition: color 0.25s var(--ease-soft);
}
.nav-links a::after {
    content: ''; position: absolute; inset-block-end: 0; inset-inline-start: 0;
    width: 100%; height: 1.5px; background: var(--brass);
    transform: scaleX(0); transform-origin: inline-start;
    transition: transform 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* nav CTA variant */
.nav-links a.nav-cta {
    background: var(--forest); color: var(--paper);
    padding: 0.6rem 1.25rem; border-radius: var(--r-sm);
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--forest-deep); color: #fff; }

/* Hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    background: none; border: 0; cursor: pointer; padding: 0;
}
.hamburger span {
    display: block; width: 24px; height: 2px; background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero-landing {
    position: relative;
    padding-block: calc(var(--nav-h) + clamp(3rem, 7vw, 6rem)) clamp(3rem, 7vw, 6rem);
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--paper) 0%, var(--paper) 60%, var(--paper-2) 100%);
}
/* large ghost glyph watermark */
.hero-landing::before {
    content: '§';
    position: absolute; inset-block-start: 50%; inset-inline-start: -2%;
    transform: translateY(-50%);
    font-family: var(--font-serif); font-size: 44vw; line-height: 1;
    color: var(--ink); opacity: 0.025; pointer-events: none; z-index: 0;
}
.hero-background, .video-overlay { display: none; } /* unused legacy layers */

.hero-container { position: relative; z-index: 2; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Cinematic video hero (home only) ---------- */
.hero-cinematic {
    /* Dark forest gradient = poster + fallback before the video paints / if it fails */
    background:
        radial-gradient(120% 90% at 80% 0%, #1e3f2a 0%, transparent 60%),
        linear-gradient(180deg, var(--forest-deep) 0%, #0f2417 100%);
    color: var(--paper);
    isolation: isolate;
}
.hero-cinematic .hero-video {
    display: block;
    /* Vertical bleed (±60px) so the scroll parallax never exposes an edge */
    position: absolute; inset-inline: 0; inset-block-start: -60px; z-index: 0;
    width: 100%; height: calc(100% + 120px);
    object-fit: cover; object-position: center;
    opacity: 0; transition: opacity 0.9s var(--ease-soft);
    pointer-events: none;
    will-change: transform;
}
.hero-cinematic .hero-video.is-ready { opacity: 1; }
/* Scrim: keeps cream text well above 4.5:1 over the moving footage */
.hero-cinematic .hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(15,36,23,0.78) 0%, rgba(15,36,23,0.70) 38%, rgba(15,36,23,0.88) 100%),
        radial-gradient(120% 100% at 50% 0%, transparent 40%, rgba(11,27,17,0.55) 100%);
}
/* Light watermark instead of dark ink on the dark hero */
.hero-cinematic::before { color: var(--paper); opacity: 0.05; }
/* Brass hairline along the very top, echoing the masthead rule */
.hero-cinematic::after {
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 2;
    background: linear-gradient(90deg, transparent, var(--brass) 30%, var(--brass-light) 50%, var(--brass) 70%, transparent);
    opacity: 0.7; pointer-events: none;
}

/* Text recolour — scoped strictly to the cinematic hero */
.hero-cinematic .hero-label { color: #d9bd74; }
.hero-cinematic .main-title { color: #fdfaf2; }
.hero-cinematic .subtitle { color: #e9e0cb; }
.hero-cinematic .experience { color: rgba(244,238,226,0.82); }
.hero-cinematic .hero-divider { background: var(--brass-light); }

/* CTAs legible on the dark backdrop */
.hero-cinematic .btn-primary {
    background: var(--paper); color: var(--ink);
    box-shadow: 0 10px 30px -12px rgba(0,0,0,0.6);
}
.hero-cinematic .btn-primary:hover { background: #fff; color: var(--forest-deep); }
.hero-cinematic .btn-secondary {
    background: rgba(244,238,226,0.12); color: var(--paper);
    border-color: rgba(244,238,226,0.6);
}
.hero-cinematic .btn-secondary:hover { border-color: var(--brass-light); color: #fff; background: rgba(244,238,226,0.12); }

/* Portrait plate reads on dark: lighten frame, add brass-tinted depth */
.hero-cinematic .glass-frame {
    background: rgba(244,238,226,0.04);
    border-color: rgba(244,238,226,0.18);
    box-shadow: 0 30px 70px -22px rgba(0,0,0,0.7), 0 0 0 1px rgba(154,122,60,0.15);
}
.hero-cinematic .glass-frame::before { border-color: rgba(244,238,226,0.22); }
.hero-cinematic .lawyer-image-wrapper::after { opacity: 0.7; }
.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center; gap: clamp(2rem, 5vw, 5rem);
}

/* Portrait plate (print registration frame) */
.lawyer-image-wrapper { position: relative; justify-self: center; }
.glass-frame {
    position: relative; padding: 0; border-radius: var(--r-md);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.glass-frame::before {
    content: ''; position: absolute; inset: 10px; z-index: 3;
    border: 1px solid rgba(255,255,255,0.45); border-radius: var(--r-sm);
    pointer-events: none;
}
.lawyer-image-wrapper::after {
    content: ''; position: absolute; inset-block-end: -16px; inset-inline-end: -16px;
    width: 60%; height: 60%; z-index: -1; border-radius: var(--r-md);
    border: 1.5px solid var(--brass); opacity: 0.5;
}
.lawyer-image {
    width: min(400px, 100%); aspect-ratio: 4/5; object-fit: cover;
    filter: saturate(0.96) contrast(1.02);
    display: block;
}

/* Hero text */
.text-content { max-width: 36rem; }
.hero-label { margin-block-end: 1.4rem; }
.main-title {
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    font-weight: 900; color: var(--ink); line-height: 1.02;
    letter-spacing: -0.025em; margin-block-end: 0.5rem;
}
.subtitle {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem); color: var(--forest);
    margin-block-end: 1.6rem;
}
.hero-divider {
    width: 64px; height: 2px;
    background: linear-gradient(90deg, var(--brass), var(--brass-light) 55%, var(--brass));
    margin-block: 1.6rem;
    transform-origin: inline-start;
}
@media (prefers-reduced-motion: no-preference) {
    .hero-divider { animation: growLine 1s var(--ease) 0.4s both; }
    @keyframes growLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.experience {
    font-size: 1.12rem; color: var(--ink-soft); max-width: 30rem;
    margin-block-end: 2.2rem;
}
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* staggered load for hero pieces */
@media (prefers-reduced-motion: no-preference) {
    .hero-label, .main-title, .subtitle, .experience, .cta-buttons, .lawyer-image-wrapper {
        animation: heroRise 0.9s var(--ease) both;
    }
    .main-title { animation-delay: 0.08s; }
    .subtitle { animation-delay: 0.16s; }
    .experience { animation-delay: 0.28s; }
    .cta-buttons { animation-delay: 0.36s; }
    .lawyer-image-wrapper { animation-delay: 0.2s; }
    @keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

/* Motion gate: when the Motion library is live, JS adds .motion to <html> and drives
   the hero entrance itself. We hand it the items pre-hidden and cancel the CSS keyframes
   so the two don't fight. Without .motion (no JS / Motion failed / reduced-motion),
   the CSS heroRise above remains the entrance. */
.motion .hero-label,
.motion .main-title,
.motion .subtitle,
.motion .hero-divider,
.motion .experience,
.motion .cta-buttons,
.motion .lawyer-image-wrapper {
    animation: none !important;
    opacity: 0;
}

/* ============================================================
   HOME — SERVICES (editorial chapters)
   ============================================================ */
.services-section { padding-block: var(--section-pad); position: relative; }
.services-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; background: var(--line);
    border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.service-card {
    position: relative; display: block;
    height: 100%;
    background: var(--surface);
    padding: clamp(2rem, 4vw, 3.2rem);
    text-decoration: none; color: inherit;
    transition: background 0.4s var(--ease-soft), transform 0.4s var(--ease);
    overflow: hidden;
}
.service-body { display: flex; flex-direction: column; height: 100%; }
.service-card::before {
    content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
    width: 100%; height: 3px; background: var(--brass);
    transform: scaleX(0); transform-origin: inline-start;
    transition: transform 0.45s var(--ease);
}
.service-card:hover { background: var(--surface-raised); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon-svg {
    width: 38px; height: 38px; color: var(--forest);
    margin-block-end: 1.3rem; stroke-width: 1.4;
}
.service-body h3 {
    font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink);
    margin-block-end: 0.8rem; font-weight: 700;
}
.service-body p { color: var(--ink-soft); font-size: 1.04rem; margin-block-end: 1.4rem; flex: 1; }
.service-card .service-more {
    font-family: var(--font-sans); font-weight: 600; font-size: 0.92rem;
    color: var(--forest); display: inline-flex; align-items: center; gap: 0.4rem;
}
.service-card .service-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-more svg { transform: translateX(-5px); }

/* Booking-style action button inside each service card (per content brief) */
.service-card .service-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem;
    background: var(--forest); color: var(--paper);
    padding: 0.72rem 1.5rem; border-radius: var(--r-sm);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s var(--ease-soft), box-shadow 0.3s, transform 0.3s var(--ease);
}
.service-card .service-btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.service-card:hover .service-btn { background: var(--forest-deep); box-shadow: var(--shadow-md); }
.service-card:hover .service-btn svg { transform: translateX(-5px); }

/* ============================================================
   HOME — ABOUT / PHILOSOPHY
   ============================================================ */
.about-section {
    padding-block: var(--section-pad); position: relative;
    background-image:
        linear-gradient(180deg, rgba(15,36,23,0.90) 0%, rgba(13,31,20,0.82) 50%, rgba(11,27,17,0.93) 100%),
        url("assets/about-bg.jpg");
    background-size: cover; background-position: center 28%; background-repeat: no-repeat;
    color: var(--paper);
}
.about-content { max-width: var(--container-narrow); margin-inline: auto; text-align: center; position: relative; z-index: 1; }

/* About sits on a courtroom photo — recolour text to cream for contrast (scoped) */
.about-section .section-label { color: var(--brass-light); }
.about-section .about-title { color: #fdfaf2; }
.about-section .about-description { color: rgba(244,238,226,0.88); }
.about-section .about-tagline { color: #ece3d1; }
.about-section .about-cta-q { color: #fdfaf2; }
.about-section .about-cta-a { color: rgba(244,238,226,0.84); }
.about-section .value-item h4 { color: #fdfaf2; }
.about-section .value-item p { color: rgba(244,238,226,0.82); }
.about-gold-line, .about-signature {
    width: 56px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass-soft) 12%, var(--brass) 50%, var(--brass-soft) 88%, transparent);
    margin: 2rem auto;
}
.about-description { color: var(--ink-soft); font-size: 1.1rem; max-width: 38rem; margin-inline: auto; }
.about-biography {
    display: grid; gap: 0.8rem; max-width: 42rem; margin-inline: auto;
    color: rgba(244,238,226,0.9); font-size: 1.08rem; text-align: start;
}
.about-title {
    font-family: var(--font-serif); font-weight: 700; line-height: 1.2;
    font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ink);
    margin-block: 0.6rem 1.4rem;
}
.about-tagline {
    font-family: var(--font-serif); font-weight: 500;
    font-size: clamp(1.3rem, 2.8vw, 1.9rem); line-height: 1.45;
    color: var(--forest); max-width: 40rem; margin-inline: auto; margin-block-start: 1.8rem;
}
.about-cta-q {
    font-family: var(--font-serif); font-weight: 700;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: var(--ink);
}
.about-cta-a { color: var(--ink-soft); font-size: 1.1rem; max-width: 38rem; margin-inline: auto; margin-block-start: 0.6rem; }

/* ============================================================
   HOME — CONTACT
   ============================================================ */
.contact-section { padding-block: var(--section-pad); }
.contact-layout {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
/* Colophon — real office details */
.contact-details { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.contact-details .section-label { margin-block-end: 1rem; }
.contact-details h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-block-end: 1.8rem; }
.detail-list { list-style: none; display: grid; gap: 1.4rem; }
.detail-item { display: flex; gap: 1rem; align-items: flex-start; }
.detail-item .detail-ic {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--r-sm);
    display: grid; place-items: center;
    background: var(--forest-soft); color: var(--forest);
    border: 1px solid var(--line);
}
.detail-item .detail-ic svg { width: 19px; height: 19px; }
.detail-item .detail-k {
    display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-faint); margin-block-end: 0.2rem;
}
.detail-item .detail-v { color: var(--ink); font-weight: 500; font-size: 1.05rem; }
.detail-item a.detail-v:hover { color: var(--brass-deep); }

/* Forms */
.contact-grid { display: grid; gap: 1.5rem; }
.contact-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: var(--shadow-sm);
}
.contact-card h3 {
    font-size: 1.3rem; margin-block-end: 1.3rem; color: var(--ink);
    display: flex; align-items: center; gap: 0.6rem;
}
.contact-card h3::before {
    content: ''; width: 0.5rem; height: 0.5rem; background: var(--brass);
    border-radius: 50%; flex-shrink: 0;
}
.contact-form { display: grid; gap: 1rem; }
.form-group { display: grid; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

input, textarea, select {
    width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
    background: var(--surface-raised); border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 0.85rem 1rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
input::placeholder, textarea::placeholder { color: var(--ink-soft); }
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--forest);
    box-shadow: 0 0 0 3px var(--forest-soft); background: #fff;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--brass); outline-offset: 2px;
}
textarea { resize: vertical; min-height: 110px; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23586657' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 1rem center; padding-inline-start: 2.4rem;
}
.form-note { font-size: 0.85rem; color: var(--ink-faint); }
.form-status { font-size: 0.92rem; font-weight: 500; min-height: 1.2rem; }
.form-status.ok { color: var(--forest); }
.form-status.err { color: var(--clay); }

/* ============================================================
   FOOTER — colophon
   ============================================================ */
.footer {
    background: var(--forest-deep); color: rgba(244,238,226,0.75);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; position: relative;
}
.footer::before {
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--brass), transparent);
    z-index: 1;
}
.footer::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(120% 100% at 100% 100%, rgba(0,0,0,0.18), transparent 60%);
}
.footer-content { display: grid; gap: 2.5rem; position: relative; z-index: 1; }
.footer-top {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
    padding-block-end: 2.5rem; border-block-end: 1px solid rgba(244,238,226,0.12);
}
.footer-brand h3 { color: var(--paper); font-size: 1.4rem; margin-block-end: 0.6rem; }
.footer-brand p { font-size: 0.95rem; max-width: 24rem; }
.footer-col h4 {
    color: var(--brass-light); font-family: var(--font-sans);
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    margin-block-end: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a, .footer-col span { color: rgba(244,238,226,0.78); font-size: 0.97rem; }
.footer-col a:hover { color: var(--brass-light); }
.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
    font-size: 0.85rem; color: rgba(244,238,226,0.55);
}
.footer-disclaimer { max-width: 52rem; font-size: 0.82rem; line-height: 1.6; color: rgba(244,238,226,0.5); }

/* ============================================================
   SERVICE PAGES (employers / workers)
   ============================================================ */
.service-page { padding-block-start: var(--nav-h); }

.service-hero {
    position: relative; overflow: hidden;
    padding: clamp(3.5rem, 8vw, 7rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
    max-width: var(--container); margin-inline: auto;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
    column-gap: clamp(3rem, 8vw, 7rem); align-items: center;
}
.service-breadcrumb { grid-column: 1; position: relative; z-index: 1; font-size: 0.9rem; margin-block-end: 1.4rem; color: var(--ink-faint); }
.service-breadcrumb a { color: var(--ink-soft); }
.service-breadcrumb a:hover { color: var(--brass-deep); }
.breadcrumb-sep { margin-inline: 0.5rem; color: var(--line-strong); }
.breadcrumb-current { color: var(--brass-deep); font-weight: 500; }
.service-hero h1 {
    grid-column: 1;
    position: relative; z-index: 1;
    font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 900; color: var(--ink);
    margin-block-end: 1rem; letter-spacing: -0.02em;
}
.service-hero > p {
    grid-column: 1;
    position: relative; z-index: 1; max-width: 40rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft);
}
.service-hero-visual {
    grid-column: 2; grid-row: 1 / 4; align-self: center; justify-self: center;
    width: clamp(160px, 18vw, 230px); aspect-ratio: 1;
    display: grid; place-items: center; position: relative;
}
.service-hero-visual::before,
.service-hero-visual::after {
    content: ''; position: absolute; inset: 8%; border: 1px solid var(--brass-soft);
    border-radius: 50%;
}
.service-hero-visual::after { inset: 21%; border-color: var(--line); }
.service-hero-visual img { width: 62%; height: 62%; position: relative; z-index: 1; }

.service-content {
    max-width: var(--container); margin-inline: auto;
    padding: clamp(2rem, 4vw, 3rem) var(--gutter) var(--section-pad);
    display: grid; gap: clamp(3rem, 6vw, 5rem);
}

/* a section = a numbered chapter */
.content-section { position: relative; }
.section-heading { display: flex; align-items: baseline; gap: 1.1rem; margin-block-end: 1.6rem; }
.heading-number {
    flex-shrink: 0; font-family: var(--font-serif); font-weight: 900;
    font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brass);
    line-height: 1; text-align: center;
    background: var(--brass-soft); border-radius: var(--r-sm);
    padding: 0.2rem 0.5rem;
}
.section-heading h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); color: var(--ink); }
.service-intro { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; margin-block-end: 1.8rem; }

/* info-card */
.info-card {
    background: var(--surface); border: 1px solid var(--line);
    border-inline-start: 3px solid var(--brass);
    border-radius: var(--r-sm); padding: 1.5rem 1.8rem; margin-block: 1.4rem;
    box-shadow: var(--shadow-sm);
}
.info-card p { color: var(--ink-soft); }
.info-card p + p { margin-block-start: 0.8rem; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-block-start: 1.6rem; }
.feature-card {
    background: var(--surface); border: 1px solid var(--line);
    border-inline-start: 2px solid transparent;
    border-radius: var(--r-md); padding: 1.5rem 1.7rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.feature-card:nth-child(2n+1) { border-inline-start-color: var(--brass-soft); }
.feature-card:nth-child(2n)   { border-inline-start-color: var(--forest-soft); }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brass-soft); }
.feature-card .feature-title {
    font-family: var(--font-serif); font-weight: 700; font-size: 1.18rem; color: var(--ink);
    margin-block-end: 0.6rem; display: flex; align-items: center; gap: 0.6rem;
}
.feature-card .feature-title::before {
    content: ''; width: 0.55rem; height: 0.55rem; background: var(--brass);
    border-radius: 1px; transform: rotate(45deg); flex-shrink: 0;
}
.feature-card p { color: var(--ink-soft); font-size: 1.0rem; }

/* step timeline */
.step-timeline { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-block-start: 1.6rem; }
.step-item {
    background: var(--surface); padding: 1.5rem 1.7rem 1.5rem 1.7rem; position: relative;
    padding-inline-start: 4rem;
}
.step-item::before {
    content: counter(step, decimal-leading-zero);
    counter-increment: step;
    position: absolute; inset-inline-start: 1.5rem; inset-block-start: 1.5rem;
    font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; color: var(--brass-deep);
}
/* connector line tying the leading-zero counters into one process flow */
.step-item:not(:last-child)::after {
    content: ''; position: absolute; inset-inline-start: 1.85rem;
    inset-block-start: 3rem; bottom: -1px; width: 2px; background: var(--brass-soft);
}
.step-timeline { counter-reset: step; }
.step-item h4 { font-size: 1.15rem; color: var(--ink); margin-block-end: 0.4rem; }
.step-item p { color: var(--ink-soft); font-size: 1.0rem; }

/* list cards */
.list-cards { list-style: none; display: grid; gap: 0.7rem; margin-block-start: 1.4rem; }
.list-cards li {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
    padding: 1rem 1.3rem; color: var(--ink-soft); position: relative; padding-inline-start: 2.4rem;
    transition: border-color 0.3s, background 0.3s;
}
.list-cards li::before {
    content: '\2713'; position: absolute; inset-inline-start: 1.05rem; inset-block-start: 1.05rem;
    color: var(--forest); font-weight: 700; font-size: 0.9rem; line-height: 1;
    transition: color 0.3s var(--ease);
}
.list-cards li:hover { border-color: var(--brass-soft); background: var(--surface-raised); }
.list-cards li:hover::before { color: var(--brass-deep); }

/* highlight / callout */
.highlight-box {
    background: var(--clay-soft); border: 1px solid rgba(161,78,44,0.22);
    border-inline-start: 3px solid var(--clay);
    border-radius: var(--r-sm); padding: 1.5rem 1.8rem; margin-block-start: 1.6rem;
}
.highlight-box p { color: var(--ink-2); }
.highlight-box strong { color: var(--clay); }

/* stat grid (workers page facts) */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.8rem; }
.stat-box {
    background: var(--forest); color: var(--paper); border-radius: var(--r-md);
    padding: 1.5rem 1.2rem; text-align: center;
    display: flex; flex-direction: column; justify-content: center;
}
/* First stat is the hero figure; the remaining two form a balanced row. */
.stat-box:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--forest), var(--forest-deep));
}
.stat-box:first-child .stat-val { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.stat-box .stat-val { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; margin-block-end: 0.4rem; }
.stat-box .stat-desc { font-size: 0.85rem; color: rgba(244,238,226,0.8); line-height: 1.4; }

/* service CTA */
.service-cta {
    width: calc(100% - (2 * var(--gutter))); max-width: var(--container);
    margin: 0 auto var(--section-pad); padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
    text-align: center; background: var(--paper-2); border-radius: var(--r-lg);
    border: 1px solid var(--line);
}
.service-cta h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-block-end: 0.8rem; }
.service-cta p { color: var(--ink-soft); max-width: 36rem; margin: 0 auto 1.8rem; font-size: 1.08rem; }

/* ============================================================
   BOOKING PAGE
   ============================================================ */
.booking-page { padding-block: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) var(--section-pad); position: relative; min-height: 100vh; min-height: 100dvh; }
.booking-background { display: none; }
.booking-container { max-width: 880px; margin-inline: auto; padding-inline: var(--gutter); }

.glass-card, .booking-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); box-shadow: var(--shadow-md);
    padding: clamp(1.8rem, 4vw, 3rem); position: relative;
}
.booking-card { overflow: hidden; }
.booking-card::before {
    content: ''; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px;
    background: linear-gradient(90deg, var(--brass), var(--brass-light));
}
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); text-align: center; }
.price-tag {
    text-align: center; font-family: var(--font-serif); font-weight: 700;
    font-size: 1.5rem; color: var(--forest); margin-block: 0.6rem 2rem;
}
.price-tag .price-vat { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 400; color: var(--ink-faint); }

.booking-content { display: grid; gap: 2rem; }
.date-section h3, .time-section h3 {
    font-size: 1.1rem; color: var(--ink); margin-block-end: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}

/* Custom calendar */
.custom-calendar { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-block-end: 1rem; }
.cal-month-year { font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.cal-nav-btn {
    width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-soft); cursor: pointer;
    display: grid; place-items: center; transition: all 0.25s var(--ease);
}
.cal-nav-btn:hover { background: var(--forest); color: var(--paper); border-color: var(--forest); }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-nav-btn:disabled:hover { background: var(--surface); color: var(--ink-soft); border-color: var(--line); }
.cal-days-row, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name { text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); padding-block: 0.4rem; }
.cal-day-name.cal-sabbath { color: var(--clay); opacity: 0.7; }
.cal-cell {
    aspect-ratio: 1; display: grid; place-items: center; font-size: 0.95rem; font-weight: 500;
    border: 1px solid transparent; border-radius: var(--r-sm); background: transparent;
    color: var(--ink-2); cursor: pointer; font-family: var(--font-sans);
    transition: all 0.2s var(--ease);
}
button.cal-cell:not(:disabled):hover { background: var(--forest-soft); border-color: var(--brass-soft); }
.cal-cell.cal-empty { cursor: default; border: 0; }
.cal-cell.cal-disabled, .cal-cell:disabled { color: var(--ink-faint); opacity: 0.4; cursor: not-allowed; }
.cal-cell.cal-sabbath { color: var(--clay); }
.cal-cell.cal-today { border-color: var(--brass); font-weight: 700; }
.cal-cell.cal-selected { background: var(--forest); color: var(--paper); border-color: var(--forest); font-weight: 700; }

.calendar-hint { color: var(--ink-faint); font-size: 0.95rem; text-align: center; padding-block: 1.5rem; }
.calendar-error {
    color: var(--clay); background: var(--clay-soft); border: 1px solid rgba(161,78,44,0.22);
    border-radius: var(--r-sm); padding: 0.9rem 1rem; text-align: center; font-size: 0.95rem;
}
.calendar-retry {
    min-height: 44px; margin: 0.8rem auto 0; padding: 0.65rem 1.15rem;
    display: block; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--surface-raised); color: var(--forest); font: 600 0.92rem var(--font-sans);
    cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.calendar-retry:hover { border-color: var(--forest); background: var(--forest); color: var(--paper); }
.payment-disabled-note {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 0.35rem 0.55rem; padding: 0.9rem 1rem; color: var(--ink-soft);
    background: var(--brass-soft); border: 1px solid rgba(154,122,60,0.28);
    border-radius: var(--r-sm); text-align: center; font-size: 0.9rem;
}
.payment-disabled-note strong { color: var(--brass-deep); }
.payment-disabled-note a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; }
.time-date-label { font-family: var(--font-serif); font-weight: 600; color: var(--forest); margin-block-end: 1rem; font-size: 1.05rem; }
.time-slots-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 0.7rem; }
.time-slot {
    padding: 0.7rem 0.5rem; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: var(--surface-raised); color: var(--ink); cursor: pointer; font-family: var(--font-sans);
    font-size: 0.98rem; font-weight: 500; transition: all 0.2s var(--ease);
}
.time-slot:hover { border-color: var(--forest); background: var(--forest-soft); }
.time-slot.selected { background: var(--forest); color: var(--paper); border-color: var(--forest); font-weight: 600; }
.time-slot.blocked { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; background: var(--paper-2); }

.gcal-loading { display: flex; align-items: center; gap: 0.6rem; color: var(--ink-faint); font-size: 0.9rem; margin-block-start: 0.8rem; }
.gcal-spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--forest); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* booking summary */
.booking-summary {
    margin-block-end: 1.8rem;
    background: transparent; box-shadow: none;
    border: 0; border-block: 1px solid var(--line);
    border-inline-start: 3px solid var(--brass);
    padding-inline-start: 1.2rem; padding-block: 1rem;
    border-radius: 0;
}
.booking-summary h3 { font-size: 1.15rem; margin-block-end: 1rem; color: var(--ink); }
.summary-row { display: flex; justify-content: space-between; padding-block: 0.5rem; color: var(--ink-soft); font-size: 0.98rem; }
.summary-row.total { border-block-start: 1px solid var(--line); margin-block-start: 0.5rem; padding-block-start: 0.9rem; font-weight: 700; color: var(--ink); font-size: 1.1rem; }
.summary-value { font-weight: 600; color: var(--ink); }

/* payment form */
.payment-form { display: grid; gap: 1rem; }
.payment-form h3 { font-size: 1.1rem; margin-block: 0.5rem 0; color: var(--ink); }
.back-btn { background: none; border: 0; color: var(--ink-soft); cursor: pointer; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; margin-block-end: 1rem; padding: 0.3rem 0; }
.back-btn:hover { color: var(--forest); }
.back-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* payment method badges */
.pay-methods { margin-block: 1.4rem; }
.pay-methods-label { font-size: 0.9rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-soft); margin-block-end: 0.7rem; text-align: center; }
.pay-methods-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; }
.pay-badge {
    height: 38px; min-width: 56px; padding: 0 0.7rem; border-radius: var(--r-sm);
    background: var(--surface-raised); border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
    box-shadow: var(--shadow-sm);
}
.pay-badge svg, .pay-badge img { height: 20px; width: auto; display: block; }
.pay-badge .badge-txt { font-size: 0.82rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

.secure-note {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    text-align: center; font-size: 0.88rem; color: var(--ink-soft);
    background: var(--forest-soft); border: 1px solid var(--line);
    border-radius: var(--r-sm); padding: 0.8rem 1rem; margin-block-end: 1.2rem;
}
.secure-note svg { width: 17px; height: 17px; color: var(--forest); flex-shrink: 0; }
.hold-note {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    text-align: center; font-size: 0.88rem; color: var(--ink-soft);
    border: 1px dashed var(--line); border-radius: var(--r-sm);
    padding: 0.8rem 1rem; margin-block-end: 0.9rem;
}
.hold-note svg { width: 17px; height: 17px; color: var(--brass); flex-shrink: 0; }
.demo-banner {
    background: var(--brass-soft); border: 1px solid rgba(154,122,60,0.25);
    color: var(--brass-deep); border-radius: var(--r-sm); padding: 0.7rem 1rem;
    font-size: 0.85rem; text-align: center; margin-block-end: 1.2rem;
}

/* active 10-minute server hold */
.hold-card { max-width: 620px; margin-inline: auto; text-align: center; }
.hold-clock {
    width: 54px; height: 54px; margin: 0 auto 0.85rem; border-radius: 50%;
    display: grid; place-items: center; color: var(--forest);
    background: var(--forest-soft); border: 1px solid var(--line-strong);
}
.hold-clock svg { width: 27px; height: 27px; }
.hold-kicker {
    margin-block-end: 0.3rem; color: var(--brass-deep); font-size: 0.82rem;
    font-weight: 700; letter-spacing: 0;
}
.hold-datetime {
    margin: 0.65rem auto 1.5rem; color: var(--ink-soft); font-weight: 600;
    font-size: 1rem; display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem; direction: rtl;
}
.hold-countdown-wrap {
    display: grid; justify-items: center; gap: 0.25rem; padding-block: 1.25rem;
    margin-block-end: 1.25rem; border-block: 1px solid var(--line);
}
.hold-countdown-label { color: var(--ink-soft); font-size: 0.88rem; }
.hold-countdown {
    min-width: 5ch; color: var(--forest-deep); font-family: var(--font-sans);
    font-size: 2.8rem; font-weight: 700; font-variant-numeric: tabular-nums;
    line-height: 1.05;
}
.hold-countdown.is-urgent { color: var(--clay); }
.hold-guidance {
    max-width: 31rem; margin: 0 auto 1.4rem; color: var(--ink-soft);
    font-size: 0.95rem; line-height: 1.75;
}
.hold-cancel-btn {
    min-height: 44px; margin-block-start: 0.65rem; padding: 0.55rem 1rem;
    border: 0; background: transparent; color: var(--ink-soft); cursor: pointer;
    font: 600 0.9rem var(--font-sans); text-decoration: underline;
    text-underline-offset: 0.2em;
}
.hold-cancel-btn:hover { color: var(--clay); }
.hold-cancel-btn:disabled { cursor: wait; opacity: 0.55; }
.hold-provider-note {
    max-width: 30rem; margin: 0.85rem auto 0; color: var(--ink-faint);
    font-size: 0.8rem; line-height: 1.6;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(23, 37, 28, 0.55); backdrop-filter: blur(4px);
    display: grid; place-items: center; padding: 1.5rem;
    opacity: 1; transition: opacity 0.3s var(--ease);
}
.modal-content {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: clamp(2rem, 5vw, 3rem); max-width: 440px; width: 100%; text-align: center;
    box-shadow: var(--shadow-lg); position: relative;
    animation: modalIn 0.4s var(--ease) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(0.95); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
.modal-icon {
    width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%;
    background: var(--forest-deep); color: var(--paper);
    border: 2px solid var(--brass);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 16px rgba(23,37,28,0.18);
    display: grid; place-items: center; font-size: 1.8rem;
}
.modal-content h3 { font-size: 1.5rem; margin-block-end: 0.8rem; color: var(--ink); }
.modal-content p { color: var(--ink-soft); margin-block-end: 1.6rem; }

/* ============================================================
   GENERATED SVG ASSETS — emblems, value icons, scales, ornaments
   ============================================================ */

/* Top scroll-progress hairline (brass). JS scales it with scroll(); the
   CSS keeps it invisible until Motion drives it so nothing flashes. */
.scroll-progress {
    position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 1100;
    height: 3px; background: linear-gradient(90deg, var(--brass-deep), var(--brass-light));
    transform: scaleX(0); transform-origin: right center;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .scroll-progress { display: none; } }

/* Service-card medallion emblems */
.service-emblem {
    display: inline-flex; width: 58px; height: 58px; margin-block-end: 1.3rem;
}
.service-emblem svg { width: 100%; height: 100%; overflow: visible; }
.service-emblem .emblem-disc { transition: fill 0.4s var(--ease-soft); }
.service-card:hover .service-emblem .emblem-disc { fill: var(--brass-soft); }

/* About — scales-of-justice centerpiece */
.about-emblem {
    width: clamp(150px, 26vw, 196px); margin: 0 auto 1.6rem;
}
.about-emblem svg { width: 100%; height: auto; overflow: visible; display: block; }
@media (prefers-reduced-motion: no-preference) {
    .about-emblem { will-change: transform; }
}

/* About — three values row */
.value-row {
    list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.2rem, 3vw, 2.2rem); margin-block: clamp(2.4rem, 5vw, 3.4rem);
    text-align: center;
}
.value-item { display: flex; flex-direction: column; align-items: center; }
.value-ic {
    display: grid; place-items: center; width: 72px; height: 72px;
    margin-block-end: 1rem; border-radius: 50%;
    background: var(--surface-raised); border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.value-ic svg { width: 40px; height: 40px; overflow: visible; }
.value-item:hover .value-ic {
    transform: translateY(-6px) rotate(-1.5deg);
    box-shadow: 0 12px 30px rgba(154,122,60,0.18); border-color: var(--brass-soft);
}
.value-ic svg { transition: transform 0.35s var(--ease); }
.value-item:hover .value-ic svg { transform: scale(1.06); }
.value-item h4 {
    font-family: var(--font-serif); font-weight: 700; font-size: 1.18rem;
    color: var(--ink); margin-block-end: 0.4rem;
}
.value-item p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; max-width: 18rem; }

/* Footer monogram */
.footer-monogram {
    width: min(230px, 100%); height: 88px; margin-block-end: 1rem;
    object-fit: contain; object-position: center;
    background: transparent; filter: brightness(0) invert(92%); opacity: 0.92;
}

/* Editorial kicker above the home contact cards (earned hierarchy) */
.contact-card-tag {
    display: inline-block; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-deep);
    margin-block-end: 0.6rem;
}

/* WCAG 2.3.3 — neutralize all hover MOVEMENT under reduced-motion, while
   keeping the color/shadow/border hover cues from the base rules. */
@media (prefers-reduced-motion: reduce) {
    .btn-primary:hover, .btn-secondary:hover,
    .feature-card:hover,
    .value-item:hover .value-ic, .value-item:hover .value-ic svg,
    .service-card:hover .service-more svg, .service-card:hover .service-btn svg {
        transform: none !important;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-details { position: static; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    .hamburger { display: flex; }
    .nav-links {
        position: fixed; inset-block-start: var(--nav-h); inset-inline: 0;
        flex-direction: column; gap: 0; align-items: stretch;
        background: var(--surface-raised); border-block-end: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none;
        transition: max-height 0.4s var(--ease), opacity 0.2s var(--ease-soft), visibility 0s linear 0.4s;
        padding-inline: 0;
    }
    .nav-links.nav-open {
        max-height: 360px; opacity: 1; visibility: visible; pointer-events: auto;
        transition-delay: 0s;
    }
    .nav-links li { border-block-end: 1px solid var(--line-soft); }
    .nav-links a { display: block; padding: 1rem var(--gutter); }
    .nav-links a::after { display: none; }
    .nav-links a.nav-cta { margin: 0.8rem var(--gutter); text-align: center; }
}

@media (max-width: 720px) {
    .hero-landing {
        padding-block: calc(var(--nav-h) + 2rem) 3rem;
    }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .text-content { max-width: none; margin-inline: auto; }
    .hero-label { margin-block-end: 0.75rem; }
    .hero-label::before { display: none; }
    .hero-divider { margin: 1rem auto; }
    .experience { font-size: 1rem; margin: 0 auto 1.5rem; }
    .cta-buttons { justify-content: center; }
    .lawyer-image-wrapper { order: -1; margin-inline: auto; }
    .lawyer-image { width: min(180px, 46vw); }
    .lawyer-image-wrapper::after { inset-block-end: -10px; inset-inline-end: -10px; }
    .service-hero { display: block; }
    .service-hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .value-row { grid-template-columns: 1fr; gap: 1.8rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 460px) {
    .stat-grid { grid-template-columns: 1fr; }
    .stat-box:first-child { grid-column: auto; }
    .time-slots-inner { grid-template-columns: repeat(3, 1fr); }
}

/* iPhone SE / mini — keep the booking time-slots and portrait readable */
@media (max-width: 400px) {
    :root { --gutter: 1rem; }
    .booking-card { padding: 1.25rem; }
    .custom-calendar { padding: 0.75rem; }
    .cal-days-row, .cal-grid { gap: 2px; }
    .cal-cell { font-size: 0.88rem; }
    .time-slots-inner { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .lawyer-image { width: min(164px, 44vw); }
}

@media (max-width: 720px) and (max-height: 700px) {
    .hero-landing { padding-block-start: calc(var(--nav-h) + 1.5rem); }
    .lawyer-image-wrapper { display: none; }
}

/* Print */
@media print {
    .glass-nav, .hamburger, .cta-buttons, .footer, .modal { display: none !important; }
    body { background: #fff; color: #000; }
}
