/* ===========================================================
   The Icon — Design System (vanilla CSS, no build step)
   Placeholder palette/typography pending client branding
   (see Open Items #15 in the build plan).
   =========================================================== */

:root {
    --color-ink: #10182b;
    --color-ink-soft: #1c2740;
    --color-gold: #c6952c;
    --color-gold-light: #e3c775;
    --color-bg: #ffffff;
    --color-bg-soft: #f7f5f0;
    --color-text: #1c2333;
    --color-text-muted: #5b6478;
    --color-border: #e7e3da;
    --color-success: #2e7d4f;
    --color-danger: #b3402f;

    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(16, 24, 43, 0.08);
    --shadow-md: 0 8px 24px rgba(16, 24, 43, 0.12);
    --max-width: 1160px;
}

* {
    box-sizing: border-box;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    /* clip is deprecated; clip-path is the modern replacement, kept alongside
       it since older screen-reader/browser combinations still rely on clip. */
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.visually-hidden:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: var(--color-ink);
    color: #fff;
    border-radius: var(--radius-sm);
    z-index: 200;
    clip: auto;
    clip-path: none;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-soft {
    background: var(--color-bg-soft);
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-ink);
}

.btn-primary:hover {
    background: var(--color-gold-light);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--color-ink);
    color: #fff;
}

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(6px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-ink);
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: inherit;
}

.brand-tagline {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-gold);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-ink);
    display: block;
}

.services-dropdown {
    position: relative;
}

/*
 * The trigger is a <button>, not a link — clicking/tapping "Services" only
 * ever opens the submenu, it never navigates on its own (it used to be an
 * <a> to the first service, which is exactly why tapping it on mobile, where
 * :hover doesn't exist, silently took visitors to Web Design instead of
 * opening the dropdown). Desktop :hover on the parent <li> still opens the
 * panel without any click at all (see .services-dropdown:hover below).
 */
.services-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin: -6px;
    font: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
}

.services-dropdown-toggle:hover,
.services-dropdown.open .services-dropdown-toggle {
    color: var(--color-gold);
}

.services-dropdown-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.services-dropdown.open .services-dropdown-toggle svg {
    transform: rotate(180deg);
}

/*
 * The visible panel sits inside a taller, invisible wrapper that starts
 * right at the trigger's bottom edge (no gap) — the 14px of breathing
 * room is padding *inside* that wrapper instead of a gap outside it, so
 * the mouse never crosses dead space and loses :hover while moving from
 * the "Services" link down into the panel.
 */
.services-dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 14px;
    min-width: 260px;
    display: none;
}

.services-dropdown:hover .services-dropdown-panel,
.services-dropdown:focus-within .services-dropdown-panel,
.services-dropdown.open .services-dropdown-panel {
    display: block;
}

.services-dropdown-panel-inner {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 10px;
    max-height: min(60vh, 420px);
    overflow-y: auto;
}

.services-dropdown-panel-inner a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.services-dropdown-panel-inner a:hover {
    background: var(--color-bg-soft);
}

/* ---------- Hero slider ---------- */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 560px;
    width: 100%;
    overflow: hidden;
    background: #000;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0 5% 90px;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 22%;
    transform: scale(1.3);
    transition: transform 10s ease-out;
}

.hero-slide.active .hero-bg-image {
    transform: scale(1.15);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 28, 0.35), rgba(10, 15, 28, 0.85));
    z-index: 2;
}

.gold-ring-container {
    position: relative;
    z-index: 10;
    max-width: 460px;
}

/* Rectangular orbit frame (replaces the old circular ring) around the text block. */
.gold-ring {
    position: absolute;
    inset: -28px -32px;
    border: 1px solid rgba(198, 149, 44, 0.35);
    pointer-events: none;
}

.gold-ring::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    margin: -5px;
    background: var(--color-gold-light);
    border-radius: 50%;
    box-shadow: 0 0 16px 2px var(--color-gold-light);
    offset-path: border-box;
    animation: orbitRect 12s linear infinite;
}

@keyframes orbitRect {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}

.hero-content {
    text-align: left;
    color: #fff;
    z-index: 15;
    padding: 24px 28px;
}

.hero-content p {
    font-size: clamp(9px, 1.8vw, 12px);
    letter-spacing: 3px;
    font-weight: 700;
    color: var(--color-gold-light);
    text-transform: uppercase;
    margin-bottom: 14px;
    white-space: nowrap;
}

