/**
 * Heart Specialist Singapore - Complete Standalone CSS
 * Combined variables + onepage styles
 */

/* ==========================================================================
   CSS Variables (Midnight Blue/Silver Theme)
   ========================================================================== */
:root {
    /* Primary Colors */
    --primary: #1E3A8A;
    --primary-hover: #1E40AF;
    --primary-light: #BFDBFE;
    --primary-rgb: 30, 58, 138;

    /* Silver Accent */
    --gold: #94A3B8;
    --gold-hover: #64748B;
    --gold-light: #E2E8F0;

    /* Secondary/Background Colors */
    --secondary: #F8FAFC;
    --accent: #E2E8F0;
    --card-bg: #FFFFFF;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-light: #FFFFFF;

    /* Functional Colors */
    --success: #059669;
    --success-hover: #047857;
    --warning: #D97706;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --info: #0284C7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    --gradient-hero: linear-gradient(180deg, #F8FAFC 0%, #E2E8F0 100%);
    --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    --gradient-gold: linear-gradient(135deg, #94A3B8 0%, #CBD5E1 100%);

    /* WhatsApp */
    --whatsapp: #25D366;
    --whatsapp-hover: #1DA851;

    /* Typography */
    --font-primary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1.0625rem;
    --font-size-lg: 1.1875rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1050;
    --z-tooltip: 1070;
    --z-toast: 1090;

    /* Bootstrap Overrides */
    --bs-primary: var(--primary);
    --bs-primary-rgb: var(--primary-rgb);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-hover);
    --bs-body-font-family: var(--font-primary);
    --bs-body-color: var(--text-secondary);
    --bs-body-bg: var(--secondary);
}

/* ==========================================================================
   Premium Typography & Base Overrides
   ========================================================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Premium typography refinements */
