/* ----------------------------------------
   RESET & BASE
----------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ----------------------------------------
   COLOR SYSTEM (Light)
----------------------------------------- */
:root{
  --bg: hsl(0 0% 100%);
  --fg: hsl(222 14% 16%);
  --muted: hsl(220 14% 96%);
  --muted-fg: hsl(220 9% 46%);
  --border: hsl(220 13% 90%);

  --primary: hsl(218 68% 27%);
  --primary-600: hsl(218 68% 22%);
  --primary-fg: white;

  --secondary: hsl(185 58% 42%);
  --secondary-600: hsl(185 58% 36%);
  --accent: #21dfd8;
  --accent-600: #6ef0eb;

  --surface: hsl(0 0% 100%);
  --surface-2: hsl(220 14% 98%);
  --shadow: 0 6px 24px -8px hsl(220 40% 20% / .18);
  --ring: 0 0 0 3px hsl(218 68% 27% / .12);

  --radius: 14px;

  /* FAB layout (WhatsApp + Theme toggle) */
  --wa-size: 56px;         /* WhatsApp bubble size */
  --theme-size: 48px;      /* Dark-mode bubble size */
  --fab-gap: 12px;         /* gap between bubbles */
  --fab-right: 18px;       /* right offset */
  --fab-bottom: 18px;      /* bottom offset for WA */
}

/* ----------------------------------------
   DARK MODE TOKENS
----------------------------------------- */
.dark{
  --bg: hsl(222 25% 10%);
  --fg: hsl(210 15% 92%);
  --muted: hsl(222 20% 12%);
  --muted-fg: hsl(215 14% 72%);
  --border: hsl(220 13% 22%);
  --surface: hsl(222 22% 12%);
  --surface-2: hsl(222 22% 14%);
  --shadow: 0 8px 28px -10px hsl(210 80% 2% / .55);
  --ring: 0 0 0 3px hsl(185 58% 42% / .16);
}

/* ----------------------------------------
   TYPOGRAPHY
----------------------------------------- */
body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3{
  font-family: Poppins, Inter, sans-serif;
  line-height: 1.2;
}

h1{ font-weight: 700; letter-spacing: -0.02em; }
h2{ font-weight: 700; letter-spacing: -0.015em; }
h3{ font-weight: 600; }

.container{ max-width: 1180px; margin: 0 auto; padding: 0 1.2rem; }

section{ padding: clamp(3.5rem, 6vw, 6.5rem) 0; }

.section-header{ text-align: center; max-width: 740px; margin: 0 auto 2.5rem; }
.section-header p{ color: var(--muted-fg); }

/* ----------------------------------------
   NAVBAR
----------------------------------------- */
nav{
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
nav .bar{
  height: 4.25rem;
  display: grid;
  grid-template-columns: auto 1fr auto; /* logo | links | CTA/hamburger */
  align-items: center;
  gap: 12px;
}
.logo{
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--primary);
}
.logo-badge{
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700;
  box-shadow: var(--shadow);
}
.nav-links{
  display: none;                 /* mobile: hidden */
  align-items: center;
  justify-content: center;       /* centers menu */
  gap: 1.4rem;
  text-align: center;
}
.nav-links a{ color: var(--fg); font-weight: 500; opacity: .9; }
.nav-links a:hover{ color: var(--primary); }

/* CTA button on the right (desktop), hidden on mobile */
.nav-cta{ display: none; justify-self: end; }

/* Hamburger */
.menu-btn{
  justify-self: end;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .5rem;
}

/* Mobile flyout */
.mobile-menu{ display: none; border-top: 1px solid var(--border); padding: .6rem 0 1rem; }
.mobile-menu a{ display: block; padding: .75rem 1rem; border-radius: 10px; }
.mobile-menu a:hover{ background: var(--muted); color: var(--primary); }

/* Desktop layout */
@media (min-width: 860px){
  .nav-links{ display: flex; }
  .menu-btn{ display: none; }           /* no hamburger on desktop */
  .mobile-menu{ display: none !important; }
  .nav-cta{ display: inline-flex; }     /* show CTA on right */
}

/* Hide the small logo in the navbar on desktop (big logo is in hero) */
@media (min-width: 1024px){
  nav .logo{ display: none; }
}

/* Desktop CTA style (yellow pill) */
.nav-cta{
  position: relative;
  display: none;
  justify-self: end;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  background: var(--accent) !important;
  color: var(--fg) !important;
  border: 1px solid color-mix(in oklab, var(--accent) 65%, black 15%);
  box-shadow: var(--shadow);
}
@media (min-width: 860px){
  .nav-cta{ display: inline-flex; }
  .nav-cta::before{
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    background: var(--accent);
    opacity: .18;
    filter: blur(10px);
    pointer-events: none;
  }
}
.nav-cta:hover{ background: var(--accent-600) !important; }
@media (prefers-reduced-motion: no-preference) and (min-width: 860px){
  .nav-cta::before{ animation: ctaPulse 2s infinite; }
  @keyframes ctaPulse{
    0%   { opacity:.2; filter: blur(10px); transform: scale(1); }
    70%  { opacity:0;  filter: blur(14px); transform: scale(1.15); }
    100% { opacity:0;  filter: blur(14px); transform: scale(1); }
  }
}

