/* ============================================
   VELASQUEZ FUNERAL SERVICE - MAIN STYLESHEET
   ============================================ */

/* CSS Variables — Harbor Blue & Linen (single palette) */
:root {
    --page-bg: #F6F4EF;
    --navy: #1A2634;
    --navy-light: #2E4A6B;
    --navy-dark: #101922;
    --gold: #CCB877;
    --gold-light: #D6C8A6;
    --gold-dark: #2E4A6B;
    --secondary: #6C8BAA;
    --cream: #EFEAE0;
    --cream-dark: #E3DCCB;
    --white: #FFFFFF;
    --gray-50: #FAF7F0;
    --gray-100: #F1EDE3;
    --gray-200: #E1DDD5;
    --gray-300: #CFC6B2;
    --gray-400: #7A7263;
    --gray-500: #5F584C;
    --gray-600: #464034;
    --gray-700: #1A2634;
    --gray-800: #11161D;
    --red: #B91C1C;
    --red-light: #FEE2E2;
    --green: #3F6B4F;
    --green-light: #E3F0E8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.04);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* --- Semantic tokens ---------------------------------------------
       The palette above holds raw brand colours, which are ambiguous:
       --navy is both a heading colour and a dark surface. These tokens
       resolve that, so a rule only has to say what it MEANS and the
       [data-theme="dark"] block below can flip it without ambiguity. */
    --bg: #F6F4EF;             /* page background */
    --surface: #FFFFFF;        /* cards, panels, table shells */
    --surface-2: #F1EDE3;      /* sunken / secondary fill */
    --surface-3: #EFEAE0;      /* cream chips, inset pills */
    --surface-navy: #1A2634;   /* hero bands, sidebar, dark panels */
    --surface-navy-2: #2E4A6B; /* gradient partner for navy surfaces */
    --text: #464034;           /* body copy */
    --text-strong: #1A2634;    /* headings, strong values */
    --text-muted: #5F584C;     /* secondary copy, hints */
    --text-faint: #7A7263;     /* placeholders, timestamps */
    --text-inverse: #FFFFFF;   /* copy sitting on a navy surface */
    --text-on-navy: rgba(255,255,255,0.78);
    --text-on-navy-muted: rgba(255,255,255,0.6);
    --border: #E1DDD5;
    --border-2: #F1EDE3;
    --border-strong: #CFC6B2;
    --accent: #2E4A6B;         /* links & emphasis on light bg */
    --accent-soft: rgba(46,74,107,0.18);
    --overlay: rgba(26,38,52,0.55);
    --navbar-bg: rgba(255,255,255,0.95);
    --navbar-pill: rgba(255,255,255,0.96);
    --card-shadow: 0 2px 6px rgba(26, 38, 52, 0.04);
    --card-shadow-hover: 0 18px 40px rgba(46, 74, 107, 0.14);
    --band-shadow: 0 10px 24px rgba(26, 38, 52, 0.25);
    /* Gold and navy keep the same value in BOTH themes (they are the brand
       surfaces), so ink sitting on them must not flip either. */
    --ink-on-gold: #1A2634;
    --ink-on-navy: #FFFFFF;
    /* Data-visualisation palette. Charts sit on --surface, so these are
       picked to stay distinguishable against both white and dark cards. */
    --chart-1: #2E4A6B;
    --chart-2: #BFAE8E;
    --chart-3: #6C8BAA;
    --chart-4: #94A3B8;
    --chart-5: #47624F;
    --bar-fill: linear-gradient(180deg, #2E4A6B, #1A2634);
}

/* Dark theme. Applied by document.documentElement.dataset.theme so it paints
   before first render (see the inline bootstrap in includes/header.php). */
[data-theme="dark"] {
    color-scheme: dark;

    --bg: #101922;
    --surface: #18212C;
    --surface-2: #1F2A36;
    --surface-3: #222D3A;
    --surface-navy: #0C131B;
    --surface-navy-2: #22344A;
    --text: #B9C4D0;
    --text-strong: #EDE9E1;
    --text-muted: #94A3B2;
    --text-faint: #74818F;
    --text-inverse: #101922;
    --text-on-navy: rgba(237,233,225,0.82);
    --text-on-navy-muted: rgba(237,233,225,0.62);
    --border: #2A3644;
    --border-2: #232E3A;
    --border-strong: #3C4B5C;
    --accent: #9DB8D2;
    --accent-soft: rgba(157,184,210,0.22);
    --overlay: rgba(4,8,12,0.7);
    --navbar-bg: rgba(12,19,27,0.88);
    --navbar-pill: rgba(22,31,42,0.9);
    --card-shadow: 0 2px 6px rgba(0,0,0,0.35);
    --card-shadow-hover: 0 18px 40px rgba(0,0,0,0.5);

    /* Brand hues nudged for legibility on dark surfaces. */
    --page-bg: #101922;
    --cream: #18212C;
    --cream-dark: #1F2A36;
    --gray-50: #1B2530;
    --gray-100: #222D3A;
    --gray-200: #2A3644;
    --gray-300: #3C4B5C;
    --gray-400: #8B98A6;
    --gray-500: #A7B3BF;
    --gray-600: #C3CCD6;
    --gray-700: #D8DEE5;
    --gray-800: #EDE9E1;
    --secondary: #8FA9C4;
    --white: #18212C;
    --red: #F0918C;
    --red-light: #3A2321;
    --green: #86C79B;
    --green-light: #1E3129;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow: 0 1px 3px rgba(0,0,0,0.45), 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.5), 0 4px 6px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.55), 0 10px 10px rgba(0,0,0,0.3);
    --band-shadow: 0 10px 24px rgba(0,0,0,0.5);

    /* Charts need lighter partners on a dark card, or they vanish. */
    --chart-1: #5B82AC;
    --chart-2: #D6C8A6;
    --chart-3: #8FA9C4;
    --chart-4: #A8B6C4;
    --chart-5: #6E9B80;
    --bar-fill: linear-gradient(180deg, #5B82AC, #2E4A6B);
}

/* Badge chips keep light ink in BOTH themes, but their pastel backgrounds
   glare on dark surfaces — swap to tinted dark chips. */
[data-theme="dark"] .badge-sage   { background: #22342A; color: #9FCBAE; }
[data-theme="dark"] .badge-bronze { background: #332B1D; color: #D9C08D; }
[data-theme="dark"] .badge-slate  { background: #202B36; color: #9DB8D2; }
[data-theme="dark"] .badge-green  { background: var(--green-light); color: var(--green); }

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--page-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-strong);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons. Every button carries a gold rim — the one brand edge that stays
   visible on cream/white surfaces in light theme and on #101922 in dark
   theme (—gold is deliberately not theme-flipped). Hover states keep the
   rim gold so the marker never disappears. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

.btn-gold {
    background: linear-gradient(135deg, #D8C795 0%, #CCB877 55%, #C0AC85 100%);
    color: var(--ink-on-gold);
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(46, 74, 107, 0.22);
}

.btn-gold:hover {
    background: var(--navy-light);
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 6px 18px rgba(46, 74, 107, 0.30);
}

.btn-navy {
    background: linear-gradient(135deg, #2E4A6B 0%, #24405B 100%);
    color: #fff;
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(26, 38, 52, 0.25);
}

.btn-navy:hover {
    background: var(--surface-navy);
    border-color: var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--text-strong);
    border-color: var(--gold);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: var(--surface-navy);
    color: var(--ink-on-navy);
}

/* Ghost button for dark (navy) bands. Lives here so every page can use it,
   not just home.php whose local <style> had the original definition.
   Translucent gold so the rim reads the same way as the other variants. */
.btn-ghostlight {
    background: transparent;
    color: var(--ink-on-navy);
    border: 2px solid rgba(204,184,119,0.55);
}

.btn-ghostlight:hover {
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--text-strong);
    border-color: var(--gold);
}

.btn-white:hover {
    background: var(--cream);
    border-color: var(--gold);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border-color: var(--gold);
}

.btn-red:hover {
    background: #B91C1C;
    border-color: var(--gold);
}

.btn-block {
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.badge-phone {
    background: var(--white);
    color: var(--red);
    border: 2px solid var(--red);
    font-size: 0.6875rem;
}

.badge-gold {
    background: var(--gold);
    color: var(--ink-on-gold);
}

.badge-navy {
    background: var(--navy-light);
    color: #fff;
}

.badge-green {
    background: var(--green-light);
    color: var(--green);
}

/* Brief status language: muted sage / subtle bronze / slate gray */
.badge-sage {
    background: #E4EBE3;
    color: #47624F;
}

.badge-bronze {
    background: #F3EAD6;
    color: #7A5A24;
}

.badge-slate {
    background: #E3EAF0;
    color: #3D5A76;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 14px 30px rgba(46, 74, 107, 0.16);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.card-body {
    padding: 24px;
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gray-100);
}

/* Cover images for card headers (real photos, uniform crop) */
.cover-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: var(--gray-100);
}

.cover-img.tall {
    height: 240px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-text {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.card-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 12px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    border-bottom: 1px solid transparent;
    border-top: 3px solid var(--gold);
}

.navbar.scrolled {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* Transparent-over-hero variant (homepage only, via .transparent class) */
.navbar.transparent:not(.scrolled) {
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

.navbar.transparent:not(.scrolled) .brand-name {
    color: #fff;
}

.navbar.transparent:not(.scrolled) .brand-tagline {
    color: var(--gold);
}

.navbar.transparent:not(.scrolled) .navbar-links a {
    color: rgba(255, 255, 255, 0.85);
}

.navbar.transparent:not(.scrolled) .navbar-links a:hover,
.navbar.transparent:not(.scrolled) .navbar-links a.active {
    color: #fff;
}

.navbar.transparent:not(.scrolled) .navbar-links a.active::after {
    background: var(--gold);
}

.navbar.transparent:not(.scrolled) .hamburger span {
    background: #fff;
}

.navbar.transparent:not(.scrolled) .badge-phone {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
}

.navbar.transparent:not(.scrolled) .profile-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Active page link */
.navbar-links a.active {
    color: var(--accent);
    font-weight: 700;
}

.navbar-links a.active::after {
    width: 100%;
    background: var(--gold);
}

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 72px;
}

/* Collapsible wrapper: links + actions (single dropdown on mobile) */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    gap: 28px;
    min-width: 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Logo placement rule: the mark sits on cream/white/charcoal only,
   so its navy circle keeps edge definition on every theme. */
.navbar-brand img,
.footer-brand img {
    background: #F8F6F0;
    padding: 3px;
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
    white-space: nowrap;
}

.brand-tagline {
    font-size: 0.6875rem;
    color: var(--gold);
    font-variant: small-caps;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.navbar-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.navbar-links a:hover {
    color: var(--text-strong);
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Dark mode toggle. Icon is injected by js/app.js so it always matches the
   theme that is actually active. */
.theme-toggle {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-strong);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.theme-toggle:hover {
    background: var(--surface-navy);
    border-color: var(--surface-navy);
    color: var(--gold);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Profile dropdown (logged-in state) */
.profile-menu {
    position: relative;
    flex-shrink: 0;
}

.profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 100px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-strong);
    transition: var(--transition);
    white-space: nowrap;
}

.profile-btn:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--text-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-avatar.lg {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.profile-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 240px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: var(--transition);
    z-index: 1002;
}

.profile-menu.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 6px;
}

.profile-head-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-strong);
    line-height: 1.3;
}

.profile-head-role {
    font-size: 0.625rem;
    padding: 2px 8px;
    margin-top: 4px;
}

.profile-dropdown a[role="menuitem"] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.profile-dropdown a[role="menuitem"]:hover {
    background: var(--cream);
    color: var(--text-strong);
}

.profile-dropdown a[role="menuitem"].danger:hover {
    background: var(--red-light);
    color: var(--red);
}

/* Equal-height plan cards with the CTA pinned to the bottom */
.plan-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plan-card .card-body > .btn:last-child {
    margin-top: auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
    transition: var(--transition);
}

.hamburger:hover {
    background: rgba(204, 184, 119, 0.12);
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-strong);
    border-radius: 2px;
    transition: var(--transition);
}

.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);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--ink-on-navy);
    overflow: hidden;
    padding-top: 72px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(204,184,119,0.20) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(204,184,119,0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.hero h1 {
    color: var(--ink-on-navy);
    font-size: 3.25rem;
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--gold);
}

