/* Stay Local – Improved Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #0f4c3a;
    --primary-dark: #0a3c2e;
    --primary-light: #1a6b52;
    --accent: #e8f5f0;
    --warm: #f8f1e9;
    --warm-dark: #ede4d8;
}

/* ─── Base ─────────────────────────────────────────── */

body {
    font-family: 'Inter Tight', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ─── Typography ────────────────────────────────────── */

.heading-serif {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
}

.section-header {
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ─── Anchor scroll offset (clears sticky nav) ──────── */

#how,
#demo,
#pricing,
#mockup {
    scroll-margin-top: 20px;
}

/* ─── Nav ───────────────────────────────────────────── */

.nav-active {
    color: var(--primary);
    font-weight: 600;
}

.nav-scrolled {
    box-shadow: 0 1px 0 0 rgba(0,0,0,0.06), 0 4px 16px -4px rgba(0,0,0,0.08);
}

/* ─── Hero savings ticker ────────────────────────────── */

.savings-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 9999px;
}

/* ─── Commission calculator ─────────────────────────── */

.calc-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 99px;
    outline: none;
    cursor: pointer;
    display: block;
    margin: 0;
    border: none;
}

.calc-slider::-webkit-slider-runnable-track {
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 99px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    margin-top: -8.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.calc-slider::-moz-range-track {
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 99px;
    border: none;
}

.calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
}

.calc-slider:focus {
    outline: none;
}

.calc-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.25);
}

.calc-saving {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #6ee7b7;
    line-height: 1;
    transition: all 0.3s ease;
}

/* ─── Trust bar ─────────────────────────────────────── */

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
}

.trust-item i {
    color: var(--primary);
    font-size: 0.875rem;
}

.trust-divider {
    width: 1px;
    height: 20px;
    background: #e5e7eb;
}

/* ─── Problem cards ─────────────────────────────────── */

.problem-card {
    background: #fff;
    border: 1px solid #f0ede8;
    padding: 2rem;
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #fee2e2;
    border-radius: 1.5rem 1.5rem 0 0;
}

.problem-card:hover {
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* ─── Solution / Feature list ─────────────────────────── */

.feature-check {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-check-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.feature-check-icon i {
    color: var(--primary);
    font-size: 0.75rem;
}

/* ─── Benefit cards ─────────────────────────────────── */

.benefit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 1.5rem;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -8px rgba(15, 76, 58, 0.12);
}

/* ─── Property demo ──────────────────────────────────── */

.property-demo {
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.22), 0 0 0 1px rgba(0,0,0,0.04);
    border: 10px solid var(--warm);
    border-radius: 20px;
    overflow: hidden;
    max-width: 1100px;
    margin: 0 auto;
}

.demo-hero {
    background-size: cover;
    background-position: center;
    height: 420px;
    position: relative;
}

.mini-nav {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ─── Demo tabs ─────────────────────────────────────── */

.demo-tab {
    transition: all 0.2s ease;
    border-radius: 0;
    position: relative;
}

.demo-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s ease;
}

.demo-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.demo-tab.active::after {
    background: var(--primary);
}

/* ─── Gallery ───────────────────────────────────────── */

.gallery-img {
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* ─── How it works steps ─────────────────────────────── */

.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 1px;
    background: repeating-linear-gradient(
        to right,
        #d1fae5 0px,
        #d1fae5 6px,
        transparent 6px,
        transparent 12px
    );
}

/* ─── Stats bar ─────────────────────────────────────── */

.stat-number {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
}

/* ─── CTA buttons ────────────────────────────────────── */

.cta-button {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(15, 76, 58, 0.28);
}

.cta-button-dark {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.25);
}

/* ─── Colours ────────────────────────────────────────── */

.uk-green { color: var(--primary); }
.soft-bg  { background-color: var(--warm); }

/* ─── Pricing card ───────────────────────────────────── */

.pricing-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* ─── Form inputs ────────────────────────────────────── */

.form-input {
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15,76,58,0.1);
    outline: none;
}

/* ─── Holiday shadow util ────────────────────────────── */

.holiday-shadow {
    box-shadow: 0 8px 24px -4px rgba(15, 76, 58, 0.1);
}

/* ─── Scroll animations ──────────────────────────────── */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Mobile menu ────────────────────────────────────── */

.mobile-menu-panel {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-menu-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
}

/* ─── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
    .section-header {
        font-size: 1.875rem;
    }

    .property-demo {
        border-width: 6px;
        border-radius: 14px;
    }

    .demo-hero {
        height: 260px;
    }
}

/* ─── Reduced motion ─────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .cta-button,
    .cta-button-dark,
    .benefit-card,
    .problem-card,
    .gallery-img {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }
}
