/* =========================================================
   Jupiter Link Digital Experts — Stylesheet
   ========================================================= */

/* --------- Design tokens --------- */
:root {
  --c-navy: #1E3A8A;
  --c-navy-dark: #152C68;
  --c-navy-deeper: #0F1F4A;
  --c-orange: #F97316;
  --c-orange-dark: #EA580C;
  --c-charcoal: #1F2937;
  --c-gray: #6B7280;
  --c-gray-light: #9CA3AF;
  --c-bg: #FFFFFF;
  --c-bg-soft: #F8FAFC;
  --c-bg-band: #F1F5F9;
  --c-border: #E5E7EB;
  --c-success: #16A34A;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 74, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 31, 74, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 31, 74, 0.12);

  --container: 1180px;
  --header-h: 80px;

  --ff-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --------- Reset / base --------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-charcoal);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-navy); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--c-orange); }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* --------- Typography --------- */
h1, h2, h3, h4 { color: var(--c-navy); margin: 0 0 var(--s-3); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 var(--s-3); }
.lead { font-size: 1.125rem; color: var(--c-gray); }
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-orange);
  margin-bottom: var(--s-3);
}

/* --------- Layout --------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--s-4); }
.section { padding: var(--s-7) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--navy { background: var(--c-navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead { color: rgba(255,255,255,0.78); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--s-6); }

/* --------- Header --------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-border);
  transition: box-shadow 0.2s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.header__logo { display: flex; align-items: center; gap: var(--s-2); }
.header__logo img { height: 52px; width: auto; display: block; }
.header__logo-text { display: none; }
.header__nav { display: flex; align-items: center; gap: var(--s-5); }
.header__nav a {
  color: var(--c-charcoal); font-weight: 500; font-size: 0.95rem;
  padding: var(--s-2) 0; position: relative;
}
.header__nav a.active, .header__nav a:hover { color: var(--c-navy); }
.header__nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--c-orange); border-radius: 2px;
}
.header__cta { display: flex; align-items: center; gap: var(--s-2); }
.header__phone {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-weight: 600; color: var(--c-navy);
}
.header__phone svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  color: var(--c-navy);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* --------- Buttons --------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600; font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }

.btn--primary { background: var(--c-orange); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-orange-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn--secondary { background: var(--c-navy); color: #fff; }
.btn--secondary:hover { background: var(--c-navy-dark); color: #fff; }

.btn--outline {
  background: transparent; color: var(--c-navy); border-color: var(--c-navy);
}
.btn--outline:hover { background: var(--c-navy); color: #fff; }

.btn--ghost-light {
  background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.4);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.22); color: #fff; }

.btn--sm { padding: 10px 16px; font-size: 0.875rem; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--whatsapp:hover { background: #1FB855; color: #fff; }

/* --------- Hero --------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-navy-deeper) 0%, var(--c-navy) 60%, var(--c-navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(249, 115, 22, 0.08) 0%, transparent 55%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; gap: var(--s-6);
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  padding: var(--s-8) 0;
}
.hero__content h1 { color: #fff; }
.hero__content .accent { color: var(--c-orange); }
.hero__sub { font-size: 1.125rem; color: rgba(255,255,255,0.85); margin: var(--s-4) 0 var(--s-5); max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-5); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5); margin-top: var(--s-4); }
.hero__trust span {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: rgba(255,255,255,0.92); font-weight: 500; font-size: 0.95rem;
}
.hero__trust .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-orange); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.hero__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.04);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--c-orange); color: #fff;
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.hero--slim { padding: var(--s-6) 0; }
.hero--slim .hero__inner { grid-template-columns: 1fr; padding: var(--s-6) 0; text-align: center; }
.hero--slim h1 { margin-bottom: var(--s-3); }
.hero--slim .hero__sub { margin: 0 auto; }

/* --------- Cards --------- */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #DBE2EE; }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  background: rgba(249, 115, 22, 0.10);
  color: var(--c-orange);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
}
.card__icon svg { width: 30px; height: 30px; }
.card h3 { color: var(--c-navy); margin-bottom: var(--s-2); }
.card p { color: var(--c-gray); margin-bottom: var(--s-3); flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--c-orange); font-weight: 600; font-size: 0.9rem;
  margin-top: auto;
}
.card__link:hover { color: var(--c-orange-dark); }
.card__link::after { content: '→'; transition: transform 0.15s ease; }
.card__link:hover::after { transform: translateX(3px); }

