/* Golden Days Home Care - Main Stylesheet */

/* Import Roboto Font (legacy components — removed when the last legacy
   section is rebuilt on the 2026 design system below) */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* 2026 design system faces: Bitter (headings), Source Sans 3 (body),
   IBM Plex Mono (eyebrows/labels). Loaded via @import for now so no page
   markup changes in Phase 1; Phase 2 moves this to preconnect + <link>. */
@import url('https://fonts.googleapis.com/css2?family=Bitter:wght@500;600;700&family=IBM+Plex+Mono&family=Source+Sans+3:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: var(--font-primary);
}

/* Fluid images: an image must never force its container wider than the
   viewport (GD-001 — the 1061px logo broke the homepage at every width). */
img {
    max-width: 100%;
    height: auto;
}

:root {
    /* Color Palette */
    --primary-purple: #8e44ad;
    --primary-dark: #6a1b9a;
    --secondary-purple: #4a148c;
    --accent-gold: #f1c40f;
    --accent-orange: #f39c12;
    --accent-dark-orange: #e67e22;
    --text-dark: #2c3e50;
    --text-medium: #34495e;
    --text-light: #5a6a6e;
    --bg-light: #f8f9fa;
    --bg-cream: #fef8e1;
    --bg-cream-alt: #fff9e6;
    --white: #ffffff;
    --border-gold: #d4a574;
    
    /* Spacing */
    --section-padding: 56px; /* density pass (GD2-015) */
    --container-max-width: 1200px;
    
    /* Typography */
    --font-primary: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-size-base: 18px;
    --line-height-base: 1.7;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-purple: #9b59b6;
    --primary-dark: #7b3fa0;
    --secondary-purple: #5c2d91;
    --accent-gold: #ffd700;
    --accent-orange: #ff9f43;
    --accent-dark-orange: #ee8c2c;
    --text-dark: #e8e8e8;
    --text-medium: #c9c9c9;
    --text-light: #a0a0a0;
    --bg-light: #1a1a2e;
    --bg-cream: #16213e;
    --bg-cream-alt: #1f2b47;
    --white: #242438;
    --border-gold: #b8860b;
}

/* Dark mode specific overrides */
[data-theme="dark"] {
    color-scheme: dark; /* native selects/scrollbars follow the theme (GD2-011) */
}

[data-theme="dark"] header:not(.gd-header) {
    background: linear-gradient(135deg, #5c2d91 0%, #3d1a6d 100%);
}

[data-theme="dark"] body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) {
    background-color: #2d1b4e;
}

[data-theme="dark"] header:not(.gd-header),
[data-theme="dark"] header:not(.gd-header) p,
[data-theme="dark"] .contact-info p {
    color: #f5f5f5;
}

[data-theme="dark"] .phone-number {
    color: var(--accent-gold);
}

[data-theme="dark"] body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
    color: #f5f5f5;
}

[data-theme="dark"] body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a:hover,
[data-theme="dark"] body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a.active {
    background-color: var(--accent-gold);
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .login-container,
[data-theme="dark"] .contact-form {
    background-color: #242438;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .service-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] footer:not(.gd-footer) {
    background-color: #0d0d1a;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background-color: #1a1a2e;
    border-color: #3d3d5c;
    color: #e8e8e8;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #7f7f9c;
}

[data-theme="dark"] .hero {
    background: linear-gradient(180deg, #242438 0%, #1a1a2e 100%);
}

[data-theme="dark"] .about {
    background: linear-gradient(135deg, #2a1f4e 0%, #1f1a3d 100%);
}

[data-theme="dark"] .services {
    background: linear-gradient(180deg, #16213e 0%, #1f2b47 50%, #16213e 100%);
}

[data-theme="dark"] .emergency-banner {
    background-color: #4a148c;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .section-title {
    color: var(--accent-gold);
}

/* Dark theme: headings and feature lists kept their light-theme purples on
   dark backgrounds and disappeared (GD-003 / GD-009). */
[data-theme="dark"] .hero h1,
[data-theme="dark"] .hero h2 {
    color: #ecdff7;
}

[data-theme="dark"] .about-text h3,
[data-theme="dark"] .about-text h4 {
    color: #d9c8f5;
}

[data-theme="dark"] .service-card h3 {
    color: #d9c8f5;
}

[data-theme="dark"] .features li {
    color: #ded2f0;
    border-bottom-color: #40355c;
}

[data-theme="dark"] footer:not(.gd-footer) {
    color: #f5f5f5;
}

[data-theme="dark"] footer:not(.gd-footer) a {
    color: var(--accent-gold);
}

[data-theme="dark"] .contact {
    color: #f2f2f7;
}

[data-theme="dark"] .contact .contact-form {
    background: #242438;
    border: 1px solid #3d3d5c;
}

[data-theme="dark"] .contact .contact-form label {
    color: #f5f5f5;
}

[data-theme="dark"] .contact .contact-form p {
    color: #dcdce6;
}

[data-theme="dark"] .contact .contact-form a {
    color: var(--accent-gold);
}

[data-theme="dark"] .job-card {
    color: #1a1a2e;
}

[data-theme="dark"] .job-card h3 {
    color: #4a148c;
}

[data-theme="dark"] .job-card p,
[data-theme="dark"] .job-meta {
    color: #2c3e50;
}

[data-theme="dark"] .job-meta strong {
    color: #4a148c;
}

[data-theme="dark"] .service-card {
    background-color: #1f2b47;
    border-color: #3d3d5c;
}

[data-theme="dark"] .service-card h3 {
    color: #f2f2f7;
}

[data-theme="dark"] .service-card p {
    color: #dcdce6;
}

[data-theme="dark"] .service-card ul,
[data-theme="dark"] .service-card li {
    color: #f2f2f7;
}

[data-theme="dark"] .service-modal-content {
    background: #1f2b47;
}

[data-theme="dark"] .service-modal-body p,
[data-theme="dark"] .service-modal-items li {
    color: #f2f2f7;
}

[data-theme="dark"] .service-modal-items li {
    border-bottom-color: #3d3d5c;
}

[data-theme="dark"] .service-modal-close {
    color: #f2f2f7;
}

[data-theme="dark"] .benefits-section {
    background: #1f2b47 !important;
    color: #f2f2f7;
}

[data-theme="dark"] .benefits-section p,
[data-theme="dark"] .benefits-section li {
    color: #f2f2f7;
}

[data-theme="dark"] .service-area-section {
    background: #1f2b47 !important;
}

[data-theme="dark"] .service-area-section p,
[data-theme="dark"] .service-area-section li {
    color: #f2f2f7;
}

[data-theme="dark"] .service-area-section li {
    background: #242438 !important;
    box-shadow: none !important;
    border: 1px solid #3d3d5c;
}

[data-theme="dark"] .login-alt-panel {
    background: #242438 !important;
    border-left-color: var(--accent-gold) !important;
    color: #f2f2f7;
}

[data-theme="dark"] .login-alt-panel h4 {
    color: var(--accent-gold) !important;
}

[data-theme="dark"] .login-alt-panel a {
    color: var(--accent-gold) !important;
}

[data-theme="dark"] .faq-section {
    background: #1f2b47;
}

[data-theme="dark"] .faq-card {
    background: #242438 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .faq-card h3 {
    color: var(--accent-gold) !important;
}

[data-theme="dark"] .faq-card p {
    color: #f2f2f7 !important;
}

[data-theme="dark"] .faq-section .faq-card {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .faq-section .faq-card p {
    color: #f8f8ff !important;
}

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--accent-gold);
    font-size: 1.2em;
}

.theme-toggle:hover {
    background-color: var(--accent-gold);
    color: var(--text-dark);
}

[data-theme="dark"] .theme-toggle {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: var(--accent-gold);
    color: #1a1a2e;
}

/* Smooth theme transition */
body,
header:not(.gd-header),
body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col),
footer:not(.gd-footer),
.service-card,
.hero,
.about,
.services,
.contact,
input,
select,
textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-light);
}

