/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    /* Brand Colors */
    --brand-dark: #1a1917;
    --brand-gold: #d4951e;
    --brand-blue: #2d78a8;
    --brand-light: #f0ebe3;

    /* Color Palette */
    --bg-base: #f5f0e8;
    --bg-surface: #ede8e0;
    --bg-surface-light: #ffffff;

    --text-primary: #1a1917;
    --text-secondary: #5c5b54;
    --text-muted: #9e9d96;

    --accent-main: var(--brand-blue);
    --accent-light: #4a9ac4;
    --accent-dark: #1c5a80;

    --accent-gradient: linear-gradient(135deg, #2d78a8 0%, #d4951e 100%);

    /* Glass UI */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);

    /* Typography */
    /* Safari-safe font stack: Google Fonts loads async; system fonts are the instant fallback */
    --font-heading: 'Outfit', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 6.5rem;
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* overflow-x: clip not supported in Safari < 15.4 — use hidden instead */
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.65;
    /* overflow-x: clip not supported Safari < 15.4 */
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    /* cursor: none only meaningful on pointer (mouse) devices — never on touch */
    transition: background-color 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Only hide cursor on devices with a fine pointer (mouse/trackpad) — not touch devices */
@media (pointer: fine) {
    body { cursor: none; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    transition: color 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: white !important; }
.w-100 { width: 100%; justify-content: center; }
.mt-3 { margin-top: 1.25rem; }
.mb-3 { margin-bottom: 1.25rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.container-sm {
    max-width: 760px;
}

.section-padding {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 2;
}

.bg-surface {
    background-color: var(--bg-surface);
}

/* ==========================================================================
   Background Effects
   ========================================================================== */
.bg-texture {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    /* Orange-peel / interior wall paint texture via SVG fractal noise */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23p)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    opacity: 0.04;
    mix-blend-mode: multiply;
}

.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-1 {
    top: -5%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--brand-blue);
    opacity: 0.08;
}

.glow-2 {
    bottom: -15%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: var(--brand-gold);
    opacity: 0.1;
    animation-delay: -5s;
}

.glow-3 {
    top: 40%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: var(--brand-light);
    transform: translate(-50%, -50%);
    opacity: 0.35;
    animation-duration: 28s;
}

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -40px) scale(1.08); }
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--brand-blue);
}

.cursor-outline {
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(45, 120, 168, 0.35);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline.hover-active {
    width: 52px;
    height: 52px;
    background-color: rgba(45, 120, 168, 0.08);
    border-color: var(--brand-blue);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.8rem 1.75rem;
    border-radius: var(--border-radius-full);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(45, 120, 168, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 12px 32px rgba(45, 120, 168, 0.45);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.12), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-primary:hover::after { opacity: 1; }

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.22);
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(45, 120, 168, 0.1);
    color: var(--brand-blue);
    border: 1px solid rgba(45, 120, 168, 0.18);
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition-normal);
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    padding: 0.875rem 0;
    background: rgba(245, 240, 232, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 96px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.navbar.scrolled .brand-logo {
    height: 76px;
}

.footer-logo {
    height: 64px;
}

.brand-logo:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast), color 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-main);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(245, 240, 232, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.mobile-menu.open { right: 0; }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.mobile-link:hover {
    color: var(--text-primary);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contact strip pinned inside mobile menu drawer */
.mobile-contact-strip {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.75rem 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.mobile-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.mobile-contact-item i {
    color: var(--brand-blue);
    width: 1.2rem;
    text-align: center;
    font-size: 0.95rem;
}

.mobile-contact-item:hover {
    color: var(--brand-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 5.5rem;
    z-index: 2;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content.apple-hero {
    align-items: center;
    text-align: center;
}

.hero-content.apple-hero .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 840px;
}

.hero-solo-logo {
    max-width: 720px;
    width: 92%;
    height: auto;
    margin-bottom: 2.5rem;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.18));
    transition: filter var(--transition-normal), transform var(--transition-normal);
    display: block;
    margin-left: auto;
    margin-right: auto;
    animation: logoGlow 4s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0%   { filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.18)); }
    100% { filter: drop-shadow(0 18px 52px rgba(45, 120, 168, 0.32)); }
}

