/*
Theme Name: Off-Market Cash Buyer
Theme URI: https://www.example.com
Description: Professional landing page theme for Edmonton off-market cash home buyers.
Version: 1.0.1
Author: [Brand Name]
Text Domain: off-market
*/

/* ============================================
   Off-Market Cash Buyer - Design System
   Professional, Trust-First Aesthetic
   ============================================ */

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #1a2e35;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   CSS Custom Properties - Slate Blue Palette
   ============================================ */
:root {
    /* Primary - Professional Slate Blue */
    --color-primary-start: #3d5a80;
    --color-primary-end: #2c4a6a;
    --color-primary: #3d5a80;
    --color-primary-light: #5a7a9a;
    --color-primary-dark: #2c4a6a;

    /* Accent - Muted Sage */
    --color-accent: #98c1a4;
    --color-accent-light: #b5d4be;

    /* Neutrals */
    --color-text: #1a2e35;
    --color-text-light: #5a7a85;
    --color-text-muted: #8aa5ae;

    /* Backgrounds */
    --color-bg-cream: #f8f9fa;
    --color-bg-warm: #f0f2f4;
    --color-bg-blue-light: #e8f0f4;
    --color-bg-gradient: linear-gradient(135deg, #e8f0f4 0%, #f0f2f4 100%);

    /* Hero Gradient */
    --hero-gradient: linear-gradient(180deg,
        rgba(44, 74, 106, 0.95) 0%,
        rgba(61, 90, 128, 0.9) 50%,
        rgba(90, 122, 154, 0.85) 100%);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 100px;

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(26, 46, 53, 0.08);
    --shadow-medium: 0 8px 40px rgba(26, 46, 53, 0.12);
    --shadow-glow: 0 8px 32px rgba(61, 90, 128, 0.25);

    /* Layout */
    --header-height: 72px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Navigation
   ============================================ */
.site-navigation {
    margin-left: 2rem;
}

.header-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.header-menu a {
    text-decoration: none;
    color: black;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.header-menu a:hover {
    color: black;
}

.header-menu .current-menu-item > a,
.header-menu .current_page_item > a {
    color: var(--color-text);
    font-weight: 600;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.section h2 {
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-light);
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

.section {
    padding: var(--space-xl) 0;
    position: relative;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-xl) 0;
    }
}

/* ============================================
   Skip Link
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    z-index: 1000;
    text-decoration: none;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-sm);
}

/* ============================================
   Header - Floating Glass Effect
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    transition: all var(--transition-smooth);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    transition: color var(--transition-fast);
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.9;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    padding: 0.6rem 1rem;
    background: var(--color-bg-blue-light);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.header-phone:hover {
    background: var(--color-primary);
    color: white;
}

.header-phone svg {
    width: 18px;
    height: 18px;
}

.header-phone span {
    display: none;
}

@media (min-width: 768px) {
    .header-phone span {
        display: inline;
    }
}

/* Header Phone Wrapper with Microcopy */
.header-phone-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.header-phone-microcopy {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    display: none;
}

@media (min-width: 768px) {
    .header-phone-microcopy {
        display: block;
    }
}

/* ============================================
   Hero - With Background Image
   ============================================ */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2c4a6a 0%, #3d5a80 50%, #5a7a9a 100%);
}

/* Background image layer */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    filter: grayscale(30%);
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(152, 193, 164, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(90, 122, 154, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Subtle particle effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.3), transparent);
    background-size: 200px 200px;
    opacity: 0.5;
    animation: twinkle 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.3; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    color: white;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
}

.hero-subheadline {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ============================================
   Premium CTA Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #98c1a4 0%, #7aab88 100%);
    color: white;
    box-shadow: var(--shadow-glow), 0 4px 15px rgba(152, 193, 164, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #a8d1b4 0%, #8abb98 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: var(--radius-full);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), 0 8px 25px rgba(152, 193, 164, 0.5);
    color: white;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-primary:focus {
    outline: 3px solid rgba(152, 193, 164, 0.5);
    outline-offset: 3px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.2rem;
}

.cta-microcopy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-md);
}

