/* 
  Codweb Design System — 2026
  Font: Outfit (Google Fonts)
  Primary: #1A56DB | Secondary: #6366f1 | Accent: #10b981
*/

:root {
    --primary: #1A56DB;
    --primary-dark: #1E429F;
    --secondary: #6366f1;
    --accent: #10b981;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #1e293b;
    --text-secondary: #64748b;
    --white: #ffffff;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --container-width: 1200px;
    --nav-height: 80px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { color: var(--dark); font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
p  { margin-bottom: 1rem; }
a  { text-decoration: none; color: inherit; transition: all .3s ease; }
ul { list-style: none; }
img, video { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

/* ── Layout ── */
.container { width: 90%; max-width: var(--container-width); margin: 0 auto; padding: 0 15px; }
.section   { padding: 96px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 64px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { color: var(--text-secondary); font-size: 1.125rem; }

/* ── Utilities ── */
.text-center { text-align: center; }
.w-100 { width: 100%; }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.gradient-bg { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; }
.glass-card  { background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); box-shadow: var(--shadow); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600;
    cursor: pointer; transition: all .3s ease; border: none; font-size: 1rem;
    font-family: var(--font-main);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: white; color: var(--primary); border: 1px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-outline-white { background: transparent; color: white; border: 2px solid white; }
.btn-outline-white:hover { background: white; color: var(--primary); }
.btn-whatsapp { background: var(--accent); color: white; }
.btn-whatsapp:hover { background: #0d9668; transform: translateY(-2px); }

/* ── Navigation ── */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    z-index: 1000; display: flex; align-items: center;
    border-bottom: 1px solid var(--border); transition: all .3s ease;
}
.header.scrolled { height: 70px; box-shadow: var(--shadow); }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 32px; }
.nav-link { font-weight: 500; color: var(--text-main); }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { width: 25px; height: 3px; background: var(--dark); border-radius: 2px; transition: all .3s ease; }

/* ── Mobile Menu ── */
.mobile-menu {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px; height: 100vh;
    background: white; z-index: 2000; padding: 80px 40px;
    transition: all .4s ease; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}
.mobile-menu.active { right: 0; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav-link { font-size: 1.25rem; font-weight: 600; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); z-index: 1500; display: none; }

/* ── Hero Banner (shared across inner pages) ── */
.hero-banner {
    background: radial-gradient(circle at top left, #2563eb, #1e3a8a, #0f172a);
    padding: 140px 0 100px; text-align: center; color: white;
    position: relative; overflow: hidden;
}
.hero-banner h1, .hero-banner h2, .hero-banner h3 { color: white; }
.hero-banner::after {
    content: ''; position: absolute; bottom: -50px; left: 0; right: 0;
    height: 100px; background: white; border-radius: 50% 50% 0 0;
}
.breadcrumb { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; font-size: .9rem; opacity: .8; }
.breadcrumb a { color: white; text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.5); }

/* ── Footer ── */
footer { background: var(--dark); color: white; padding: 80px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-col h4 { margin-bottom: 20px; }
.footer-col ul { padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: white; }
.footer-col p, .footer-col address { color: #94a3b8; font-size: .95rem; line-height: 1.7; }
.footer-logo { font-size: 1.5rem; font-weight: 800; color: white; margin-bottom: 16px; display: block; }
.footer-badge { display: inline-block; background: #1e293b; padding: 4px 14px; border-radius: 20px; font-size: .75rem; margin-top: 12px; color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 24px; color: #64748b; font-size: .875rem; }
.footer-bottom a { color: #94a3b8; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease-out, transform .6s ease-out; }
.fade-in.appear { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Google Maps ── */
gmpx-store-locator {
    width: 100%; height: 100%;
    --gmpx-color-surface: #fff;
    --gmpx-color-on-surface: #212121;
    --gmpx-color-primary: #1a56db;
    --gmpx-color-outline: #e0e0e0;
    --gmpx-font-family-base: "Outfit", sans-serif;
    --gmpx-font-size-base: 0.875rem;
    --gmpx-hours-color-open: #10b981;
    --gmpx-hours-color-closed: #ef4444;
}

/* ── Pricing Toggle ── */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 48px; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--border); transition: .4s; border-radius: 34px;
}
.slider:before {
    position: absolute; content: ""; height: 26px; width: 26px;
    left: 4px; bottom: 4px; background: white; transition: .4s; border-radius: 50%;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }

/* ── FAQ Accordion ── */
.faq-item { background: white; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 16px; overflow: hidden; }
.faq-question { padding: 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; transition: background .3s ease; }
.faq-question:hover { background: var(--light-bg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: all .3s ease; color: var(--text-secondary); }
.faq-item.active .faq-answer { padding: 0 24px 24px; max-height: 200px; }
.faq-icon { transition: transform .3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════ */

/* ── Tablet (max 1024px) ── */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }
    .section { padding: 72px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    
    /* Hero 2-col → stack */
    .hero-2col { grid-template-columns: 1fr !important; gap: 48px !important; }
    .hero-2col .dashboard-frame { max-width: 500px; margin: 0 auto; }
    
    /* Story / About 2-col */
    .story-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
    
    /* AI Context 2-col */
    .ai-context-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
    
    /* Stats 3-col → 2-col */
    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Contact 2-col → stack */
    .contact-container { grid-template-columns: 1fr !important; gap: 48px !important; }
}

/* ── Mobile (max 768px) ── */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.25rem; }
    .section { padding: 56px 0; }
    .section-header { margin-bottom: 40px; }
    
    /* Nav */
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    
    /* Hero */
    .hero-banner { padding: 120px 0 80px; }
    .hero-banner h1 { font-size: 2rem !important; }
    .hero-banner p  { font-size: 1rem !important; }
    
    /* Service / Pricing / Portfolio grids */
    .service-grid,
    .pricing-grid,
    .portfolio-grid { grid-template-columns: 1fr !important; }
    
    /* Team grid */
    .team-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
    
    /* Stats */
    .stats-grid { grid-template-columns: 1fr !important; }
    .stat-card { padding: 24px !important; }
    
    /* Fact grid */
    .fact-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    /* Contact form */
    .contact-form-card { padding: 32px !important; border-radius: 24px !important; }
    .form-row-2 { grid-template-columns: 1fr !important; }
    
    /* Pricing card featured scale reset */
    .price-card.featured { transform: none !important; }
    .price-card.featured:hover { transform: translateY(-8px) !important; }
    
    /* Map */
    .map-frame { height: 280px !important; }
}

/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
    h1 { font-size: 1.75rem; }
    .container { width: 95%; padding: 0 10px; }
    .section { padding: 40px 0; }
    
    .hero-banner { padding: 110px 0 70px; }
    .hero-banner h1 { font-size: 1.65rem !important; }
    
    /* Stack buttons */
    .hero-buttons { flex-direction: column !important; gap: 12px !important; }
    .hero-buttons .btn { width: 100%; }
    
    /* Team → single col */
    .team-grid { grid-template-columns: 1fr !important; }
    
    /* Facts → single col */
    .fact-grid { grid-template-columns: 1fr !important; }
    
    /* Service cards */
    .service-card { padding: 28px !important; border-radius: 24px !important; }
    
    /* Blog cards */
    .blog-grid { grid-template-columns: 1fr !important; }
    
    /* Pricing */
    .price-card { padding: 32px 24px !important; border-radius: 28px !important; }
    .price-value { font-size: 2.5rem !important; }
    
    /* Portfolio */
    .project-card .project-content { padding: 24px !important; }
    .project-image { height: 220px !important; }
    
    /* Trust badges */
    .trust-badges { flex-direction: column; gap: 20px !important; align-items: center; }
}