.hero-solo-logo:hover {
    filter: drop-shadow(0 20px 56px rgba(45, 120, 168, 0.38));
    transform: scale(1.03);
}

.hero-text {
    max-width: 760px;
}

.title-main {
    font-size: clamp(2.75rem, 5vw, 4.75rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    line-height: 1.05;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Hero Trust Bar */
.hero-trust-bar {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2.5rem;
    border-top: 1px solid var(--glass-border);
    margin-bottom: 2.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.trust-item i {
    color: var(--brand-blue);
    font-size: 1rem;
}

/* ==========================================================================
   Visual Logo Trust Badges (Hero)
   ========================================================================== */
.trust-badge-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255,255,255,0.55);
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.07);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.trust-badge-logo:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.trust-badge-logo img {
    display: block;
    max-height: 36px;
    width: auto;
    object-fit: contain;
}

.trust-badge-logo span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ==========================================================================
   Navbar Phone Number
   ========================================================================== */
.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue);
    border: 1.5px solid var(--brand-blue);
    border-radius: var(--border-radius-full);
    padding: 0.4rem 1rem;
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
    margin-right: 0.5rem;
    text-decoration: none;
}

.nav-phone:hover {
    background: var(--brand-blue);
    color: #ffffff;
}

.nav-phone i {
    font-size: 0.8rem;
}

/* On mobile, phone is available in the menu drawer — hide pill in nav */
@media (max-width: 768px) {
    .nav-phone { display: none; }
}

/* ==========================================================================
   Promo Code Form Field
   ========================================================================== */
.form-promo {
    margin-bottom: 0.5rem;
}

.optional-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.3rem;
}

.promo-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.promo-input-wrap .promo-icon {
    position: absolute;
    left: 1rem;
    color: var(--brand-blue);
    font-size: 0.9rem;
    pointer-events: none;
}

.promo-input-wrap input {
    padding-left: 2.6rem;
    letter-spacing: 0.06em;
    font-weight: 500;
    text-transform: uppercase;
}

.promo-input-wrap input::placeholder {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}


/* Promo Banner */
.promo-banner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 440px;
    width: 100%;
}

.premium-coupon {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-surface-light);
    border: 1.5px dashed var(--brand-gold);
    padding: 0.875rem 1.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 16px rgba(212, 149, 30, 0.1);
    transition: var(--transition-normal);
}

.premium-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 149, 30, 0.18);
    border-style: solid;
}

.discount-badge {
    background: var(--brand-gold);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--border-radius-sm);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.coupon-details {
    display: flex;
    flex-direction: column;
}

.coupon-code {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.coupon-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.125rem;
}

.transparency-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.6;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 0.875rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Glass Cards
   ========================================================================== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-normal);
}

.glass:hover {
    transform: translateY(-3px);
    border-color: rgba(45, 120, 168, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Partnership Section
   ========================================================================== */
.partnership-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Image wrapper — constrains and clips the photo cleanly */
.partner-image-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: var(--brand-dark);
    height: clamp(260px, 45vw, 520px);
}

.partner-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--transition-slow);
}

.partnership-card:hover .partner-photo {
    transform: scale(1.04);
}

/* Text card — dark glass panel sitting flush below the image */
.partner-text {
    width: 100%;
    text-align: center;
    background: rgba(13, 13, 18, 0.95) !important;
    padding: 2.75rem 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    position: relative;
    z-index: 5;
    /* Reset old overlap transforms */
    transform: none;
    margin-bottom: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Always legible text inside partnership card */
.partner-text h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #ffffff !important;
}

.partner-text p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75) !important;
    line-height: 1.75;
    font-weight: 400;
    max-width: 620px;
    margin: 0 auto;
}

.partner-text strong {
    color: #ffffff !important;
}

.partner-text .badge {
    background: rgba(45, 120, 168, 0.28) !important;
    color: #7bc4f0 !important;
    border-color: rgba(45, 120, 168, 0.38) !important;
}

.partner-note {
    font-size: 0.875rem !important;
    color: rgba(255,255,255,0.45) !important;
}

/* ==========================================================================
   Difference Section (Split)
   ========================================================================== */