main {
    display: block;
}

.skip-link {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    background: var(--accent-gold);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transform: translateY(-200%);
    transition: transform 0.2s ease;
    z-index: 2000;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Emergency Banner.
   Not sticky: the nav below is the single sticky element, so the banner can
   never paint over it (GD-006). Dark text on gold for WCAG contrast (GD-008). */
.emergency-banner {
    background-color: var(--accent-orange);
    color: #2c1a00;
    text-align: center;
    padding: 15px;
    font-size: 1.3em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Header */
header:not(.gd-header) {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-dark));
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
}

.header-content .theme-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 30px;
}

.header-content .contact-info {
    order: 3;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Header logo links home on every public page (GD-017) */
.logo-link {
    display: flex;
    align-items: center;
}

/* The light-tagline logo stands alone in the header (no adjacent brand
   text), so it carries the full brand at a larger size. */
.logo-image {
    max-height: 100px;
    width: auto;
    display: block;
}

.contact-info {
    text-align: right;
    font-size: 1em;
    flex-shrink: 0;
}

.contact-info p {
    margin-bottom: 5px;
    font-size: 1em; /* ≥16px floor for this audience (GD-015) */
}

.phone-number {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.phone-number:hover {
    color: var(--accent-orange);
}

/* Navigation */
body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) {
    background-color: var(--secondary-purple);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0;
}

body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) li {
    margin: 0;
    flex-shrink: 0;
}

body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
    color: var(--white);
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    padding: 18px 25px;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a:hover,
body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a.active {
    background-color: var(--accent-orange);
    border-bottom-color: var(--accent-gold);
    color: #2c1a00; /* readable on the orange fill (GD-008) */
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: var(--secondary-purple);
    /* literal white: var(--white) flips dark in dark theme (GD-025) */
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background: var(--primary-dark);
}

.nav-toggle:active {
    background: var(--primary-purple);
}

.hamburger-icon {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: #fff; /* literal white — see .nav-toggle (GD-025) */
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff; /* literal white — see .nav-toggle (GD-025) */
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -7px;
}

.hamburger-icon::after {
    top: 7px;
}

/* Hamburger animation when active */
.nav-toggle.active .hamburger-icon {
    background: transparent;
}

.nav-toggle.active .hamburger-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Hero Section */
.hero {
    background: var(--white);
    color: var(--secondary-purple);
    text-align: center;
    padding: 60px 0; /* density pass (GD2-014) */
    min-height: 380px;
    display: flex;
    align-items: center;
    border-bottom: 4px solid var(--accent-gold);
}

.hero-content {
    width: 100%;
}

.hero h1,
.hero h2 {
    font-size: 2.4em; /* density pass (GD2-014) */
    margin-bottom: 30px;
    color: var(--secondary-purple);
    line-height: 1.2;
    font-weight: bold;
}