/* ----------------------------------------
   HERO
----------------------------------------- */
.hero{
  position: relative;
  min-height: 84vh;
  display: grid;
  place-items: center;
  padding-top: 1rem;
  background:
    radial-gradient(80rem 40rem at 20% -20%, color-mix(in oklab, var(--secondary) 18%, transparent) 0%, transparent 55%),
    radial-gradient(70rem 40rem at 100% 10%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}
.hero-inner{ max-width: 1180px; width: 100%; padding: 2rem 1.2rem; }

/* two-column layout */
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.6rem;
  column-gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr 1fr; }
}

/* left: big logo */
.hero-brand{ display: grid; place-items: center; text-align: center; }
.hero-brand img{
  width: clamp(200px, 30vw, 440px);
  height: auto;
  filter: drop-shadow(0 18px 40px hsl(210 80% 2% / .45));
}

/* right: content */
.hero-content{
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
@media (min-width: 1024px){
  .hero-content{ text-align: left; margin-inline: 0; }
  .hero-content .hero-buttons{ justify-content: flex-start; }
}

.hero h1{ font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 0 0 .75rem; }
.highlight{ color: var(--secondary); display: inline-block; }

.hero p{
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--muted-fg);
  margin: 0 0 1.6rem;
  max-width: 720px;
}

.hero-buttons{
  display: flex;
  flex-direction: column;
  gap: .8rem;
  align-items: center;
  justify-content: center;
  margin: 1.2rem 0 1.6rem;
}

.btn{
  padding: 1rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn-accent{ background: var(--accent); color: var(--fg); }
.btn-accent:hover{ background: var(--accent-600); }
.btn-outline{ background: transparent; color: var(--fg); border-color: var(--border); }
.btn-outline:hover{ border-color: var(--primary); color: var(--primary); }

.hero-features{
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: .8rem 0 0;
}
.hero-feature{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: color-mix(in oklab, var(--primary) 6%, transparent);
  padding: .7rem 1rem;
  border-radius: 10px;
  color: var(--fg);
  font-weight: 500;
  border: 1px solid var(--border);
}
@media (min-width: 600px){
  .hero-features{ grid-template-columns: repeat(3, 1fr); }
}

/* ----------------------------------------
   CARDS
----------------------------------------- */
.grid{ display: grid; gap: 1.2rem; }
.grid-3{ grid-template-columns: 1fr; }
@media (min-width: 780px){ .grid-3{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px){ .grid-3{ grid-template-columns: repeat(3, 1fr); } }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: 0 14px 48px -12px hsl(220 40% 20% / .22); }
.card h3{ margin: .4rem 0 .4rem; }
.card p{ color: var(--muted-fg); }

.icon{
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in oklab, var(--primary) 10%, var(--surface));
  border: 1px solid var(--border);
  color: var(--primary);
  margin-bottom: .6rem;
}

/* ----------------------------------------
   ABOUT / STATS
----------------------------------------- */
.about{ display: grid; gap: 1.6rem; align-items: start; }
@media (min-width: 1024px){
  .about{ grid-template-columns: 1.1fr .9fr; gap: 2.2rem; }
}
.about h2{ font-size: clamp(2rem, 4.2vw, 2.8rem); color: var(--primary); margin: 0 0 .6rem; }
.about p{ color: var(--muted-fg); }

.stats{ display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 980px){ .stats{ grid-template-columns: repeat(4, 1fr); } }