.split-container {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.split-content,
.split-visual {
    flex: 1;
}

.dilemma-list {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0;
}

.dilemma-list li {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 2rem;
}

.dilemma-list li::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 3rem;
    color: var(--brand-blue);
    opacity: 0.2;
    font-family: serif;
    line-height: 1;
}

.difference-card {
    padding: 3rem;
    background: var(--brand-dark);
    color: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
}

.difference-card h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.difference-card .feature-text h4,
.difference-card .feature-text p { color: white; }

.difference-card .feature-icon i { color: var(--brand-gold); }

/* Feature List */
.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.feature-list li {
    display: flex;
    gap: 1.125rem;
    align-items: flex-start;
}

.feature-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    box-shadow: 0 4px 12px rgba(45, 120, 168, 0.28);
    margin-top: 2px;
}

.feature-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

/* Center the 4th card (General Renovations) symmetrically under Exterior Painting */
.services-grid .service-card:nth-child(4) {
    grid-column: 2;
}

a.service-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image bleeds to card edges — override glass padding */
.service-card.glass {
    padding: 0;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    margin-bottom: 0;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

/* Text area padding within zero-padding glass card */
.service-card h3 {
    padding: 1.75rem 1.75rem 0.5rem;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.service-card p {
    padding: 0 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.65;
}

.service-card .service-link {
    padding: 0 1.75rem 1.75rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.service-link i {
    font-size: 0.8rem;
    color: var(--accent-light);
    transition: transform 0.25s;
}

.service-link:hover { color: var(--accent-light); }
.service-link:hover i { transform: translateX(4px); }

/* ==========================================================================
   Experience Section (3-step)
   ========================================================================== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
}

.experience-card {
    padding: 2.75rem 2rem 2rem;
    position: relative;
    transition: transform var(--transition-normal);
    overflow: visible;
}

.experience-card:hover {
    transform: translateY(-6px);
}

.experience-card:hover i {
    transform: scale(1.1);
    color: var(--brand-gold);
}

.step-round {
    width: 44px;
    height: 44px;
    background: var(--brand-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.125rem;
    font-family: var(--font-heading);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 20px rgba(45, 120, 168, 0.35);
    z-index: 2;
}

.experience-card i {
    font-size: 2.25rem;
    color: var(--brand-blue);
    margin-bottom: 1.25rem;
    margin-top: 1rem;
    display: block;
}

.experience-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.experience-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==========================================================================
   Process / About Section
   ========================================================================== */
/* .split-section \u2014 layout handled by split-container inside */

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.process-card {
    padding: 2.25rem 2rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-normal);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface-light);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.step-badge {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
    font-family: var(--font-heading);
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(45, 120, 168, 0.3);
}

.process-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-normal);
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(45, 120, 168, 0.12);
    border-color: rgba(45, 120, 168, 0.25);
}

.process-card:hover::before { opacity: 0.04; }

.process-card i {
    font-size: 2.25rem;
    color: var(--brand-blue);
    margin-bottom: 1rem;
    transition: transform var(--transition-normal), color var(--transition-fast);
}

.process-card:hover i {
    transform: scale(1.1) rotate(4deg);
    color: var(--brand-gold);
}

.process-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ==========================================================================
   Timeline Section
   ========================================================================== */
.timeline-section {
    position: relative;
    background-color: var(--bg-base);
}

.timeline-container {
    max-width: 720px;
    margin: 3rem auto 0;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 0;
    height: 100%;
    width: 1.5px;
    background: var(--brand-blue);
    opacity: 0.18;
}

.timeline-item {
    position: relative;
    padding-left: 88px;
    margin-bottom: 3rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 27px;
    top: 20px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-blue);
    border: 3px solid var(--bg-base);
    box-shadow: 0 0 0 3px rgba(45, 120, 168, 0.2);
    z-index: 2;
}

.timeline-content {
    padding: 2.25rem 2.5rem;
    border-radius: var(--border-radius-md);
}

