/* ================================================================
   GSCG Design System — shared/styles.css
   Brand: GSCG — Global Supply Chain of Goods
   Palette: Navy #001648 | Orange #EB7400 | White #FFFFFF | Black #000000
   Font: Golos Text (Google Fonts)
   WCAG AA: White on Navy 10.5:1 | Navy on White 10.5:1
   ================================================================ */

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

/* ---- CSS Custom Properties ---- */
:root {
  --navy:   #001648;
  --orange: #EB7400;
  --white:  #FFFFFF;
  --black:  #000000;

  --font: 'Golos Text', system-ui, sans-serif;

  --max-w: 1200px;
  --gap:   2rem;
  --radius: 6px;

  /* Spacing scale */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--orange);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  padding: 0.875rem var(--sp-md);
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
}

@media (max-width: 640px) {
  .logo-img { height: 36px; }
}

/* Legacy classes — kept for graceful fallback if any page hasn't been updated */
.logo-mark { display: none; }
.logo-text, .logo-tagline { display: none; }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--white);
  text-decoration: none;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--orange);
  text-decoration: none;
}

.main-nav a.active {
  border-bottom: 2px solid var(--orange);
}

/* Header CTA */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  line-height: 1.4;
  transition: opacity 0.15s;
}

.btn:hover { opacity: 0.88; text-decoration: none; }

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-xl) var(--sp-md);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.hero-inner.hero-centered {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 720px;
}

.hero-tag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-sm);
  display: block;
}

.hero-title {
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: var(--sp-sm);
}

.hero-sub {
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.85;
  line-height: 1.55;
  margin-bottom: var(--sp-lg);
  max-width: 560px;
}

.hero-inner.hero-centered .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  align-items: center;
}

.hero-inner.hero-centered .hero-actions {
  justify-content: center;
}

.hero-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-link:hover { color: var(--orange); }

/* Hero visual placeholder */
.hero-visual {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(235,116,0,0.35);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--white);
  opacity: 0.7;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: var(--sp-md);
}

/* ================================================================
   SECTION GENERIC
   ================================================================ */
.section {
  padding: var(--sp-xl) var(--sp-md);
}

.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); color: var(--white); }
.section-orange { background: var(--orange); color: var(--navy); }

.section-title {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: var(--sp-xs);
}

.section-navy .section-title  { color: var(--white); }
.section-orange .section-title { color: var(--navy); }

.section-sub {
  font-size: 1rem;
  color: var(--navy);
  opacity: 0.7;
  margin-bottom: var(--sp-lg);
  max-width: 640px;
}

.section-navy .section-sub   { color: var(--white); opacity: 0.8; }
.section-orange .section-sub { color: var(--navy); opacity: 0.8; }

/* ================================================================
   CARDS
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.card-icon {
  width: 40px;
  height: 40px;
  background: var(--orange);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon svg { width: 22px; height: 22px; fill: var(--white); }

.card-title {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  line-height: 1.25;
}

.card-body {
  font-size: 0.9375rem;
  color: var(--navy);
  opacity: 0.8;
  line-height: 1.55;
}

/* Card highlight (Orange top border) */
.card-highlight { border-top: 3px solid var(--orange); }

/* ================================================================
   STATS STRIP
   ================================================================ */
.stats-strip {
  background: var(--navy);
  padding: var(--sp-xl) var(--sp-md);
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap);
  text-align: center;
}

.stat-value {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.375rem;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0.8;
  line-height: 1.35;
}

/* ================================================================
   CTA BANNER
   ================================================================ */
.cta-banner {
  background: var(--orange);
  padding: var(--sp-xl) var(--sp-md);
  text-align: center;
}

.cta-banner h2 {
  font-weight: 700;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  color: var(--navy);
  margin-bottom: var(--sp-sm);
  line-height: 1.25;
}

.cta-banner p {
  font-size: 1rem;
  color: var(--navy);
  opacity: 0.85;
  margin-bottom: var(--sp-lg);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
}

.footer-col-title {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: var(--sp-sm);
}

.footer-col p,
.footer-col address {
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0.8;
  line-height: 1.6;
  font-style: normal;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--orange);
  opacity: 1;
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--sp-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--white);
  opacity: 0.5;
}