.hero p {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 4px;
}

.hero-stat p {
    color: rgba(255,255,255,0.6);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

.section-lg {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--gray-500);
}

.section-header .gold-line {
    display: block;
    width: 64px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--navy-light));
    margin: 16px auto 0;
    border-radius: 2px;
}

.bg-cream {
    background: var(--cream);
}

.bg-navy {
    background: var(--surface-navy);
    color: var(--white);
}

.bg-navy h2,
.bg-navy h3,
.bg-navy h4 {
    color: var(--white);
}

.bg-navy p {
    color: rgba(255,255,255,0.7);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(46,74,107,0.18);
}

.form-control::placeholder {
    color: var(--gray-400);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: var(--red);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.form-hint {
    color: var(--gray-400);
    font-size: 0.8125rem;
    margin-top: 4px;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--gray-50);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 2px solid var(--gold);
}

td {
    padding: 14px 20px;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--gray-100);
    color: var(--gray-700);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--gray-50);
}

/* ============================================
   SIDEBAR
   ============================================ */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 72px);
    padding-top: 86px;
}

/* The navy panel runs all the way to the top of the viewport (behind the
   floating navbar pill) instead of starting 86px down — that strip used to
   show as an awkward gap of page background above the sidebar. The extra
   top padding keeps the identity block clear of the pill (3px border +
   12px margin + 72px row = 87px tall). */