.stat{
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.stat .val{ font-size: 2rem; font-weight: 700; color: var(--primary); line-height: 1; margin-bottom: .35rem; }
.stat .lbl{ color: var(--muted-fg); font-weight: 600; }

/* ----------------------------------------
   CONTACT
----------------------------------------- */
.contact{ display: grid; gap: 1.6rem; }
@media (min-width: 1024px){ .contact{ grid-template-columns: 1.1fr .9fr; } }

.form-group{ margin-bottom: 1rem; }
.label{ display: block; font-weight: 600; margin-bottom: .45rem; }

.input, .textarea{
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  border-radius: 12px;
  padding: .85rem 1rem;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: var(--ring);
}
.textarea{ min-height: 140px; resize: vertical; }

.contact-card{
  display: flex; gap: .9rem; padding: 1.1rem; align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.chip{
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: .45rem .7rem; color: var(--muted-fg);
  font-size: .9rem;
}

/* ----------------------------------------
   UTILITIES
----------------------------------------- */
.divider{ height: 1px; background: var(--border); margin: 1.6rem 0; opacity: .8; }

.sr-only{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ----------------------------------------
   TOAST
----------------------------------------- */
#toast{
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 50;
  transform: translateY(30px); opacity: 0;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); border-radius: 14px;
  padding: .9rem 1rem; box-shadow: var(--shadow);
  max-width: 280px; transition: .28s ease;
}
#toast.show{ transform: translateY(0); opacity: 1; }
#toast h4{ margin: 0 0 .2rem; }
#toast p{ margin: 0; color: var(--muted-fg); font-size: .95rem; }

/* ----------------------------------------
   SCROLL REVEAL (animations)
----------------------------------------- */
.reveal{ opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal-show{ opacity: 1; transform: translateY(0); }
.reveal-left{ transform: translateX(-32px); }
.reveal-right{ transform: translateX(32px); }
.reveal-show.reveal-left, .reveal-show.reveal-right{ transform: translateX(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
  .reveal, .reveal-left, .reveal-right{ opacity: 1 !important; transform: none !important; }
}

/* ----------------------------------------
   WhatsApp CTA & Floating FABs
----------------------------------------- */
.btn-wa{
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.25rem; border-radius: 12px; font-weight: 700;
  background: var(--accent); color: var(--fg);
  border: 1px solid color-mix(in oklab, var(--accent) 65%, black 15%);
  box-shadow: var(--shadow);
}
.btn-wa:hover{ background: var(--accent-600); }

.wa-pill{
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); border-radius: 999px;
  padding: .55rem .9rem; background: var(--surface); color: var(--muted-fg);
  cursor: pointer;
}
.wa-pill.active{ border-color: var(--primary); color: var(--primary); }

/* WhatsApp bubble */
.wa-fab{
  position: fixed;
  right: var(--fab-right);
  bottom: var(--fab-bottom);
  z-index: 60;
  display: inline-grid; place-items: center;
  width: var(--wa-size); height: var(--wa-size);
  border-radius: 999px;
  background: var(--secondary); color: white;
  box-shadow: 0 10px 28px -8px hsl(210 80% 10% / .45), inset 0 0 0 1px hsl(0 0% 100% / .15);
  border: 1px solid color-mix(in oklab, var(--secondary) 65%, black 15%);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.wa-fab:hover{ transform: translateY(-2px); background: var(--secondary-600); }

@media (prefers-reduced-motion: no-preference){
  .wa-fab::after{
    content: ""; position: absolute; inset: -6px; border-radius: 999px;
    box-shadow: 0 0 0 0 hsl(185 58% 42% / .35); animation: waPulse 1.8s infinite;
  }
  @keyframes waPulse{
    0% { box-shadow: 0 0 0 0 hsl(185 58% 42% / .35); }
    70%{ box-shadow: 0 0 0 12px hsl(185 58% 42% / 0); }
    100%{ box-shadow: 0 0 0 0 hsl(185 58% 42% / 0); }
  }
}

@media print{ .wa-fab{ display: none !important; } }

/* Dark-mode bubble — always above WA on all screens */
.theme-fab{
  position: fixed;
  right: var(--fab-right);
  bottom: calc(var(--fab-bottom) + var(--wa-size) + var(--fab-gap));
  z-index: 61;
  display: inline-grid; place-items: center;
  width: var(--theme-size); height: var(--theme-size);
  border-radius: 999px;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.theme-fab:hover{ transform: translateY(-2px); }
.theme-fab .sun{ display: inline; }
.theme-fab .moon{ display: none; }
.dark .theme-fab{ background: var(--primary); color: var(--primary-fg); border-color: color-mix(in oklab, var(--primary) 70%, black 18%); }
.dark .theme-fab .sun{ display: none; }
.dark .theme-fab .moon{ display: inline; }

/* Slightly tighter spacing on very small phones */
@media (max-width: 420px){
  :root{
    --wa-size: 54px;
    --theme-size: 46px;
    --fab-right: 16px;
    --fab-bottom: 16px;
    --fab-gap: 10px;
  }
}

/* ----------------------------------------
   Desktop-only logo removal (keep mobile)
----------------------------------------- */
@media (min-width: 1024px){
  nav .logo{ display: none; }
}

/* ----------------------------------------
   2-column hero helper (no change)
----------------------------------------- */
.hero{ min-height: 82vh; display: grid; place-items: center; }
.hero-inner{ padding: 2rem 0; }
.hero-grid{ display: grid; gap: 1.8rem; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px){ .hero-grid{ grid-template-columns: 1fr 1fr; } }
.hero-brand{ display: grid; place-items: center; text-align: center; }
.hero-brand img{
  width: clamp(180px, 28vw, 420px);
  height: auto;
  filter: drop-shadow(0 18px 40px hsl(210 80% 2% / .45));
  border-radius: 18px;
}
.hero-content{ text-align: center; }
@media (min-width: 1024px){
  .hero-content{ text-align: left; margin-left: 0; }
  .hero-content .hero-buttons{ justify-content: flex-start; }
  .hero-features{ margin-left: 0; }
}

/* Tone down the "Get in Touch" button specifically in dark mode */
.dark .nav-cta{
  /* darker, flatter pill */
  background: color-mix(in oklab, var(--accent) 55%, rgba(122, 116, 116, 0.144) 45%) !important;
  border-color: color-mix(in oklab, var(--accent) 45%, rgba(41, 40, 40, 0.13) 40%);
  box-shadow: none;                 /* remove halo/shadow */
}

.dark .nav-cta:hover{
  background: color-mix(in oklab, var(--accent) 45%, black 55%) !important;
}

/* kill the soft glow ring that sits behind it */
.dark .nav-cta::before{
  content: none !important;
}
