/* ============================================================
   HONDA PRIMO — Premium Stylesheet
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Syncopate:wght@400;700&display=swap');

/* ============================================================
   0. CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    --honda-red: #E4002B;
    --honda-darkred: #B30022;
    --honda-black: #111111;
    --honda-dark: #1A1A1A;
    --honda-gray: #F3F4F6;
    --surface-primary: #ffffff;
    --surface-secondary: #f8f9fa;
    --text-primary: #111111;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --glass-bg: rgba(17, 17, 17, 0.85);
    --glass-bg-scroll: rgba(17, 17, 17, 0.96);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 24px 48px rgba(0, 0, 0, 0.12);
    --shadow-btn: 0 8px 24px rgba(228, 0, 43, 0.35);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Syncopate', sans-serif;
}

/* Dark mode tokens */
html.dark {
    --surface-primary: #1a1a1a;
    --surface-secondary: #121212;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 24px 48px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(10, 10, 10, 0.92);
    --glass-bg-scroll: rgba(10, 10, 10, 0.98);
}

/* ============================================================
   1. Reset & Base
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================================
   2. Page Loader
   ============================================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--honda-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--honda-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   3. Typography Utilities
   ============================================================ */
.font-display {
    font-family: var(--font-display);
}

.font-sans {
    font-family: var(--font-sans);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--honda-red);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--honda-red);
    margin-top: 1rem;
    border: none;
    border-radius: 2px;
}

/* ============================================================
   4. Layout Containers
   ============================================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================================
   5. Navigation (Glassmorphism)
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg-scroll);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 44px;
    width: auto;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-link img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

/* Desktop Nav Links */
.nav-links {
    display: none;
    list-style: none;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--honda-red);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link.active {
    color: #ffffff;
    font-weight: 600;
}

.nav-link.nav-accent {
    color: var(--honda-red);
    font-weight: 700;
}

.nav-link.nav-accent:hover {
    color: #ff324d;
}

/* Nav Actions */
.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-actions {
        display: flex;
    }
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu {
    display: none;
    background: rgba(17, 17, 17, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    color: var(--honda-red);
    padding-left: 2rem;
}

.mobile-menu .mobile-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0.5rem 1.5rem;
}

/* ============================================================
   6. Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--honda-red);
    color: #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: #fff;
    color: var(--honda-black);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.btn-outline-dark:hover {
    background: var(--honda-black);
    color: #fff;
    border-color: var(--honda-black);
}

html.dark .btn-outline-dark {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

html.dark .btn-outline-dark:hover {
    background: #fff;
    color: var(--honda-black);
    border-color: #fff;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

.btn-filter {
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    background: var(--surface-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-filter:hover {
    border-color: var(--honda-black);
    color: var(--text-primary);
}

.btn-filter.active {
    background: var(--honda-black);
    color: #fff;
    border-color: var(--honda-black);
}

html.dark .btn-filter {
    background: #2a2a2a;
    color: #aaa;
    border-color: #444;
}

html.dark .btn-filter.active {
    background: #fff;
    color: #111;
    border-color: #fff;
}

/* ============================================================
   7. Hero Section
   ============================================================ */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    background: var(--honda-black);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    image-rendering: high-quality;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg img.active {
    opacity: 1;
}

