:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --navy: #0f172a;
    --navy-soft: #1e293b;
    --slate: #64748b;
    --slate-light: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f6f8fb;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --header-h: 76px;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    font-family: var(--font-body);
    color: var(--navy);
    line-height: 1.65;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

.container {
    width: 90%;
    max-width: 1180px;
    margin: 0 auto;
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

.btn-accent {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.30);
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ============ Header ============ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 56px; width: auto; max-width: 220px; object-fit: contain; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.nav-list { display: flex; align-items: center; gap: 26px; list-style: none; }

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--navy-soft);
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { padding: 11px 22px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 60px) 0 80px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%),
        url('https://images.unsplash.com/photo-1551632811-561732d1e306?ixlib=rb-4.0.3&auto=format&fit=crop&w=1740&q=80') center/cover no-repeat;
    z-index: -1;
}

.hero-content { max-width: 860px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fcd34d;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -1px;
}
.hero-title span { color: var(--accent); }

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 54px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 5vw, 64px);
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}
.hero-stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.4px;
}

/* ============ Sections ============ */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 18px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.section-sub { color: var(--slate); margin-top: 16px; font-size: 1.05rem; }

/* ============ About ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-text p { color: var(--slate); margin-bottom: 18px; font-size: 1.02rem; }
.about-text strong { color: var(--navy); }

.check-list { list-style: none; margin: 8px 0 28px; }
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    color: var(--navy-soft);
    font-weight: 500;
}
.check-list i { color: var(--accent); font-size: 1.1rem; }

.about-media { position: relative; }
.about-media > img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.about-card {
    position: absolute;
    left: -24px;
    bottom: 28px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.about-card i { font-size: 1.8rem; color: var(--accent); }
.about-card span { font-size: 0.9rem; color: var(--slate); line-height: 1.4; }
.about-card strong { display: block; color: var(--navy); font-size: 1.05rem; }

/* ============ Services ============ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.service-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    border-radius: 14px;
    margin-bottom: 22px;
}
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--navy); }
.service-card p { color: var(--slate); margin-bottom: 18px; font-size: 0.96rem; }
.service-link {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.service-link i { transition: transform 0.2s ease; }
.service-link:hover i { transform: translateX(4px); }

/* ============ Process ============ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}
.process-step {
    text-align: center;
    padding: 34px 24px;
    position: relative;
}
.process-num {
    position: absolute;
    top: 8px;
    right: 20px;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(37, 99, 235, 0.08);
    line-height: 1;
}
.process-step i {
    font-size: 1.7rem;
    color: var(--primary);
    margin-bottom: 18px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); }
.process-step p { color: var(--slate); font-size: 0.94rem; }

/* ============ Gallery ============ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 40px 18px 16px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.85));
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============ Testimonials ============ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.testimonial {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
}
.stars { color: var(--accent); margin-bottom: 16px; font-size: 0.9rem; }
.testimonial p { color: var(--navy-soft); font-size: 1rem; margin-bottom: 20px; font-style: italic; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--slate); font-size: 0.9rem; }

/* ============ Contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}
.contact-info h3 { font-size: 1.35rem; margin-bottom: 22px; color: var(--navy); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list li > i {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.05rem;
}
.contact-list strong { display: block; font-size: 0.95rem; color: var(--navy); }
.contact-list span, .contact-list a { color: var(--slate); font-size: 0.94rem; }
.contact-list a:hover { color: var(--primary); }

.contact-socials { display: flex; gap: 12px; margin-top: 28px; }
.contact-socials a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-alt);
    color: var(--navy-soft);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.contact-socials a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* ============ Form ============ */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow-md);
}
.quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.botcheck-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 7px; color: var(--navy-soft); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--navy);
    background: var(--bg-alt);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input.invalid, .form-group textarea.invalid { border-color: #ef4444; }

.service-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--navy-soft);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.service-option input { width: auto; }
.service-option:has(input:checked) { border-color: var(--primary); background: rgba(37, 99, 235, 0.06); }
.service-option:hover { border-color: var(--slate-light); }

.submit-btn { width: 100%; margin-top: 6px; }

.form-feedback { text-align: center; margin-top: 14px; font-weight: 600; font-size: 0.9rem; min-height: 1.3em; }
.form-feedback.error { color: #ef4444; }
.form-feedback.success { color: #16a34a; }

.form-success { text-align: center; padding: 20px 6px; }
.form-success > i { font-size: 3.2rem; color: #16a34a; margin-bottom: 16px; }
.form-success h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 10px; }
.form-success p { color: var(--slate); margin-bottom: 22px; }
.success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 48px 0 24px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: 40px;
    margin-bottom: 44px;
}
.footer-col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul a { color: #cbd5e1; transition: color 0.2s ease; font-size: 0.94rem; }
.footer-col ul a:hover { color: var(--accent); }
.footer-about p { font-size: 0.94rem; line-height: 1.7; color: #94a3b8; margin-top: 14px; }
.brand-footer { margin-bottom: 6px; display: inline-flex; }
.footer-logo {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    background: #fff;
    padding: 8px 14px;
    border-radius: 10px;
}
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; }
.footer-contact i { color: var(--accent); margin-top: 3px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 26px;
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
}

/* ============ Lightbox ============ */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
}
.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    object-fit: contain;
}
.lightbox-caption { color: #e2e8f0; margin-top: 18px; font-size: 1rem; }
.lightbox-close {
    position: absolute;
    top: 22px;
    right: 28px;
    font-size: 2.4rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close:hover { color: var(--accent); }
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.6rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ============ Reveal animation ============ */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-media > img { height: 340px; }
    .about-card { left: 12px; bottom: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    :root { --header-h: 68px; }
    .section { padding: 44px 0; }

    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 5% 24px;
        box-shadow: var(--shadow-md);
        transform: translateY(-140%);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease;
        pointer-events: none;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 1rem; }
    .nav-link::after { display: none; }
    .nav-cta { margin-top: 16px; justify-content: center; }

    .hero { min-height: auto; padding: calc(var(--header-h) + 44px) 0 64px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 320px; }
    .hero-stats { gap: 28px; }

    .quote-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .service-options { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 26px 20px; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .gallery-item img { height: 200px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .lightbox-nav { width: 44px; height: 44px; font-size: 2rem; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (max-width: 420px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item img { height: 240px; }
}
