/*
Theme Name: RentAllMatch Theme
Theme URI: https://rentallmatch.ca
Description: Mobile-first property management theme
Version: 1.0.0
Author: RentAllMatch
*/

/* ====================================
   MOBILE-FIRST RESET & BASE STYLES
   ==================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px; /* Prevents iOS zoom on input focus */
    line-height: 1.5;
    color: #1a1612;
    /* Warm paper-like background with subtle texture — no more dead white */
    background: #faf7f2;
    background-image:
        radial-gradient(at 30% 10%, rgba(251, 191, 128, 0.06) 0px, transparent 50%),
        radial-gradient(at 80% 85%, rgba(59, 130, 246, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

/* ====================================
   MOBILE-FIRST BUTTONS (44x44px min)
   ==================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover, .btn-primary:active {
    background: #1d4ed8;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-outline:hover, .btn-outline:active {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-sm {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px; /* Mobile padding */
}

.portal-header {
    margin-bottom: 24px;
}

.portal-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

/* ====================================
   MOBILE ACTION BAR (Sticky Bottom)
   ==================================== */

.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-action-bar .btn {
    flex: 1;
    min-height: 48px;
}

/* Add padding to body when mobile bar is present */
body.has-mobile-bar {
    padding-bottom: 80px;
}

/* ====================================
   MODALS (Mobile: Bottom Sheet)
   ==================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
}

/* Mobile: Slide up from bottom */
@media (max-width: 768px) {
    .modal {
        display: flex !important;
        align-items: flex-end;
    }

    .modal-content {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 85vh;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        animation: slideUp 0.3s forwards;
    }

    @keyframes slideUp {
        to {
            transform: translateY(0);
        }
    }

    .modal.closing .modal-content {
        animation: slideDown 0.3s forwards;
    }

    @keyframes slideDown {
        to {
            transform: translateY(100%);
        }
    }
}

/* Desktop: Center modal */
@media (min-width: 769px) {
    .modal {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* ====================================
   CARDS & PANELS
   ==================================== */

.stat-card, .portal-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ====================================
   TOUCH-FRIENDLY INPUTS
   ==================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 12px;
    font-size: 16px; /* Prevents iOS zoom */
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ====================================
   SWIPEABLE CARDS
   ==================================== */

.swipeable-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.swipeable-card .quick-actions {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: #ef4444;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.swipeable-card.swiped .quick-actions {
    transform: translateX(0);
}

/* ====================================
   UTILITY CLASSES
   ==================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ====================================
   RESPONSIVE GRID
   ==================================== */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

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

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

    .container {
        padding: 24px;
    }
}

/* ====================================
   TABLET & DESKTOP ENHANCEMENTS
   ==================================== */

@media (min-width: 769px) {
    .portal-header h1 {
        font-size: 32px;
    }

    /* Hide mobile action bar on desktop */
    .mobile-action-bar {
        display: none;
    }

    body.has-mobile-bar {
        padding-bottom: 0;
    }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

.btn:focus,
a:focus,
button:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================
   DARK MODE SUPPORT (Future)
   ==================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* ====================================
   SWIPE GESTURES & TOUCH INTERACTIONS
   ==================================== */

.service-request-card,
.message-card {
    position: relative;
    overflow: visible;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    touch-action: pan-y;
}

.swipe-actions {
    position: absolute;
    right: -80px;
    top: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 8px;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 0 12px 12px 0;
}

.swipe-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.swipe-btn:active {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0.95);
}

/* Touch feedback */
.touch-active {
    opacity: 0.7;
    transform: scale(0.98);
}

/* ====================================
   VOICE INPUT BUTTON
   ==================================== */

.btn-voice {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-voice:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.btn-voice.listening {
    animation: pulse 1.5s infinite;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* ====================================
   PULL TO REFRESH
   ==================================== */

.pull-to-refresh-indicator {
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    background: linear-gradient(180deg, transparent 0%, #f9fafb 100%);
    transition: opacity 0.2s ease;
}

/* ====================================
   ENHANCED MODAL ANIMATIONS
   ==================================== */

.modal {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.visible {
    opacity: 1;
}

/* Mobile: Bottom sheet with smoother animation */
@media (max-width: 768px) {
    .modal-content {
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .modal-content.modal-visible {
        transform: translateY(0);
    }

    /* Pull handle indicator */
    .modal-content::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }
}

/* ====================================
   AUTO-EXPANDING TEXTAREA
   ==================================== */

textarea {
    resize: none;
    overflow: hidden;
    min-height: 44px;
    max-height: 200px;
    transition: height 0.1s ease;
}

/* ====================================
   IMPROVED BUTTON STATES (Mobile)
   ==================================== */

@media (max-width: 768px) {
    .btn:active,
    button:active {
        transform: scale(0.96);
        transition: transform 0.05s ease;
    }

    /* Larger tap targets on mobile */
    .btn-sm {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
    }

    /* Spacing between buttons to prevent mis-taps */
    .btn + .btn,
    button + button {
        margin-left: 12px;
    }
}

/* ====================================
   LOADING STATES
   ==================================== */

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ====================================
   MARKETING SITE — GLOBAL SECTIONS
   ==================================== */

.section {
    padding: 60px 16px;
    /* Warm off-white, like high-quality paper. Subtle but not bland. */
    background: #fdfaf4;
    position: relative;
}

.section-alt {
    padding: 60px 16px;
    /* Soft cream gradient — echoes the golden hour hero image */
    background:
        linear-gradient(180deg, #f5ede0 0%, #fbf6eb 100%);
    position: relative;
}

/* Subtle divider between sections for premium feel */
.section + .section-alt::before,
.section-alt + .section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 120, 60, 0.15), transparent);
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
    color: #111827;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .section, .section-alt {
        padding: 80px 24px;
    }
    .section-title {
        font-size: 36px;
    }
    .section-subtitle {
        font-size: 18px;
    }
}

/* ====================================
   MARKETING — HERO SECTION
   ==================================== */

.hero {
    /* Calgary skyline at golden hour — shot from a high-rise condo interior.
       Layered gradient provides readable contrast for the headline + form while letting
       the warm sunset and city view shine through.
       JPEG optimized to 1920px / q82 / ~175 KB (down from 6.6 MB PNG — 97% payload reduction). */
    background:
        linear-gradient(105deg,
            rgba(10, 20, 40, 0.78) 0%,
            rgba(15, 30, 55, 0.62) 35%,
            rgba(25, 50, 90, 0.38) 65%,
            rgba(60, 40, 20, 0.35) 100%),
        url('assets/images/hero-calgary.jpg') center right / cover no-repeat;
    color: white;
    padding: 80px 16px 90px;
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
}

.hero::before {
    /* Golden glow from the horizon — echoes the sunset in the photo */
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18) 0%, rgba(245, 158, 11, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    /* Subtle grain/noise texture for a premium feel (no image dependency — pure CSS) */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.25) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
    width: 100%;
}

@media (min-width: 900px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
    .hero-content { flex: 1.3; }
    .hero-form-card { flex: 1; max-width: 440px; }
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -0.8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .hero-content h1 { font-size: 52px; }
    .hero-content p { font-size: 20px; }
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-cta .btn-hero {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.hero-cta .btn-hero-primary {
    /* Amber gradient matches the sunset in the image — premium, warm, distinctive */
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1a0f00;
    border: none;
    box-shadow:
        0 4px 20px rgba(245, 158, 11, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    font-weight: 700;
}

.hero-cta .btn-hero-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(245, 158, 11, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.hero-cta .btn-hero-outline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(8px);
}

.hero-cta .btn-hero-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.hero-metrics {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-metric {
    text-align: left;
}

.hero-metric strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-metric span {
    font-size: 12px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Hero Lead Form Card — elevated glass/paper feel that pops against the image */
.hero-form-card {
    background: linear-gradient(145deg, #ffffff 0%, #fdfaf4 100%);
    border-radius: 18px;
    padding: 36px 32px;
    color: #1a1612;
    /* Layered shadow: close + ambient glow + subtle golden rim light from the sunset */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 30px 70px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(251, 191, 36, 0.12);
    min-width: 0;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(6px);
}

.hero-form-card::before {
    /* Thin accent bar at top — premium signal */
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ea580c, #dc2626);
    border-radius: 0 0 3px 3px;
}

.hero-form-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0a1428;
    letter-spacing: -0.3px;
}

.hero-form-card h3 + * {
    margin-top: 0;
}

.hero-form-card .form-group {
    margin-bottom: 14px;
}

.hero-form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.hero-form-card input,
.hero-form-card select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    background: #f9fafb;
    transition: border-color 0.2s;
}

.hero-form-card input:focus,
.hero-form-card select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.hero-form-card .btn-submit {
    width: 100%;
    min-height: 48px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
}

.hero-form-card .btn-submit:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}

.hero-form-card .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hero-form-card .form-success {
    text-align: center;
    padding: 20px 0;
}

.hero-form-card .form-success h4 {
    color: #059669;
    font-size: 18px;
    margin-bottom: 8px;
}

.hero-form-card .form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero {
        padding: 80px 24px 70px;
    }
    .hero-inner {
        flex-direction: row;
        align-items: center;
    }
    .hero-content {
        flex: 1;
    }
    .hero-content h1 {
        font-size: 44px;
    }
    .hero-form-card {
        flex: 0 0 380px;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 50px;
    }
    .hero-form-card {
        flex: 0 0 420px;
    }
}

/* ====================================
   MARKETING — FEATURE / SERVICE GRID
   ==================================== */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
    transition: all 0.25s ease;
}

.feature-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 30px rgba(37,99,235,0.1);
    transform: translateY(-3px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.feature-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

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

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

/* ====================================
   MARKETING — HOW IT WORKS (STEPS)
   ==================================== */

.steps-container {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0 6px;
}

.step-content p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ====================================
   MARKETING — COMPARISON TABLE
   ==================================== */

.comparison-wrapper {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table th:first-child {
    color: #6b7280;
}

.comparison-table th:nth-child(2) {
    color: #dc2626;
}

.comparison-table th:nth-child(3) {
    color: #059669;
    background: #f0fdf4;
    border-radius: 8px 8px 0 0;
}

.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.comparison-table td:nth-child(3) {
    background: #f0fdf4;
}

.comparison-table tr:last-child td:nth-child(3) {
    border-radius: 0 0 8px 8px;
}

.comparison-table .check {
    color: #059669;
    font-weight: 700;
}

.comparison-table .cross {
    color: #dc2626;
}

.trust-badges {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: white;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* ====================================
   MARKETING — TESTIMONIALS
   ==================================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    font-style: italic;
    margin-bottom: 18px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.testimonial-role {
    font-size: 13px;
    color: #6b7280;
}

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

/* ====================================
   MARKETING — SERVICE AREAS
   ==================================== */

.areas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

.area-tag {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.area-tag:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

/* ====================================
   MARKETING — FAQ SECTION
   ==================================== */

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.active {
    border-color: #2563eb;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #111827;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    min-height: 44px;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-chevron {
    transition: transform 0.3s ease;
    font-size: 18px;
    color: #9ca3af;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 18px;
}

.faq-answer p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ====================================
   MARKETING — CTA SECTIONS
   ==================================== */

.cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 60px 16px;
    text-align: center;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 28px;
}

.cta-section .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    background: white;
    color: #1e3a5f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    min-height: 52px;
}

.cta-section .btn-cta:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-phone {
    margin-top: 20px;
    font-size: 15px;
    opacity: 0.85;
}

.cta-phone a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
}

.cta-trust {
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.7;
}

@media (min-width: 768px) {
    .cta-section {
        padding: 80px 24px;
    }
    .cta-section h2 {
        font-size: 36px;
    }
}

/* ====================================
   MARKETING — LEAD FORM (Multi-step)
   ==================================== */

.lead-form-container {
    max-width: 600px;
    background: white;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.form-progress {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.form-progress-step {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: background 0.3s;
}

.form-progress-step.active {
    background: #2563eb;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s;
}

.checkbox-group label:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.checkbox-group input {
    display: none;
}

.form-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 12px;
}

.btn-form-back {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    cursor: pointer;
    min-height: 44px;
}

.btn-form-next,
.btn-form-submit {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 44px;
    flex: 1;
}

.btn-form-next:hover,
.btn-form-submit:hover {
    background: #1d4ed8;
}

/* ====================================
   MARKETING — STICKY HEADER
   ==================================== */

.site-header {
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding: 10px 0 !important;
}

/* Mobile hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #111827;
    margin: 5px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation ul,
    .main-navigation .marketing-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 20px;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    }

    .main-navigation ul.open,
    .main-navigation .marketing-nav.open {
        display: flex;
    }

    .main-navigation ul li,
    .main-navigation .marketing-nav a {
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
    }
}

/* Marketing nav links */
.marketing-nav {
    display: flex;
    list-style: none;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.marketing-nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.marketing-nav a:hover {
    color: #2563eb;
}

.marketing-nav .nav-cta {
    background: #2563eb;
    color: white !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
}

.marketing-nav .nav-cta:hover {
    background: #1d4ed8;
}

/* ====================================
   MARKETING — PAGE TEMPLATES
   ==================================== */

.page-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 60px 16px;
    text-align: center;
}

.page-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 17px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 80px 24px;
    }
    .page-hero h1 {
        font-size: 42px;
    }
}

/* Services detail sections */
.service-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid #f3f4f6;
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-icon {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    flex-shrink: 0;
}

.service-detail h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.service-detail p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 12px;
}

.service-detail ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-detail li {
    padding: 4px 0;
    font-size: 14px;
    color: #374151;
}

.service-detail li::before {
    content: '\2713';
    color: #059669;
    font-weight: 700;
    margin-right: 8px;
}

@media (max-width: 640px) {
    .service-detail {
        flex-direction: column;
        gap: 16px;
    }
}

/* Contact page layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.contact-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #e5e7eb;
}

.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-info-item .ci-icon {
    width: 40px;
    height: 40px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #111827;
}

.contact-info-item p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* About page */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 16px;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

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

.value-card {
    text-align: center;
    padding: 28px 20px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.value-card .value-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.value-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.value-card p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ====================================
   MARKETING — FUNNEL PAGES
   ==================================== */

.funnel-page {
    min-height: 100vh;
    background: #f8fafc;
}

.funnel-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: white;
    padding: 50px 16px 40px;
    text-align: center;
}

.funnel-hero h1 {
    font-size: 28px;
    font-weight: 800;
    max-width: 600px;
    margin: 0 auto 16px;
    line-height: 1.2;
}

.funnel-hero p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .funnel-hero h1 {
        font-size: 38px;
    }
}

.funnel-body {
    max-width: 500px;
    margin: -30px auto 0;
    padding: 0 16px 60px;
    position: relative;
    z-index: 1;
}

.funnel-form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 32px;
}

.funnel-benefits {
    padding: 0;
    margin: 0 0 24px;
    list-style: none;
}

.funnel-benefits li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 15px;
    color: #374151;
}

.funnel-benefits li::before {
    content: '\2713';
    color: #059669;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.funnel-testimonial {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    font-style: italic;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
}

.funnel-footer {
    text-align: center;
    padding: 24px 16px;
    font-size: 13px;
    color: #9ca3af;
    border-top: 1px solid #e5e7eb;
}

/* ====================================
   MARKETING — THANK YOU PAGE
   ==================================== */

.thankyou-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 16px;
}

.thankyou-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.thankyou-container h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.thankyou-container > p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 36px;
}

.next-steps {
    text-align: left;
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 36px;
}

.next-steps h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.next-step-item {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
    align-items: flex-start;
}

.next-step-num {
    width: 28px;
    height: 28px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.next-step-item p {
    margin: 2px 0 0;
    font-size: 14px;
    color: #374151;
}

/* ====================================
   MARKETING — SCROLL ANIMATIONS
   ==================================== */

.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