.hero-content h1 {
    font-family: var(--font-body);
    font-size: clamp(1.7rem, 5vw, 3rem);
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 18px;
}

.hero-slide-cta {
    display: inline-flex;
}

.slider-nav {
    position: absolute;
    bottom: 48px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 50;
}

.slider-nav .dot {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    padding: 0;
}

.slider-nav .dot.active {
    background: var(--color-gold-light);
}

/* ---------- Nav overlay (homepage only, transparent until scrolled past hero) ---------- */
.site-header.nav-overlay:not(.scrolled) {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

.site-header.nav-overlay:not(.scrolled) .brand,
.site-header.nav-overlay:not(.scrolled) .nav-links a,
.site-header.nav-overlay:not(.scrolled) .services-dropdown-toggle {
    color: #fff;
}

.site-header.nav-overlay:not(.scrolled) .nav-toggle span {
    background: #fff;
}

/* The desktop services panel always has a solid white background, so its
   links need normal dark text even while the header itself is still
   transparent (unscrolled homepage) — otherwise they're white text on a
   white panel. Scoped to desktop widths only: the mobile open menu is
   dark and translucent itself (see the @media block below), so it needs
   white text instead — a plain (unscoped) version of this rule would win
   there too on specificity alone and undo that. */
@media (min-width: 721px) {
    .site-header.nav-overlay:not(.scrolled) .services-dropdown-panel-inner a {
        color: var(--color-text);
    }
}

/* ---------- Value strip (moved out of hero to let the portrait breathe) ---------- */
.value-strip {
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
    padding: 22px 0;
}

.value-strip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    justify-content: center;
}

.value-strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
}

.value-strip-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(198, 149, 44, 0.15);
    color: var(--color-gold);
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* ---------- Stats ---------- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(198, 149, 44, 0.25));
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ---------- Cards / Grids ---------- */
.grid {
    display: grid;
    gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
    height: 100%;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.card:hover {
    box-shadow: 0 16px 40px rgba(198, 149, 44, 0.16), var(--shadow-md);
    border-color: rgba(198, 149, 44, 0.35);
    transform: translateY(-3px);
}

.card:hover::after {
    transform: scaleX(1);
}

.card-index {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.75rem;
    color: var(--color-border);
    letter-spacing: 0.05em;
}

.card-icon {
    width: 46px;
    height: 46px;
    clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0% 50%);
    background: linear-gradient(135deg, rgba(198, 149, 44, 0.16), rgba(198, 149, 44, 0.04));
    border: 1px solid rgba(198, 149, 44, 0.3);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 16px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.service-feature-figure {
    margin: 0;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-feature-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
}

.card-link:hover { color: var(--color-gold); }

/* "Other services" carousel on a service page — every service except the
   one you're already on, horizontally scrollable (native scroll-snap, no
   JS dependency for touch/trackpad) with optional prev/next buttons for
   pointer users, wired up by initServiceCarousels() in main.js. */
.other-services-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 4px 4px 4px;
    margin-left: -4px;
    margin-right: -4px;
    /* Hidden scrollbar so this reads as a carousel (swipe/drag/buttons),
       not a plain scrolling div — still fully scrollable, just no track. */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.other-services-carousel::-webkit-scrollbar {
    display: none;
}

.other-services-carousel .card {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

.other-services-nav {
    display: flex;
    gap: 8px;
}

.other-services-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    color: var(--color-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.other-services-nav button:hover {
    background: var(--color-bg-soft);
    border-color: var(--color-gold);
}

/* Status badges — shared by the admin panel and public pages (e.g. the
   client-facing booking manage page) alike. */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background: #e9f4ee; color: var(--color-success); }
.badge-warning { background: #fff4dc; color: #8a6612; }
.badge-danger { background: #fbe9e6; color: var(--color-danger); }
.badge-muted { background: #eceae4; color: var(--color-text-muted); }

/* ---------- Testimonials ---------- */
.testimonial {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    flex-shrink: 0;
    object-fit: cover;
}

.stars {
    color: var(--color-gold);
    letter-spacing: 2px;
}

.empty-state {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 20px;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
}

/* ---------- FAQ Accordion ---------- */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-text);
}

.accordion-trigger::after {
    content: "+";
    font-size: 1.3rem;
    color: var(--color-gold);
    transition: transform 0.2s ease;
}

.accordion-item.open .accordion-trigger::after {
    transform: rotate(45deg);
}

.accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    color: var(--color-text-muted);
}

.accordion-item.open .accordion-panel {
    max-height: 400px;
    padding-bottom: 18px;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 1px;
}

textarea { resize: vertical; min-height: 130px; }

.form-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Honeypot trap (app/spam_guard.php) — off-screen rather than
   display:none/visibility:hidden, since spam bots commonly skip fields
   hidden that way but still auto-fill anything positioned off-canvas. */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: #eaf6ee;
    color: var(--color-success);
    border: 1px solid #bfe4cb;
}

.alert-error {
    background: #fbecea;
    color: var(--color-danger);
    border: 1px solid #f0c6bf;
}

.alert-warning {
    background: #fff8e6;
    color: #8a6612;
    border: 1px solid #f2dfa3;
}

/* ---------- Blog ---------- */
.post-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.blog-post-feature-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 8px;
}

.prose {
    max-width: 72ch;
}

.prose p { margin-bottom: 1.2em; }
.prose ol, .prose ul { padding-left: 1.4em; margin-bottom: 1.2em; }

/* Elements the Trix editor (admin/blog post body) can produce that weren't
   covered before — links, quotes, and inline images pasted into a post. */
.prose a { color: var(--color-gold); text-decoration: underline; }
.prose a:hover { color: var(--color-ink); }

.prose blockquote {
    margin: 0 0 1.2em;
    padding: 4px 20px;
    border-left: 3px solid var(--color-gold);
    color: var(--color-text-muted);
    font-style: italic;
}

.prose pre {
    margin: 0 0 1.2em;
    padding: 16px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.9rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin-bottom: 1.2em;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 24px;
}

.newsletter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 40px;
}