/* ================================================================
   STEPS (How it works)
   ================================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.step-num {
  font-weight: 900;
  font-size: 2.5rem;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.step-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.3;
}

.step-body {
  font-size: 0.9375rem;
  color: var(--navy);
  opacity: 0.78;
  line-height: 1.55;
}

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea {
  font-family: var(--font);
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus {
  border-color: var(--orange);
}

textarea { min-height: 100px; resize: vertical; }

/* ================================================================
   LOGIN PAGE SPECIFIC
   ================================================================ */
.login-page {
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl) var(--sp-md);
  gap: var(--sp-lg);
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--sp-xl) var(--sp-lg);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.login-card h1 {
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--navy);
  text-align: center;
}

.login-card .form-group { margin-bottom: 0.25rem; }

.login-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--navy);
  opacity: 0.35;
  font-size: 0.8125rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--navy);
  opacity: 0.2;
}

.login-security {
  text-align: center;
  font-size: 0.8rem;
  color: var(--white);
  opacity: 0.5;
}

/* ================================================================
   PRODUCT TILES (platforma 9-dot switcher)
   ================================================================ */
.product-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}

.product-tile {
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-top: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: var(--sp-md);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  transition: border-color 0.15s;
}

.product-tile:hover { border-color: var(--orange); text-decoration: none; }

.product-tile-icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.product-tile-icon svg { width: 26px; height: 26px; fill: var(--white); }

.product-tile-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  line-height: 1.2;
}

.product-tile-desc {
  font-size: 0.8125rem;
  color: var(--navy);
  opacity: 0.65;
  line-height: 1.4;
}

/* ================================================================
   SEARCH BAR (customs page)
   ================================================================ */
.search-bar {
  display: flex;
  gap: 0;
  max-width: 640px;
  width: 100%;
}

.search-bar input {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
  flex: 1;
  font-size: 1rem;
}

.search-bar .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  white-space: nowrap;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
}

/* Mock result card */
.result-card {
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--sp-sm) var(--sp-md);
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
}

.result-code {
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--orange);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.result-info { flex: 1; }
.result-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.result-meta {
  font-size: 0.8125rem;
  color: var(--navy);
  opacity: 0.65;
}

/* ================================================================
   CALCULATOR WIDGET
   ================================================================ */
.calc-widget {
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--sp-md) var(--sp-lg);
  max-width: 540px;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,22,72,0.1);
  font-size: 0.9375rem;
  color: var(--navy);
}

.calc-row:last-child { border-bottom: none; }
.calc-row span:last-child { font-weight: 600; }

.calc-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--sp-sm);
  border-top: 2px solid var(--navy);
  margin-top: 0.25rem;
}

.calc-total-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}

.calc-total-value {
  font-weight: 900;
  font-size: 2rem;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   SECURITY STRIP (apex)
   ================================================================ */
.security-strip {
  background: var(--navy);
  padding: var(--sp-lg) var(--sp-md);
}

.security-items {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-md);
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  color: var(--white);
}

.security-check {
  font-size: 1.25rem;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1.3;
}

.security-text { font-size: 0.9rem; opacity: 0.85; line-height: 1.45; }

/* ================================================================
   GEOGRAPHY / JURISDICTIONS
   ================================================================ */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-sm);
}

.geo-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem var(--sp-sm);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.geo-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ================================================================
   TRANSPORT MODES
   ================================================================ */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-sm);
}

.mode-item {
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--sp-sm);
  text-align: center;
}

.mode-label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.mode-sub {
  font-size: 0.75rem;
  color: var(--navy);
  opacity: 0.6;
}

/* ================================================================
   ACCESS FORM (apex)
   ================================================================ */
.access-form {
  background: var(--white);
  border: 1.5px solid var(--navy);
  border-radius: var(--radius);
  padding: var(--sp-lg) var(--sp-xl);
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.access-form h2 {
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--navy);
  text-align: center;
}

.access-note {
  font-size: 0.8125rem;
  color: var(--navy);
  opacity: 0.6;
  text-align: center;
  line-height: 1.5;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --gap: 1.25rem;
    --sp-xl: 2.5rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { display: none; }

  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--navy);
    padding: var(--sp-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
    width: 100%;
  }

  .main-nav.open { display: flex; }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .header-actions {
    order: 2;
  }

  .main-nav {
    order: 4;
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .login-card {
    padding: var(--sp-md);
  }

  .calc-widget { max-width: 100%; }

  .access-form { padding: var(--sp-md); }

  .search-bar { flex-direction: column; }
  .search-bar input,
  .search-bar .btn { border-radius: var(--radius); border: 1.5px solid var(--navy); }
  .search-bar input { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-inner.hero-centered .hero-actions { align-items: center; }
}
