/* PropertyFlow Custom Stylesheet — Inspired by nory.ai design system */

/* Root Variables — Premium Warm Palette */
:root {
    --color-black: #000;
    --color-charcoal: #141A23;
    --color-teal: #52c8b0;
    --color-teal-light: #52c8b0;
    --color-orange: #E65A38;
    --color-yellow: #eea946;
    --color-white: #ffffff;
    --color-cream: #faf8f5;
    --color-cream-dark: #f3f0eb;
    --color-warm-border: #e8e4dd;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-body: #44403c;
    /* Fluid spacing (nory.ai pattern) */
    --space-section: clamp(4rem, 8vw, 7rem);
    --space-block: clamp(2rem, 4vw, 4rem);
    --space-element: clamp(1rem, 2vw, 1.5rem);
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-charcoal);
    background-color: var(--color-cream);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
}

h1 {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
}

h2 {
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h4 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.015em;
}

h5 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

p {
    color: var(--color-body);
    font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
    line-height: 1.65;
    max-width: 65ch;
}

/* Centered paragraphs need auto margins for max-width */
.text-center p,
p.text-center,
[class*="text-center"] > p {
    margin-left: auto;
    margin-right: auto;
}

/* Allow text to inherit color on dark backgrounds and in footer */
.text-white p,
.text-white span,
.text-gray-300 p,
.text-gray-300 span,
.text-gray-400 p,
[class*="text-white"] p,
[class*="text-white"] span {
    color: inherit !important;
}

/* Links */
a {
    transition: color 0.2s ease, background-color 0.2s ease;
}

a:not([class*="bg-"]):not(.btn-primary):not(.btn-white):not(.btn-outline):not([style*="background-color"]):hover {
    color: var(--color-orange);
}

/* Preserve white text on hover for buttons with white text */
a[class*="text-white"]:hover {
    color: #ffffff !important;
}

/* Navigation */
nav {
    background-color: var(--color-cream) !important;
    box-shadow: 0 1px 2px rgba(20, 26, 35, 0.03), 0 4px 12px rgba(20, 26, 35, 0.04);
}

/* Premium warm overrides — only page/section level elements get cream */
body.bg-white,
section.bg-white {
    background-color: var(--color-cream) !important;
}
section.bg-gray-50 {
    background-color: var(--color-cream-dark) !important;
}
.border-gray-100 { border-color: var(--color-warm-border) !important; }
.border-gray-200 { border-color: var(--color-warm-border) !important; }

nav a {
    color: var(--color-charcoal);
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    color: var(--color-orange);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-charcoal);
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-orange);
}

/* Buttons */
.btn-primary,
.btn-outline,
.btn-white {
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.625rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, #E65A38 0%, #D04E32 100%);
    color: var(--color-white);
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(230, 90, 56, 0.18);
    padding: 1rem 2rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #D04E32 0%, #B8432A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 90, 56, 0.25);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(230, 90, 56, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-gray-200);
}

.btn-outline:hover {
    background-color: var(--color-charcoal);
    color: var(--color-white);
    border-color: var(--color-charcoal);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-charcoal);
}

.btn-white:hover {
    background-color: var(--color-gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 26, 35, 0.08);
}

/* Cards */
.card-featured {
    border: 2px solid var(--color-orange);
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    background: var(--color-white);
    box-shadow: 0 1px 2px rgba(20, 26, 35, 0.04), 0 8px 24px rgba(230, 90, 56, 0.08);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(20, 26, 35, 0.04), 0 16px 40px rgba(230, 90, 56, 0.12);
}

.card-featured::before {
    content: 'FEATURED';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--color-orange);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Sections */
section {
    position: relative;
    overflow-x: hidden;
}

section > div {
    position: relative;
}

/* Smooth nav dropdown (nory.ai grid-rows transition) */
nav .group > div:last-child {
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(4px);
}

nav .group:hover > div:last-child,
nav .group:focus-within > div:last-child {
    transform: translateY(0);
}

