/* =========================================================
   TRIFORGE LOGISTICS — DESIGN TOKENS
   Navy = sea & authority · Gold = mineral cargo · Ice = diamond facets
   Fraunces (display/certificate serif) + Inter (body) + IBM Plex Mono (codes)
   ========================================================= */
:root{
  --navy:#0B1D33;
  --navy-mid:#14304D;
  --steel:#1C3D5A;
  --gold:#C9A227;
  --gold-light:#E6C567;
  --ice:#D8DEE4;
  --paper:#F7F5EE;
  --ink:#16181B;
  --line:rgba(201,162,39,.35);
  --radius:2px;
  --font-display:'Fraunces', 'Georgia', serif;
  --font-body:'Inter', -apple-system, Segoe UI, sans-serif;
  --font-mono:'IBM Plex Mono', monospace;
}

body{
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  font-size:19px;
  line-height:1.7;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  color:var(--navy);
  line-height:1.15;
  font-weight:600;
  margin:0 0 .5em;
}
h1{ font-size:clamp(2.2rem, 4.5vw, 3.6rem); }
h2{ font-size:clamp(1.7rem, 3vw, 2.5rem); }
h3{ font-size:1.4rem; }
p{ margin:0 0 1.1em; }
.tfl-lead{ font-size:1.2rem; max-width:56ch; color:var(--steel); }
.tfl-wrap{ max-width:1220px; margin:0 auto; padding:0 28px; }

.tfl-eyebrow{
  display:inline-block; font-family:var(--font-mono); font-size:.8rem;
  letter-spacing:.14em; text-transform:uppercase; color:var(--gold);
  border:1px solid var(--line); padding:.35em .9em; border-radius:var(--radius);
  margin-bottom:1em;
}

/* =========================================================
   TOPBAR + HEADER
   ========================================================= */
.tfl-topbar{ background:var(--navy); color:var(--ice); font-size:.9rem; }
.tfl-topbar__inner{ display:flex; justify-content:space-between; align-items:center; padding:9px 28px; flex-wrap:wrap; gap:8px; }
.tfl-topbar a{ color:var(--ice); margin-left:18px; }
.tfl-topbar__right a:first-child{ margin-left:0; }

.tfl-header{ background:#fff; border-bottom:3px solid var(--gold); position:sticky; top:0; z-index:60; }
.tfl-header__inner{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; gap:24px; }
.tfl-logo{ display:flex; align-items:center; gap:12px; }
.tfl-logo a{ display:flex; align-items:center; gap:12px; }
.tfl-logo img,
.tfl-logo .custom-logo{ max-height:54px; max-width:220px; width:auto; height:auto; object-fit:contain; }
.tfl-logo__mark{ font-family:var(--font-display); background:var(--navy); color:var(--gold-light); font-weight:700; font-size:1.3rem; padding:.4em .6em; border-radius:var(--radius); letter-spacing:.05em; }
.tfl-logo__mark--footer{ display:inline-block; margin-bottom:1em; }
.tfl-logo__text{ font-family:var(--font-display); font-size:1.25rem; font-weight:600; color:var(--navy); }

.tfl-menu-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.tfl-menu-toggle span{ width:26px; height:3px; background:var(--navy); border-radius:2px; }

.tfl-menu{ display:flex; align-items:center; gap:6px; list-style:none; font-weight:600; }
.tfl-menu li{ position:relative; }
.tfl-menu>li>a{ display:block; padding:12px 16px; font-size:1.02rem; color:var(--navy); }
.tfl-menu>li>a:hover{ color:var(--gold); }
.tfl-menu .sub-menu{
  list-style:none; position:absolute; top:100%; left:0; background:#fff; min-width:220px;
  box-shadow:0 18px 40px rgba(11,29,51,.16); border-top:3px solid var(--gold);
  opacity:0; visibility:hidden; transform:translateY(8px); transition:.18s ease; z-index:80;
}
.tfl-menu li:hover>.sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.tfl-menu .sub-menu .sub-menu{ top:0; left:100%; }
.tfl-menu .sub-menu li a{ display:block; padding:12px 18px; color:var(--navy); font-size:.98rem; white-space:nowrap; }
.tfl-menu .sub-menu li a:hover{ background:var(--paper); color:var(--gold); }
.tfl-menu li.menu-item-has-children>a:after{ content:'▾'; font-size:.7em; margin-left:6px; color:var(--gold); }

/* =========================================================
   HERO SLIDERS
   ========================================================= */
.tfl-hero{ position:relative; height:82vh; min-height:520px; overflow:hidden; color:#fff; }
.tfl-hero__track{ position:absolute; inset:0; }
.tfl-hero__slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
  opacity:0; transition:opacity 1.1s ease; background-color:var(--navy);
}
.tfl-hero__slide.is-active{ opacity:1; }
.tfl-hero__scrim{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(11,29,51,.55) 0%, rgba(11,29,51,.78) 100%); }
.tfl-hero__placeholder{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:repeating-linear-gradient(135deg, var(--navy), var(--navy) 22px, var(--navy-mid) 22px, var(--navy-mid) 44px);
  gap:8px;
}
.tfl-hero__placeholder span{ font-family:var(--font-mono); letter-spacing:.2em; font-size:1.6rem; color:var(--gold-light); }
.tfl-hero__placeholder small{ color:var(--ice); font-size:.85rem; }