.sidebar {
    width: 260px;
    background: var(--surface-navy);
    color: var(--white);
    padding: calc(86px + 24px) 0 32px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    margin-top: -86px;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-menu {
    padding: 0 16px;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.65);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.sidebar-menu-item.active {
    background: var(--gold);
    color: var(--ink-on-gold);
    font-weight: 600;
}

.sidebar-menu-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sidebar-menu-item.active svg {
    opacity: 1;
}

.sidebar-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    padding: 24px 16px 8px;
}

.dashboard-content {
    flex: 1;
    padding: 32px;
    background: var(--cream);
    min-width: 0;
}

.sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface-navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    align-items: center;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 72px;
    border-top: 4px solid;
    border-image: linear-gradient(90deg, var(--navy-light), var(--gold), var(--navy-light)) 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 56px;
}

.footer-col h4 {
    color: var(--ink-on-navy);
    font-size: 1.0625rem;
    margin-bottom: 20px;
    font-family: var(--font-sans);
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-tagline {
    color: rgba(255,255,255,0.5);
    font-size: 0.9375rem;
    margin-top: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--gold);
    color: var(--text-strong);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 0.9375rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.5;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0;
    text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.grid-3 .fade-in:nth-child(2) { transition-delay: 0.1s; }
.grid-3 .fade-in:nth-child(3) { transition-delay: 0.2s; }
.grid-4 .fade-in:nth-child(2) { transition-delay: 0.1s; }
.grid-4 .fade-in:nth-child(3) { transition-delay: 0.2s; }
.grid-4 .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ============================================
   HOVER EFFECTS
   ============================================ */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.hover-gold {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hover-gold:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--text-strong); }