body {
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

h1, .h1 {
    letter-spacing: -0.025em;
    line-height: 1.15;
}

h3, .h3 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

h4, .h4 {
    font-weight: 500;
    letter-spacing: -0.01em;
}

p {
    line-height: 1.7;
}

/* ==========================================================================
   Optimized Content Width for Readability
   ========================================================================== */

/* Base: Reduce container width for better readability on large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Large displays: Narrower for optimal reading (~65-75 chars per line) */
@media (min-width: 1400px) {
    .container {
        max-width: 1080px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

/* Ultra-wide: Maximum readability with generous margins */
@media (min-width: 1920px) {
    .container {
        max-width: 1080px;
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* Additional constraint for two-column text sections */
@media (min-width: 1200px) {
    .expect-section .col-lg-6:last-child {
        max-width: 580px;
    }

    .ct-showcase-section .ct-content {
        max-width: 600px;
    }
}

/* Premium link animations */
a:not(.btn):not(.nav-link):not(.header-phone):not(.header-email):not(.onepage-logo a):not(.text-inherit) {
    position: relative;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    transition: background-size 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:not(.btn):not(.nav-link):not(.header-phone):not(.header-email):not(.onepage-logo a):not(.text-inherit):hover {
    background-size: 100% 1px;
}

/* Text inherit for heading links */
.text-inherit {
    color: inherit !important;
}

.text-inherit:hover {
    color: var(--primary) !important;
}

/* ==========================================================================
   Premium Button Styling
   ========================================================================== */
.btn {
    font-weight: 500;
    letter-spacing: 0.015em;
    border-radius: 10px;
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    border: none;
    box-shadow:
        0 4px 12px rgba(30, 58, 138, 0.20),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 300ms ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(30, 58, 138, 0.25),
        0 2px 6px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow:
        0 2px 8px rgba(30, 58, 138, 0.20),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    border: 2px solid rgba(30, 58, 138, 0.3);
    color: var(--primary);
    background: rgba(30, 58, 138, 0.02);
}

.btn-outline-primary:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ==========================================================================
   Premium Section Spacing
   ========================================================================== */
.section,
.stats-section,
.expect-section,
.ct-showcase-section,
.locations-section,
.pricing-section,
.contact-section {
    padding: 96px 0;
}

@media (min-width: 1200px) {
    .section,
    .stats-section,
    .expect-section,
    .ct-showcase-section,
    .locations-section,
    .pricing-section,
    .contact-section {
        padding: 120px 0;
    }
}

/* ==========================================================================
   Premium Card Styling
   ========================================================================== */
.card {
    border: none;
    border-radius: 16px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: all 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

.card-body {
    padding: 32px;
}

/* ==========================================================================
   Premium Image Treatment
   ========================================================================== */
.premium-image,
.onepage-hero-clean img,
.expect-image,
.ct-image {
    border-radius: 16px;
    box-shadow:
        0 24px 48px -12px rgba(30, 58, 138, 0.15),
        0 0 0 1px rgba(30, 58, 138, 0.05);
    transition: transform 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.premium-image:hover,
.onepage-hero-clean img:hover,
.expect-image:hover,
.ct-image:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        0 32px 64px -16px rgba(30, 58, 138, 0.18),
        0 0 0 1px rgba(30, 58, 138, 0.05);
}

/* ==========================================================================
   Top Header Bar
   ========================================================================== */
.onepage-header {
    background-color: var(--primary);
    padding: var(--space-3) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
}

.onepage-logo a {
    font-family: var(--font-heading);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.onepage-logo a:hover {
    opacity: 0.9;
}

.onepage-header-contact {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.onepage-header-contact a {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.onepage-header-contact a:hover {
    opacity: 0.9;
}

.header-phone {
    background-color: rgba(255, 255, 255, 0.15);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

/* ==========================================================================
   Under Construction Notice
   ========================================================================== */
.construction-notice {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    color: #92400E;
    padding: var(--space-3) 0;
    border-bottom: 1px solid #F59E0B;
}

.construction-notice i {
    color: #D97706;
}

.construction-notice strong {
    color: #78350F;
}

/* ==========================================================================
   Clean Hero Section (No Background Photo) - Premium
   ========================================================================== */
.onepage-hero-clean {
    background: var(--gradient-hero);
    padding: 112px 0;
}

.onepage-hero-clean .container {
    max-width: 1320px;
}

.onepage-hero-clean .col-lg-6:first-child {
    padding-right: 24px;
}

@media (min-width: 992px) {
    .onepage-hero-clean .row > .col-lg-6:first-child {
        flex: 0 0 60% !important;
        max-width: 60% !important;
    }
    .onepage-hero-clean .row > .col-lg-6:last-child {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
}

.onepage-hero-clean h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.onepage-hero-clean .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 32px;
    max-width: 520px;
}

.onepage-hero-clean .lead strong {
    font-weight: 700;
}

/* Hero CTA buttons - keep on same line on desktop */
.onepage-hero-clean .d-flex {
    flex-wrap: nowrap;
}

.onepage-hero-clean .d-flex .btn {
    white-space: nowrap;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.onepage-hero-clean .d-flex .btn i {
    font-size: 1rem;
}

/* ==========================================================================
   Locations Section - Premium
   ========================================================================== */
.locations-section {
    background-color: var(--accent);
}

.location-card-onepage {
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    transition: all 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-card-onepage:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px rgba(30, 58, 138, 0.12),
        0 0 0 1px rgba(30, 58, 138, 0.05);
}

.location-card-onepage .location-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.location-card-onepage:hover .location-image {
    transform: scale(1.05);
}

.location-card-body {
    padding: 24px;
}

.location-card-body h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Stats Section - Premium
   ========================================================================== */
.stats-section {
    background-color: var(--card-bg);
}

.stat-card {
    text-align: center;
    padding: 40px 24px;
    position: relative;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, transparent 100%);
    border-radius: 16px;
    transition: all 350ms ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 300ms ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.who-source {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 48px;
}

.who-source a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.who-source a:hover {
    color: var(--primary-hover);
}

/* ==========================================================================
   What to Expect Section - Premium
   ========================================================================== */
.expect-section {
    background-color: var(--accent);
}

.expect-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.expect-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    transition: all 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.expect-item:last-child {
    margin-bottom: 0;
}

.expect-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.08);
}

.expect-item-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expect-item:hover .expect-item-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    color: white;
}

.expect-item-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.expect-item-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.65;
}

/* ==========================================================================
   CT Showcase Section
   ========================================================================== */
.ct-showcase-section {
    background-color: var(--card-bg);
    padding: var(--space-16) 0;
}

.ct-image {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: auto;
}

.ct-content h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.ct-content p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Pricing Table Section - Premium
   ========================================================================== */
.pricing-section {
    background-color: var(--accent);
}

/* Insurance/Medisave Notice */
.insurance-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.08) 0%, rgba(30, 58, 138, 0.04) 100%);
    border: 1px solid rgba(30, 58, 138, 0.15);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.insurance-notice i {
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.insurance-notice strong {
    display: block;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.insurance-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.onepage-pricing-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 20px 40px -12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.04);
}

.onepage-pricing-table table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.onepage-pricing-table thead th {
    background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 20px 32px;
    text-align: left;
    border: none;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.onepage-pricing-table thead th:last-child {
    text-align: right;
}

.onepage-pricing-table tbody tr {
    transition: all 250ms ease;
}

.onepage-pricing-table tbody tr:nth-child(even) {
    background-color: rgba(30, 58, 138, 0.02);
}

.onepage-pricing-table tbody tr:hover {
    background-color: rgba(30, 58, 138, 0.05);
}

.onepage-pricing-table tbody td {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    font-size: 1rem;
}

.onepage-pricing-table tbody td:first-child strong {
    font-weight: 600;
    color: var(--text-primary);
}

.onepage-pricing-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
    font-size: 1.125rem;
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.onepage-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.price-from {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 24px;
    font-style: italic;
}

/* Mobile Pricing Cards (shown on small screens) */
@media (max-width: 767.98px) {
    .onepage-pricing-table {
        display: none;
    }

    .pricing-cards {
        display: block;
    }

    .pricing-card {
        background: var(--card-bg);
        border-radius: var(--radius-lg);
        padding: var(--space-5);
        margin-bottom: var(--space-3);
        box-shadow: var(--shadow);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .pricing-card-service {
        flex: 1;
        padding-right: var(--space-4);
    }

    .pricing-card-service h4 {
        font-size: var(--font-size-base);
        margin-bottom: 0;
        color: var(--text-primary);
    }

    .pricing-card-price {
        font-weight: 700;
        color: var(--primary);
        font-size: var(--font-size-lg);
        text-align: right;
    }
}

@media (min-width: 768px) {
    .pricing-cards {
        display: none;
    }
}

/* ==========================================================================
   Contact Form Section - Premium
   ========================================================================== */
.contact-section {
    background-color: var(--card-bg);
}

.contact-form-wrapper {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 24px;
    padding: 48px;
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(0, 0, 0, 0.03);
}

.contact-info {
    margin-bottom: 32px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    transition: all 300ms ease;
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.08);
}

.contact-info-item i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #3B82F6 100%);
    color: var(--text-light);
    border-radius: 12px;
    font-size: 1.125rem;
}

.contact-info-item span {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-info-item a {
    font-size: 1.125rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    background: none !important;
}

.contact-info-item a:hover {
    color: var(--primary);
}

.contact-form .form-control {
    padding: 16px 20px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1.0625rem;
}

/* Honeypot field - hidden from users */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* Form Success/Error Messages */
.form-message {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    text-align: center;
}

.form-message.success {
    background-color: rgba(5, 150, 105, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* ==========================================================================
   One-Page Footer
   ========================================================================== */
.onepage-footer {
    background-color: var(--text-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-10) 0 var(--space-6);
}

.onepage-footer-content {
    text-align: center;
}

.onepage-footer-logo {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.onepage-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-4);
}

.onepage-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.onepage-footer-links a:hover {
    color: var(--primary-light);
}

.onepage-footer-copyright {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-4);
}

.onepage-footer-disclaimer {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.4);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================================================
   Scroll to Top Button
   ========================================================================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* ==========================================================================
   Section Title Overrides for One-Page - Premium
   ========================================================================== */
.onepage-section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
    width: 100%;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.onepage-section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.onepage-section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 40px auto 48px;
    line-height: 1.7;
}

/* ==========================================================================
   Mobile Spacing Optimization
   ========================================================================== */
@media (max-width: 767.98px) {
    /* Reduce section padding */
    .section,
    .stats-section,
    .expect-section,
    .ct-showcase-section,
    .locations-section,
    .pricing-section,
    .contact-section {
        padding: 56px 0;
    }

    /* Reduce section title spacing */
    .onepage-section-title {
        font-size: 1.75rem;
        margin-bottom: 12px;
    }

    .onepage-section-title::after {
        bottom: -12px;
        width: 48px;
        height: 3px;
    }

    .onepage-section-subtitle {
        margin: 28px auto 28px;
        font-size: 1rem;
    }

    /* Reduce stat card padding */
    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2.5rem;
        margin-bottom: 8px;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .who-source {
        margin-top: 32px;
    }

    /* Reduce expect item spacing */
    .expect-item {
        padding: 16px;
        margin-bottom: 16px;
        gap: 14px;
    }

    .expect-item-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 1.25rem;
        border-radius: 10px;
    }

    .expect-item-content h4 {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .expect-item-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Reduce CT section spacing */
    .ct-content h2 {
        font-size: 1.5rem;
    }

    .ct-content p {
        font-size: 1rem;
    }

    /* Reduce location card spacing */
    .location-card-body {
        padding: 16px;
    }

    .location-card-body h3 {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    /* Reduce insurance notice spacing */
    .insurance-notice {
        padding: 16px;
        gap: 12px;
        margin-bottom: 24px;
    }

    .insurance-notice i {
        font-size: 1.25rem;
    }

    .insurance-notice strong {
        font-size: 0.9rem;
    }

    .insurance-notice p {
        font-size: 0.85rem;
    }

    /* Reduce pricing table padding */
    .onepage-pricing-table thead th {
        padding: 14px 16px;
        font-size: 0.75rem;
    }

    .onepage-pricing-table tbody td {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    .pricing-disclaimer {
        margin-top: 16px;
        font-size: 0.8rem;
    }

    /* Reduce contact section spacing */
    .contact-form-wrapper {
        padding: 24px;
        border-radius: 16px;
    }

    .contact-info-item {
        padding: 10px 12px;
        gap: 12px;
        margin-bottom: 12px;
    }

    .contact-info-item i {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .contact-info-item a {
        font-size: 1rem;
    }

    /* Reduce footer spacing */
    .onepage-footer {
        padding: 40px 0 24px;
    }

    .onepage-footer-logo {
        font-size: 1.25rem;
        margin-bottom: 16px;
    }

    .onepage-footer-copyright {
        margin-bottom: 16px;
    }

    .onepage-footer-disclaimer {
        font-size: 0.7rem;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
    .onepage-hero-clean {
        padding: var(--space-12) 0;
    }

    .onepage-hero-clean .row {
        flex-direction: column-reverse;
    }

    .onepage-hero-clean .col-lg-6:last-child {
        margin-bottom: var(--space-6);
    }

    .onepage-hero-clean h1 {
        text-align: center;
    }

    .onepage-hero-clean .lead {
        text-align: center;
    }

    .onepage-hero-clean .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }

    .expect-section .row {
        flex-direction: column-reverse;
    }

    .expect-image {
        margin-top: var(--space-8);
        margin-bottom: 0;
    }

    .ct-showcase-section .row {
        flex-direction: column;
    }

    .ct-image {
        margin-bottom: var(--space-8);
    }
}

@media (max-width: 767.98px) {
    .onepage-header {
        padding: var(--space-2) 0;
    }

    .onepage-logo a {
        font-size: var(--font-size-base);
    }

    .header-phone {
        padding: var(--space-1) var(--space-3);
        font-size: var(--font-size-sm);
    }

    .construction-notice {
        font-size: var(--font-size-sm);
        text-align: center;
    }

    .onepage-hero-clean {
        padding: 48px 0;
    }

    .onepage-hero-clean h1 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }

    .onepage-hero-clean .lead {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .onepage-hero-clean .d-flex .btn {
        padding: 10px 16px;
        font-size: 0.875rem;
    }

    .location-card-onepage .location-image {
        height: 160px;
    }

    .onepage-footer-links {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .scroll-to-top {
        bottom: var(--space-4);
        right: var(--space-4);
        width: 44px;
        height: 44px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .onepage-hero {
        background: none;
        color: black;
        min-height: auto;
        padding: var(--space-8) 0;
    }

    .onepage-hero h1 {
        color: black;
        text-shadow: none;
    }

    .scroll-to-top {
        display: none;
    }

    .contact-form-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