.hero p {
    font-size: 1.2em; /* density pass (GD2-014) */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

/* Buttons */
/* Dark label on the orange fill in BOTH themes — white-on-orange was ~2:1
   contrast (GD-008), and dark mode already rendered a dark label. */
.cta-button,
.btn-primary {
    display: inline-block;
    background-color: var(--accent-orange);
    color: #2c1a00;
    padding: 16px 32px; /* density pass (GD2-014) */
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover,
.btn-primary:hover {
    background-color: var(--accent-dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
}

/* Subtitle under a centered section title (GD2-017) */
.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-medium);
}

.section-title {
    text-align: center;
    font-size: 2.1em; /* density pass (GD2-015) */
    color: var(--secondary-purple);
    margin-bottom: 60px;
    font-weight: bold;
}

/* Services Section */
.services {
    background: linear-gradient(45deg, var(--bg-cream), var(--bg-cream-alt));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px; /* density pass (GD2-015) */
}

/* Homepage featured grid: 4 cards balance as 2×2 instead of 3+1 orphan (GD-023) */
.services-grid[data-dynamic-services="true"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    padding: 28px; /* density pass (GD2-015) */
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: var(--accent-orange);
}

.service-icon {
    font-size: 4em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.service-icon img {
    max-width: 240px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.8em;
    color: var(--secondary-purple);
    margin-bottom: 20px;
    font-weight: bold;
}

.service-card p {
    color: var(--text-light);
    font-size: 1.1em;
    line-height: 1.6;
}

/* Clickable Service Cards */
.service-card-clickable {
    cursor: pointer;
    position: relative;
}

.service-card-clickable:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card-hint {
    display: block;
    margin-top: 15px;
    font-size: 0.9em; /* ≥16px at the 18px base (GD-015) */
    color: var(--accent-orange);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card-clickable:hover .service-card-hint {
    opacity: 1;
}

/* Service Detail Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.service-modal.active {
    display: block;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.service-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2em;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.service-modal-close:hover {
    color: #e74c3c;
}

.service-modal-header {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.service-modal-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.service-modal-icon img {
    max-width: 220px;
    max-height: 220px;
    object-fit: contain;
    border-radius: 18px;
}

.service-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.service-modal-body {
    padding: 30px;
}

.service-modal-body p {
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.service-modal-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-modal-items li {
    padding: 12px 0 12px 30px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-dark);
}

.service-modal-items li:last-child {
    border-bottom: none;
}

.service-modal-items li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-orange);
    font-weight: bold;
}

.service-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.service-modal-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-orange), #e67e22);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.service-modal-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4);
}

/* About Section */
.about {
    background: linear-gradient(135deg, #f4e9ff, #f8f1ff);
}

.about-content {
    display: grid;
    /* minmax(0,1fr): plain 1fr can't shrink below a child's min-content
       width, which let the 1061px logo crush the text column (GD-001) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 1.2em;
}

.about-text h3 {
    font-size: 2em;
    color: var(--secondary-purple);
    margin-bottom: 30px;
}

.about-text h4 {
    font-size: 1.5em;
    color: var(--primary-purple);
    margin-bottom: 20px;
    margin-top: 30px;
}

.about-text p {
    margin-bottom: 25px;
    color: var(--text-medium);
}

.features {
    list-style: disc;
    margin-top: 30px;
    padding-left: 24px;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-gold);
    font-size: 1.1em;
    color: var(--secondary-purple);
}

/* Inline links inside light "about" sections (GD2-003) */
.service-area-section a {
    color: var(--secondary-purple);
    font-weight: bold;
}

[data-theme="dark"] .service-area-section a {
    color: var(--accent-gold);
}

/* Vehicle photo caption: must meet 4.5:1 in both themes (GD2-004) */
.vehicle-caption {
    text-align: center;
    margin-top: 20px;
    color: #5a6a6e;
    font-style: italic;
}

[data-theme="dark"] .vehicle-caption {
    color: #c9c9c9;
}

.about-visual {
    background: linear-gradient(45deg, var(--primary-purple), var(--primary-dark));
    height: 400px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    flex-direction: column;
}

.about-visual-subtitle {
    font-size: 0.4em;
    text-align: center;
    margin-top: 20px;
}

/* Logo inside the purple about panel: scaled to the panel, never its
   natural 1061px width (GD-001) */
.about-visual-logo {
    width: min(80%, 420px);
    height: auto;
}

/* Vehicle and Image Photos */
.vehicle-photos {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vehicle-photo {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.vehicle-photo:hover {
    transform: scale(1.02);
}

/* Photo gallery grid */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 15px;
    font-size: 0.9em;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-dark));
    color: var(--white);
}

.contact .section-title {
    color: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--accent-gold);
}

.contact .contact-info {
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    font-size: 1.2em;
    /* long unbroken strings (the email address) must wrap, not overflow
       the 375px viewport (GD-014) */
    overflow-wrap: anywhere;
    min-width: 0;
}

.contact-item div {
    text-align: left;
    min-width: 0;
}

.contact-icon {
    font-size: 1.8em;
    margin-right: 20px;
    color: var(--accent-gold);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.contact-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

.contact-item a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-orange);
}

/* Contact Form */
.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 2em;
    color: var(--accent-gold);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1em;
    background: var(--white);
    font-family: var(--font-primary);
    box-sizing: border-box;
    max-width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.15);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background-color: var(--accent-orange);
    color: #2c1a00; /* dark-on-orange like .cta-button (GD2-001) */
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background-color: var(--accent-dark-orange);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Login Page Styles */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-cream), var(--bg-cream-alt));
}

.login-container {
    max-width: 500px;
    width: 100%;
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    color: var(--secondary-purple);
    margin-bottom: 40px;
    font-size: 2.5em;
}

.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
}

.login-links a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover {
    color: var(--accent-orange);
}