.text-muted { color: var(--gray-500); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 8px; }
.pt-2 { padding-top: 16px; }
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 8px; }
.pb-2 { padding-bottom: 16px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }

.w-full { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: 9999px; }

.border { border: 1px solid var(--gray-200); }
.border-gold { border-color: var(--gold); }

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-message {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

.flash-success {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid var(--green);
}

.flash-error {
    background: var(--red-light);
    color: var(--red);
    border: 1px solid var(--red);
}

.flash-info {
    background: #DBEAFE;
    color: #1D4ED8;
    border: 1px solid #1D4ED8;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95) translateY(16px);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 1.25rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--text-strong);
}

.modal-body {
    padding: 28px;
}

.modal-footer {
    padding: 20px 28px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 32px;
    gap: 0;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-strong);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--gold);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ============================================
   PLAN CARDS
   ============================================ */
.plan-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.plan-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
}

.plan-card.featured {
    border-color: var(--gold);
}

.plan-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--text-strong);
    padding: 4px 20px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.plan-card .plan-price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-strong);
    margin: 20px 0;
}

.plan-card .plan-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.plan-card ul {
    text-align: left;
    margin: 24px 0;
}

.plan-card ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 10px;
}

.plan-card ul li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--green-light);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2316A34A' d='M10 3L4.5 8.5 2 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* ============================================
   PLAN DROPDOWN + DETAILS TABLE
   ============================================ */
.plan-dropdown {
    position: relative;
    max-width: 560px;
    margin: 0 auto 36px;
    z-index: 40;
}

.plan-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: var(--surface);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-strong);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.plan-dropdown-trigger:hover,
.plan-dropdown.open .plan-dropdown-trigger {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.plan-dropdown-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-dropdown.is-placeholder .plan-dropdown-label {
    color: var(--text-faint);
    font-weight: 500;
}

.plan-dropdown-chevron {
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.plan-dropdown.open .plan-dropdown-chevron {
    transform: rotate(180deg);
}

.plan-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    max-height: 320px;
    overflow-y: auto;
    display: none;
}

.plan-dropdown.open .plan-dropdown-menu {
    display: block;
    animation: plan-dd-in 0.22s ease both;
}

@keyframes plan-dd-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.plan-dropdown-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.plan-dropdown-option:hover {
    background: var(--gray-50);
}

.plan-dropdown-option.is-selected {
    background: var(--cream);
}

.plan-dropdown-option .plan-option-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-strong);
}

