@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@500;600&display=swap');

:root {
    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-light: #334155;
    --color-primary: #D4AF37; /* Gold */
    --color-primary-hover: #f3c93e;
    --color-text: #F3F4F6;
    --color-text-muted: #9CA3AF;
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; color: var(--color-primary); }
h3 { font-size: 1.75rem; }

p { margin-bottom: 1.5rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-hover);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 9, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(10, 17, 40, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Sections */
.about-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

/* Process Animation */
.process-step {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 0;
    aspect-ratio: 5 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    background: transparent;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: bold;
    font-family: var(--font-body);
}

.process-step:nth-child(1)::before { content: '1'; }
.process-step:nth-child(2)::before { content: '2'; }
.process-step:nth-child(3)::before { content: '3'; }
.process-step:nth-child(4)::before { content: '4'; }
.process-step:nth-child(5)::before { content: '5'; }
.process-step:nth-child(6)::before { content: '6'; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.faq-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

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

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Premium Cards for About Section */
.card-refuse {
    border-color: rgba(239, 68, 68, 0.2);
}

.card-refuse:hover {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15);
}

.card-build {
    border-color: rgba(212, 175, 55, 0.2);
}

.card-build:hover {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15);
}

.list-premium {
    list-style: none;
    padding: 0;
}

.list-premium li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e2e8f0;
    transition: transform 0.3s ease;
}

.list-premium li:hover {
    transform: translateX(8px);
}