/* Footer */
footer:not(.gd-footer) {
    background-color: #1a1a1a;
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

footer:not(.gd-footer) p {
    font-size: 1.1em;
}

footer:not(.gd-footer) a {
    color: var(--accent-gold);
    text-decoration: none;
}

footer:not(.gd-footer) a:hover {
    color: var(--accent-orange);
}

/* Accessibility - Enhanced Focus Indicators for 508 Compliance */
input:focus,
textarea:focus,
button:focus,
a:focus,
select:focus {
    outline: 3px solid var(--secondary-purple);
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(241, 196, 15, 0.4);
}

/* Ensure focus is visible on dark backgrounds */
.contact a:focus,
.contact button:focus,
header:not(.gd-header) a:focus,
body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a:focus {
    outline: 3px solid var(--accent-gold);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.3);
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Ensure minimum touch target size for seniors (44x44px) */
button,
a.cta-button,
a.btn-primary,
.action-btn,
.submit-btn,
body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
    min-height: 44px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .header-content {
        gap: 20px;
    }

    .logo-image {
        max-height: 80px;
    }

    .contact-info {
        font-size: 0.95em; /* keeps the tagline ≥16px (GD-015) */
    }

    .phone-number {
        font-size: 1.3em;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
        padding: 18px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-visual {
        height: 300px;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Hide emergency banner on mobile */
    .emergency-banner {
        display: none;
    }

    body {
        font-size: 18px;
    }

    :root {
        --section-padding: 48px; /* density pass (GD2-015) */
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
        margin-top: 20px;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) ul {
        gap: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
        font-size: 1em;
        padding: 15px 20px;
        width: 100%;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col).open ul {
        display: flex;
    }

    .hero h1,
    .hero h2 {
        font-size: 1.9em; /* density pass (GD2-014) */
    }

    .hero p {
        font-size: 1.15em;
    }

    .services-grid,
    .services-grid[data-dynamic-services="true"] {
        grid-template-columns: 1fr;
    }

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

    /* Mobile: the form is the point of the page — render it before the
       long info column (GD2-016) */
    .contact-grid .contact-form {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Show mobile menu toggle button */
    .nav-toggle {
        display: flex;
    }

    /* Hide navigation by default on mobile */
    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--secondary-purple);
    }

    /* Show navigation when active */
    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) ul.nav-active {
        display: flex;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
    }

    /* Logout button styling on mobile */
    .logout-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-top: 10px;
    }

    /* Login container mobile adjustments */
    .login-container {
        padding: 30px 20px;
        margin: 0 15px;
    }

    .login-container h2 {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1em;
        padding: 14px;
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode - Enhanced for 508 Compliance */
@media (prefers-contrast: high) {
    body {
        background-color: var(--white);
        color: black;
    }

    .service-card {
        border: 3px solid black;
    }

    a {
        text-decoration: underline;
    }

    button,
    .cta-button,
    .btn-primary,
    .submit-btn {
        border: 2px solid black;
    }

    input:focus,
    textarea:focus,
    button:focus,
    a:focus,
    select:focus {
        outline: 3px solid black;
        box-shadow: none;
    }

    .hero {
        background: var(--white);
        border: 3px solid black;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) {
        border-bottom: 3px solid black;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a {
        border-bottom: 2px solid transparent;
    }

    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a:hover,
    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col) a.active {
        border-bottom-color: black;
    }
}

/* Print Styles */
@media print {
    .emergency-banner, 
    body:not(.portal-page) nav:not(.gd-nav):not(.gd-footer-col), 
    .contact-form,
    .cta-button {
        display: none;
    }
    
    body {
        font-size: 14px;
        color: black;
        background: var(--white);
    }
    
    .hero {
        background: #f0f0f0;
        color: black;
    }
}

/* ════════════════════════════════════════════════════════════════════
   GOLDEN DAYS 2026 DESIGN SYSTEM — Phase 1 foundation
   Source of truth: design_handoff_golden_days/README.md ("Design tokens",
   "Dark mode", "Section 508 / WCAG 2.1 AA").

   Rules:
   - Every NEW color goes through a --gd-* token. Never hardcode a hex in
     new work; one stray hex breaks the dark theme.
   - Light values live on :root; dark overrides live under
     [data-theme="dark"] (set on <html> by js/dark-mode.js, which runs
     synchronously in <head> before this stylesheet — no flash).
   - Purple #5A2683 is a FILL in light mode and is never used as text on
     dark (use --gd-link, which flips to #C9A9E0). Gold #E8A11B is never
     text on white/cream — fills only, with --gd-cta-text on top.
   - Visual base rules below are scoped to body:not(.portal-page): the
     portal keeps its legacy styling until its own rebuild pass.
   Deviations from the spec's token table (per its own 508 section, which
   requires 3:1 for interface component borders):
   - --gd-border-input is #8C7F68 (table value #D6CBB8 = ~1.7:1, fails AA;
     the soft value is kept as --gd-border-input-soft for decorative use).
   - Dark --gd-border-input is #7E6C93 (table value #54406A = ~1.8:1 on
     the dark surface; soft value kept as the -soft variant).
   ════════════════════════════════════════════════════════════════════ */

:root {
    /* Type families */
    --gd-font-heading: 'Bitter', Georgia, 'Times New Roman', serif;
    --gd-font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --gd-font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    /* Brand scales (raw palette — prefer the semantic tokens below) */
    --gd-purple-900: #2E1240;
    --gd-purple-800: #3D1857;
    --gd-purple-700: #5A2683;
    --gd-purple-600: #4A1E6D;
    --gd-purple-200: #D9C2EC;
    --gd-purple-150: #C9A9E0;
    --gd-purple-100: #FAF4FF;
    --gd-gold-600: #8A5A0F;
    --gd-gold-500: #E8A11B;
    --gd-gold-400: #F6C766;

    /* Surfaces */
    --gd-bg: #FDF7EC;                /* page background */
    --gd-surface: #FFFFFF;           /* cards, header, footer */
    --gd-surface-raised: #FDF7EC;    /* cards on white */
    --gd-band-dark: #2E1240;         /* dark section fills (trust, testimonials) */
    --gd-band-dark-card: #3D1857;    /* cards on the dark band */
    --gd-brand-bar: #5A2683;         /* portal-card header bars, trust cells */
    --gd-brand-bar-line: #4A1E6D;    /* trust-band grid lines */

    /* Text */
    --gd-heading: #2E1240;
    --gd-text: #4B4453;
    --gd-text-muted: #6B6459;
    --gd-text-placeholder: #9A907F;
    --gd-text-on-band: #FFFFFF;      /* value text on the purple band */
    --gd-label-on-band: #D9C2EC;     /* label text on the purple band */
    --gd-eyebrow-on-band: #C9A9E0;   /* eyebrows on the purple band */
    --gd-text-on-gold: #4A3410;      /* body text on the gold CTA band */

    /* Links & accents */
    --gd-link: #5A2683;
    --gd-link-hover: #4A1E6D;
    --gd-eyebrow: #8A5A0F;
    --gd-accent-on-dark: #F6C766;    /* links on dark fills */

    /* CTA (gold stays gold in both themes) */
    --gd-cta: #E8A11B;
    --gd-cta-hover: #D4900F;
    --gd-cta-text: #2E1240;

    /* Borders */
    --gd-border-subtle: #EFE1C9;     /* borders on cream surfaces */
    --gd-border-card: #DAD2C6;       /* card outlines */
    --gd-border-header: #EFE8DC;     /* header bottom border / dividers */
    --gd-border-photo: #E1D7C6;      /* photo frames */
    --gd-border-input: #8C7F68;      /* AA-darkened (see header note) */
    --gd-border-input-soft: #D6CBB8; /* decorative only, never the sole cue */

    /* Selection / state */
    --gd-selected-fill: #FAF4FF;
    --gd-selected-border: #5A2683;
    --gd-progress-track: #EFE1C9;
    --gd-progress-fill: #E8A11B;
    --gd-dot-available: #3D8B5F;

    /* Reassurance / success */
    --gd-success-fill: #F1F7F2;
    --gd-success-border: #C6DFCD;
    --gd-success-heading: #1F5335;
    --gd-success-body: #3D6B4E;

    /* Focus (themed — must hold 3:1 on both the element and its ground) */
    --gd-focus: #5A2683;

    /* Header (light mode: brand-purple bar with gold accent) */
    --gd-header-bg: var(--gd-purple-700);
    --gd-header-ink: #FFFFFF;
    --gd-header-ink-hover: var(--gd-gold-400);
    --gd-header-phone: var(--gd-gold-400);
    --gd-header-divider: rgba(255, 255, 255, 0.28);
    --gd-header-focus: var(--gd-gold-400);
    --gd-themectl-ink: var(--gd-text-muted);
    --gd-themectl-border: var(--gd-border-card);
    --gd-themectl-active-bg: var(--gd-brand-bar);
    --gd-themectl-active-ink: #FFFFFF;

    /* Effects */
    --gd-shadow-card: 0 14px 32px rgba(46, 18, 64, 0.10);
    --gd-shadow-frame: 0 18px 44px rgba(46, 18, 64, 0.10);
    --gd-shadow-overlay: 0 14px 36px rgba(46, 18, 64, 0.16);
    --gd-photo-overlay: transparent; /* photos get a dim wash in dark mode */
    --gd-transition: 150ms ease;
}

[data-theme="dark"] {
    --gd-bg: #1A0E24;
    --gd-surface: #241432;
    --gd-surface-raised: #2E1A3E;
    --gd-band-dark: #120819;         /* darker than the page, never lighter */
    --gd-band-dark-card: #1E0F2C;
    --gd-brand-bar: #3D1857;
    --gd-brand-bar-line: #2E1240;

    --gd-heading: #F4EDF8;
    --gd-text: #D8CFE0;
    --gd-text-muted: #A79BB2;
    --gd-text-placeholder: #8B7F97;
    --gd-text-on-gold: #241000;

    --gd-link: #C9A9E0;              /* brand purple is unreadable on dark */
    --gd-link-hover: #DCC3EC;
    --gd-eyebrow: #F0BE5E;           /* light-mode gold fails on dark */

    --gd-cta: #E8A11B;               /* the one constant */
    --gd-cta-hover: #D4900F;
    --gd-cta-text: #241000;

    --gd-border-subtle: #3A2549;
    --gd-border-card: #3A2549;
    --gd-border-header: #3A2549;
    --gd-border-photo: #3A2549;
    --gd-border-input: #7E6C93;      /* AA-lightened (see header note) */
    --gd-border-input-soft: #54406A;

    --gd-selected-fill: #38215096;
    --gd-selected-border: #C9A9E0;
    --gd-progress-track: #3A2549;

    --gd-success-fill: #16281C;
    --gd-success-border: #2F5B3E;
    --gd-success-heading: #8FD6A8;
    --gd-success-body: #B4DCC0;

    --gd-focus: #C9A9E0;

    /* Header keeps the dark-surface look; gold accent ties the themes */
    --gd-header-bg: #241432;
    --gd-header-ink: #F4EDF8;
    --gd-header-ink-hover: #F6C766;
    --gd-header-phone: #C9A9E0;
    --gd-header-divider: #3A2549;
    --gd-header-focus: #F6C766;
    --gd-themectl-ink: #A79BB2;
    --gd-themectl-border: #3A2549;
    --gd-themectl-active-bg: #3D1857;
    --gd-themectl-active-ink: #FFFFFF;

    /* Shadows barely read on dark — cards swap to a 1px outline */
    --gd-shadow-card: 0 0 0 1px var(--gd-border-subtle);
    --gd-shadow-frame: 0 0 0 1px var(--gd-border-subtle);
    --gd-shadow-overlay: 0 0 0 1px var(--gd-border-subtle);
    --gd-photo-overlay: rgba(26, 14, 36, 0.12);
}

/* ── Base type (public pages only — portal keeps legacy styling) ─────── */

body:not(.portal-page) {
    font-family: var(--gd-font-body);
    font-size: 1.0625rem;            /* 17px — rem so 200% resize works */
    line-height: 1.6;
    color: var(--gd-text);
}

body:not(.portal-page) :where(h1, h2, h3, h4) {
    font-family: var(--gd-font-heading);
    font-weight: 600;
    color: var(--gd-heading);
    text-wrap: pretty;
}

/* Heading scale (spec: H1 52/1.1, H2 34/1.2, cards 20-22/1.3) */
body:not(.portal-page) :where(h1) { font-size: 3.25rem;  line-height: 1.1; }
body:not(.portal-page) :where(h2) { font-size: 2.125rem; line-height: 1.2; }
body:not(.portal-page) :where(h3) { font-size: 1.375rem; line-height: 1.3; }
body:not(.portal-page) :where(h4) { font-size: 1.25rem;  line-height: 1.3; }

/* Reading comfort: body copy left-aligned, line length capped. Legacy
   centered sections inherit this on purpose — it is the spec's fix. */
body:not(.portal-page) :where(p, li) {
    text-align: left;
    max-inline-size: 70ch;
}

/* Eyebrow utility (mono labels above headings) */
.gd-eyebrow {
    font-family: var(--gd-font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gd-eyebrow);
}

/* ── Focus (ALL pages, both themes — never removed) ──────────────────── */

:focus-visible {
    outline: 3px solid var(--gd-focus);
    outline-offset: 2px;
}
/* Fallback for browsers without :focus-visible */
@supports not selector(:focus-visible) {
    a:focus, button:focus, input:focus, select:focus, textarea:focus,
    [tabindex]:focus {
        outline: 3px solid var(--gd-focus);
        outline-offset: 2px;
    }
}

/* ── Reduced motion (ALL pages) ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ════════════════════════════════════════════════════════════════════
   PHASE 2/3 COMPONENTS — shared chrome + home page (spec panel 1a)
   Every color reads a --gd-* token. Class selectors out-rank the legacy
   header/nav/footer element rules, but every property those rules set is
   explicitly overridden here so the cascade can't leak gradients through.
   ════════════════════════════════════════════════════════════════════ */

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.gd-container {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 40px;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.gd-btn-gold {
    display: inline-block;
    font-family: var(--gd-font-body);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gd-cta-text);
    background: var(--gd-cta);
    padding: 17px 28px;
    border: 0;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--gd-transition), color var(--gd-transition);
}
.gd-btn-gold:hover { background: var(--gd-cta-hover); color: var(--gd-cta-text); }