.tfl-hero__content{
  position:relative; z-index:5; height:100%; max-width:900px; margin:0 auto; padding:0 28px;
  display:flex; flex-direction:column; justify-content:center; gap:14px; text-align:left;
}
.tfl-hero__content h1{ color:#fff; }
.tfl-hero__content p{ color:var(--ice); font-size:1.2rem; max-width:52ch; }

.tfl-stamp-tag{
  align-self:flex-start; font-family:var(--font-mono); font-size:.85rem; letter-spacing:.18em;
  border:1.5px solid var(--gold); color:var(--gold-light); padding:.5em 1.1em; border-radius:var(--radius);
}

.tfl-hero__dots{ position:absolute; z-index:6; bottom:28px; left:50%; transform:translateX(-50%); display:flex; gap:10px; }
.tfl-hero__dot{ width:34px; height:4px; background:rgba(255,255,255,.35); border:0; cursor:pointer; border-radius:2px; }
.tfl-hero__dot.is-active{ background:var(--gold); }

/* =========================================================
   SECTIONS
   ========================================================= */
.tfl-section{ max-width:1220px; margin:0 auto; padding:72px 28px; }
.tfl-section--alt{ background:#fff; max-width:none; }
.tfl-section--alt > *{ max-width:1220px; margin-left:auto; margin-right:auto; }
.tfl-section--narrow{ max-width:760px; }

.tfl-trust-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-top:16px; }
.tfl-trust-item{ border-top:3px solid var(--gold); padding-top:16px; }
.tfl-trust-item h3{ font-size:1.15rem; }

.tfl-process{ list-style:none; counter-reset:tfl-step; display:flex; flex-direction:column; gap:22px; }
.tfl-process li{ counter-increment:tfl-step; position:relative; padding-left:56px; }
.tfl-process li:before{
  content:counter(tfl-step,decimal-leading-zero); position:absolute; left:0; top:0;
  font-family:var(--font-mono); color:var(--gold); border:1.5px solid var(--gold); border-radius:50%;
  width:38px; height:38px; display:flex; align-items:center; justify-content:center; font-size:.85rem;
}

.tfl-list{ list-style:none; display:flex; flex-direction:column; gap:10px; margin-top:1.2em; padding:0; }
.tfl-list li{ padding-left:22px; position:relative; color:var(--steel); }
.tfl-list li:before{ content:'—'; position:absolute; left:0; color:var(--gold); }
.tfl-list--2col{ display:grid; grid-template-columns:1fr 1fr; gap:10px 28px; }
@media (max-width:700px){ .tfl-list--2col{ grid-template-columns:1fr; } }

.tfl-cta-band{ background:var(--navy); color:#fff; text-align:center; border-radius:6px; max-width:1220px; }
.tfl-cta-band h2{ color:#fff; }
.tfl-cta-band p{ color:var(--ice); max-width:60ch; margin-left:auto; margin-right:auto; }
.tfl-btn{ display:inline-block; margin-top:10px; padding:.9em 2em; border-radius:var(--radius); font-weight:700; }
.tfl-btn--gold{ background:var(--gold); color:var(--navy); }
.tfl-btn--gold:hover{ background:var(--gold-light); }

/* =========================================================
   SERVICE CARDS
   ========================================================= */
.tfl-cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:28px; }
.tfl-cards--2{ grid-template-columns:repeat(2,1fr); }
.tfl-card{ background:#fff; border:1px solid rgba(11,29,51,.1); border-radius:6px; overflow:hidden; display:flex; flex-direction:column; }
.tfl-card__media{ height:200px; background-size:cover; background-position:center; background-color:var(--navy-mid); display:flex; align-items:center; justify-content:center; }
.tfl-card__media-placeholder{ font-family:var(--font-mono); letter-spacing:.15em; color:var(--ice); font-size:.85rem; }
.tfl-card__body{ padding:24px; }
.tfl-card__body h3{ margin-bottom:.4em; }
.tfl-card__body ul{ list-style:none; margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.tfl-card__body li{ padding-left:20px; position:relative; font-size:.98rem; color:var(--steel); }
.tfl-card__body li:before{ content:'—'; position:absolute; left:0; color:var(--gold); }
.tfl-card__price{ margin-top:16px; padding-top:14px; border-top:1px solid rgba(11,29,51,.1); font-size:.98rem; color:var(--steel); }
.tfl-card__price strong{ font-family:var(--font-mono); color:var(--navy); font-size:1.05rem; }

/* =========================================================
   SPECIAL SERVICE DROPDOWN
   ========================================================= */
.tfl-special{ border:2px solid var(--navy); border-radius:6px; overflow:hidden; margin-top:12px; }
.tfl-special__toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between; background:var(--navy); color:#fff;
  border:0; padding:22px 26px; font-family:var(--font-mono); letter-spacing:.15em; font-size:1.05rem; cursor:pointer;
}
.tfl-special__toggle svg{ transition:transform .2s ease; }
.tfl-special__toggle[aria-expanded="true"] svg{ transform:rotate(180deg); }
.tfl-special__panel{ max-height:0; overflow:hidden; transition:max-height .3s ease; background:#fff; }
.tfl-special__panel.is-open{ max-height:400px; }
.tfl-special__intro{ padding:22px 26px 0; color:var(--steel); }
.tfl-special__grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; padding:20px 26px 26px; }
.tfl-special__item{ display:flex; align-items:center; gap:14px; padding:20px; border:1px solid rgba(11,29,51,.15); border-radius:6px; font-weight:700; color:var(--navy); }
.tfl-special__item:hover{ border-color:var(--gold); background:var(--paper); }
.tfl-special__mark{ font-family:var(--font-display); font-size:1.4rem; color:var(--gold); border:1.5px solid var(--gold); width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.tfl-special__label{ flex:1; }

/* =========================================================
   TRACKING / SKR LOOKUP BOXES
   ========================================================= */
.tfl-lookup{ background:#fff; border:2px solid var(--navy); border-radius:6px; padding:32px; margin-top:24px; }
.tfl-lookup--skr{ border-color:var(--gold); }
.tfl-lookup__form label{ display:block; font-family:var(--font-mono); font-size:1rem; letter-spacing:.06em; color:var(--navy); margin-bottom:14px; font-weight:600; }
.tfl-lookup__row{ display:flex; gap:12px; flex-wrap:wrap; }
.tfl-lookup__row input{ flex:1; min-width:220px; padding:16px 18px; font-size:1.1rem; border:2px solid var(--steel); border-radius:4px; font-family:var(--font-mono); }
.tfl-lookup__row button{ background:var(--gold); color:var(--navy); border:0; padding:16px 30px; font-size:1.05rem; font-weight:700; border-radius:4px; cursor:pointer; }
.tfl-lookup__row button:hover{ background:var(--gold-light); }
.tfl-lookup__note{ margin-top:16px; color:var(--steel); font-size:.95rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.tfl-contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.tfl-contact-list{ list-style:none; margin:24px 0; display:flex; flex-direction:column; gap:14px; }
.tfl-contact-list li{ display:flex; flex-direction:column; gap:2px; font-size:1.05rem; }
.tfl-contact-list strong{ font-family:var(--font-mono); font-size:.78rem; letter-spacing:.12em; text-transform:uppercase; color:var(--gold); }
.tfl-contact-form{ background:#fff; border:1px solid rgba(11,29,51,.1); border-radius:6px; padding:28px; }
.tfl-map{ border-radius:6px; overflow:hidden; margin-top:20px; }

.tfl-whatsapp{
  position:fixed; z-index:90; right:22px; bottom:22px; background:#25D366; color:#fff; display:flex; align-items:center;
  gap:10px; padding:14px 20px; border-radius:40px; font-weight:700; box-shadow:0 12px 30px rgba(0,0,0,.25);
}

/* =========================================================
   FOOTER
   ========================================================= */
.tfl-footer{ background:var(--navy); color:var(--ice); margin-top:0; padding-top:56px; }
.tfl-footer h4{ color:#fff; font-family:var(--font-mono); letter-spacing:.1em; font-size:.9rem; text-transform:uppercase; }
.tfl-footer a{ color:var(--ice); }
.tfl-footer a:hover{ color:var(--gold-light); }
.tfl-footer__grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.12); }
.tfl-footer-menu{ list-style:none; display:flex; flex-direction:column; gap:8px; }
.tfl-footer__bottom{ padding:22px 28px; text-align:center; font-size:.9rem; color:rgba(216,222,228,.7); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px){
  .tfl-trust-grid{ grid-template-columns:repeat(2,1fr); }
  .tfl-cards{ grid-template-columns:1fr; }
  .tfl-contact-grid{ grid-template-columns:1fr; }
  .tfl-footer__grid{ grid-template-columns:1fr 1fr; }
  .tfl-special__grid{ grid-template-columns:1fr; }
}
@media (max-width: 760px){
  .tfl-menu-toggle{ display:flex; }
  .tfl-nav{ display:none; width:100%; }
  .tfl-nav.is-open{ display:block; }
  .tfl-menu{ flex-direction:column; align-items:stretch; width:100%; }
  .tfl-menu .sub-menu{ position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; display:none; border-top:0; border-left:3px solid var(--gold); }
  .tfl-menu li.is-open>.sub-menu{ display:block; }
  .tfl-header__inner{ flex-wrap:wrap; }
  .tfl-hero{ height:70vh; }
  .tfl-topbar__inner{ flex-direction:column; align-items:flex-start; }
}
@media (max-width: 480px){
  .tfl-logo__text{ display:none; } /* logo mark/photo alone once the header gets this tight */
}
@media (prefers-reduced-motion: reduce){
  .tfl-hero__slide{ transition:none; }
  .tfl-special__panel{ transition:none; }
}