.hero .cta-microcopy {
    text-align: center;
}

.section-cta .cta-microcopy {
    color: var(--color-text-muted);
}

@media (max-width: 767px) {
    .btn {
        width: 100%;
        padding: 1.1rem 2rem;
    }
}

/* ============================================
   Confidence Bar (NEW COMPONENT)
   ============================================ */
.confidence-bar {
    background: var(--color-bg-blue-light);
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(61, 90, 128, 0.1);
}

.confidence-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.confidence-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.confidence-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .confidence-items {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
}

/* ============================================
   Introduction Section
   ============================================ */
.section-intro-text {
    background: white;
}

.section-intro-text h2 {
    text-align: center;
    color: var(--color-text);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.intro-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.intro-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.intro-content p:last-child {
    margin-bottom: 0;
}

.intro-highlight {
    color: var(--color-primary);
    font-weight: 500;
}

/* ============================================
   Process Section - 3 Steps
   ============================================ */
.section-process {
    background: var(--color-bg-gradient);
    position: relative;
}

.section-process h2 {
    text-align: center;
}

.process-grid {
    display: grid;
    gap: var(--space-lg);
}

.process-step {
    background: white;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(61, 90, 128, 0.08);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.process-step h3 {
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-light), var(--color-accent));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.process-step:hover::before {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px rgba(61, 90, 128, 0.3);
}

.step-icon {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.step-icon svg {
    width: 48px;
    height: 48px;
}

.process-step > p {
    color: var(--color-text-light);
    font-size: 1rem;
    line-height: 1.7;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
}

.process-cta {
    text-align: center;
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Property Cards Section
   ============================================ */
.section-properties {
    background: var(--color-bg-gradient);
}

.section-properties h2 {
    text-align: center;
}

.section-properties .section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.property-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.property-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(61, 90, 128, 0.08);
    transition: all var(--transition-smooth);
    position: relative;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary-light);
}

.property-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-bg-blue-light);
    border-radius: 50%;
    margin-bottom: var(--space-sm);
    color: var(--color-primary);
}

.property-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.property-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
}

.property-note {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 1rem;
    color: var(--color-text-light);
    font-style: italic;
}

@media (min-width: 768px) {
    .property-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   Approach Section
   ============================================ */
.section-approach {
    background: var(--color-bg-gradient);
}

.section-approach h2 {
    text-align: center;
}

.approach-content {
    max-width: 700px;
    margin: 0 auto;
}

.approach-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    text-align: center;
}

.approach-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.approach-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 1.05rem;
    color: var(--color-text);
}

.approach-list li svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.approach-closing {
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ============================================
   Comparison Table (NEW COMPONENT)
   ============================================ */
.section-comparison {
    background: white;
}

.section-comparison h2 {
    text-align: center;
}

.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--color-bg-warm);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border-top: 1px solid var(--color-bg-warm);
}

.comparison-cell {
    padding: var(--space-md);
    font-size: 0.95rem;
}

/* Column 1: Labels */
.comparison-cell.header-label {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-bg-cream);
}

.comparison-cell.row-label {
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg-cream);
    border-right: 1px solid var(--color-bg-warm);
}

/* Column 2: Traditional Sale */
.comparison-cell.header-traditional {
    font-weight: 600;
    color: var(--color-text-light);
    text-align: center;
    background: rgba(138, 165, 174, 0.15);
}

.comparison-cell.traditional {
    color: var(--color-text-light);
    text-align: center;
    background: rgba(138, 165, 174, 0.08);
    border-right: 1px solid var(--color-bg-warm);
}

/* Column 3: Direct Cash Sale */
.comparison-cell.header-cash {
    font-weight: 600;
    color: var(--color-primary);
    text-align: center;
    background: rgba(152, 193, 164, 0.25);
}

.comparison-cell.cash {
    text-align: center;
    background: rgba(152, 193, 164, 0.12);
}

.comparison-cell.cash.highlight {
    color: var(--color-primary);
    font-weight: 600;
}