.gd-btn-outline-purple {
    display: inline-block;
    font-family: var(--gd-font-body);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gd-link);
    background: var(--gd-surface);
    border: 2px solid var(--gd-link);
    padding: 15px 26px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--gd-transition), color var(--gd-transition), border-color var(--gd-transition);
}
.gd-btn-outline-purple:hover { color: var(--gd-link-hover); border-color: var(--gd-link-hover); }

/* ── Header (sticky, one row) ────────────────────────────────────────── */

.gd-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--gd-header-bg);
    border-bottom: 3px solid var(--gd-cta);
    box-shadow: none;
    padding: 0;
}
/* The brand purple swallows the default focus ring — use gold here. */
.gd-header :focus-visible { outline-color: var(--gd-header-focus); }
.gd-header-inner {
    max-width: 1280px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(14px, 2vw, 28px);
    padding: 16px clamp(16px, 3vw, 40px);
}
.gd-logo { display: block; }
.gd-logo-img { height: 64px; width: auto; display: block; }

.gd-header .gd-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 28px);
    background: none;
    position: static;
    box-shadow: none;
    padding: 0;
}
.gd-nav > a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gd-header-ink);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--gd-transition);
}
.gd-nav > a:hover,
.gd-nav > a[aria-current="page"] {
    color: var(--gd-header-ink-hover);
    text-decoration: underline;
    text-decoration-color: var(--gd-cta);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.gd-header-cta {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    padding-left: 14px;
    border-left: 1px solid var(--gd-header-divider);
}
.gd-header-phone {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gd-header-phone);
    text-decoration: none;
    white-space: nowrap;
}
.gd-header-phone:hover { color: var(--gd-header-ink-hover); }
.gd-btn-header { font-size: 1rem; padding: 12px 20px; border-radius: 6px; white-space: nowrap; }
.gd-signin {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gd-header-ink);
    text-decoration: none;
    white-space: nowrap;
}
.gd-signin:hover { color: var(--gd-header-ink-hover); }