.newsletter-bar-text h3 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.newsletter-bar-text p {
    font-size: 0.9rem;
    max-width: 42ch;
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    width: 220px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-form input:focus { outline: none; border-color: var(--color-gold); }

.newsletter-flash {
    font-size: 0.85rem;
    margin: 10px 0 0;
}

.newsletter-flash-success { color: var(--color-gold-light); }
.newsletter-flash-error { color: #f0a99e; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-grid h4 {
    color: #fff;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-grid a:hover { color: var(--color-gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
    background: var(--color-bg-soft);
    padding: calc(64px + 56px) 0 56px;
    border-bottom: 1px solid var(--color-border);
}

/* ---------- Service hero (photo banner, replaces .page-header on service pages) ---------- */
.service-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center 12%;
    padding: calc(64px + 64px) 0 48px;
    color: #fff;
}

.service-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 15, 28, 0.25), rgba(10, 15, 28, 0.88));
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero .breadcrumb,
.service-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
}

.service-hero .breadcrumb a:hover {
    color: #fff;
}

.service-hero h1 {
    color: #fff;
    margin-bottom: 10px;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.88);
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--color-gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .value-strip-grid { justify-content: flex-start; }

    /* The row layout's fixed-width input + button don't fit beside the
       text block once the bar is narrower than its content needs. */
    .newsletter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }
}