.icon-x-mark {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.icon-check-mark {
    color: var(--color-primary);
    background: rgba(212, 175, 55, 0.1);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Footer */
footer {
    background-color: var(--color-surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;



/* Custom Slider */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}
.custom-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #0A0F1E;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 50%, #D97706 100%);
    border: 2px solid #0A0A0A;
    box-shadow: 0 0 12px rgba(251,191,36,0.5), inset 0 2px 4px rgba(255,255,255,0.4);
    cursor: pointer;
    margin-top: -8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 18px rgba(251,191,36,0.8), inset 0 2px 4px rgba(255,255,255,0.6);
    transform: scale(1.15);
}

/* Duration Pills */
.duration-pill {
    background: rgba(10, 15, 30, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: 20px;
    padding: 10px 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.duration-pill:hover {
    background: rgba(251,191,36,0.05);
    border-color: rgba(251,191,36,0.5);
    color: #FBBF24;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3), 0 0 12px rgba(251,191,36,0.15);
}
.duration-pill.active {
    background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 50%, #D97706 100%);
    color: #0A0A0A;
    border: 1px solid transparent;
    box-shadow: 0 6px 16px rgba(251,191,36,0.4), inset 0 2px 4px rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
   Desktop (> 1024px) is untouched by all rules below.
═══════════════════════════════════════════════════ */

/* ── 1024px: Tablet landscape ─────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 1.5rem; }
    .section { padding: 5rem 0; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }

    .hero-content h1 { font-size: 3rem; }

    /* Footer 3-col → 2-col */
    #footer-grid-layout {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

/* ── 768px: Tablet portrait ───────────────────────── */
@media (max-width: 768px) {

    /* --- NAV --- */
    .nav-container { height: 70px; }

    #hamburgerBtn { display: flex !important; }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: rgba(5, 9, 20, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(251,191,36,0.2);
        flex-direction: column;
        gap: 0;
        padding: 0;
        list-style: none;
        z-index: 999;
        transition: opacity 0.3s ease;
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.08em;
        color: #e2e8f0;
    }
    .nav-links a:hover { color: #FBBF24; background: rgba(251,191,36,0.05); }

    /* Logo scale down slightly */
    .logo div:first-child { font-size: 2rem !important; }

    /* --- HERO --- */
    .hero { min-height: 100svh; height: auto; padding: 100px 0 60px; align-items: flex-start; }
    .hero-content { padding: 0 1.2rem; max-width: 100%; }
    .hero-content h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.3; margin-bottom: 1rem; }
    .hero-content h2 { font-size: 1rem !important; letter-spacing: 1px !important; margin-bottom: 1.5rem !important; }

    /* Hero info box — stack icon + text */
    .hero-content > div[style*="display: flex"][style*="gap: 2rem"] {
        flex-direction: column !important;
        padding: 1.4rem 1.2rem !important;
        gap: 1rem !important;
        margin-bottom: 1.8rem !important;
    }
    .hero-content p { font-size: 0.95rem !important; }

    /* Hero CTA buttons */
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .hero-actions .btn { width: 100%; max-width: 320px; padding: 0.9rem 1.5rem; }

    /* --- SECTIONS general --- */
    .section { padding: 4rem 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .container { padding: 0 1.2rem; }

    /* --- GRIDS → single column --- */
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1.5rem; }

    /* --- GLASS CARDS --- */
    .glass-card { padding: 1.6rem; }

    /* --- PROCESS steps --- */
    .process-step { aspect-ratio: unset; padding: 1.5rem 1.5rem 1.5rem 3.5rem; }

    /* --- PLANS / CALCULATOR --- */
    /* Duration pills wrap */
    div[style*="duration-pill"] { flex-wrap: wrap; gap: 0.5rem; }

    /* Result cards stack */
    .grid-3[style*="calculator"], .grid-4[style*="calculator"] {
        grid-template-columns: 1fr 1fr;
    }

    /* --- TESTIMONIAL CAROUSEL --- */
    .tcard {
        flex: 0 0 calc(100% - 1rem) !important;
        min-width: calc(100% - 1rem) !important;
        margin-right: 1rem !important;
    }
    .tcaro-prev { left: -8px !important; }
    .tcaro-next { right: -8px !important; }

    /* Trust strips */
    .trust-strip { gap: 0.75rem; }
    .trust-strip-item { padding: 0.5rem 0.9rem; font-size: 0.8rem; }
    .faq-trust-strip { gap: 0.6rem; }
    .faq-trust-badge { padding: 0.45rem 0.8rem; }

    /* --- FAQ --- */
    .faq-premium-wrap { padding: 1.4rem; border-radius: 16px; }
    .faq-q-premium { padding: 1rem 1.1rem; }
    .faq-q-text { font-size: 0.95rem; }
    .faq-a-inner { padding: 0 1.1rem 1.1rem; }

    /* --- CONTACT FORM --- */
    /* Force full-width inputs & stack left/right columns */
    .contact-form-grid, div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    input, textarea, select {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }
    textarea { min-height: 120px; }

    /* --- FOOTER --- */
    #footer-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: center;
    }
    #footer-grid-layout > div {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-logo-img { width: 180px !important; }
    .trust-badge { justify-content: center; }
    /* Quick links center on mobile */
    #footer-grid-layout ul { padding-left: 0 !important; text-align: center; }
    #footer-grid-layout .footer-section-heading,
    #footer-grid-layout > div > div[style*="inline-block"] {
        align-self: center;
    }
}

/* ── 480px: Large phone ───────────────────────────── */
@media (max-width: 480px) {
    .hero-content h1 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
    .hero-content h2 { font-size: 0.9rem !important; }

    /* Stat / metric cards in 2-col */
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

    /* Trust badges wrap tighter */
    .trust-strip, .faq-trust-strip { flex-direction: column; align-items: center; }
    .trust-strip-item, .faq-trust-badge { width: 100%; max-width: 280px; justify-content: center; }

    /* Tighter section padding */
    .section { padding: 3.5rem 0; }
    .glass-card { padding: 1.3rem; }
    h2 { font-size: 1.6rem; }
}

/* ── 375px: Standard phone ────────────────────────── */
@media (max-width: 375px) {
    .container { padding: 0 1rem; }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content h2 { font-size: 0.85rem !important; }
    .hero-actions .btn { font-size: 0.9rem; padding: 0.8rem 1.2rem; }
    .glass-card { padding: 1.1rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.2rem; }
    .faq-q-text { font-size: 0.88rem; }
    .tcard { padding: 1.4rem; }
}

/* ── 320px: Smallest phone (iPhone SE) ────────────── */
@media (max-width: 320px) {
    .container { padding: 0 0.8rem; }
    .hero-content h1 { font-size: 1.25rem; }
    .btn { padding: 0.75rem 1rem; font-size: 0.85rem; }
    .logo div:first-child { font-size: 1.6rem !important; }
    .nav-container { height: 60px; }
    .nav-links { top: 60px; }
    .hero { padding-top: 80px; }
}

/* ── Overflow safety net ──────────────────────────── */
*, *::before, *::after { max-width: 100%; }
img, video, iframe, embed, object { max-width: 100%; height: auto; }