.plan-dropdown-option .plan-option-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.plan-dropdown-option .plan-option-price {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* Plan details panel (table-style) */
.plan-details {
    max-width: 880px;
    margin: 0 auto;
}

.plan-details[hidden] {
    display: none;
}

.plan-details-card {
    padding: 36px 32px;
}

.plan-details-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.plan-details-name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin: 12px 0 6px;
    color: var(--text-strong);
}

.plan-details-price {
    text-align: right;
}

.plan-details-price .plan-price-amount {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
}

.plan-details-price .plan-price-note {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.plan-details-table-wrap {
    border: none;
    background: transparent;
}

.plan-details-table thead th {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gold);
}

.plan-details-table tbody th,
.plan-details-table tbody td {
    padding: 12px 16px;
    vertical-align: top;
    border-bottom: 1px solid var(--gray-200);
}

.plan-details-table tbody tr:last-child > * {
    border-bottom: none;
}

.plan-details-table tbody th {
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: inherit;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere; /* Long service labels must fit alongside the amount on small phones. */
    color: var(--text-strong);
}

.plan-details-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

@media (max-width: 640px) {
    .plan-details-head {
        flex-direction: column;
    }

    .plan-details-price {
        text-align: left;
    }

    .plan-details-card {
        padding: 24px 16px;
    }

    .plan-details-table tbody th,
    .plan-details-table tbody td {
        padding: 10px 12px;
    }
}

/* --------------------------------------------
   Package price table: one line item and one exact quoted amount per row.
   -------------------------------------------- */
.plan-details-table thead th:last-child,
.plan-details-table tbody td {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.plan-details-table .pt-subtotal > * {
    background: var(--gray-50);
    font-weight: 700;
    color: var(--text-strong);
    border-top: 1px solid var(--gray-200);
}

.plan-details-table .pt-sum > * {
    font-weight: 700;
    color: var(--text-strong);
    background: var(--gray-50);
}

.plan-details-table tbody tr.pt-net > * {
    font-weight: 800;
    color: var(--text-strong);
    background: rgba(204, 184, 119, 0.16);
    border-bottom: 3px double var(--gold);
}

/* ============================================
   CHECKOUT STEPS
   ============================================ */
.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    position: relative;
}

.checkout-step::after {
    content: '';
    position: absolute;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
}

.checkout-step:last-child::after {
    display: none;
}

.checkout-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--gray-200);
    color: var(--gray-500);
    transition: var(--transition);
}

.checkout-step.active .checkout-step-num,
.checkout-step.completed .checkout-step-num {
    background: var(--gold);
    color: var(--text-strong);
}

.checkout-step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-400);
}

.checkout-step.active .checkout-step-label {
    color: var(--text-strong);
}

.checkout-step.completed .checkout-step-label {
    color: var(--gray-600);
}

.checkout-panel {
    display: none;
}

.checkout-panel.active {
    display: block;
}

/* ============================================
   LOGIN / REGISTER FORMS
   ============================================ */
.auth-container {
    max-width: 440px;
    margin: 0 auto;
    padding: 48px 0;
}

.auth-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 40px;
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--gray-200);
}

.auth-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--accent);
    border-bottom-color: var(--gold);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* ============================================
   PRICING TAG
   ============================================ */
.price-tag {
    display: inline-block;
    background: var(--cream);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 4px 14px;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9375rem;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--gray-400);
    padding: 16px 0;
}

.breadcrumb a {
    color: var(--gray-500);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb span {
    color: var(--gray-300);
}

/* ============================================
   CHAPEL / CASKET GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--gray-100);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(15,23,42,0.85));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ============================================
   CASKET FILTER TABS
   ============================================ */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover {
    background: var(--gray-200);
}

.filter-tab.active {
    background: var(--surface-navy);
    color: var(--white);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--gray-100);
}

.pagination .active {
    background: var(--gold);
    color: var(--text-strong);
}

/* ============================================
   NAV-MENU (desktop row / mobile dropdown panel)
   ============================================ */
section[id],
div[id] {
    scroll-margin-top: 88px;
}

@media (max-width: 1280px) {
    .navbar-links {
        gap: 12px;
    }

    .navbar-links a {
        font-size: 0.8125rem;
    }

    .navbar-actions .btn {
        padding: 8px 14px;
    }

    .navbar-actions .badge-phone {
        display: none;
    }
}