/* Theme control — labeled three-state radiogroup, 44px targets */
.gd-theme-control {
    display: flex;
    border: 1px solid var(--gd-themectl-border);
    border-radius: 8px;
    overflow: hidden;
}
.gd-theme-control [data-theme-choice] {
    font-family: var(--gd-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gd-themectl-ink);
    background: transparent;
    border: 0;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
    cursor: pointer;
    transition: background-color var(--gd-transition), color var(--gd-transition);
}
.gd-theme-control [data-theme-choice] + [data-theme-choice] {
    border-left: 1px solid var(--gd-themectl-border);
}
.gd-theme-control [aria-checked="true"] {
    background: var(--gd-themectl-active-bg);
    color: var(--gd-themectl-active-ink);
}

/* Mobile nav toggle (hidden on desktop) */
.gd-nav-toggle {
    display: none;
    font-family: var(--gd-font-body);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gd-header-ink);
    background: transparent;
    border: 2px solid var(--gd-header-divider);
    border-radius: 8px;
    min-height: 44px;
    padding: 0 16px;
    cursor: pointer;
}

/* ── Footer ──────────────────────────────────────────────────────────── */

.gd-footer {
    background: var(--gd-surface);
    color: var(--gd-text);
    border-top: 1px solid var(--gd-border-subtle);
    text-align: left;
    padding: 0;
}
.gd-footer-inner {
    max-width: 1280px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 44px 40px;
}
.gd-footer-brand { display: flex; flex-direction: column; }
.gd-footer .gd-theme-control { align-self: flex-start; margin-top: 16px; }
.gd-footer-logo { height: 72px; width: auto; display: block; margin-bottom: 14px; }
.gd-footer-legal { font-size: 0.9375rem; line-height: 1.6; color: var(--gd-text-muted); }
.gd-footer-col { display: flex; flex-direction: column; gap: 9px; }
.gd-footer .gd-footer-heading {
    font-family: var(--gd-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gd-heading);
    margin: 0;
}
.gd-footer-col a {
    font-size: 1rem;
    color: var(--gd-text);
    text-decoration: none;
    transition: color var(--gd-transition);
}
.gd-footer-col a:hover { color: var(--gd-link); text-decoration: underline; }

/* ── Mobile bottom bar (Call / Book) ─────────────────────────────────── */

.gd-bottombar {
    display: none;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 950;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--gd-border-card);
}
.gd-bottombar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
}
.gd-bottombar a:first-child { background: var(--gd-brand-bar); color: #FFFFFF; }
.gd-bottombar a:last-child { background: var(--gd-cta); color: var(--gd-cta-text); }

/* ── Home page sections (panel 1a) ───────────────────────────────────── */

.gd-hero {
    background: var(--gd-bg);
    padding: 64px 0 56px;
}
.gd-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}
.gd-hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.gd-hero h1 { margin: 0; }
.gd-hero-lead { font-size: 1.1875rem; line-height: 1.6; color: var(--gd-text); margin: 0; }
.gd-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.gd-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--gd-text-muted);
}
.gd-availability .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gd-dot-available);
    flex: none;
}

/* Photo slots — clearly-marked placeholders until photography lands */
.gd-photo-slot {
    position: relative;
    border-radius: 10px;
    border: 1px solid var(--gd-border-photo);
    background-image: repeating-linear-gradient(135deg, #EFE6D6 0 10px, #F7F0E2 10px 20px);
    display: flex;
    align-items: flex-end;
    padding: 18px;
}
[data-theme="dark"] .gd-photo-slot {
    background-image: repeating-linear-gradient(135deg, #2E1A3E 0 10px, #241432 10px 20px);
}
.gd-photo-slot::after { /* dark-mode photo dim wash, ready for real imgs */
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gd-photo-overlay);
    pointer-events: none;
    border-radius: inherit;
}
.gd-photo-slot.has-photo { padding: 0; background-image: none; overflow: hidden; }
.gd-photo-slot.has-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gd-page-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    border: 1px solid var(--gd-border-photo);
    display: block;
}
[data-theme="dark"] .gd-page-photo,
[data-theme="dark"] .vehicle-photo { filter: brightness(0.88); }

.gd-photo-note {
    font-family: var(--gd-font-mono);
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--gd-text-muted);
    background: var(--gd-surface-raised);
    border: 1px solid var(--gd-border-photo);
    padding: 9px 12px;
    border-radius: 5px;
    max-inline-size: none;
}
.gd-hero-photo { height: 420px; }

/* Trust band */
.gd-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--gd-brand-bar-line);
}
.gd-trust-cell { background: var(--gd-brand-bar); padding: 22px 24px; }
.gd-trust-label { font-size: 0.875rem; color: var(--gd-label-on-band); letter-spacing: 0.04em; }
.gd-trust-value { font-size: 1.0625rem; font-weight: 700; color: var(--gd-text-on-band); line-height: 1.35; }

/* Section scaffolding */
.gd-section { background: var(--gd-surface); padding: 64px 0; }
.gd-section.on-cream { background: var(--gd-bg); border-top: 1px solid var(--gd-border-subtle); }
.gd-section-head { display: flex; flex-direction: column; gap: 8px; max-width: 44rem; margin-bottom: 32px; }
.gd-section-head h2 { margin: 0; }
.gd-section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}
.gd-section-link {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gd-link);
    text-decoration: none;
    white-space: nowrap;
}
.gd-section-link:hover { color: var(--gd-link-hover); text-decoration: underline; }

