/* ══════════════════════════════════════════════════════════════════
   MyBootlid — Premium Design System v3
   ══════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.011em;
    color: #1a1a2e;
    background: #fafafa;
}
::selection { background: rgba(255,107,0,0.12); color: #1a1a2e; }
:focus-visible { outline: 2px solid #FF6B00; outline-offset: 2px; border-radius: 6px; }

/* ── Custom Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Glass Effects ───────────────────────────────────────────── */
.glass {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.glass-dark {
    background: rgba(26,26,46,0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.06);
}
.glass-card {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.04);
}

/* ── Hero Background ─────────────────────────────────────────── */
.gradient-hero {
    background: linear-gradient(160deg, #0c0c1d 0%, #12122b 25%, #1a1a2e 50%, #151530 75%, #0e0e20 100%);
}

/* ── Floating Orbs ───────────────────────────────────────────── */
@keyframes orb-float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.95); }
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    will-change: transform;
}
.orb-orange { background: #FF6B00; opacity: 0.12; animation: orb-float 12s ease-in-out infinite; }
.orb-green { background: #00C853; opacity: 0.08; animation: orb-float 16s ease-in-out infinite 3s; }
.orb-blue { background: #6366f1; opacity: 0.06; animation: orb-float 20s ease-in-out infinite 6s; }

/* ── Grain Overlay ───────────────────────────────────────────── */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.025;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in-scale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.slide-in-left { opacity:0; transform:translateX(-32px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.slide-in-right { opacity:0; transform:translateX(32px); transition: opacity 0.8s cubic-bezier(0.22,1,0.36,1), transform 0.8s cubic-bezier(0.22,1,0.36,1); }
.slide-in-left.visible, .slide-in-right.visible { opacity:1; transform:translateX(0); }

/* Stagger */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }

/* ── CTA Pulse ───────────────────────────────────────────────── */
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,0,0.35); }
    50% { box-shadow: 0 0 0 10px rgba(255,107,0,0); }
}
.cta-pulse { animation: glow-pulse 2.5s ease-in-out infinite; }
.cta-pulse:hover { animation: none; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
    background: linear-gradient(135deg, #FF6B00, #e85d00);
    color: white; font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 2px 4px rgba(255,107,0,0.15), 0 8px 24px rgba(255,107,0,0.15);
    text-decoration: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,107,0,0.2), 0 16px 40px rgba(255,107,0,0.2);
}
.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
    background: rgba(255,255,255,0.08);
    color: white; font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); transform: translateY(-1px); }
.btn-green {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
    background: linear-gradient(135deg, #00C853, #00a844);
    color: white; font-weight: 700;
    padding: 0.875rem 1.75rem;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 0 2px 4px rgba(0,200,83,0.15), 0 8px 24px rgba(0,200,83,0.12);
    text-decoration: none;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,200,83,0.2), 0 16px 40px rgba(0,200,83,0.18); }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
    background: white;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.card:hover {
    border-color: rgba(255,107,0,0.12);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03), 0 16px 48px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}
.service-card { composes: card; }
.service-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover {
    border-color: rgba(255,107,0,0.15);
    box-shadow: 0 8px 16px rgba(0,0,0,0.04), 0 24px 64px rgba(0,0,0,0.06);
    transform: translateY(-6px);
}
.service-card img {
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover img { transform: scale(1.06); }

/* ── Header ──────────────────────────────────────────────────── */
.header-scrolled {
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.04);
}

/* ── Navigation Mobile ───────────────────────────────────────── */
.nav-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.nav-overlay.active { opacity: 1; visibility: visible; }
.nav-mobile {
    position: fixed; top: 0; right: -100%;
    width: 85%; max-width: 400px; height: 100%;
    background: white; z-index: 41;
    transition: right 0.4s cubic-bezier(0.22,1,0.36,1);
    overflow-y: auto;
    box-shadow: -16px 0 48px rgba(0,0,0,0.1);
}
.nav-mobile.active { right: 0; }