/* Keyboard accessibility — show dropdown on focus-within */
nav .group:focus-within > div:last-child {
    display: block !important;
}

/* Hero Accent */
.hero-accent {
    background: linear-gradient(135deg, var(--color-yellow) 0%, var(--color-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* Text Colors */
.text-charcoal {
    color: var(--color-charcoal);
}

.text-teal {
    color: var(--color-teal);
}

.text-orange {
    color: var(--color-orange);
}

.text-yellow {
    color: var(--color-yellow);
}

/* Background Colors */
.bg-charcoal {
    background-color: var(--color-charcoal);
}

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

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

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

/* Accent Inline */
.accent {
    color: var(--color-orange);
}

/* Stats Bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray-200);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-feature-settings: 'tnum';
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-body);
}

/* Overline */
.overline {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.feature-list li span:first-child {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Details/summary FAQ — smooth open/close */
details summary {
    list-style: none;
}
details summary::-webkit-details-marker {
    display: none;
}
details[open] p {
    animation: faq-reveal 0.3s ease;
}
@keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    flex-direction: column;
    z-index: 40;
    box-shadow: 0 4px 16px rgba(20, 26, 35, 0.08);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-charcoal);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.mobile-nav a:hover {
    background-color: var(--color-gray-50);
    color: var(--color-orange);
}

/* Spots Counter */
.spots {
    font-weight: 700;
    color: var(--color-orange);
    font-size: 1.25rem;
    display: inline;
    font-feature-settings: 'tnum';
}

/* Grid Layouts */
.grid {
    display: grid;
}

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

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

@media (max-width: 768px) {
    /* Typography now uses clamp() — no breakpoint overrides needed */

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

    .hidden-mobile {
        display: none !important;
    }

    /* Prevent any element from exceeding viewport width */
    img, svg, video, canvas, iframe {
        max-width: 100%;
    }
}

/* Form success animation */
@keyframes successFadeIn {
    0% { opacity: 0; transform: scale(0.9) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes checkDraw {
    0% { stroke-dashoffset: 48; }
    100% { stroke-dashoffset: 0; }
}

.form-success {
    animation: successFadeIn 0.5s ease-out forwards;
    text-align: center;
    padding: 3rem 1.5rem;
}

.form-success .success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #52c8b0 0%, #3ba896 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-success .success-icon svg {
    stroke-dasharray: 48;
    animation: checkDraw 0.6s ease-out 0.3s forwards;
    stroke-dashoffset: 48;
}

.form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
}

.form-success p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Nav utility links */
.nav-util {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: color 0.2s ease;
}

.nav-util:hover {
    color: var(--color-orange);
}

/* Footer grid — wider logo column */
.footer-grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2.5fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-bottom-bar {
    align-items: flex-start;
}
@media (min-width: 768px) {
    .footer-bottom-bar {
        align-items: center;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    body {
        font-size: 0.9375rem;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-white {
        width: 100%;
        text-align: center;
    }
}

/* Utility Classes */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.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; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.shadow-lg {
    box-shadow: 0 1px 2px rgba(20, 26, 35, 0.04), 0 4px 16px rgba(20, 26, 35, 0.06);
}

/* Grid order utilities — not in compiled Tailwind */
.order-first { order: -1; }
.order-last { order: 9999; }

@media (min-width: 768px) {
    .md\:order-first { order: -1; }
    .md\:order-last { order: 9999; }
    .md\:order-none { order: 0; }
}

/* Grid column utilities — not in compiled Tailwind */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Logo grid items */
.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-box {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.75rem;
    background: white;
    border: 1px solid rgba(20, 26, 35, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.logo-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 26, 35, 0.08);
}

/* Insurance cards equal height */
.insurance-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Large breakpoint nav classes (1024px) — not in compiled Tailwind */
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:block { display: block; }
}

/* Print Styles */
@media print {
    nav,
    .mobile-nav,
    .btn-primary,
    .btn-outline {
        display: none !important;
    }
}

/* Focus States for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(230, 90, 56, 0.25);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Smooth Transitions */
button,
a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fix footer text contrast — prevent global p color from overriding Tailwind classes */
footer p {
    color: inherit;
}

/* CTA Orange Button */
.btn-cta-orange {
    background: linear-gradient(135deg, #E65A38 0%, #D04E32 100%);
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(230, 90, 56, 0.18);
}

.btn-cta-orange:hover {
    background: linear-gradient(135deg, #D04E32 0%, #B8432A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 90, 56, 0.25);
    color: #ffffff !important;
}

.btn-cta-orange:active {
    transform: translateY(0);
}

/* Teal Outline Button */
.btn-teal-outline {
    border: 2px solid var(--color-teal);
    color: var(--color-teal);
    background-color: transparent;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-teal-outline:hover {
    background-color: var(--color-teal);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(82, 200, 176, 0.2);
}

.btn-teal-outline:active {
    transform: translateY(0);
}

/* Card Hover Effect — nory.ai-inspired smooth lift */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(20, 26, 35, 0.08), 0 4px 8px rgba(20, 26, 35, 0.04);
}

/* Stat card with left accent border (nory.ai pattern) */
.stat-accent {
    border-left: 3px solid var(--color-orange);
    text-align: left;
    padding: 1.25rem 1.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.stat-accent .stat-value {
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-accent .stat-label {
    font-size: 0.8125rem;
    color: var(--color-body);
    font-weight: 500;
}

.stat-accent .stat-value {
    font-feature-settings: 'tnum';
}

/* Typing Container — reserve space for wrapping phrases */
.typing-container {
    min-height: 2.6em;
}
@media (min-width: 768px) {
    .typing-container {
        min-height: 1.5em;
    }
}
@media (min-width: 1024px) {
    .typing-container {
        min-height: 1.3em;
    }
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 4px;
    height: 1.1em;
    background: var(--color-orange);
    margin-left: 4px;
    vertical-align: text-bottom;
    border-radius: 2px;
    animation: blink 0.8s step-end infinite;
    box-shadow: 0 0 8px rgba(230, 90, 56, 0.4);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Hero Accent Animated — gradient shimmer */
.hero-accent-animated {
    background: linear-gradient(
        90deg,
        var(--color-yellow) 0%,
        var(--color-orange) 40%,
        var(--color-yellow) 60%,
        var(--color-orange) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

/* Video Hero Background */
.hero-video-section {
    background-color: #0a0e14;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* .hero-overlay now unified with .hero-media-overlay below */

/* Override cream background for video hero */
.hero-video-section.bg-white,
section.hero-video-section {
    background-color: #0a0e14 !important;
}

/* Stats hover on dark background */
.hero-video-section .stat-item-enhanced:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hero-video-section .stat-item-enhanced::after {
    background: #eea946;
}

/* Hero content entrance animations */
.hero-content {
    position: relative;
    z-index: 1;
}

.hero-entrance {
    opacity: 0;
    transform: translateY(30px);
    animation: hero-slide-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-entrance-1 { animation-delay: 0.1s; }
.hero-entrance-2 { animation-delay: 0.3s; }
.hero-entrance-3 { animation-delay: 0.5s; }
.hero-entrance-4 { animation-delay: 0.7s; }
.hero-entrance-5 { animation-delay: 0.9s; }

@keyframes hero-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats bar enhancements */
.stat-item-enhanced {
    position: relative;
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.stat-item-enhanced:hover {
    background: rgba(230, 90, 56, 0.04);
    transform: translateY(-2px);
}

.stat-item-enhanced::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40px;
    height: 3px;
    background: var(--color-orange);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.stat-item-enhanced:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce-gentle 2s ease-in-out infinite;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

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

/* Ensure btn-primary hover always shows white text */
.btn-primary:hover {
    color: #ffffff !important;
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-aos] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
    .typing-cursor {
        animation: none;
    }
    .card-hover:hover {
        transform: none;
    }
    .btn-primary:hover,
    .btn-cta-orange:hover,
    .btn-teal-outline:hover,
    .btn-outline:hover,
    .btn-white:hover {
        transform: none;
    }
    .hero-entrance {
        opacity: 1;
        transform: none;
        animation: none;
    }
    .hero-accent-animated {
        animation: none;
    }
    .scroll-indicator {
        animation: none;
    }
    .stat-item-enhanced:hover {
        transform: none;
    }
    .stat-accent:hover {
        transform: none;
    }
    details[open] p {
        animation: none;
    }
    .form-success {
        animation: none;
        opacity: 1;
    }
    .form-success .success-icon svg {
        animation: none;
        stroke-dashoffset: 0;
    }
    .logo-box:hover {
        transform: none;
    }
    .feature-icon:hover {
        transform: none;
    }
    .link-reveal::after {
        transition: none;
    }
    .marquee-item:hover {
        transform: none;
    }
}

/* Smooth section dividers */
section + section {
    border-top: none;
}

/* Overline label — nory.ai pattern */
.section-label {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: var(--color-orange);
    border-radius: 1px;
    flex-shrink: 0;
}

/* Feature icon containers — nory.ai rounded style */
.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-icon:hover {
    transform: scale(1.08);
}

/* Better link hover — nory.ai underline reveal */
.link-reveal {
    position: relative;
    text-decoration: none;
}

.link-reveal::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-reveal:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== OTA Marquee (nory.ai-style scrolling logo bar) ===== */
.marquee {
    position: relative;
    overflow: hidden;
    padding: 1rem 0;
}

.marquee::before,
.marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--color-cream-dark), transparent);
}

.marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--color-cream-dark), transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee-scroll 25s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem;
    background: white;
    border: 1px solid rgba(20, 26, 35, 0.06);
    border-radius: 0.75rem;
    min-width: 160px;
    height: 80px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.marquee-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(20, 26, 35, 0.08);
}

.marquee-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.marquee-item svg {
    height: 40px;
    width: auto;
}

.marquee-item .brand-wordmark {
    font-weight: 700;
    font-size: 1.375rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* HubSpot Form Overrides — match premium orange CTA */
.hs-button,
.hs-submit input[type="submit"],
#hubspot-form-container .hs-button {
    background: linear-gradient(135deg, #E65A38 0%, #D04E32 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    padding: 1rem 2rem !important;
    border-radius: 0.625rem !important;
    cursor: pointer !important;
    width: 100% !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(230, 90, 56, 0.18) !important;
    text-shadow: none !important;
}

.hs-button:hover,
.hs-submit input[type="submit"]:hover,
#hubspot-form-container .hs-button:hover {
    background: linear-gradient(135deg, #D04E32 0%, #B8432A 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(230, 90, 56, 0.25) !important;
}

/* HubSpot form input styling */
#hubspot-form-container .hs-input {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

#hubspot-form-container .hs-input:focus {
    border-color: #E65A38 !important;
    box-shadow: 0 0 0 3px rgba(230, 90, 56, 0.15) !important;
    outline: none !important;
}

#hubspot-form-container label {
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
}

#hubspot-form-container .hs-form-field {
    margin-bottom: 1.25rem !important;
}

#hubspot-form-container .hs-error-msgs label {
    color: #dc2626 !important;
    font-weight: 400 !important;
    font-size: 0.8125rem !important;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
}

/* ===== Property Showcase Grid ===== */
.property-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    border-radius: 1rem;
    overflow: hidden;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    aspect-ratio: 3/2;
}

.showcase-item.showcase-large {
    grid-row: span 2;
    aspect-ratio: auto;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-item:hover img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(20, 26, 35, 0.6), transparent);
    pointer-events: none;
}

.showcase-tag {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .property-showcase-grid {
        grid-template-columns: 1fr;
    }
    .showcase-item.showcase-large {
        grid-row: span 1;
        aspect-ratio: 16/9;
    }
}

/* ===== Testimonial Cards ===== */
.testimonial-card {
    border: 1px solid var(--color-warm-border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(20, 26, 35, 0.08);
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

/* ===== Process Timeline ===== */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.process-number {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #E65A38, #D04E32);
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(230, 90, 56, 0.2);
}

.process-connector {
    position: absolute;
    top: 1.75rem;
    left: calc(50% + 2rem);
    width: calc(100% - 2rem);
    height: 2px;
    background: var(--color-warm-border);
}

.process-step:last-child .process-connector {
    display: none;
}

@media (max-width: 768px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .process-connector {
        display: none;
    }
}

/* ===== Trust Badges ===== */
.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--color-warm-border);
    border-radius: 0.75rem;
    background: var(--color-white);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 26, 35, 0.06);
}

.trust-badge svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video {
        display: none;
    }
    .hero-video-section {
        background-image: url('/images/showcase/edinburgh-skyline.jpg');
        background-size: cover;
        background-position: center;
    }
    .showcase-item:hover img {
        transform: none;
    }
    .testimonial-card:hover {
        transform: none;
    }
    .trust-badge:hover {
        transform: none;
    }
}

/* Mobile: use poster image fallback if video struggles */
@media (max-width: 768px) {
    .hero-video-section {
        padding-top: 8.5rem;
    }
    .hero-video {
        /* Let the browser handle it — poster shows if autoplay fails */
    }
    /* hero-overlay now unified — same brightness on mobile */
}

/* ── Visual Enhancement System ── */

/* Blog card thumbnail images */
.blog-card-thumb {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    display: block;
}

/* ── Hero Sections with Video or Photo Backgrounds ── */

.hero-bg-section {
    position: relative;
    overflow: hidden;
}

/* Photo background with Ken Burns slow-zoom animation */
.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: heroKenBurns 25s ease-in-out infinite alternate;
    will-change: transform;
    transform-origin: center center;
}

@keyframes heroKenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.hero-bg-image.hero-bg-dark {
    opacity: 0.35;
}

.hero-bg-image.hero-bg-light {
    opacity: 0.15;
}

/* Video background inside hero (reusable pattern from homepage) */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Shift video frame up for edinburgh-aerial */
.hero-video-bg.frame-up {
    object-position: center 30%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
}

/* Dark overlay for video/photo heroes */
/* Single standard overlay — brighter, lets more video through */
.hero-media-overlay,
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(10, 14, 20, 0.40) 0%,
        rgba(10, 14, 20, 0.50) 50%,
        rgba(10, 14, 20, 0.70) 100%
    );
}