/* Three doors */
.gd-doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gd-door {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    background: var(--gd-surface-raised);
    border: 1px solid var(--gd-border-subtle);
    border-radius: 10px;
}
.gd-door-bar { width: 44px; height: 5px; background: var(--gd-cta); border-radius: 3px; }
.gd-door h3 { font-size: 1.375rem; margin: 0; }
.gd-door p { font-size: 1rem; line-height: 1.6; color: var(--gd-text); margin: 0; }
.gd-door-link {
    margin-top: auto;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gd-link);
    text-decoration: none;
}
.gd-door-link:hover { color: var(--gd-link-hover); text-decoration: underline; }
.gd-door.inverted { background: var(--gd-band-dark); border-color: var(--gd-band-dark); }
.gd-door.inverted h3 { color: var(--gd-text-on-band); }
.gd-door.inverted p { color: var(--gd-label-on-band); }
.gd-door.inverted .gd-door-link { color: var(--gd-accent-on-dark); }

/* Services grid */
.gd-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gd-service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    background: var(--gd-surface);
    border: 1px solid var(--gd-border-subtle);
    border-radius: 10px;
    box-shadow: none;
}
.gd-service-card h3 { font-size: 1.25rem; margin: 0; }
.gd-service-card p { font-size: 1rem; line-height: 1.6; color: var(--gd-text); margin: 0; }
.gd-icon-slot {
    width: 36px; height: 36px;
    border: 1px dashed var(--gd-border-input-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gd-font-mono);
    font-size: 0.5625rem;
    color: var(--gd-text-placeholder);
}

/* Coverage / ZIP check */
.gd-coverage { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--gd-surface); }
.gd-coverage-photo { min-height: 360px; border-right: 1px solid var(--gd-border-subtle); border-radius: 0; border-top: 0; border-bottom: 0; border-left: 0; }
.gd-coverage-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 56px 40px;
    justify-content: center;
}
.gd-coverage-body h2 { font-size: 2rem; margin: 0; }
.gd-coverage-body > p { font-size: 1.125rem; line-height: 1.6; color: var(--gd-text); max-width: 38ch; margin: 0; }
.gd-zip-row { display: flex; gap: 10px; max-width: 24rem; }
.gd-zip-row input {
    flex: 1;
    min-width: 0;
    padding: 15px 16px;
    font-family: var(--gd-font-body);
    font-size: 1.125rem;
    color: var(--gd-heading);
    background: var(--gd-surface);
    border: 2px solid var(--gd-border-input);
    border-radius: 8px;
}
.gd-zip-row input::placeholder { color: var(--gd-text-placeholder); }
.gd-zip-row .gd-btn-gold { font-size: 1.0625rem; padding: 15px 22px; }
.gd-zip-label { font-size: 1rem; font-weight: 600; color: var(--gd-heading); }
.gd-zip-result { font-size: 1rem; margin: 0; }
.gd-zip-result.ok { color: var(--gd-success-heading); font-weight: 600; }
.gd-zip-result.miss { color: var(--gd-text); }
.gd-zip-result.error { color: #B3261E; font-weight: 600; }
[data-theme="dark"] .gd-zip-result.error { color: #F2B8B5; }
.gd-coverage-fallback { font-size: 1rem; color: var(--gd-text-muted); }
.gd-coverage-fallback a { color: var(--gd-link); font-weight: 700; }

/* Testimonials */
.gd-testimonials { background: var(--gd-band-dark); padding: 60px 0; }
.gd-testimonials .gd-eyebrow { color: var(--gd-eyebrow-on-band); margin-bottom: 26px; display: block; }
.gd-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gd-quote-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--gd-band-dark-card);
    border-radius: 10px;
}
.gd-quote-card blockquote {
    margin: 0;
    font-family: var(--gd-font-heading);
    font-size: 1.3125rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gd-text-on-band);
    text-wrap: pretty;
}
.gd-quote-attr { font-size: 1rem; color: var(--gd-eyebrow-on-band); }

