/* =============================================
   BMG Otomasyon – main.css
   Shared: variables, reset, nav, footer, utils
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --navy:       #0B1D3A;
  --navy2:      #132645;
  --blue:       #1456C8;
  --blue2:      #1A6FFF;
  --cyan:       #00C2FF;
  --light:      #F4F7FF;
  --white:      #FFFFFF;
  --gray1:      #8899B4;
  --gray2:      #E8EEF8;
  --text:       #1A2B4A;
  --green:      #16a34a;
  --wa:         #25D366;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(11,29,58,.12);
  --shadow-lg:  0 12px 48px rgba(11,29,58,.18);

  --max-w:  1240px;
  --pad:    24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }

/* ── CONTAINER ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy);
  padding: 8px 0;
  font-size: 13px;
  color: var(--gray1);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-left  { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-right { display: flex; gap: 12px; align-items: center; }
.topbar a {
  color: var(--gray1);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.topbar a:hover { color: var(--cyan); }
.topbar-social { font-weight: 700; font-size: 14px; }

/* ── NAV ── */
nav {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(11,29,58,.08);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}

/* ── LOGO ── */
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--cyan);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy); line-height: 1.1; }
.logo-sub  { font-size: 10px; font-weight: 400; color: var(--gray1); letter-spacing: 2px; text-transform: uppercase; }

/* ── NAV LINKS ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.nav-links a:hover,
.nav-links a.active { background: var(--light); color: var(--blue); }

/* ── HAMBURGER ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .18s;
}
.nav-toggle:hover { background: var(--light); }
.nav-toggle span {
  display: block;
  width: 22px; height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .3s;
}
.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); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  font-family: var(--font-body);
  line-height: 1;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(20,86,200,.35); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }

/* ── SECTION HELPERS ── */
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-header p { color: var(--gray1); max-width: 540px; margin: 0 auto; font-size: 16px; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 60px 0 0;
  color: rgba(255,255,255,.6);
  font-size: 14px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { margin-top: 14px; line-height: 1.7; max-width: 280px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-sub  { color: rgba(255,255,255,.4); }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  font-size: 14px;
  transition: background .2s, color .2s;
}
.footer-socials a:hover { background: var(--blue); color: var(--white); }
.footer-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .18s;
}
.footer-col ul a:hover { color: var(--cyan); }
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

/* ── WHATSAPP FAB ── */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--wa);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
  transition: transform .2s, box-shadow .2s;
  z-index: 200;
}
.wa-fab:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(37,211,102,.5); }

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* stagger children */
.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 80ms; }
.stagger > *:nth-child(3) { transition-delay: 160ms; }
.stagger > *:nth-child(4) { transition-delay: 240ms; }
.stagger > *:nth-child(5) { transition-delay: 320ms; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: var(--shadow);
    border-top: 1px solid var(--gray2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .topbar-left  { font-size: 12px; gap: 10px; }
  .btn { padding: 10px 18px; font-size: 13.5px; }
}