/* Mobile comparison table */
@media (max-width: 767px) {
    .comparison-table {
        border: none;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        display: block;
        margin-bottom: var(--space-md);
        border: 1px solid var(--color-bg-warm);
        border-radius: var(--radius-md);
        overflow: hidden;
    }

    .comparison-cell {
        display: block;
        padding: var(--space-sm) var(--space-md);
    }

    .comparison-cell.row-label {
        background: var(--color-bg-gradient);
        font-weight: 600;
        text-align: center;
    }

    .comparison-cell.traditional,
    .comparison-cell.cash {
        display: flex;
        justify-content: space-between;
        text-align: left;
    }

    .comparison-cell.traditional::before {
        content: 'Traditional:';
        font-weight: 500;
        color: var(--color-text-muted);
    }

    .comparison-cell.cash::before {
        content: 'Cash Sale:';
        font-weight: 500;
        color: var(--color-primary);
    }
}

/* ============================================
   Local Focus Section
   ============================================ */
.section-local {
    background: var(--color-bg-gradient);
}

.section-local h2 {
    text-align: center;
}

.local-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.local-content p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.local-emphasis {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
    font-style: italic;
}

/* ============================================
   Testimonials Section
   ============================================ */
.section-testimonials {
    background: linear-gradient(135deg, #2c4a6a 0%, #3d5a80 100%);
    position: relative;
    overflow: hidden;
}

.section-testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 0% 100%, rgba(152, 193, 164, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(61, 90, 128, 0.15) 0%, transparent 50%);
}

.section-testimonials h2 {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.testimonials-framing {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: var(--space-xl);
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    gap: var(--space-lg);
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-smooth);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.testimonial-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    font-style: normal;
    margin-bottom: var(--space-md);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.testimonial-card p::before {
    content: "\201C";
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    font-family: Georgia, serif;
}

.testimonial-card cite {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    display: block;
    padding-left: 1.5rem;
    font-weight: 500;
}

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

@media (min-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   FAQ Section
   ============================================ */
.section-faq {
    background: white;
}

.section-faq h2 {
    text-align: center;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-bg-warm);
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-text);
    font-family: inherit;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform var(--transition-smooth);
    background: var(--color-bg-blue-light);
    border-radius: 50%;
    padding: 6px;
    width: 32px;
    height: 32px;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--color-primary);
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: var(--space-md);
}

.faq-answer p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ============================================
   CTA Section
   ============================================ */
.section-cta {
    background: var(--color-bg-gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-cta .container {
    position: relative;
    z-index: 2;
}

.section-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(61, 90, 128, 0.05) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.section-cta h2 {
    position: relative;
}

.section-cta .cta-intro {
    color: var(--color-text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
    font-size: 1.15rem;
    position: relative;
}

.cta-phone {
    margin-top: var(--space-lg);
    font-size: 1rem;
    color: var(--color-text-light);
    position: relative;
}

.cta-phone a {
    font-weight: 600;
    color: var(--color-primary);
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    position: relative;
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--color-bg-warm);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-cream);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(61, 90, 128, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

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

.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--color-bg-warm);
    border-radius: var(--radius-md);
    background-color: var(--color-bg-cream);
    color: var(--color-text);
    transition: all var(--transition-fast);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235a7a85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-group select:focus {
    outline: none;
    border-color: var(--color-primary-light);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(61, 90, 128, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--space-md);
}

.contact-form .cta-microcopy {
    text-align: center;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

/* ============================================
   Form Enhancements
   ============================================ */

/* Honeypot field - hidden from users */
.form-group-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Consent checkbox styling */
.form-group-consent {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-light);
}

.consent-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.consent-text {
    flex: 1;
}

/* Error states */
.form-group.error input,
.form-group.error textarea {
    border-color: #d32f2f;
    background-color: rgba(211, 47, 47, 0.03);
}

.form-group.error input:focus,
.form-group.error textarea:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-group-consent.error {
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    background-color: rgba(211, 47, 47, 0.03);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.form-error-message {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: var(--space-xs);
}

/* Form messages (success/error) */
.form-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(152, 193, 164, 0.15);
    color: #5a8a45;
    border: 1px solid rgba(152, 193, 164, 0.3);
}

.form-message.error {
    background: rgba(211, 47, 47, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1a2e35 0%, #2a4a55 100%);
    color: white;
    padding: var(--space-2xl) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-content {
    display: grid;
    gap: var(--space-lg);
    text-align: center;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: white;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: white;
}

.footer p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-xs);
}

.footer-integrity {
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }

    .footer-legal {
        text-align: right;
    }
}

/* Footer Disclaimer (NEW COMPONENT) */
.footer-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    margin-top: var(--space-lg);
}

