/* === Variables ========================================================== */
:root {
  --red:       #ef2f3d;
  --red-dark:  #c91f2c;
  --blue:      #172b7a;
  --blue-dark: #0c1850;
  --ink:       #0c1850;
  --body:      #344054;
  --muted:     #667085;
  --line:      rgba(23, 43, 122, 0.11);
  --soft:      #f4f7fc;
  --white:     #ffffff;
  --shadow-sm: 0 2px 10px rgba(12, 24, 80, .07);
  --shadow-md: 0 8px 32px rgba(12, 24, 80, .11);
  --shadow-lg: 0 24px 64px rgba(12, 24, 80, .15);
  --nav-h:     64px;
}

/* === Reset & Base ======================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: linear-gradient(175deg, #ffffff 0%, #eef3fc 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* === Sticky header ====================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

/* === Topbar ============================================================= */
.topbar {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

/* === Brand ============================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: clamp(80px, 8vw, 112px);
  height: auto;
}

/* === Main nav =========================================================== */
.main-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 2px;
}
.nav-link {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-link:hover {
  background: rgba(23, 43, 122, .07);
  color: var(--blue-dark);
}

/* === Topbar end ========================================================= */
.topbar-end {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* === Language switch ==================================================== */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-btn {
  border: 0;
  padding: 7px 13px;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  transition: background .18s, color .18s;
}
.lang-btn.active {
  background: var(--blue);
  color: white;
}

/* === Hamburger ========================================================== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .24s ease, opacity .24s ease;
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Scroll offset ====================================================== */
#home, #services, #social {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* === Hero =============================================================== */
.hero {
  width: min(1100px, calc(100% - 40px));
  margin: 52px auto 40px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 32px;
  align-items: center;
}

/* === Hero content ======================================================= */
.hero-content { }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(239, 47, 61, .08);
  border: 1px solid rgba(239, 47, 61, .2);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* Headline */
h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: .92;
  letter-spacing: -0.055em;
  color: var(--ink);
}
h1 strong {
  display: block;
  color: var(--red);
}

/* Lead */
.lead {
  color: var(--body);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 520px;
}

/* CTA row */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* === Buttons ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 8px 22px rgba(239, 47, 61, .3);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(239, 47, 61, .4); }

.btn-ghost {
  color: var(--blue);
  border-color: var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: rgba(23, 43, 122, .28); }

/* === Features =========================================================== */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-dark);
}
.feature-item i {
  color: var(--red);
  font-size: 13px;
  flex-shrink: 0;
}

/* === Hero visual ======================================================== */
.hero-visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow-lg);
  background:
    url("https://images.unsplash.com/photo-1510097467424-192d713fd8b2?auto=format&fit=crop&w=900&q=80")
    center / cover no-repeat;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,16,50,.92) 0%, rgba(10,16,50,.18) 60%, transparent 100%);
  z-index: 1;
}

/* Status badge */
.status-pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: var(--red);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .05em;
  box-shadow: var(--shadow-sm);
}
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: blink 1.5s ease-in-out infinite;
}

/* Caption */
.hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
  color: white;
}
.hero-caption h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-caption p {
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: 15px;
  line-height: 1.55;
}

/* === SEO strip ========================================================== */
.seo-strip {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 22px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.seo-label {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.keywords span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 13px;
}

/* === Social section ===================================================== */
.social-section {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 24px;
  padding: 40px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.social-title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
}

/* === Social pills ======================================================= */
.social-pills {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 26px 10px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
  white-space: nowrap;
}
.social-pill:hover { transform: translateY(-3px); }

.pill-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: white;
  flex-shrink: 0;
}
.pill-name { font-size: 15px; }

/* Facebook pill */
.pill-facebook {
  color: #1a5cbf;
  border-color: rgba(24, 119, 242, .22);
  background: rgba(24, 119, 242, .05);
}
.pill-facebook .pill-icon { background: #1877f2; }
.pill-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: white;
  box-shadow: 0 10px 28px rgba(24, 119, 242, .32);
}

/* Instagram pill */
.pill-instagram {
  color: #b5186b;
  border-color: rgba(221, 42, 123, .22);
  background: rgba(221, 42, 123, .05);
}
.pill-instagram .pill-icon { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #515bd4); }
.pill-instagram:hover {
  background: #c13584;
  border-color: #c13584;
  color: white;
  box-shadow: 0 10px 28px rgba(193, 53, 132, .32);
}

/* WhatsApp pill */
.pill-whatsapp {
  color: #0a7a43;
  border-color: rgba(37, 211, 102, .22);
  background: rgba(37, 211, 102, .05);
}
.pill-whatsapp .pill-icon { background: #25d366; }
.pill-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
  color: white;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .32);
}

/* === Footer ============================================================= */
.footer {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 0; }

/* === Responsive: mobile nav (≤768px) =================================== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 14px 18px; font-size: 16px; border-radius: 14px; text-align: center; }
}

/* === Responsive: tablet (≤960px) ======================================= */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 36px;
    gap: 24px;
  }
  .hero-visual { min-height: 320px; }
  .lead { max-width: 100%; }
  .footer { flex-direction: column; text-align: center; }
}

/* === Responsive: small mobile (≤560px) ================================= */
@media (max-width: 560px) {
  .topbar { height: 58px; }
  .brand img { width: 76px; }
  .hero { margin-top: 20px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .social-pills { flex-direction: column; align-items: center; }
  .social-pill { width: 100%; max-width: 280px; justify-content: center; padding: 12px 24px; }
}

/* === Reduced motion ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before, .status-pill::before { animation: none; }
}
