:root {
    --bg-color: #ffffff;           /* White base */
    --bg-secondary: #f0f7ff;       /* Light sky blue tint */
    --bg-tertiary: #e0effe;        /* Slightly deeper blue tint for hovers */
    --text-primary: #1e293b;       /* Dark slate for readability */
    --text-secondary: #64748b;     /* Muted slate gray */
    --accent: #0284c7;             /* Sky Blue 600 - Primary brand color */
    --accent-hover: #0369a1;       /* Sky Blue 700 - Hover state */
    --accent-secondary: #0ea5e9;   /* Sky Blue 500 - lighter accent */
    --border: rgba(2, 132, 199, 0.12);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 980px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
}

.navbar.hidden-onload {
    transform: translate(-50%, -150%);
    opacity: 0;
}

.nav-content {
    width: 100%;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* Tint the PNG logo to match the blue brand color */
.logo-blue {
    filter: brightness(0) saturate(100%) invert(30%) sepia(90%) saturate(1500%) hue-rotate(180deg) brightness(95%) contrast(101%);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn-primary-small) {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-links a:hover:not(.btn-primary-small) {
    color: var(--accent-secondary);
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::after, .btn-primary-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; }
    100% { left: 200%; }
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-primary-small {
    background-color: var(--accent);
    color: #ffffff;
    padding: 8px 18px;
    font-size: 0.85rem;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.25);
}

.btn-primary-small:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(2, 132, 199, 0.06);
}

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-background {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 60px;
    border-radius: 40px;
    z-index: -1;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    transform: scale(1.0);
    will-change: transform, opacity;
}

.hero-slide.active {
    opacity: 0.45;
    animation: slowPan 6s linear forwards;
}

@keyframes slowPan {
    0% { transform: scale(1.0); }
    100% { transform: scale(1.08); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.95) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 24px;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.service-card {
    flex: 1 1 320px;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: 1px solid var(--border);
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.12);
    background: var(--bg-tertiary);
    border-color: rgba(2, 132, 199, 0.3);
}

.card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.service-card:hover .card-image img {
    transform: scale(1.05);
    opacity: 1;
}

.card-content {
    padding: 32px 28px;
}

.card-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About / Steps */
.dark-section {
    background: var(--bg-secondary);
}

.pb-6 {
    padding-bottom: 40px;
    text-align: center;
}