.disclaimer-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Scroll Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

:focus-visible {
    outline: 3px solid var(--color-primary-light);
    outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-text: #000000;
        --color-primary: #2c4a6a;
    }

    .btn-primary {
        border: 2px solid white;
    }
}

/* ============================================
   Legal Pages (Privacy Policy, Terms of Service)
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    text-align: center;
}

/* ============================================
   Blog Styles
   ============================================ */
.blog-list {
    background: var(--color-bg-gradient);
    padding: var(--space-2xl) 0;
}

.blog-list article {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(61, 90, 128, 0.08);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-smooth);
    overflow: hidden;
}

.blog-list article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-primary-light);
}

.entry-thumbnail {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.blog-list article:hover .entry-thumbnail img {
    transform: scale(1.02);
}

.entry-header {
    margin-bottom: var(--space-md);
}

.entry-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.entry-meta span {
    display: inline-flex;
    align-items: center;
}

.entry-meta .posted-on::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--color-text-muted);
    border-radius: 50%;
    margin-right: var(--space-sm);
}

.entry-meta .byline::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--color-text-muted);
    border-radius: 50%;
    margin-right: var(--space-sm);
}

.entry-excerpt {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.entry-excerpt p:last-child {
    margin-bottom: 0;
}

.entry-footer {
    border-top: 1px solid rgba(61, 90, 128, 0.08);
    padding-top: var(--space-md);
    text-align: right;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.read-more::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.read-more:hover {
    color: var(--color-primary-dark);
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Single Post Styles */
.single-post {
    background: var(--color-bg-gradient);
    padding: var(--space-2xl) 0;
}

.single-post article {
    background: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(61, 90, 128, 0.08);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.single-post .entry-thumbnail {
    margin-bottom: var(--space-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-post .entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-post .entry-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.single-post .entry-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    text-align: center;
}

.single-post .entry-meta {
    justify-content: center;
    margin-bottom: 0;
}

.entry-content {
    color: var(--color-text);
    font-size: 1.1rem;
    line-height: 1.8;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.1rem; }
.entry-content h6 { font-size: 1rem; }

.entry-content p {
    margin-bottom: var(--space-md);
}

.entry-content ul,
.entry-content ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.entry-content li {
    margin-bottom: var(--space-xs);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--color-text-light);
}

.entry-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.entry-content a:hover {
    color: var(--color-primary-dark);
}

/* Pagination */
.posts-pagination {
    text-align: center;
    margin-top: var(--space-2xl);
}

.posts-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    background: white;
    color: var(--color-text);
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid rgba(61, 90, 128, 0.08);
    transition: all var(--transition-fast);
}

.posts-pagination .page-numbers:hover,
.posts-pagination .page-numbers.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.page-hero h1 {
    color: white;
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.page-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.section-legal {
    padding: var(--space-2xl) 0;
}

.section-legal h2 {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-primary-light);
}

.section-legal h2:first-of-type {
    margin-top: var(--space-lg);
}

.section-legal h3 {
    font-size: 1.15rem;
    color: var(--color-text);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.section-legal p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.section-legal ul {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.section-legal li {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.section-legal a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.section-legal a:hover {
    color: var(--color-primary-dark);
}

.legal-effective-date {
    background: var(--color-bg-blue-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    display: inline-block;
    margin-bottom: var(--space-lg);
    font-size: 0.95rem;
}

.legal-contact {
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-bg-warm);
}

.legal-contact h2 {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-contact p {
    margin-bottom: var(--space-sm);
}
