/* =========================================================
   GrowNext Logistics — stylesheet
   Design tokens pulled from Figma file "GrowNext"
   frame: Grownext - Option 2 - Final
   ========================================================= */

:root {
  --color-accent: #e67c0c;
  --color-accent-dark: #c96a09;
  --color-ink: #00040f;
  --color-navy: #011f48;
  --color-slate-600: #616a75;
  --color-slate-400: #939ca7;
  --color-slate-300: #adb6c1;
  --color-slate-50: #eff4f9;
  --color-surface: #f1f1f3;
  --color-strip: #f7f8fa;
  --color-white: #ffffff;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container-w: 1200px;
  --container-pad: clamp(20px, 5vw, 80px);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-soft: 4px 4px 12px 0 rgba(0, 4, 15, 0.05);
  --shadow-card: 4px 4px 6px rgba(0, 4, 15, 0.05);

  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.accent { color: var(--color-accent); }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 700; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline { background: #fff; color: var(--color-ink); border-color: var(--color-slate-300); }
.btn-outline:hover { border-color: var(--color-ink); }
.btn.full { width: 100%; }

/* ---------- eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--color-accent);
  margin-bottom: 16px;
}
.eyebrow-line { width: 40px; height: 1px; background: var(--color-accent); display: inline-block; }

.underline { height: 10px; width: auto; margin-top: -4px; }
.underline-centered { display: block; margin: 0 auto; }

.centered-heading {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 56px;
  position: relative;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #fdf5ec 0%, #ffffff 100%);
  border-bottom: 1px solid rgba(0,4,15,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 12px;
}
.logo img { height: 40px; width: auto; }

.main-nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-ink);
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--color-slate-50); }
.nav-link.active { color: var(--color-accent); background: #fff; }

.header-actions { display: flex; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--color-slate-300);
  border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; height: 2px; width: 20px; margin-inline: auto; background: var(--color-ink); transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 80px 96px;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg-fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.92) 35%, rgba(255,255,255,0.55) 60%, rgba(255,255,255,0.15) 100%);
}

.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

.hero-copy h1 {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  position: relative;
}
.underline-hero { position: absolute; margin-left: 8px; }
.hero-sub {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-slate-600);
  letter-spacing: -0.002em;
  max-width: 46ch;
}

.tracking-card {
  background: #fff;
  border: 1px solid #c6cfda;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 500; color: var(--color-slate-600); }
.field input,
.field select,
.field textarea {
  border: none;
  background: var(--color-slate-50);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.015em;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--color-slate-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 72px; }

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.select-wrap .chevron {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  pointer-events: none;
}

.tracking-card .btn { margin-top: 8px; }
.field-msg { font-size: 13px; margin: 10px 0 0; min-height: 16px; color: var(--color-accent); font-weight: 500; }
.field-msg.error { color: #c0392b; }

/* =========================================================
   FEATURE STRIP
   ========================================================= */
.feature-strip { background: var(--color-strip); }
.feature-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 40px;
  padding-block: 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding-block: 96px 64px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 24px;
  position: relative;
}
.about-copy p { color: var(--color-slate-600); font-size: 16px; line-height: 1.7; margin: 0 0 16px; }

.hotline-card {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #c6cfda;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 14px 24px;
  margin-top: 24px;
}
.hotline-card img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.hotline-label { margin: 0; font-size: 12px; color: var(--color-slate-600); }
.hotline-value { margin: 2px 0 0; font-size: 16px; font-weight: 600; }

.about-media img {
  width: 100%;
  aspect-ratio: 580 / 410;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.photo-strip { margin-top: 48px; }
.photo-strip img {
  width: 100%;
  aspect-ratio: 1200 / 158;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid #c6cfda;
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services { padding-block: 64px 96px; }
.services-intro { max-width: 540px; margin-bottom: 56px; }
.services-intro h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
}
.services-intro p { color: var(--color-slate-600); font-size: 16px; margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 32px;
}
.service-item { padding-block: 24px; border-top: 1px solid #dfe4ea; }
.services-grid .service-item:nth-child(-n+3) { border-top: none; padding-top: 0; }
.service-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.service-item h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.005em; margin-bottom: 12px; }
.service-item .rule { display: block; width: 25px; height: 1px; background: var(--color-slate-300); margin-bottom: 14px; }
.service-item p { margin: 0; font-size: 14px; color: var(--color-slate-600); letter-spacing: -0.005em; max-width: 32ch; }

/* =========================================================
   WHY PARTNER
   ========================================================= */
.why-partner { background: var(--color-surface); padding-block: 80px; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item { text-align: center; }
.why-icon {
  width: 80px; height: 80px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--color-accent);
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.why-icon svg { width: 36px; height: 36px; }
.why-item h3 { font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.why-item p { margin: 0; font-size: 14px; color: var(--color-slate-600); }

/* =========================================================
   MARKETS BANNER
   ========================================================= */
.markets-banner img { width: 100%; height: auto; object-fit: cover; display: block; }

/* =========================================================
   PRESENCE / MAPS
   ========================================================= */
.presence { padding-block: 96px; }
.presence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.presence-map { position: relative; background: var(--color-surface); aspect-ratio: 580/495; overflow: hidden; }
.presence-map img { width: 200%; height: 100%; object-fit: cover; }
.presence-map img.map-left { object-position: left center; }
.presence-map img.map-right { width: 200%; margin-left: -100%; object-position: right center; }
.map-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  z-index: 2;
}
.map-badge--dark { background: var(--color-navy); }
.map-badge--accent { background: var(--color-accent); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding-block: 96px; background: var(--color-surface); }
.contact-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 64px; align-items: start; }
.contact-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  position: relative;
}
.contact-copy p { color: var(--color-slate-600); font-size: 16px; max-width: 40ch; margin: 0 0 32px; }
.contact-details { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.contact-details strong { display: block; font-size: 13px; color: var(--color-slate-600); margin-bottom: 4px; font-weight: 500; }
.contact-details a { font-weight: 600; font-size: 16px; }
.contact-details a:hover { color: var(--color-accent); }

.contact-card {
  background: #fff;
  border: 1px solid #c6cfda;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.contact-card h3 { font-size: 22px; margin-bottom: 4px; }
.contact-card-sub { margin: 0 0 24px; font-size: 14px; color: var(--color-slate-600); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--color-ink); color: #fff; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 18px;
}
.footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-nav a { font-size: 16px; font-weight: 500; color: #fff; }
.footer-nav a.active { color: var(--color-accent); }
.footer-nav a:hover { color: var(--color-accent); }
.footer-copy { margin: 0; font-size: 16px; color: #fff; opacity: 0.85; }

/* =========================================================
   MODAL
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,4,15,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,4,15,0.25);
}
.modal h3 { font-size: 24px; margin-bottom: 8px; }
.modal p { color: var(--color-slate-600); font-size: 14px; margin: 0 0 24px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--color-slate-50);
  font-size: 20px;
  line-height: 1;
  color: var(--color-slate-600);
}
.modal-close:hover { background: var(--color-surface); color: var(--color-ink); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .tracking-card { max-width: 420px; margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-media img { aspect-ratio: 16/9; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    padding: 16px var(--container-pad) 0;
    border-bottom: 1px solid #eee;
  }
  .site-header.menu-open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 168px);
    left: 0; right: 0;
    background: #fff;
    padding: 0 var(--container-pad) 16px;
  }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-item:nth-child(-n+3) { border-top: 1px solid #dfe4ea; padding-top: 24px; }
  .services-grid .service-item:nth-child(-n+2) { border-top: none; padding-top: 0; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-item { border-top: 1px solid #dfe4ea; padding-top: 24px; }
  .services-grid .service-item:first-child { border-top: none; padding-top: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .presence-grid { grid-template-columns: 1fr; }
  .contact-details { flex-direction: column; gap: 16px; }
  .hero { padding-block: 56px 64px; }
  .centered-heading { margin-bottom: 36px; }
}