@media (max-width: 1024px) {
    .brand-tagline {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Compact floating dropdown instead of a full-page sheet: a small card
       anchored under the header that never takes over the screen. */
    .nav-menu {
        position: fixed;
        top: 82px;
        right: 12px;
        left: auto;
        width: min(300px, calc(100vw - 24px));
        background: linear-gradient(180deg, #1A2634 0%, #22344C 100%);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 8px 12px 14px;
        border: 1px solid rgba(204, 184, 119, 0.4);
        border-radius: 16px;
        box-shadow: var(--shadow-xl);
        display: none;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        z-index: 999;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu .navbar-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-menu .navbar-links a {
        display: block;
        padding: 10px 10px;
        font-size: 0.95rem;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 0;
    }

    .nav-menu .navbar-links li:last-child a {
        border-bottom: none;
    }

    .nav-menu .navbar-links a:hover,
    .nav-menu .navbar-links a.active {
        color: var(--gold);
        background: rgba(255, 255, 255, 0.04);
    }

    .nav-menu .navbar-links a::after {
        display: none;
    }

    .nav-menu .navbar-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding-top: 12px;
    }

    .nav-menu .navbar-actions .btn {
        width: 100%;
    }

    .nav-menu .badge-phone {
        display: inline-flex;
        align-self: flex-start;
        background: transparent;
    }

    .nav-menu .profile-btn {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.25);
        color: #fff;
    }

    .nav-menu .profile-dropdown {
        background: var(--surface-navy);
    }

    .nav-menu .profile-menu {
        width: 100%;
    }

    .nav-menu .profile-btn {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-menu .profile-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
        margin-top: 6px;
        padding: 6px 0 0;
    }

    /* Light ink inside the navy panel (profile dropdown, head, menu items). */
    .nav-menu .profile-dropdown .profile-head {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .nav-menu .profile-dropdown .profile-head-name {
        color: #FFFFFF;
    }

    .nav-menu .profile-dropdown a[role="menuitem"] {
        color: rgba(255, 255, 255, 0.85);
    }

    .nav-menu .profile-dropdown a[role="menuitem"]:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #FFFFFF;
    }
}

/* ============================================
   PAGE TRANSITIONS (JS-driven, Next.js-style)
   ============================================ */
body {
    animation: pageEnter 0.35s ease;
}

@keyframes pageEnter {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#pageTransition {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: linear-gradient(135deg, #12161A 0%, #0B0E13 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#pageTransition.active {
    opacity: 1;
    visibility: visible;
}

#pageTransition img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    animation: ptPulse 1s ease-in-out infinite;
}

#pageTransition .pt-bar {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 100px;
    overflow: hidden;
}

#pageTransition .pt-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: var(--gold);
    border-radius: 100px;
    animation: ptSlide 0.9s ease-in-out infinite;
}

@keyframes ptPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes ptSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(450%); }
}

#pageProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    z-index: 10002;
    transition: width 0.25s ease, opacity 0.3s ease;
    opacity: 0;
}

#pageProgress.active {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }

    .fade-in,
    .slide-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Homepage 24/7 Contacts. Scoped tokens keep these controls readable in either theme. */
.contacts-launcher {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: calc(100vw - 96px);
    min-height: 56px;
    padding: 11px 20px 11px 12px;
    border: 1px solid var(--gold);
    border-radius: 100px;
    background: var(--surface-navy);
    color: var(--ink-on-navy);
    font: 600 0.9rem/1.4 var(--font-sans);
    box-shadow: var(--band-shadow);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.contacts-launcher:hover {
    background: var(--surface-navy-2);
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.contacts-launcher:active { transform: translateY(0); }

.contacts-launcher-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink-on-gold);
}

.contacts-launcher:focus-visible,
.contacts-window :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.contacts-window {
    padding: 16px;
    background: var(--overlay);
}

.contacts-window .modal {
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-xl);
    /* Switch paired theme colours together instead of fading through low-contrast combinations. */
    transition: transform 0.3s ease;
}

.contacts-window .modal-header {
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    border-color: var(--border);
    background: var(--surface-2);
}

.contacts-window .contacts-heading { min-width: 0; }

.contacts-window .modal-header h3 {
    margin: 12px 0 0;
    color: var(--text-strong);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.contacts-window .modal-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-strong);
    transition: transform 0.2s ease;
}

.contacts-window .modal-close:hover {
    background: var(--surface-navy);
    border-color: var(--gold);
    color: var(--ink-on-navy);
}

.contacts-window .modal-body { padding: 24px; }