.about-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.mt-4 {
    margin-top: 32px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Booking form */
.booking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.booking-text h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.booking-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.contact-details p {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
}
.contact-details strong {
    color: var(--text-primary);
}

.booking-form-wrapper {
    background: #ffffff;
    padding: 48px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.08);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    appearance: none;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.form-success {
    margin-top: 16px;
    padding: 16px;
    background: rgba(40, 167, 69, 0.1);
    color: #4ade80;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.success-icon {
    width: 20px;
    height: 20px;
}

.hidden {
    display: none !important;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations & Utility classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal, .reveal.delay-1, .reveal.delay-2 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delay modifiers via JS / CSS */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

.animated {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-in img {
    transform: scale(1.0);
}

/* Estimator */
.estimator {
    background: var(--bg-secondary);
}

.estimator-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(2, 132, 199, 0.08);
}

.estimator-card .form-group input,
.estimator-card .form-group select {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
}

.estimator-card .form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.estimator-card .form-group input:focus,
.estimator-card .form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

.estimator-card .form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.estimator-card .form-group {
    margin-bottom: 20px;
}

.estimator-card select[multiple] {
    min-height: 120px;
    padding: 8px 12px;
}

.estimator-card select[multiple] option {
    padding: 6px 4px;
    border-radius: 4px;
}

.estimator-card select optgroup {
    font-weight: 600;
    color: var(--text-primary);
    font-style: normal;
    padding-top: 4px;
}

.estimator-card select optgroup option {
    font-weight: 400;
}

/* Responsive — Tablet */
@media (max-width: 900px) {
    .booking-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .service-grid {
        padding: 0 20px;
    }

    .nav-links a:not(.btn-primary-small) {
        display: none;
    }

    .estimator-combined {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .about-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .faq-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .hero-trust-cards {
        flex-direction: column !important;
        width: 95% !important;
        gap: 12px !important;
    }

    .hero-trust-cards .trust-card {
        flex: unset !important;
    }

    .footer-content {
        flex-direction: column !important;
        text-align: center;
    }

    .contact-details {
        flex-direction: column !important;
        gap: 12px !important;
    }
}

/* Responsive — Mobile */
@media (max-width: 600px) {

    /* ── Mobile section reorder: Hero(1) → Estimator(2) → Services(3) → About(4) → FAQ(5) → Contact(6) ── */
    body {
        display: flex;
        flex-direction: column;
    }
    .hero        { order: 1; }
    #estimator   { order: 2; }
    #services    { order: 3; }
    #about       { order: 4; }
    #faq         { order: 5; }
    #contact     { order: 6; }
    footer       { order: 7; }

    .section {
        padding: 48px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* ── Compact hero — just logo, one line, CTA ── */
    .hero {
        min-height: auto;
        height: auto;
        padding: 80px 16px 40px;
    }

    .hero-background {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 0;
    }

    .hero-content {
        padding: 0;
    }

    .hero-content .logo-blue {
        max-width: 240px !important;
    }

    .hero-content p.fade-up.delay-1 {
        font-size: 1rem !important;
        margin-top: 12px !important;
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn-secondary {
        display: none;
    }

    /* ── Hide trust cards on mobile — estimator is right below ── */
    .hero-trust-cards {
        display: none !important;
    }

    /* ── Estimator: full-width, no "How it Works" sidebar ── */
    #estimator .section-header {
        margin-bottom: 20px;
    }

    #estimator .section-header h2 {
        font-size: 1.5rem;
    }

    #estimator .section-header p {
        font-size: 0.95rem;
    }

    .estimator-steps {
        display: none !important;
    }

    .estimator-combined {
        gap: 0 !important;
    }

    .estimator-card {
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .estimator-card iframe {
        border-radius: 16px !important;
        min-height: 780px !important;
    }

    /* ── Services: compact cards ── */
    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .service-grid {
        padding: 0 8px;
        gap: 14px;
    }

    .service-card {
        flex: 1 1 100%;
    }

    .card-image {
        aspect-ratio: 16/9;
    }

    .card-content {
        padding: 18px 16px;
    }

    .card-content h3 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .card-content p {
        font-size: 0.88rem;
    }

    /* ── About: hide the image, just show features ── */
    .about-container {
        gap: 24px !important;
        margin-bottom: 40px !important;
    }

    .about-container .about-image {
        display: none;
    }

    .about-container .about-content h3 {
        font-size: 0.95rem !important;
    }

    .about-container .about-content h2 {
        font-size: 1.6rem !important;
    }

    .about-container .about-content > p {
        font-size: 0.95rem !important;
        margin-bottom: 28px !important;
    }

    .about-features .feature-item {
        gap: 12px !important;
    }

    .about-features .feature-item .feature-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }

    .about-features .feature-item h4 {
        font-size: 1.05rem !important;
    }

    .about-features .feature-item p {
        font-size: 0.88rem !important;
    }

    /* ── FAQ: tighter ── */
    .faq-container {
        gap: 24px !important;
    }

    .faq-header h2 {
        font-size: 1.8rem !important;
    }

    .accordion-header {
        padding: 16px 20px !important;
        font-size: 0.95rem !important;
    }

    .accordion-content p {
        padding: 0 20px 20px 20px !important;
        font-size: 0.9rem !important;
    }

    .faq-contact {
        padding: 20px !important;
    }

    /* ── Contact: compact ── */
    #contact h2 {
        font-size: 1.6rem !important;
    }

    #contact p {
        font-size: 1rem !important;
    }

    .contact-details {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .contact-details p {
        font-size: 0.9rem !important;
    }

    /* ── General mobile polish ── */
    .booking-form-wrapper {
        padding: 24px;
    }

    .navbar {
        top: 10px;
        width: 95%;
    }

    .nav-content {
        padding: 12px 16px;
    }

    .btn-primary {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .btn-secondary {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    /* Ensure touch targets are at least 44px */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 44px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    footer {
        padding: 24px 0;
    }

    .footer-content {
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center;
    }

    .footer-links {
        gap: 16px;
    }
}