@media (max-width: 720px) {
    .nav-links {
        display: none;
    }

    /* Logo stays put; the CTA button and hamburger group together at the
       right edge instead of the hamburger sitting sandwiched between the
       brand and a full-size button (source order otherwise puts .nav-toggle
       ahead of .nav-cta in the DOM). */
    .nav-toggle {
        display: flex;
        order: 3;
    }

    /* justify-content:space-between (the desktop layout) would spread all
       three remaining items evenly instead of grouping the button and
       hamburger together at the right edge — push them there as a pair
       with margin-left:auto instead, and give them breathing room with gap. */
    .nav {
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-cta {
        order: 2;
        margin-left: auto;
    }

    .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tagline {
        font-size: 0.48rem;
    }

    /* Gold reads muddy against the hero photo's grey tones at this size —
       blend with the rest of the overlay nav's white text instead. */
    .site-header.nav-overlay:not(.scrolled) .brand-tagline {
        color: rgba(255, 255, 255, 0.75);
    }

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

    .nav-cta .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    /* The eyebrow's white-space:nowrap forces the hero text block (and the
       gold-ring frame wrapping it) wider than the viewport on mobile, which
       pushes the ring's own negative inset off both edges — let it wrap and
       tighten the frame's offset so it stays fully on-screen. */
    .hero-slide {
        padding: 0 24px 70px;
    }

    .hero-content p {
        white-space: normal;
        letter-spacing: 2px;
    }

    .gold-ring {
        inset: -14px -16px;
    }

    /* Dark, translucent panel echoing the homepage hero header's own
       color/transparency treatment (var(--color-ink) + blur), rather than
       a plain white list — same brand look site-wide, not just on "/". */
    .nav-links.open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: rgba(16, 24, 43, 0.97);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
    }

    /* Every item — Services included — stays centered and shrink-wrapped,
       same as the rest of the list (.nav-links base rule's
       align-items: center carries through unchanged here). Hover doesn't
       exist on touch, so the submenu becomes an inline click-to-expand
       accordion instead of a floating hover panel. */
    .services-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links.open a,
    .nav-links.open .services-dropdown-toggle {
        color: #fff;
    }

    .services-dropdown-panel {
        position: static;
        transform: none;
        padding-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .services-dropdown.open .services-dropdown-panel {
        max-height: 400px;
        margin-top: 10px;
    }

    .services-dropdown-panel-inner {
        background: transparent;
        border: none;
        box-shadow: none;
        max-height: none;
        overflow: visible;
        padding: 0;
        text-align: center;
    }

    .services-dropdown-panel-inner a {
        color: rgba(255, 255, 255, 0.75);
    }

    .services-dropdown-panel-inner a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
    }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Sticky concierge mascot + AI chat panel (Phase 6) ---------- */
.concierge-mascot {
    position: fixed;
    bottom: 0;
    right: 18px;
    width: 130px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 90;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation:
        mascotEnter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both,
        mascotBob 4.5s ease-in-out 1.9s infinite;
}

/* Chat open: the character steps aside to stand beside the panel instead of
   behind it, so the panel never needs to stack above the character (which is
   what let its header/close button end up under the fixed nav on shorter
   viewports — see .concierge-panel's max-height below for the actual fix). */
.concierge-mascot.chat-open {
    right: 376px;
}

.concierge-mascot.chat-open .concierge-mascot-badge,
.concierge-mascot.chat-open .concierge-status {
    display: none;
}

.concierge-mascot-img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}

.concierge-mascot:hover .concierge-mascot-img {
    animation: mascotWiggle 0.5s ease-in-out;
}

.concierge-mascot:active .concierge-mascot-img {
    transform: scale(0.96);
}

.concierge-mascot-img.pose-pop {
    animation: posePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes posePop {
    0% { transform: scale(0.88); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

/* A real comic-style callout: floats entirely above the image's own
   bounding box (not just the top corner of it) with a small tail pointing
   down at the head, so it reads as "speech bubble above his head" rather
   than a badge sitting on/near the face — true for every mascot pose, since
   it never overlaps the image area at all. filter (not box-shadow) is used
   for the drop shadow so it's cast by the tail too, as one continuous shape. */
.concierge-mascot-badge {
    position: absolute;
    top: -32px;
    left: 54%;
    transform: translateX(-50%);
    width: 34px;
    height: 28px;
    border-radius: 14px;
    background: var(--color-gold);
    color: var(--color-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 3px 4px rgba(16, 24, 43, 0.3));
    animation: badgePulse 2.4s ease-in-out 3s infinite;
}

.concierge-mascot-badge::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--color-gold);
}

.concierge-mascot-badge svg {
    width: 15px;
    height: 15px;
}

@keyframes badgePulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.1); }
}

/* "Online now" accent — a small decoration on the bubble itself rather
   than a separate dot floating on the character's head. */
/* Stacked above the speech bubble (not a corner accent on it) so the
   reading order top-to-bottom is: online dot, speech bubble, character. */
.concierge-status {
    position: absolute;
    top: -54px;
    left: 54%;
    transform: translateX(-50%);
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #3ddc84;
    border: 2px solid #fff;
}

.concierge-panel {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 340px;
    max-width: calc(100vw - 24px);
    height: 460px;
    /* Guarantees the panel's top edge never rises above ~90px from the
       viewport top (comfortably below the ~64px fixed nav) regardless of
       viewport height: top_edge = 100vh - bottom(18px) - height, so
       max-height is capped at 100vh minus bottom minus that 90px margin. */
    max-height: calc(100vh - 108px);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 95;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* [hidden] and .concierge-panel are equal-specificity selectors, so without
   this the later author rule (display:flex above) would win over the
   browser's default [hidden] { display:none } and the panel would render
   open on every page load instead of only after the mascot is clicked. */
.concierge-panel[hidden] {
    display: none;
}

.concierge-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--color-ink);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.concierge-panel-header img { border-radius: 50%; }
.concierge-panel-header span { flex: 1; }

.concierge-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

.concierge-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--color-bg-soft);
}