.timeline-content h3 {
    color: var(--brand-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    letter-spacing: -0.015em;
}

.timeline-content p {
    margin: 0;
    font-size: 0.975rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */
.trust-badges-section {
    padding: 5rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.trust-badge {
    padding: 2rem 1.5rem;
    transition: transform var(--transition-normal);
}

.trust-badge:hover {
    transform: translateY(-4px);
}

.trust-badge i {
    font-size: 2rem;
    color: var(--brand-blue);
    margin-bottom: 0.875rem;
    display: block;
}

.trust-badge h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.comparison-table-wrapper {
    margin-top: 3rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    padding: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-clip: padding-box;
    max-width: 100%;
    width: 100%;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 0;
}

.comparison-table th {
    text-align: left;
    padding: 1.25rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table td {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: middle;
    font-size: 0.95rem;
}

.comparison-table tr:last-child td { border-bottom: none; }

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.875rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
}

.type-badge img {
    height: 16px;
    object-fit: contain;
}

.badge-red {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}

.badge-yellow {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.badge-blue {
    background: var(--brand-blue);
    color: white;
    padding: 0.5rem 1rem;
    box-shadow: 0 4px 12px rgba(45, 120, 168, 0.28);
}

.highlight-row {
    background: rgba(45, 120, 168, 0.04);
}

.highlight-row td { font-size: 0.95rem; }

/* ==========================================================================
   Portfolio / Bento Grid
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.25rem;
    margin-top: 3rem;
    grid-auto-flow: dense;
}

.bento-item {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--bg-surface);
    transition: var(--transition-normal);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.bento-item:hover {
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
    z-index: 2;
}

.bento-item:hover img {
    transform: scale(1.06);
}

.bento-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.tall { grid-row: span 2; }
.bento-item.wide { grid-column: span 2; }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 1.75rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.bento-item:hover .bento-overlay { opacity: 1; }

.bento-overlay h4 {
    color: white;
    font-size: 1.35rem;
    margin: 0;
    transform: translateY(12px);
    transition: transform var(--transition-normal);
}

.bento-item:hover .bento-overlay h4 { transform: translateY(0); }

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
    }
    .bento-item.tall { grid-row: span 1; }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .bento-item.featured {
        grid-column: span 2;
        grid-row: span 2;
    }
    .bento-item.wide { grid-column: span 2; }
}

@media (max-width: 480px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .bento-item.featured,
    .bento-item.wide,
    .bento-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==========================================================================
   Reviews Section
   ========================================================================== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-top: 2.5rem;
}

.review-card {
    padding: 2.25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.reviewer-info h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.stars {
    color: var(--brand-gold);
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

.platform-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: var(--bg-surface-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.platform-icon.google i {
    color: #ea4335; /* fallback for Safari/Firefox */
    background: conic-gradient(from 180deg at 50% 50%, #ea4335 0deg, #ea4335 45deg, #4285f4 45deg, #4285f4 135deg, #34a853 135deg, #34a853 225deg, #fbbc05 225deg, #fbbc05 315deg, #ea4335 315deg);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.platform-icon.thumbtack i { color: #009fd9; }

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Contact / Form Section
   ========================================================================== */
.contact-box {
    margin-top: 2.5rem;
    padding: 2.75rem;
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(45, 120, 168, 0.04) 60deg, transparent 120deg);
    animation: rotate 12s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 2;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid var(--glass-border);
    background: var(--bg-surface-light);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    resize: vertical;
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(45, 120, 168, 0.12);
}

.form-group input:not(:placeholder-shown):valid,
.form-group textarea:not(:placeholder-shown):valid {
    border-color: #16a34a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.1rem;
}

.form-group input:not(:placeholder-shown):invalid,
.form-group textarea:not(:placeholder-shown):invalid {
    border-color: #dc2626;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    background-size: 1.1rem;
}

.form-row {
    display: flex;
    gap: 1.25rem;
}

.form-row .form-group { flex: 1; }

/* ==========================================================================
   Custom Date & Time Picker
   ========================================================================== */
.custom-datetime-picker {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.date-scroller-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
}

.scroll-btn {
    background: var(--bg-surface-light);
    border: 1.5px solid var(--glass-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition-fast);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.scroll-btn:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.date-scroller {
    display: flex;
    overflow-x: auto;
    gap: 0.625rem;
    padding: 0.25rem 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.date-scroller::-webkit-scrollbar { display: none; }

.date-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.7rem 0.5rem;
    background: var(--bg-surface-light);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.date-item.selected {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(45, 120, 168, 0.25);
}

.date-item:hover:not(.selected) { border-color: var(--brand-blue); }

.date-item .day-name {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.2rem;
    letter-spacing: 0.04em;
}

.date-item .day-number {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.625rem;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.time-item {
    padding: 0.65rem;
    text-align: center;
    background: var(--bg-surface-light);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.time-item.selected {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(45, 120, 168, 0.25);
}

.time-item:hover:not(.selected) { border-color: var(--brand-blue); }

.form-status {
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    transition: var(--transition-fast);
}

.form-status.message-hidden { display: none; }

.form-status.success {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.form-status.error {
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
    align-items: start;
}

.footer-desc {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 280px;
    font-size: 0.9rem;
    line-height: 1.65;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 4px;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
}

.footer-contact-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-contact-list a:hover {
    color: var(--accent-light);
}

.footer-contact-list i {
    color: var(--brand-blue);
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background: var(--accent-main);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- New animation variant: blur-fade-up --- */
.reveal-blur {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1),
                filter 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}
.reveal-blur.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* --- New animation variant: pop (scale from below) --- */
.reveal-pop {
    opacity: 0;
    transform: scale(0.84) translateY(28px);
    transition: opacity 0.85s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.85s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}
.reveal-pop.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* --- New animation variant: tilt-in --- */
.reveal-tilt {
    opacity: 0;
    transform: perspective(800px) rotateX(12deg) translateY(32px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-tilt.active {
    opacity: 1;
    transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    :root { --section-padding: 5.5rem; }

    .split-container { flex-direction: column; gap: 3rem; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --section-padding: 4.5rem; }

    .nav-links,
    .nav-btn-cta { display: none; }

    .mobile-menu-btn { display: block; }

    .hero { padding-top: 5rem; }

    /* Constrained hero logo on mobile — prominent but not absurdly large */
    .hero-solo-logo { max-width: 80vw; width: 80vw; }

    .title-main { font-size: clamp(2rem, 7vw, 2.8rem); }
    .subtitle { font-size: 1rem; }

    .hero-cta { flex-direction: column; align-items: center; }

    .hero-trust-bar { gap: 0.75rem; flex-wrap: wrap; justify-content: center; }
    .trust-item { font-size: 0.78rem; flex: 0 0 auto; }

    .brand-logo { height: 72px; }
    .navbar.scrolled .brand-logo { height: 60px; }


    /* Partnership card — slightly tighter padding on mobile */
    .partner-text {
        padding: 2rem 1.5rem;
    }
    .partner-text h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    .partner-text p { font-size: 0.95rem; }

    .split-container { flex-direction: column; gap: 2.5rem; }
    .difference-card { padding: 2rem; }

    .process-grid { grid-template-columns: 1fr; gap: 1rem; }

    .form-row { flex-direction: column; }

    .comparison-table-wrapper { padding: 0; }

    .footer-top { grid-template-columns: 1fr; gap: 2rem; }

    .cursor-dot,
    .cursor-outline { display: none; }

    body { cursor: auto; }

    /* Hard no-scroll guarantee for all children */
    *, *::before, *::after { max-width: 100%; }

    /* Center all page content precisely */
    main, .container { margin-left: auto; margin-right: auto; }

    /* Prevent any fixed/absolute elements from causing overflow */
    .bg-effects, .bg-texture { width: 100vw; max-width: 100vw; }
}

@media (max-width: 480px) {
    :root { --section-padding: 3.5rem; }

    .container { padding: 0 1.25rem; }

    /* Constrained hero logo on small phones — don't let it overwhelm the screen */
    .hero-solo-logo { max-width: 72vw; width: 72vw; }

    .section-title { font-size: clamp(1.6rem, 6vw, 2rem); }

    .trust-badges-section { padding: 3.5rem 0; }

    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .trust-badge { padding: 1.5rem 1rem; }
    .trust-badge i { font-size: 1.6rem; }
    .trust-badge h4 { font-size: 0.8rem; }

    .glass { padding: 1.75rem; }

    .contact-box { padding: 1.75rem; }

    .premium-coupon { flex-direction: column; align-items: flex-start; gap: 0.875rem; }

    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card:nth-child(4) { grid-column: auto; }

    .reviews-grid { grid-template-columns: 1fr; }

    .footer-logo { height: 48px; }

    .experience-card { padding: 2rem 1.5rem 1.5rem; }

    /* Hero logo — fluid on very small screens, keeps prominence */
    .hero-solo-logo { max-width: 96vw; width: 96vw; }

    /* Hero title — tighter clamp on very small screens to prevent text overflow */
    .title-main { font-size: clamp(1.9rem, 8vw, 2.6rem); }

    /* Prevent horizontal overflow globally */
    html, body { overflow-x: hidden; max-width: 100%; }

    /* Service images — slightly shorter on very small screens */
    .service-image { height: 180px; }

    /* Partnership photo — edge-to-edge on very small screens */
    .partner-photo {
        max-height: 200px;
        border-radius: var(--border-radius-sm);
    }

    /* Contact box tighter padding */
    .contact-box { padding: 1.5rem; }

    /* Form inputs — maintain thumb-friendly sizes */
    .form-group input,
    .form-group select {
        min-height: 48px;
        font-size: 1rem;
    }

    .form-group textarea {
        font-size: 1rem;
    }

    /* Promo banner fully fluid on tiny screens */
    .promo-banner {
        max-width: 100%;
        width: 100%;
    }

    .premium-coupon {
        width: 100%;
    }
}

/* Snap services to 1 column cleanly before 600px */
@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
    .services-grid .service-card:nth-child(4) { grid-column: auto; }
}

/* ==========================================================================
   Reveal Animation Variants
   ========================================================================== */
.reveal-scale {
    opacity: 0;
    transform: scale(0.88) translateY(28px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-48px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* On mobile, translateX animations can cause horizontal overflow before the
   IntersectionObserver fires. Switch to translateY to be safe on all phones. */
@media (max-width: 768px) {
    .reveal-left,
    .reveal-right {
        transform: translateY(24px);
    }
    .reveal-left.active,
    .reveal-right.active {
        transform: translateY(0);
    }
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* ==========================================================================
   Floating Mobile CTA
   ========================================================================== */
.floating-cta { display: none; }

/* ==========================================================================
   Mobile Enhancements — Apple-style polish
   ========================================================================== */
@media (max-width: 768px) {

    /* Remove ugly tap flash on iOS */
    * { -webkit-tap-highlight-color: transparent; }

    /* Touch press feedback — snappy scale-down like iOS */
    .btn:active                { transform: scale(0.95) !important; transition: transform 0.1s ease !important; }
    .service-card:active       { transform: scale(0.985) !important; }
    .experience-card:active    { transform: scale(0.985) !important; }
    .process-card:active       { transform: scale(0.975) !important; }
    .date-item:active          { transform: scale(0.92) !important; }
    .time-item:active          { transform: scale(0.92) !important; }
    .bento-item:active         { transform: scale(0.975) !important; }
    .trust-badge:active        { transform: scale(0.97) !important; }

    /* Floating CTA pill — slides up from bottom */
    .floating-cta {
        display: flex;
        position: fixed;
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%) translateY(120px);
        z-index: 990;
        background: var(--accent-gradient);
        color: white;
        padding: 0.9rem 2.25rem;
        border-radius: var(--border-radius-full);
        font-family: var(--font-heading);
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 10px 36px rgba(45, 120, 168, 0.5), 0 2px 8px rgba(0, 0, 0, 0.15);
        gap: 0.625rem;
        align-items: center;
        white-space: nowrap;
        text-decoration: none;
        opacity: 0;
        border: 1px solid rgba(255, 255, 255, 0.18);
        transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                    opacity 0.4s ease,
                    box-shadow 0.25s ease;
    }
    .floating-cta.visible {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    .floating-cta:active {
        transform: translateX(-50%) scale(0.95) !important;
        box-shadow: 0 4px 18px rgba(45, 120, 168, 0.3) !important;
    }

    /* Hero trust bar — horizontal scroll instead of ugly wrap.
       max-width: 100% ensures the trust bar stays within viewport bounds
       so its internal overflow-x scroll doesn't escape to the body. */
    .hero-trust-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 1.75rem;
        max-width: 100%;
        width: 100%;
    }
    .hero-trust-bar::-webkit-scrollbar { display: none; }
    .trust-item { white-space: nowrap; flex-shrink: 0; }

    /* Bento overlay always visible on touch screens */
    .bento-overlay { opacity: 1; }
    .bento-overlay h4 { transform: translateY(0); }

    /* Service image slightly shorter on mobile */
    .service-image { height: 190px; }

    /* Timeline padding reduced */
    .timeline-item { padding-left: 72px; }
    .timeline-content { padding: 1.75rem 1.5rem; }

    /* Comparison table → card stack on mobile */
    .comparison-table-wrapper { position: relative; max-width: 100%; overflow: hidden; }
    .comparison-table-wrapper::after { display: none; }

    /* Convert table to stacked cards */
    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr { display: block; width: 100%; }

    .comparison-table thead { display: none; }

    .comparison-table tr {
        margin-bottom: 1.25rem;
        border-radius: var(--border-radius-md);
        border: 1px solid var(--glass-border);
        overflow: hidden;
        background: rgba(255, 255, 255, 0.5);
    }

    .comparison-table tr.highlight-row {
        background: rgba(45, 120, 168, 0.06);
        border-color: rgba(45, 120, 168, 0.22);
    }

    .comparison-table td {
        padding: 0.875rem 1.25rem;
        border-bottom: 1px solid var(--glass-border);
        font-size: 0.9rem;
        text-align: left;
    }

    .comparison-table td:last-child { border-bottom: none; }

    .comparison-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--text-muted);
        margin-bottom: 0.25rem;
    }

    /* Form inputs — thumb-friendly minimum touch target (48px height) */
    .form-group input,
    .form-group select {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 1rem; /* prevents iOS auto-zoom on focus */
    }

    .form-group textarea {
        font-size: 1rem; /* prevents iOS auto-zoom on focus */
    }

    /* Hero section padding-bottom so floating CTA doesn't cover content */
    .hero { padding-bottom: 5rem; }

    /* Glass cards must never exceed viewport width */
    .glass { max-width: 100%; }

    /* Promo banner centered on mobile */
    .promo-banner { max-width: 100%; align-items: center; width: 100%; }
    .premium-coupon { width: 100%; }

    /* Hero text fully centered on mobile */
    .hero-content.apple-hero .hero-text { align-items: center; text-align: center; width: 100%; max-width: 100%; }
    .hero-text { text-align: center; }
    .subtitle { text-align: center; margin-left: auto; margin-right: auto; }

    /* Section headers more compact */
    .section-header { margin-bottom: 2.5rem; }

    /* Cards — slightly tighter gap */
    .services-grid   { gap: 1.25rem; }
    .experience-grid { gap: 1.5rem; }
    .reviews-grid    { gap: 1.25rem; }

    /* Difference dark card tighter */
    .difference-card { padding: 1.75rem; }
    .difference-card h3 { font-size: 1.5rem; }

    /* Footer compact */
    .footer { padding: 3rem 0 1.5rem; }
    .footer-top { margin-bottom: 2.5rem; }
}

@media (max-width: 480px) {
    /* Larger tap targets for date/time picker */
    .date-item { min-width: 60px; padding: 0.8rem 0.4rem; }
    .time-item { padding: 0.85rem 0.5rem; font-size: 0.9rem; }

    /* Bigger hamburger */
    .mobile-menu-btn { padding: 0.5rem; font-size: 1.4rem; }

    /* Mobile menu links — less giant on tiny screens */
    .mobile-link { font-size: 2rem; }

    /* Timeline even tighter on iPhone SE */
    .timeline-item { padding-left: 60px; }
    .timeline-container::before { left: 28px; }
    .timeline-dot { left: 19px; }

    /* Experience grid single column */
    .experience-grid { grid-template-columns: 1fr; }

    /* Partnership — already handled in 768px block, no overrides needed */
    .partner-photo { aspect-ratio: 1 / 1; }
}

/* ==========================================================================
   Custom Scrollbar (Webkit)
   ========================================================================== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: rgba(45, 120, 168, 0.35);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-blue); }