.hero.loaded .hero-bg img {
    transform: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg,
            rgba(17, 17, 17, 0.92) 0%,
            rgba(17, 17, 17, 0.7) 40%,
            rgba(17, 17, 17, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--honda-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .text-gradient {
    background: linear-gradient(135deg, var(--honda-red), #ff4d6a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ============================================================
   8. Philosophy / Features Cards
   ============================================================ */
.philosophy-section {
    padding: 6rem 0;
    background: var(--surface-primary);
    transition: background 0.3s;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3.5rem;
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.philosophy-card {
    text-align: center;
    padding: 2rem 1rem;
}

.philosophy-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-smooth);
    font-size: 1.6rem;
    color: var(--honda-red);
}

.philosophy-card:hover .philosophy-icon {
    background: var(--honda-red);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(228, 0, 43, 0.25);
}

.philosophy-card h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.philosophy-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

/* ============================================================
   9. Car Model Cards
   ============================================================ */
.models-section {
    padding: 4rem 0 5rem;
    background: var(--surface-secondary);
    transition: background 0.3s;
}

.models-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .models-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

html.dark .models-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
}

.models-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .models-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .models-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.car-card {
    background: var(--surface-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-card);
}

html.dark .car-card {
    border-color: rgba(255, 255, 255, 0.06);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--honda-red);
}

.car-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.car-card:hover .car-image img {
    transform: scale(1.08);
}

.car-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.car-badge.badge-new {
    background: var(--honda-red);
    color: #fff;
}

.car-badge.badge-classic {
    background: var(--honda-black);
    color: #fff;
}

.car-image.classic-border {
    border-bottom: 4px solid #f59e0b;
}

.car-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.car-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html.dark .car-subtitle {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.car-spec-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.car-spec-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============================================================
   10. History / Legacy Section
   ============================================================ */
.history-section {
    padding: 4rem 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    background-color: var(--surface-secondary);
    transition: background-color 0.3s;
}

html.dark .history-section {
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.history-card {
    max-width: 860px;
    margin: 0 auto;
    background: var(--surface-primary);
    padding: 3rem 2rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .history-card {
        padding: 4rem;
    }
}

html.dark .history-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

.history-card .honda-logo-header {
    height: 56px;
    margin: 0 auto 1.5rem;
    opacity: 0.75;
    filter: grayscale(1);
}

html.dark .history-card .honda-logo-header {
    filter: grayscale(1) invert(1);
}

.history-card .intro-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.7;
}

.history-callout {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--honda-red);
    background: var(--surface-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.history-callout h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.history-callout p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.history-media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (min-width: 768px) {
    .history-media-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.history-media-image {
    background: #0a0a0a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.history-media-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.history-media-text h4 {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
}

.history-media-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

.history-closing {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* ============================================================
   11. Contact Section
   ============================================================ */
.contact-section {
    padding: 5rem 0;
    background: var(--surface-primary);
    transition: background 0.3s;
}

.contact-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contact-layout {
        flex-direction: row;
        gap: 4rem;
    }

    .contact-info {
        flex: 0 0 340px;
    }

    .contact-form {
        flex: 1;
    }
}

.contact-info-card {
    background: var(--surface-secondary);
    padding: 2rem;
    border-top: 4px solid var(--honda-red);
    box-shadow: var(--shadow-card);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.contact-info-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.contact-detail i {
    color: var(--honda-red);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.contact-detail p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-detail .bold {
    font-weight: 600;
    color: var(--text-primary);
}

.schedule-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark .schedule-section {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.schedule-section h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0;
}

.schedule-row.highlight {
    color: var(--honda-red);
    font-weight: 600;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    background: var(--surface-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-bottom-color: var(--honda-red);
    background: var(--surface-primary);
    box-shadow: 0 4px 12px rgba(228, 0, 43, 0.08);
}

html.dark .form-input,
html.dark .form-select,
html.dark .form-textarea {
    background: #2a2a2a;
    border-bottom-color: #444;
}

html.dark .form-input:focus,
html.dark .form-select:focus,
html.dark .form-textarea:focus {
    background: #333;
    border-bottom-color: var(--honda-red);
}

.form-textarea {
    resize: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* ============================================================
   12. Register Section
   ============================================================ */
.register-section {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-image: radial-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    background-color: var(--surface-secondary);
    transition: background-color 0.3s;
}

html.dark .register-section {
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.register-card {
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    background: var(--surface-primary);
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--honda-red);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

html.dark .register-card {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.register-card h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.register-card .subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.register-footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

.register-footer a {
    color: var(--honda-red);
    font-weight: 700;
    transition: opacity var(--transition-fast);
}

.register-footer a:hover {
    opacity: 0.8;
}

/* ============================================================
   13. Chatbot
   ============================================================ */
.chatbot-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chatbot-window {
    display: none;
    flex-direction: column;
    width: 340px;
    max-height: 480px;
    background: var(--surface-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    overflow: hidden;
    animation: chatSlideIn 0.3s var(--transition-smooth);
}

html.dark .chatbot-window {
    border-color: rgba(255, 255, 255, 0.08);
}

.chatbot-window.open {
    display: flex;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background: var(--honda-red);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chatbot-header-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--surface-secondary);
    min-height: 280px;
}

.chat-msg {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 85%;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.chat-msg.bot {
    background: var(--surface-primary);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    align-self: flex-start;
    border-top-left-radius: 0;
}

html.dark .chat-msg.bot {
    border-color: rgba(255, 255, 255, 0.06);
}

.chat-msg.user {
    background: var(--honda-red);
    color: #fff;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.chat-typing {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    align-self: flex-start;
}

.chatbot-input-area {
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
    background: var(--surface-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

html.dark .chatbot-input-area {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.chatbot-input {
    flex: 1;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    background: var(--surface-secondary);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.chatbot-input:focus {
    border-color: var(--honda-red);
}

html.dark .chatbot-input {
    background: #2a2a2a;
    border-color: #444;
}

.chatbot-send {
    width: 40px;
    height: 40px;
    background: var(--honda-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.chatbot-send:hover {
    background: var(--honda-darkred);
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: var(--honda-black);
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-smooth);
}

.chatbot-toggle:hover {
    background: var(--honda-red);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   14. Footer
   ============================================================ */
.site-footer {
    background: var(--honda-black);
    color: #fff;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--honda-red);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: none;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    line-height: 1.6;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.25rem;
}

.footer-socials a {
    color: rgba(255, 255, 255, 0.35);
    font-size: 1.2rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-col a:hover {
    color: var(--honda-red);
    padding-left: 0.25rem;
}

.footer-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 1rem;
}

.footer-qr canvas {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
}

.qr-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom .tagline {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   15. Scroll Reveal Animations
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ============================================================
   16. Custom Scrollbar
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--honda-black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--honda-red);
}

/* ============================================================
   17. Utility Classes
   ============================================================ */
.text-center {
    text-align: center;
}

.text-red {
    color: var(--honda-red);
}

.text-green {
    color: #16a34a;
}

.text-muted {
    color: var(--text-muted);
}

.mt-0 {
    margin-top: 0;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.pt-20 {
    padding-top: 72px;
}

.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;
}

/* ============================================================
   18. Dark Mode Overrides (catch-all)
   ============================================================ */
html.dark .philosophy-section {
    background: var(--surface-primary);
}

html.dark .philosophy-icon {
    background: #2a2a2a;
}

html.dark .history-card {
    background: var(--surface-primary);
}

html.dark .history-callout {
    background: #222;
}

html.dark .contact-info-card {
    background: #1e1e1e;
}

html.dark .register-card {
    background: var(--surface-primary);
}

/* ============================================================
   19. Model Detail / Gallery Page
   ============================================================ */
.detail-hero {
    position: relative;
    height: 50vh;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    background: var(--honda-black);
    overflow: hidden;
}

.detail-hero img.detail-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 1;
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 0;
}

.detail-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
}

.detail-hero-content .detail-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.gallery-section {
    padding: 4rem 0;
    background: var(--surface-secondary);
    transition: background 0.3s;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

.specs-section {
    padding: 4rem 0;
    background: var(--surface-primary);
    transition: background 0.3s;
}

.specs-table {
    max-width: 700px;
    width: 100%;
}

.specs-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html.dark .specs-row {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.specs-row:last-child {
    border-bottom: none;
}

.specs-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.specs-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--honda-red);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.25s ease;
}

.lightbox.open {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--honda-red);
}

/* ============================================================
   20. Mobile Responsive — General (max-width: 767px)
   ============================================================ */
@media (max-width: 767px) {

    /* ── iOS safe areas ── */
    body {
        -webkit-text-size-adjust: 100%;
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* ── Container ── */
    .container {
        padding: 0 1rem;
    }

    /* ── Navbar ── */
    .nav-links,
    .nav-actions {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex !important;
    }

    .navbar-inner {
        padding: 0.75rem 0;
    }

    .logo-link img {
        height: 28px;
    }

    /* ── Mobile Menu full screen ── */
    .mobile-menu {
        position: fixed;
        inset: 0;
        top: 60px;
        background: var(--surface-primary);
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0;
        z-index: 100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu a {
        padding: 1rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    html.dark .mobile-menu a {
        border-bottom-color: rgba(255, 255, 255, 0.06);
    }

    /* ── Hero ── */
    .hero {
        min-height: 65vh;
    }

    .hero-title {
        font-size: 2.2rem !important;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-badge {
        font-size: 0.6rem;
        margin-bottom: 1rem;
        padding: 0.3rem 0.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 0.8rem;
        min-height: 48px;
    }

    /* ── Philosophy ── */
    .philosophy-section {
        padding: 3rem 0;
    }

    .philosophy-grid {
        gap: 2rem;
        margin-top: 2rem;
    }

    .philosophy-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }

    /* ── Section Labels ── */
    .section-label {
        font-size: 0.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    /* ── Car Cards ── */
    .models-section {
        padding: 3rem 0;
    }

    .models-grid {
        gap: 1.25rem;
    }

    .car-image {
        height: 200px;
    }

    .car-body {
        padding: 1.25rem;
    }

    .car-body h3 {
        font-size: 1rem;
    }

    .car-specs {
        gap: 0.75rem;
    }

    /* ── Contact ── */
    .contact-section {
        padding: 3rem 0;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 1rem;
        font-size: 16px;
    }

    /* ── Register ── */
    .register-card {
        padding: 2rem 1.5rem;
    }

    .register-card h2 {
        font-size: 1.3rem;
    }

    /* ── History ── */
    .history-card {
        padding: 2rem 1.25rem;
    }

    .history-card .intro-text {
        font-size: 0.95rem;
    }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .footer-brand img {
        height: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* ── Chatbot ── */
    .chatbot-container {
        bottom: 1rem;
        right: 1rem;
    }

    .chatbot-window {
        width: calc(100vw - 2rem) !important;
        max-width: none;
        right: 0;
        bottom: 60px;
        max-height: 60vh;
    }

    .chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    /* ── Detail Hero ── */
    .detail-hero {
        height: 40vh;
        min-height: 260px;
    }

    .detail-hero-content h1 {
        font-size: 1.8rem !important;
    }

    .detail-hero-content .detail-subtitle {
        font-size: 0.85rem;
    }

    /* ── Gallery ── */
    .gallery-section {
        padding: 2.5rem 0;
    }

    .gallery-grid {
        gap: 0.75rem;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    .gallery-item .gallery-caption {
        opacity: 1;
        transform: translateY(0);
    }

    /* ── Specs ── */
    .specs-section {
        padding: 2.5rem 0;
    }

    .specs-row {
        padding: 0.75rem 0;
        flex-wrap: wrap;
    }

    .specs-label {
        font-size: 0.7rem;
    }

    .specs-value {
        font-size: 0.9rem;
    }

    /* ── Back link ── */
    .back-link {
        margin-bottom: 1.5rem;
    }

    /* ── Buttons touch targets (min 48px for iOS) ── */
    .btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .btn-filter {
        min-height: 40px;
    }

    /* ── Lightbox ── */
    .lightbox img {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 0;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    /* ── Filter buttons scroll ── */
    .filter-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
    }

    .models-header {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ============================================================
   21. iPhone SE & Small (max-width: 375px)
   ============================================================ */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem !important;
    }

    .hero-description {
        font-size: 0.82rem;
    }

    .car-image {
        height: 180px;
    }

    .car-body {
        padding: 1rem;
    }

    .car-body h3 {
        font-size: 0.9rem;
    }

    .car-spec-label {
        font-size: 0.6rem;
    }

    .car-spec-value {
        font-size: 0.8rem;
    }

    .register-card {
        padding: 1.5rem 1.25rem;
    }

    .detail-hero {
        height: 35vh;
        min-height: 220px;
    }

    .detail-hero-content h1 {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* ============================================================
   22. iPhone Safari Specific Fixes
   ============================================================ */
/* Prevent auto-zoom on inputs (iOS zooms if font < 16px) */
@media screen and (max-width: 767px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* iOS momentum scrolling */
.mobile-menu,
.chatbot-messages {
    -webkit-overflow-scrolling: touch;
}

/* Remove tap highlight on iOS */
a,
button {
    -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for all iOS */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Fix 100vh on iPhone (toolbar issue) */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    .detail-hero {
        min-height: 40vh;
    }
}

/* iPhone notch safe areas */
@supports (padding: env(safe-area-inset-left)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .site-footer {
        padding-bottom: env(safe-area-inset-bottom);
    }

    .chatbot-container {
        bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}

/* ============================================================
   23. Contact Form Feedback
   ============================================================ */
.form-feedback {
    text-align: center;
    padding: 3rem 2rem;
    animation: feedbackFadeIn 0.5s ease-out;
}

.form-feedback h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-feedback p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.feedback-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    animation: feedbackPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-icon.success {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.feedback-icon.error {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

@keyframes feedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes feedbackPop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Submit button loading state */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}