/* ── Mobile CTA Bar ──────────────────────────────────────────── */
.mobile-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
    padding: 0.625rem 1rem;
    display: none;
}
@media (max-width: 768px) {
    .mobile-cta-bar { display: flex; gap: 0.5rem; }
    body { padding-bottom: 72px; }
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22,1,0.36,1);
}
.faq-item.active .faq-answer { max-height: 600px; }
.faq-item {
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.faq-item:hover { border-color: rgba(0,0,0,0.08); }
.faq-item.active { border-color: rgba(255,107,0,0.2); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.faq-chevron { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.faq-item.active .faq-chevron { transform: rotate(180deg); }

/* ── City Grid ───────────────────────────────────────────────── */
.city-link {
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.city-link:hover {
    border-color: rgba(255,107,0,0.25);
    background: rgba(255,107,0,0.04);
    color: #FF6B00;
    box-shadow: 0 2px 8px rgba(255,107,0,0.08);
}

/* ── Breadcrumb ──────────────────────────────────────────────── */
.breadcrumb-sep::after {
    content: '';
    display: inline-block; width: 14px; height: 14px;
    margin: 0 0.375rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239ca3af'%3E%3Cpath d='M6.22 4.22a.75.75 0 011.06 0l3.25 3.25a.75.75 0 010 1.06l-3.25 3.25a.75.75 0 01-1.06-1.06L8.94 8 6.22 5.28a.75.75 0 010-1.06z'/%3E%3C/svg%3E") no-repeat center;
    vertical-align: middle;
}

/* ── Blog Content ────────────────────────────────────────────── */
.blog-content h2 {
    font-size: 1.625rem; font-weight: 800; color: #1A1A2E;
    margin-top: 2.5rem; margin-bottom: 1rem; letter-spacing: -0.025em;
}
.blog-content h3 {
    font-size: 1.25rem; font-weight: 700; color: #1A1A2E;
    margin-top: 2rem; margin-bottom: 0.75rem;
}
.blog-content p { margin-bottom: 1.25rem; line-height: 1.8; color: #4b5563; }
.blog-content ul, .blog-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; line-height: 1.8; color: #4b5563; }
.blog-content ul li { list-style-type: disc; }
.blog-content ol li { list-style-type: decimal; }
.blog-content a {
    color: #FF6B00; text-decoration: none;
    border-bottom: 1px solid rgba(255,107,0,0.25);
    transition: border-color 0.2s;
}
.blog-content a:hover { border-bottom-color: #FF6B00; }
.blog-content blockquote {
    border-left: 3px solid #FF6B00;
    padding: 1.25rem 1.5rem; margin: 2rem 0;
    background: linear-gradient(135deg, #FFF7ED, #FEF3C7);
    border-radius: 0 16px 16px 0;
    font-style: italic; color: #92400e;
}
.blog-content table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin: 2rem 0; border-radius: 16px; overflow: hidden;
    border: 1px solid #e5e7eb;
}
.blog-content th {
    background: #f8f9fa; font-weight: 600; color: #1A1A2E;
    padding: 0.875rem 1.125rem; border-bottom: 2px solid #e5e7eb; text-align: left;
}
.blog-content td {
    padding: 0.875rem 1.125rem; border-bottom: 1px solid #f3f4f6; text-align: left;
}
.blog-content tr:last-child td { border-bottom: none; }
.blog-content strong { color: #1A1A2E; font-weight: 600; }

/* ── Section Divider ─────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06) 20%, rgba(0,0,0,0.06) 80%, transparent);
}

/* ── Badge/Pill ──────────────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8125rem; font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 100px;
}

/* ── Number Counter ──────────────────────────────────────────── */
.counter { font-variant-numeric: tabular-nums; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
    .blog-content h2 { font-size: 1.375rem; }
    .blog-content h3 { font-size: 1.125rem; }
}