.concierge-msg {
    max-width: 85%;
    padding: 9px 13px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.concierge-msg a { color: inherit; text-decoration: underline; }

.concierge-msg-bot {
    align-self: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.concierge-msg-user {
    align-self: flex-end;
    background: var(--color-ink);
    color: #fff;
}

.concierge-panel-form {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--color-border);
    flex-shrink: 0;
}

.concierge-panel-form input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.concierge-panel-form input:focus {
    outline: none;
    border-color: var(--color-gold);
}

.concierge-panel-form button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--color-gold);
    color: var(--color-ink);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.concierge-panel-form button:hover { background: var(--color-gold-light); }

@keyframes mascotEnter {
    from { opacity: 0; transform: translateY(50px) scale(0.9); }
    60% { opacity: 1; transform: translateY(-8px) scale(1.03); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mascotBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes mascotWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-4deg) scale(1.05); }
    75% { transform: rotate(4deg) scale(1.05); }
}

@media (max-width: 720px) {
    .concierge-mascot {
        width: 98px;
        right: 12px;
    }

    .concierge-mascot-badge {
        width: 22px;
        height: 22px;
    }

    .concierge-mascot-badge svg {
        width: 12px;
        height: 12px;
    }

    .concierge-status {
        top: -44px;
    }

    /* Not enough width to stand the character beside the panel on mobile —
       the panel becomes a full-width sheet above it instead. */
    .concierge-mascot.chat-open {
        right: 12px;
    }

    .concierge-panel {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 92px;
        max-height: calc(100vh - 92px - 90px);
    }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .concierge-mascot,
    .concierge-mascot-img,
    .concierge-mascot:hover .concierge-mascot-img,
    .concierge-mascot-img.pose-pop,
    .gold-ring,
    .hero-bg-image {
        animation: none;
        transition: none;
    }

    .card,
    .btn-primary {
        transition: none;
    }
}

/* ---------- Booking wizard ---------- */
.booking-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.booking-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.booking-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.booking-step.is-active {
    color: var(--color-ink);
    font-weight: 700;
}

.booking-step.is-active .booking-step-num {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: #fff;
}

.booking-step.is-done .booking-step-num {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.booking-service-card,
.booking-choice-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.booking-service-card:hover,
.booking-choice-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.booking-service-price {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--color-gold);
}

.booking-date-picker {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.booking-date-chip {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.8rem;
}

.booking-date-chip strong {
    font-size: 0.95rem;
    color: var(--color-ink);
}

.booking-date-chip.is-active {
    background: var(--color-ink);
    border-color: var(--color-ink);
    color: #fff;
}

.booking-date-chip.is-active strong {
    color: #fff;
}

.booking-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.booking-time-chip {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.9rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.booking-time-chip:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

/* ---------- Seminars ---------- */
.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-ink);
    box-shadow: var(--shadow-md);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--color-bg-soft);
    margin-bottom: 12px;
}

.seminar-price-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.seminar-price-badge.is-free { background: #e9f4ee; color: var(--color-success); }
.seminar-price-badge.is-paid { background: #fff4dc; color: #8a6612; }

/* ===========================================================
   Popups / lead magnets (assets/js/popups.js drives visibility —
   see app/views/partials/popups.php for the server-rendered markup)
   =========================================================== */

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 43, 0.6);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-overlay[hidden] { display: none; }

body.popup-open { overflow: hidden; }

.popup-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 420px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.popup-card[hidden] { display: none; }

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(16, 24, 43, 0.06);
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.popup-close:hover { background: rgba(16, 24, 43, 0.12); }

.popup-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
}

.popup-body { padding: 28px; text-align: center; }

.popup-headline {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin: 0 0 10px;
    color: var(--color-ink);
}

.popup-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.6;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Same [hidden]-loses-the-cascade gotcha as .concierge-panel[hidden] above
   — an author rule with the same specificity as the UA [hidden]{display:none}
   still wins over it by cascade origin, so the form would stay visible via
   display:flex even with the hidden attribute set after a successful submit. */
.popup-form[hidden] {
    display: none;
}

.popup-form input[type="email"] {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.popup-error {
    color: var(--color-danger);
    font-size: 0.85rem;
    margin: 12px 0 0;
}

.popup-success { margin-top: 4px; }

.popup-success-message {
    color: var(--color-text);
    font-size: 0.95rem;
    margin: 0 0 14px;
}

.popup-download-link { display: inline-flex; }
.popup-download-link[hidden] { display: none; }