.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------- Why-choose strip --------- */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
}
.metric { text-align: center; padding: var(--s-3); }
.metric__icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto var(--s-3);
  color: var(--c-orange);
}
.metric__icon svg { width: 28px; height: 28px; }
.metric h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.metric p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin: 0; }

/* --------- About teaser / two-column --------- */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center;
}
.two-col__visual {
  border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-md);
}
.two-col__visual img { width: 100%; height: 100%; object-fit: cover; }

/* --------- Work gallery --------- */
.gallery {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(4, 1fr);
}
.gallery a {
  display: block; aspect-ratio: 3 / 4;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--c-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* --------- Area chips --------- */
.chips {
  display: grid; gap: var(--s-2);
  grid-template-columns: repeat(4, 1fr);
}
.chip {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-weight: 500; color: var(--c-charcoal);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.chip svg { width: 16px; height: 16px; color: var(--c-orange); flex-shrink: 0; }
.chips--inline { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips--inline .chip { font-size: 0.875rem; padding: 8px 14px; }

/* --------- Trust ticks list --------- */
.tick-list { display: grid; gap: var(--s-3); }
.tick-list li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: 1.02rem;
}
.tick-list .check {
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(22, 163, 74, 0.12); color: var(--c-success);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* --------- CTA band --------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
  color: #fff;
  padding: var(--s-7) 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 600px; margin: 0 auto var(--s-5); }
.cta-band__buttons { display: inline-flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }

/* --------- Contact form --------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s-6);
}
.contact-info { background: var(--c-bg-soft); padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid var(--c-border); }
.contact-info h3 { margin-top: var(--s-5); }
.contact-info h3:first-of-type { margin-top: 0; }
.contact-info__row { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.contact-info__row svg { width: 22px; height: 22px; color: var(--c-orange); flex-shrink: 0; }
.contact-info__row strong { display: block; color: var(--c-charcoal); }
.contact-info__row span { color: var(--c-gray); font-size: 0.9rem; }

.form { display: grid; gap: var(--s-3); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.form label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; color: var(--c-charcoal); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--c-border); border-radius: var(--r-md);
  font-family: inherit; font-size: 0.95rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0; border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.form textarea { min-height: 140px; resize: vertical; }

/* --------- Footer --------- */
.footer {
  background: var(--c-navy-deeper); color: rgba(255,255,255,0.78);
  padding: var(--s-7) 0 var(--s-4);
  font-size: 0.92rem;
}
.footer a { color: rgba(255,255,255,0.78); }
.footer a:hover { color: var(--c-orange); }
.footer__cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.footer__brand img { height: 48px; width: auto; margin-bottom: var(--s-3); filter: brightness(0) invert(1); opacity: 0.95; }
.footer__brand p { color: rgba(255,255,255,0.62); font-size: 0.9rem; max-width: 280px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: var(--s-3); }
.footer ul li { margin-bottom: var(--s-2); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: var(--s-3); margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2);
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}

/* --------- Floating WhatsApp --------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5); }
.wa-float svg { width: 30px; height: 30px; }

/* --------- Mobile nav --------- */
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .header__nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--s-3) var(--s-4) var(--s-4);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .header__nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .header__nav a { padding: 14px 0; border-bottom: 1px solid var(--c-border); width: 100%; }
  .header__nav a:last-child { border-bottom: 0; }
  .header__phone span { display: none; }
}

/* --------- Responsive --------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; padding: var(--s-6) 0; }
  .hero__visual { order: -1; aspect-ratio: 16 / 10; }
  .two-col { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}
@media (max-width: 640px) {
  .section { padding: var(--s-6) 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}

/* --------- Utility --------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------- Print --------- */
@media print {
  .header, .footer, .wa-float, .cta-band, .hero__cta { display: none; }
  body { color: #000; }
}