/* CTA band */
.gd-cta-band { background: var(--gd-cta); padding: 52px 0; }
.gd-cta-band-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.gd-cta-band h2 { font-size: 2rem; color: var(--gd-cta-text); margin: 0 0 8px; }
.gd-cta-band p { font-size: 1.125rem; line-height: 1.6; color: var(--gd-text-on-gold); margin: 0; }
.gd-cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.gd-btn-dark {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    color: #FDF7EC;
    background: var(--gd-purple-900);
    padding: 17px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color var(--gd-transition);
}
.gd-btn-dark:hover { background: var(--gd-purple-800); }
.gd-btn-outline-dark {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gd-purple-900);
    background: transparent;
    border: 2px solid var(--gd-purple-900);
    padding: 15px 26px;
    border-radius: 8px;
    text-decoration: none;
}
/* The gold band stays gold in dark mode; its ink stays the dark pair. */
[data-theme="dark"] .gd-cta-band h2 { color: #241000; }
[data-theme="dark"] .gd-btn-outline-dark { color: #241000; border-color: #241000; }

/* ── Responsive (single breakpoint per spec) ─────────────────────────── */

/* Header collapses earlier than the content breakpoint: with the
   right cluster the full row needs ~1100px without the theme control. */
@media (max-width: 1100px) {
    .gd-header-inner { padding: 12px 16px; flex-wrap: wrap; }
    .gd-nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
    .gd-header .gd-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        width: 100%;
        padding: 12px 0 4px;
    }
    .gd-header .gd-nav.open { display: flex; }
    .gd-nav > a { padding: 12px 4px; min-height: 44px; display: flex; align-items: center; }
    .gd-header-cta {
        border-left: 0;
        padding-left: 0;
        flex-wrap: wrap;
        padding-top: 10px;
        border-top: 1px solid var(--gd-header-divider);
    }
}

@media (max-width: 900px) {
    .gd-container { padding-inline: 16px; }

    .gd-hero-grid, .gd-doors, .gd-services-grid,
    .gd-quote-grid, .gd-coverage { grid-template-columns: 1fr; }
    .gd-hero-photo { height: 280px; }
    .gd-coverage-photo { border-right: 0; border-bottom: 1px solid var(--gd-border-subtle); }
    .gd-trust { grid-template-columns: repeat(2, 1fr); }
    .gd-footer-inner { grid-template-columns: 1fr; gap: 24px; padding: 32px 16px 96px; }

    .gd-bottombar { display: grid; }
    body:not(.portal-page) { padding-bottom: 56px; }
}

/* ════════════════════════════════════════════════════════════════════
   PORTAL TOKEN LAYER — Phase 1 of the portal restyle
   Source of truth: design_handoff_golden_days/PORTAL_README.md §1–§3.

   §1 "inherited" names: the portal spec references unprefixed names
   (--page, --surface, …) that did not previously exist — the public
   layer shipped them as --gd-*. They are defined here literally with
   the portal spec's exact values (four value-level discrepancies vs the
   --gd-* pairs are recorded in the Phase 1 report; the --gd-* layer is
   untouched). Nothing consumes these yet — Phase 2+ builds against them.
   ════════════════════════════════════════════════════════════════════ */

:root {
    /* §1 inherited names (portal-spec values, light) */
    --page: #FDF7EC;
    --surface: #FFFFFF;
    --surface-raised: #FFFFFF;
    --heading: #2E1240;
    --body: #4B4453;
    --muted: #6B6459;
    --brand: #5A2683;
    --brand-hover: #4A1E6D;
    --link: #5A2683;
    --eyebrow: #6B6459;
    --cta: #E8A11B;
    --cta-hover: #D4900F;
    --cta-ink: #241000;
    --accent: #F6C766;
    --border: #EFE1C9;
    --border-strong: #DAD2C6;
    --input-border: #8C7F68;
    --ok-ink: #1F5335;
    --ok-bg: #F1F7F2;

    /* §2 new portal tokens (light) */
    --sidebar-surface: #2E1240;
    --sidebar-border: #4A1E6D;
    --sidebar-item: #EFE6F5;
    --sidebar-item-hover-bg: #3A1A50;
    --sidebar-item-active-bg: #4A1E6D;
    --sidebar-item-active-bar: #E8A11B;
    --sidebar-eyebrow: #BFAFCD;
    --sidebar-eyebrow-open: #F0BE5E;
    --topbar-surface: #FFFFFF;
    --topbar-accent: #E8A11B;
    --table-header-bg: #F3ECDF;
    --table-header-ink: #2E1240;
    --row-stripe: #FDFBF6;
    --row-hover: #FBF5E9;
    --pill-ok-bg: #EAF4EC;      --pill-ok-ink: #1F5335;      --pill-ok-line: #4F8163;
    --pill-warn-bg: #FBEFD6;    --pill-warn-ink: #6B4A05;    --pill-warn-line: #A5822C;
    --pill-info-bg: #E7EEF9;    --pill-info-ink: #1F3F73;    --pill-info-line: #4C6E9E;
    --pill-done-bg: #EDEAF6;    --pill-done-ink: #3A2159;    --pill-done-line: #8E7BA8;
    --pill-neutral-bg: #F0EDEA; --pill-neutral-ink: #55504A; --pill-neutral-line: #7C766E;
    --pill-danger-bg: #FBEAE7;  --pill-danger-ink: #8A2013;  --pill-danger-line: #C4796C;
    --danger: #8A2013;
    --focus-ring: #5A2683;
    --focus-ring-on-purple: #F6C766;
}

[data-theme="dark"] {
    /* §1 inherited names (portal-spec values, dark) */
    --page: #1A0E24;
    --surface: #241432;
    --surface-raised: #2E1A3E;
    --heading: #F4EDF8;
    --body: #D8CFE0;
    --muted: #A79BB2;
    --brand: #5A2683;            /* surfaces only, never text */
    --brand-hover: #4A1E6D;
    --link: #C9A9E0;
    --eyebrow: #F0BE5E;
    --cta: #E8A11B;
    --cta-hover: #D4900F;
    --cta-ink: #241000;
    --accent: #F6C766;
    --border: #3A2549;
    --border-strong: #3A2549;
    --input-border: #7E6C93;
    --ok-ink: #8FD3A6;
    --ok-bg: #16321F;

    /* §2 new portal tokens (dark) */
    --sidebar-surface: #241432;
    --sidebar-border: #3A2549;
    --sidebar-item: #D8CFE0;
    --sidebar-item-hover-bg: #2E1A3E;
    --sidebar-item-active-bg: #2E1A3E;
    --sidebar-item-active-bar: #F6C766;
    --sidebar-eyebrow: #A79BB2;
    --sidebar-eyebrow-open: #F0BE5E;
    --topbar-surface: #241432;
    --topbar-accent: #E8A11B;
    --table-header-bg: #2E1A3E;
    --table-header-ink: #F4EDF8;
    --row-stripe: #1F1129;
    --row-hover: #2A1738;
    --pill-ok-bg: #16321F;      --pill-ok-ink: #8FD3A6;      --pill-ok-line: #3F7A55;
    --pill-warn-bg: #3A2A0B;    --pill-warn-ink: #F0BE5E;    --pill-warn-line: #A5822C;
    --pill-info-bg: #16263F;    --pill-info-ink: #9CC2F0;    --pill-info-line: #4C6E9E;
    --pill-done-bg: #2A1C3D;    --pill-done-ink: #C9A9E0;    --pill-done-line: #8E7BA8;
    --pill-neutral-bg: #2A2530; --pill-neutral-ink: #B5AEBC; --pill-neutral-line: #7C766E;
    --pill-danger-bg: #3B1614;  --pill-danger-ink: #F2A99C;  --pill-danger-line: #A9564A;
    --danger: #F2A99C;
    --focus-ring: #F6C766;
    --focus-ring-on-purple: #F6C766;
}

/* §3 density scale — defined only; no selector consumes these yet. */
[data-density="comfort"] {
    --fs-body: 17px;
    --fs-small: 15px;
    --fs-h1: 34px;
    --fs-h2: 22px;
    --fs-eyebrow: 13px;
    --pad-card: 28px;
    --pad-cell: 16px 20px;
    --h-control: 52px;
    --h-row: 64px;
    --radius: 14px;
    --radius-sm: 10px;
    --gap: 18px;
    --target-min: 44px;
}

[data-density="compact"] {
    --fs-body: 15px;
    --fs-small: 13px;
    --fs-h1: 28px;
    --fs-h2: 17px;
    --fs-eyebrow: 11px;
    --pad-card: 18px;
    --pad-cell: 13px 18px;
    --h-control: 40px;
    --h-row: 48px;
    --radius: 10px;
    --radius-sm: 8px;
    --gap: 14px;
    --target-min: 36px;
}