.contacts-window .contacts-note {
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contacts-window .contacts-details { display: grid; gap: 10px; }

.contacts-window .emergency-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contacts-window .emergency-detail svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.contacts-window .emergency-detail span { min-width: 0; overflow-wrap: anywhere; }
.contacts-window .contacts-actions { display: grid; margin-top: 24px; }
.contacts-window .contacts-actions .btn {
    min-height: 44px;
    white-space: normal;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (max-width: 640px) {
    .contacts-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding-right: 16px; }
    .contacts-window .modal-header, .contacts-window .modal-body { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .contacts-launcher, .contacts-window, .contacts-window .modal,
    .contacts-window .modal-close, .contacts-window .contacts-actions .btn { transition: none; }
    .contacts-launcher:hover { transform: none; }
}

/* ============================================
   EXPANDABLE CARDS + FAQ (no-JS friendly)
   ============================================ */
details.expandable {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    overflow: hidden;
    transition: var(--transition);
}

details.expandable:not([open]):hover {
    border-color: var(--gold);
}

details.expandable summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    font-weight: 600;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

details.expandable summary::-webkit-details-marker {
    display: none;
}

details.expandable summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--cream-dark);
    color: var(--text-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 400;
    transition: var(--transition);
}

details.expandable[open] summary::after {
    content: '\2212';
    background: var(--gold);
    color: var(--text-strong);
}

details.expandable .expandable-body {
    padding: 0 22px 22px;
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-list {
    display: grid;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

/* Single palette: Harbor Blue & Linen (theme switcher removed) */

/* Compare + pending highlights (inline-style cards) */
#planCheckboxes label.is-selected {
    border-color: var(--gold);
    border-width: 2px;
    background: var(--accent-soft);
}

#comparisonTable td.is-best {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

/* ============================================
   REMODEL VOCABULARY — editorial ledger style
   (oversized index numerals, kickers, ledger rows)
   ============================================ */
.ed-section {
    padding: 88px 0;
}

.ed-head {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 28px;
    align-items: start;
    margin-bottom: 44px;
}

.ed-index {
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 4.4rem;
    line-height: 0.95;
    color: var(--gray-300);
}

@supports ((-webkit-text-stroke: 1px black)) {
    .ed-index {
        color: transparent;
        -webkit-text-stroke: 1.5px var(--text-strong);
    }
}

.ed-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.ed-kicker::before {
    content: '';
    width: 36px;
    height: 2px;
    background: var(--gold);
    flex-shrink: 0;
}

.ed-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.12;
    margin: 0 0 12px;
}

.ed-lede {
    font-size: 1.08rem;
    color: var(--gray-500);
    max-width: 640px;
    line-height: 1.75;
    margin: 0;
}

.ed-hero {
    padding: 150px 0 70px;
    position: relative;
    overflow: hidden;
}

.ed-hero .ed-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.ledger {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ledger-row {
    display: grid;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.ledger-row:last-child {
    border-bottom: none;
}

.ledger-row.accent {
    border-left: 4px solid var(--gold);
}

@media (max-width: 768px) {
    .ed-section {
        padding: 56px 0;
    }

    .ed-head {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 32px;
    }

    .ed-index {
        font-size: 3rem;
    }
}

/* ============================================
   SANCTUARY VOCABULARY — soft rounded panels,
   pill eyebrows, inset bands (v3 remodel)
   ============================================ */
.sn-section {
    padding: 96px 0;
    position: relative;
}

.sn-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 52px;
}

.sn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--cream);
    border: 1px solid var(--gray-200);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    border-radius: 100px;
    padding: 8px 18px;
    margin-bottom: 18px;
}

.sn-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.sn-title {
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    line-height: 1.1;
    margin: 0 0 14px;
}

.sn-title em {
    font-style: italic;
    color: var(--accent);
}

.sn-sub {
    font-size: 1.08rem;
    color: var(--gray-500);
    line-height: 1.75;
    margin: 0;
}

.sn-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 2px 6px rgba(26, 38, 52, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sn-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(46, 74, 107, 0.14);
    border-color: var(--gold);
}

.sn-card.topline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 32px;
    right: 32px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--gold), var(--navy-light));
}

.sn-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1A2634, #2E4A6B);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 24px rgba(26, 38, 52, 0.25);
}

.sn-band {
    border-radius: 32px;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
}

