/* ============================================================
   MERIDIAN TRADE CO. — design tokens
   ============================================================ */
:root{
  --navy-deep:   #071523;
  --navy:        #0B1E33;
  --navy-soft:   #14304F;
  --paper:       #EDE6D6;
  --paper-line:  #D8CDB4;
  --ink:         #1B2430;
  --ink-soft:    #4B5563;
  --brass:       #C6952E;
  --brass-light: #E0B75C;
  --teal:        #4FB3A6;
  --stamp-red:   #B33A3A;
  --cream-text:  #F3EFE6;

  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; }
p{ margin:0 0 1em; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 32px; }

:focus-visible{ outline:3px solid var(--teal); outline-offset:3px; }

/* ============================================================
   TYPE
   ============================================================ */
.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.16em;
  color:var(--brass-light);
  margin:0 0 18px;
  font-weight:500;
}
.eyebrow-dark{ color:#9C7318; }

.section-title{
  font-family:var(--font-display);
  font-size:clamp(34px,4.6vw,54px);
  line-height:1.02;
  letter-spacing:.01em;
  color:var(--ink);
  margin-bottom:22px;
}
.section-title-light{ color:var(--cream-text); }
.section-lede{ max-width:560px; color:var(--ink-soft); font-size:18px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:600; font-size:14px;
  letter-spacing:.04em; text-transform:uppercase;
  padding:15px 28px; border-radius:2px; border:1px solid transparent;
  cursor:pointer; transition:transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-brass{ background:var(--brass); color:var(--navy-deep); }
.btn-brass:hover{ background:var(--brass-light); }
.btn-ghost{ background:transparent; color:var(--cream-text); border-color:rgba(243,239,230,.4); }
.btn-ghost:hover{ border-color:var(--cream-text); }
.btn-small{ padding:11px 20px; font-size:12.5px; }
.btn-full{ width:100%; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(7,21,35,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(198,149,46,.25);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:88px; }
.brand{ display:flex; align-items:center; gap:10px; color:var(--cream-text); }
.brand-logo{ height:64px; width:auto; display:block; background:#F5F1E6; border-radius:6px; padding:3px 8px; }
.brand-logo-footer{ height:88px; }

.main-nav{ display:flex; gap:34px; }
.main-nav a{ font-family:var(--font-mono); font-size:13.5px; letter-spacing:.03em; color:var(--cream-text); opacity:.82; transition:opacity .15s ease, color .15s ease; }
.main-nav a:hover{ opacity:1; color:var(--brass-light); }

.header-actions{ display:flex; align-items:center; gap:18px; }
.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ width:22px; height:2px; background:var(--cream-text); display:block; }

/* ============================================================
   HERO
   ============================================================ */
.hero{ position:relative; background:var(--navy-deep); overflow:hidden; }
.hero-map{ position:absolute; inset:0; opacity:.9; }
.hero-map svg{ width:100%; height:100%; }

.world-dots circle{ fill:rgba(243,239,230,.06); }

.route{ stroke:var(--teal); stroke-width:1.6; opacity:.55; stroke-dasharray:6 8; animation:dash 26s linear infinite; }
#route-2{ animation-duration:22s; }
#route-3{ animation-duration:30s; animation-direction:reverse; }
#route-4{ animation-duration:24s; }
#route-5{ animation-duration:28s; animation-direction:reverse; }
@keyframes dash{ to{ stroke-dashoffset:-280; } }

.port circle:first-child{ fill:var(--brass-light); }
.port .pulse{ fill:none; stroke:var(--brass-light); stroke-width:1.2; opacity:.7; transform-origin:center; animation:pulse 2.6s ease-out infinite; }
@keyframes pulse{ 0%{ r:5; opacity:.8; } 100%{ r:22; opacity:0; } }
.port text{ font-family:var(--font-mono); font-size:10px; fill:rgba(243,239,230,.55); letter-spacing:.05em; }

.hero-inner{ position:relative; padding:120px 32px 100px; }
.hero-title{ font-family:var(--font-display); color:var(--cream-text); font-size:clamp(52px,9vw,104px); line-height:.94; letter-spacing:.01em; margin:0 0 26px; }
.hero-sub{ max-width:520px; color:rgba(243,239,230,.78); font-size:19px; margin-bottom:38px; }
.hero-ctas{ display:flex; gap:16px; flex-wrap:wrap; }

.stat-strip{ position:relative; background:rgba(11,30,51,.9); border-top:1px solid rgba(198,149,46,.25); }
.stat-strip-inner{ display:grid; grid-template-columns:repeat(4,1fr); }
.stat{ padding:26px 20px; text-align:center; border-left:1px solid rgba(243,239,230,.1); }
.stat:first-child{ border-left:none; }
.stat-num{ display:block; font-family:var(--font-display); font-size:36px; color:var(--brass-light); letter-spacing:.02em; }
.stat-label{ display:block; font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:rgba(243,239,230,.6); margin-top:4px; }

/* ============================================================
   OBJECTIVE BAND
   ============================================================ */
.objective-band{ background:var(--navy); padding:52px 0; text-align:center; }
.objective-band .eyebrow{ text-align:center; }
.objective-text{ font-family:var(--font-body); font-style:italic; font-size:clamp(19px,2.2vw,24px); line-height:1.5; color:var(--cream-text); max-width:760px; margin:0 auto; }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section{ padding:112px 0; }
.section-dark{ background:var(--navy); }
.section-paper{ background:#E4DBC6; }
.section-cta{ background:var(--navy-deep); position:relative; }
.section-cta::before{
  content:""; position:absolute; inset:0; opacity:.5; pointer-events:none;
  background-image:radial-gradient(circle at 20% 20%, rgba(198,149,46,.08), transparent 45%);
}

/* ============================================================
   SERVICES
   ============================================================ */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--paper-line); margin-top:56px; border:1px solid var(--paper-line); }
.service-card{ background:var(--paper); padding:36px 30px; position:relative; }
.card-code{ position:absolute; top:24px; right:26px; font-family:var(--font-mono); font-size:11px; letter-spacing:.08em; color:#A99A78; }
.card-icon{ width:40px; height:40px; stroke:var(--navy); stroke-width:2; fill:none; margin-bottom:22px; }
.card-icon circle{ fill:var(--navy); stroke:none; }
.card-icon .stroke-brass{ stroke:var(--brass); }
.service-card h3{ font-family:var(--font-display); font-size:23px; letter-spacing:.02em; margin-bottom:10px; }
.service-card p{ color:var(--ink-soft); font-size:15.5px; margin:0; }

/* ============================================================
   PROCESS / TIMELINE
   ============================================================ */
.timeline{ margin-top:56px; position:relative; }
.timeline::before{ content:""; position:absolute; left:29px; top:6px; bottom:6px; width:1px; background:rgba(243,239,230,.18); }
.timeline-step{ display:flex; gap:28px; padding:26px 0; position:relative; }
.step-num{ font-family:var(--font-mono); font-size:15px; color:var(--navy-deep); background:var(--brass); width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center; flex-shrink:0; z-index:1; }
.timeline-step h3{ font-family:var(--font-display); font-size:21px; letter-spacing:.02em; color:var(--cream-text); margin-bottom:6px; }
.timeline-step p{ color:rgba(243,239,230,.66); font-size:15.5px; margin:0; max-width:520px; }

/* ============================================================
   INDUSTRIES / STAMPS
   ============================================================ */
.stamp-grid{ display:flex; flex-wrap:wrap; gap:18px; margin-top:48px; }
.stamp{
  font-family:var(--font-mono); font-size:13px; letter-spacing:.06em; text-transform:uppercase;
  border:2px solid var(--navy); color:var(--navy); padding:12px 20px; border-radius:999px;
  transform:rotate(-1.4deg); transition:transform .2s ease, background .2s ease, color .2s ease;
}
.stamp:nth-child(even){ transform:rotate(1.2deg); }
.stamp:hover{ background:var(--navy); color:var(--cream-text); transform:rotate(0deg) scale(1.03); }
.stamp-light{ border-color:var(--brass-light); color:var(--cream-text); }
.stamp-light:hover{ background:var(--brass-light); color:var(--navy-deep); }

.also-available{ margin-top:48px; }
.also-available-label{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:16px; }
.also-available-label-light{ color:rgba(243,239,230,.6); }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; margin-top:52px; }
.product-card{ background:var(--paper); border:1px solid var(--paper-line); }
.product-photo{ position:relative; aspect-ratio:4/3; background:linear-gradient(135deg,#DDD3B8,#EDE6D6); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.product-photo::after{ content:"Add product photo"; font-family:var(--font-mono); font-size:11px; letter-spacing:.05em; color:#A99A78; position:absolute; }
.product-photo img{ width:100%; height:100%; object-fit:cover; position:relative; z-index:1; }
.product-body{ padding:20px 22px; }
.product-body h3{ font-family:var(--font-display); font-size:20px; letter-spacing:.02em; margin-bottom:8px; }
.product-body p{ color:var(--ink-soft); font-size:14.5px; margin-bottom:12px; }
.product-specs{ font-family:var(--font-mono); font-size:12px; color:var(--ink-soft); border-top:1px solid var(--paper-line); padding-top:10px; }
.product-specs span{ display:block; margin-bottom:4px; }

/* ============================================================
   QUALITY / TRUST / LICENSES
   ============================================================ */
.trust-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:52px; }
.trust-point{ display:flex; gap:16px; align-items:flex-start; }
.trust-point svg{ width:30px; height:30px; flex-shrink:0; stroke:var(--brass-light); fill:none; stroke-width:1.8; margin-top:2px; }
.trust-point h4{ font-family:var(--font-display); font-size:18px; letter-spacing:.02em; color:var(--cream-text); margin-bottom:5px; }
.trust-point p{ font-size:14.5px; color:rgba(243,239,230,.62); margin:0; }
.license-block{ margin-top:64px; padding-top:44px; border-top:1px solid rgba(243,239,230,.12); }

/* ============================================================
   LOCATION
   ============================================================ */
.location-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:48px; align-items:start; margin-top:48px; }
.location-details p{ font-family:var(--font-mono); font-size:14px; line-height:1.9; color:var(--ink-soft); margin-bottom:22px; }
.location-details strong{ color:var(--navy); }
.location-map{ border:1px solid var(--paper-line); overflow:hidden; }
.location-map iframe{ width:100%; height:340px; border:0; display:block; }

/* ============================================================
   FOOTER SOCIAL
   ============================================================ */
.footer-social{ display:flex; gap:12px; margin-top:20px; }
.footer-social a{
  width:36px; height:36px; border-radius:50%; border:1px solid rgba(243,239,230,.25);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-size:11px; letter-spacing:.03em; color:rgba(243,239,230,.75);
  transition:border-color .15s ease, background .15s ease, color .15s ease;
}
.footer-social a:hover{ border-color:var(--brass-light); background:rgba(198,149,46,.12); color:var(--brass-light); }

/* ============================================================
   ABOUT / LEDGER
   ============================================================ */
.about-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:64px; align-items:start; }
.about-copy p{ color:var(--ink-soft); font-size:16.5px; }
.ledger{ background:var(--paper); border:1px solid var(--paper-line); }
.ledger-row{ display:flex; justify-content:space-between; align-items:center; padding:18px 24px; border-bottom:1px solid var(--paper-line); font-family:var(--font-mono); font-size:14px; }
.ledger-row:last-child{ border-bottom:none; }
.ledger-row span{ color:var(--ink-soft); }
.ledger-row strong{ color:var(--navy); font-size:16px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:52px; }
.testimonial{ margin:0; background:var(--paper); border:1px solid var(--paper-line); padding:32px 28px; position:relative; }
.verified-stamp{
  display:inline-block; font-family:var(--font-mono); font-size:10.5px; letter-spacing:.08em;
  color:var(--stamp-red); border:1.5px solid var(--stamp-red); padding:4px 10px; border-radius:3px;
  transform:rotate(-3deg); margin-bottom:18px;
}
.testimonial blockquote{ margin:0 0 18px; font-size:16.5px; line-height:1.55; }
.testimonial figcaption{ font-family:var(--font-mono); font-size:12.5px; color:var(--ink-soft); }

/* ============================================================
   CONTACT / QUOTE
   ============================================================ */
.cta-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.cta-copy p{ color:rgba(243,239,230,.72); max-width:460px; }
.contact-details{ margin-top:28px; display:flex; flex-direction:column; gap:10px; }
.contact-details li{ font-family:var(--font-mono); font-size:14px; color:rgba(243,239,230,.8); }
.contact-details strong{ color:var(--brass-light); margin-right:8px; }

.quote-form{ background:var(--paper); border:1px solid var(--paper-line); padding:36px; position:relative; }
.form-row{ margin-bottom:18px; }
.form-row-split{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.quote-form label{ display:block; font-family:var(--font-mono); font-size:12px; letter-spacing:.05em; text-transform:uppercase; color:var(--ink-soft); margin-bottom:7px; }
.quote-form input, .quote-form textarea{
  width:100%; border:1px solid var(--paper-line); background:#fff; padding:11px 13px;
  font-family:var(--font-body); font-size:15px; color:var(--ink); border-radius:2px;
}
.quote-form input:focus, .quote-form textarea:focus{ border-color:var(--teal); }
.form-note{ margin:14px 0 0; font-family:var(--font-mono); font-size:13px; color:var(--teal); min-height:1.2em; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background:var(--navy-deep); color:rgba(243,239,230,.75); padding:72px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:56px; border-bottom:1px solid rgba(243,239,230,.1); }
.footer-brand p{ margin-top:16px; font-size:14.5px; max-width:280px; color:rgba(243,239,230,.55); }
.footer-col h4{ font-family:var(--font-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--brass-light); margin-bottom:16px; }
.footer-col a{ display:block; font-size:14.5px; margin-bottom:10px; color:rgba(243,239,230,.75); transition:color .15s ease; }
.footer-col a:hover{ color:var(--cream-text); }
.footer-offices p{ display:flex; justify-content:space-between; font-size:14px; margin:0 0 10px; }
.footer-offices code{ font-family:var(--font-mono); color:var(--teal); font-size:12.5px; }
.footer-bottom{ display:flex; justify-content:space-between; padding:22px 32px; font-size:13px; color:rgba(243,239,230,.45); }
.footer-legal a{ margin-left:18px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:920px){
  .card-grid{ grid-template-columns:repeat(2,1fr); }
  .about-grid, .cta-grid{ grid-template-columns:1fr; }
  .testimonial-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .product-grid{ grid-template-columns:repeat(2,1fr); }
  .trust-grid{ grid-template-columns:1fr 1fr; }
  .location-grid{ grid-template-columns:1fr; }
}

@media (max-width:760px){
  .main-nav{
    position:absolute; top:88px; left:0; right:0; background:var(--navy-deep);
    flex-direction:column; gap:0; max-height:0; overflow:hidden; border-bottom:1px solid rgba(198,149,46,.25);
    transition:max-height .3s ease;
  }
  .main-nav.is-open{ max-height:320px; }
  .main-nav a{ padding:16px 32px; border-top:1px solid rgba(243,239,230,.08); }
  .nav-toggle{ display:flex; }
  .header-actions .btn-small{ display:none; }
  .stat-strip-inner{ grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(3){ border-left:none; }
  .stat{ border-bottom:1px solid rgba(243,239,230,.1); }
  .card-grid{ grid-template-columns:1fr; }
  .product-grid{ grid-template-columns:1fr; }
  .trust-grid{ grid-template-columns:1fr; }
  .form-row-split{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; gap:8px; }
  .footer-legal a{ margin-left:0; margin-right:18px; }
}