/* Light overlay for cream-themed heroes */
.hero-media-overlay-light {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(250, 248, 245, 0.82);
}

.hero-bg-section > *:not(.hero-bg-image):not(.hero-video-bg):not(.hero-media-overlay):not(.hero-media-overlay-light) {
    position: relative;
    z-index: 2;
}

/* Text shadow for readability over video/photo backgrounds */
.hero-bg-section h1,
.hero-bg-section h2,
.hero-bg-section p,
.hero-bg-section span,
.hero-bg-section a:not(.bg-\[\#E65A38\]):not(.btn-primary) {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Page section graphics */
.section-graphic {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow:
        0 4px 6px rgba(20, 26, 35, 0.04),
        0 10px 20px rgba(20, 26, 35, 0.06);
}

/* Differentiator icon circles */
.diff-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.diff-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Leaflet map area labels */
.area-label {
    background: rgba(20, 26, 35, 0.85) !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    white-space: nowrap !important;
}

.area-label::before {
    display: none !important;
}

@media (max-width: 768px) {
    .blog-card-thumb {
        height: 10rem;
    }
    /* Disable Ken Burns on mobile for performance */
    .hero-bg-image {
        animation: none;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    /* ── Video Hero Mobile Optimisations ── */

    /* Reduce hero height on mobile — 60vh pages become 50vh, 100vh homepage becomes 70vh */
    .hero-bg-section {
        min-height: 50vh !important;
    }

    .hero-section.hero-video-section {
        min-height: 70vh !important;
    }

    /* Ensure video covers properly on mobile (override centering transform) */
    .hero-video-bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        will-change: auto !important; /* Disable GSAP parallax — can cause jank on mobile */
    }

    .hero-video-bg.frame-up {
        object-position: center 30%;
    }

    /* Hero text sizing on mobile */
    .hero-bg-section h1 {
        font-size: clamp(1.75rem, 5vw, 3rem) !important;
    }

    .hero-bg-section p {
        font-size: clamp(0.875rem, 3vw, 1.125rem) !important;
    }

    /* Homepage hero video — same treatment */
    .hero-video {
        will-change: auto !important;
    }

    /* ── Leaflet Map Mobile Optimisations ── */

    /* Reduce map height on mobile (inline 420px is too tall) */
    #yield-map,
    #investor-map {
        height: 300px !important;
    }

    /* ── Navigation dropdown safety ── */

    /* Prevent nav dropdowns from causing overflow on mobile */
    nav .group > div:last-child {
        min-width: auto !important;
        max-width: 90vw;
    }

    /* ── Table cell minimum widths ── */

    /* Prevent table cells from getting too cramped */
    table th,
    table td {
        min-width: 5rem;
        font-size: 0.8125rem;
    }

    /* ── Marquee items narrower on mobile ── */
    .marquee-item {
        min-width: 120px;
        padding: 1rem 1.25rem;
        height: 64px;
    }

    .marquee-item img {
        height: 28px;
    }

    .marquee-item .brand-wordmark {
        font-size: 1.125rem;
    }

    /* ── Stats bar stacking ── */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    /* ── Property showcase images shorter ── */
    .showcase-item {
        aspect-ratio: 16/9;
    }

    /* ── Touch-friendly tap targets ── */
    #mobile-nav a,
    .mobile-nav a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    /* Mobile menu toggle button — ensure tap target is 48×48 */
    #mobile-menu-toggle {
        min-width: 48px;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* ── Button overflow safety ── */
    .btn-primary,
    .btn-outline,
    .btn-white,
    .btn-cta-orange,
    .btn-teal-outline {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    /* ── Nav dropdown — hidden on mobile (touch devices can't hover) ── */
    nav .group > div:last-child {
        position: static;
        box-shadow: none;
    }

    /* ── Yield calculator panel text ── */
    #yield-panel,
    #investor-panel {
        font-size: 0.9375rem;
    }

    #yield-panel .text-2xl,
    #investor-panel .text-2xl {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    /* Extra-small screens: single column stats */
    .stats-bar {
        grid-template-columns: 1fr;
    }

    /* Hero even shorter on very small phones */
    .hero-bg-section {
        min-height: 45vh !important;
    }

    .hero-section.hero-video-section {
        min-height: 60vh !important;
    }

    /* Yield calculator: stack 2-col stat grids to 1-col on tiny screens */
    #yield-data .grid-cols-2,
    #investor-data .grid-cols-2 {
        grid-template-columns: 1fr;
    }

    /* Trust badges: single column on tiny screens (already handled, reinforcing) */
    .trust-badges-grid {
        grid-template-columns: 1fr;
    }

    /* Reduce padding on sections for extra breathing room */
    section.px-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Blog card thumb even shorter */
    .blog-card-thumb {
        height: 8rem;
    }

    /* Reduce marquee edge fade on tiny screens */
    .marquee::before,
    .marquee::after {
        width: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg-image {
        animation: none;
        inset: 0;
        width: 100%;
        height: 100%;
    }
}