.sn-band.harbor {
    background: linear-gradient(135deg, #1A2634 0%, #2E4A6B 100%);
    color: #fff;
}

.sn-band.linen {
    background: linear-gradient(135deg, #EFE9DA 0%, #E2D8BF 100%);
    color: var(--navy);
}

/* The parchment linen band is a wall of glare in dark mode — a big bright
   rectangle on an otherwise navy page, harsh for light-sensitive eyes.
   In dark mode it relaxes into a soft navy panel with a gold hairline,
   warm off-white ink and muted subcopy so everything stays readable. */
[data-theme="dark"] .sn-band.linen {
    background: linear-gradient(135deg, #1F2A36 0%, #18212C 100%);
    color: var(--text-strong);
    box-shadow: inset 0 0 0 1px rgba(204, 184, 119, 0.22);
}

[data-theme="dark"] .sn-band.linen .sn-eyebrow {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(204, 184, 119, 0.35);
    color: var(--gold);
}

[data-theme="dark"] .sn-band.linen .sn-sub {
    color: var(--text-on-navy-muted);
}

[data-theme="dark"] .sn-band.linen .sn-chip {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(204, 184, 119, 0.35);
    color: var(--gold);
}

.sn-band h2, .sn-band h3 {
    color: inherit;
}

.sn-stepnum {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--gold);
    color: var(--text-strong);
    font-family: var(--font-serif);
    font-weight: 800;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.sn-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.6;
    color: var(--text-strong);
}

.sn-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--cream);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    padding: 6px 14px;
}

/* Floating pill navbar */
.navbar {
    background: transparent;
    border-bottom: none;
}

.navbar-inner {
    background: var(--navbar-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    margin-top: 12px;
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: 0 10px 30px rgba(26, 38, 52, 0.12);
    border: 1px solid var(--gray-200);
}

.navbar.scrolled .navbar-inner {
    box-shadow: 0 14px 36px rgba(26, 38, 52, 0.18);
}

.navbar.transparent:not(.scrolled) .navbar-inner {
    background: rgba(26, 38, 52, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 1024px) {
    .navbar-inner {
        border-radius: 20px;
        justify-content: space-between;
    }

    .hamburger {
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .sn-section {
        padding: 44px 0;
    }

    .sn-band {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .sn-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .sn-card .sn-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .sn-title {
        line-height: 1.15;
    }

    .sn-sub {
        font-size: 0.975rem;
        line-height: 1.6;
    }

    .sn-center {
        margin-bottom: 26px;
    }

    .ed-section {
        padding: 44px 0;
    }

    /* Footer: breathing room without eating three screens */
    .footer {
        padding-bottom: 32px;
    }

    .footer-col h4 {
        margin-bottom: 10px;
    }

    .footer-tagline {
        margin-bottom: 14px;
    }

    /* Stat band items tighter */
    .stat-band > div {
        padding: 14px 8px;
    }

    .stat-band strong {
        font-size: 1.4rem;
    }

    /* How-it-works numbers smaller */
    .how-grid {
        gap: 18px;
        margin-top: 28px;
    }

    .how-grid::before {
        display: none;
    }

    /* Floating AI launcher stays reachable but smaller */
    .ai-launcher {
        bottom: 16px;
        left: 16px;
    }
}

/* ============================================
    RESPONSIVE
    ============================================ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .checkout-steps {
        flex-wrap: wrap;
        gap: 8px;
    }

    .checkout-step::after {
        display: none;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        z-index: 998;
        top: 0;
        height: 100vh;
        margin-top: 0;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .dashboard-content {
        padding: 20px;
    }

    .section {
        padding: 48px 0;
    }

    .section-lg {
        padding: 64px 0;
    }

    .auth-box {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stat h3 {
        font-size: 1.5rem;
    }

    .plan-card {
        padding: 28px 20px;
    }

    .plan-card .plan-price {
        font-size: 2rem;
    }
}

/* ---- Admin preview bar (public pages, admin session only) ---- */
.admin-preview-bar {
    position: relative;
    z-index: 1200;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--surface-navy);
    color: var(--ink-on-navy);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
}
.admin-preview-bar strong { color: var(--gold); }
.admin-preview-bar a {
    color: var(--gold);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- Site Availability admin rows ---- */
.availability-list { display: grid; gap: 14px; }
.availability-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg);
}
.availability-info { min-width: 220px; flex: 1 1 320px; }
.availability-info strong { display: inline-block; margin-right: 8px; color: var(--text-strong); }
.availability-info p { margin: 6px 0 0; }
.availability-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.availability-actions form { margin: 0; }

@media (max-width: 640px) {
    .availability-row { align-items: flex-start; }
    .availability-actions { width: 100%; }
    .availability-actions .btn,
    .availability-actions form { flex: 1 1 auto; }
    .availability-actions form .btn { width: 100%; }
}
