/* ==========================================================================
   NAFFY LOGISTICS TRADING — Design Tokens
   Editorial / trade-house aesthetic: warm paper tones, hairline rules,
   a serif display face, and restrained accent color.
   ========================================================================== */
:root {
  /* Ink & paper palette */
  --ink: #1c1a17;
  --ink-soft: #35312b;
  --paper: #f7f3ea;
  --paper-deep: #efe7d6;
  --line: #ddd2b8;
  --line-soft: #e7dfcb;
  --white: #fffdf8;

  --rust: #b1512c;
  --rust-deep: #8c3e21;
  --rust-tint: #f0ddcc;

  --text-primary: #201d19;
  --text-muted: #6d6459;
  --text-faint: #948b7c;

  --text-on-dark: #f2ece0;
  --text-on-dark-muted: #b6ac9a;

  --success: #4c6b4a;

  /* Type */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-40: 2.5rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;

  /* Spacing (4px base) */
  --sp-4: 4px;
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;

  --r-sm: 3px;
  --r-md: 6px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 26, 23, 0.06);
  --shadow-md: 0 12px 32px rgba(28, 26, 23, 0.10);

  --ease: cubic-bezier(.2,.8,.2,1);
  --dur: 180ms;

  --content-width: 1200px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 var(--sp-16);
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { margin: 0 0 var(--sp-16); color: var(--text-muted); max-width: 65ch; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--sp-24);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 var(--sp-16);
}

.section-head { max-width: 620px; margin: 0 0 var(--sp-64); }
.section-head h2 { font-size: var(--fs-40); }
.section-sub { font-size: var(--fs-16); }

section { padding: var(--sp-96) 0; }

/* ==========================================================================
   Buttons — thin outline / solid pills, no heavy shadow
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* solid ink — primary action on paper backgrounds */
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: var(--rust); border-color: var(--rust); }

/* ink outline — secondary action on paper backgrounds */
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

/* solid paper/cream — primary action on photo or dark backgrounds */
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--rust); color: var(--white); border-color: var(--rust); }

/* light outline — secondary action on photo or dark backgrounds */
.btn-ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(242,236,224,0.45); }
.btn-ghost:hover { background: rgba(242,236,224,0.1); border-color: var(--text-on-dark); }

.btn-sm { padding: 10px 22px; font-size: var(--fs-12); letter-spacing: 0.06em; text-transform: uppercase; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(28, 26, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242,236,224,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: var(--sp-12) 0;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; gap: 2px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: var(--fs-24);
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

.main-nav { display: flex; gap: var(--sp-32); }
.main-nav a {
  color: var(--text-on-dark-muted);
  font-weight: 400;
  font-size: var(--fs-14);
  padding: var(--sp-8) 0;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.main-nav a:hover { color: var(--white); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-24); }
.header-phone {
  display: flex; align-items: center; gap: var(--sp-8);
  color: var(--white); font-weight: 500; font-size: var(--fs-14);
}
.header-phone svg { color: var(--rust); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--white); transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.02); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,18,15,0.90) 0%, rgba(20,18,15,0.72) 42%, rgba(20,18,15,0.38) 75%, rgba(20,18,15,0.18) 100%);
}
.hero-content { position: relative; z-index: 1; padding: var(--sp-96) var(--sp-24); max-width: 760px; }
.hero .eyebrow { color: var(--rust); }
.hero h1 { font-size: var(--fs-60); font-weight: 400; font-style: italic; color: var(--white); margin-bottom: var(--sp-24); letter-spacing: -0.01em; }
.hero-lead { color: var(--text-on-dark-muted); font-size: var(--fs-20); font-family: var(--font-body); max-width: 52ch; margin-bottom: var(--sp-40); line-height: 1.55; }
.hero-cta { display: flex; gap: var(--sp-16); flex-wrap: wrap; margin-bottom: var(--sp-48); }
.hero-badges {
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  max-width: 60ch;
  margin: 0;
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-bar { background: var(--paper-deep); padding: var(--sp-48) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat {
  display: flex; flex-direction: column; gap: var(--sp-4);
  padding: 0 var(--sp-16);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-display); font-size: var(--fs-32); font-weight: 500; color: var(--ink); }
.stat-label { font-size: var(--fs-12); letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-64); align-items: center; }
.about-media { position: relative; }
.about-media img { border: 1px solid var(--line); border-radius: var(--r-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media-badge {
  position: absolute;
  left: -24px; bottom: -24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-16) var(--sp-24);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 2px;
}
.about-media-badge strong { font-family: var(--font-display); color: var(--ink); font-size: var(--fs-16); font-weight: 500; }
.about-media-badge span { font-size: var(--fs-12); color: var(--text-muted); }
.about-copy h2 { font-size: var(--fs-40); font-style: italic; font-weight: 400; }
.about-points { display: flex; flex-direction: column; gap: var(--sp-12); margin: var(--sp-24) 0 var(--sp-32); }
.about-points li { padding-left: var(--sp-24); position: relative; color: var(--text-muted); font-size: var(--fs-14); }
.about-points li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--rust);
  border-radius: 50%;
}
.about-points strong { color: var(--text-primary); font-weight: 600; }

/* ==========================================================================
   Services — editorial numbered list
   ========================================================================== */
.services { background: var(--paper); }
.services-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--sp-32);
  padding: var(--sp-32) 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.services-list .service-row:last-child { border-bottom: 1px solid var(--line); }
.row-index {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  font-weight: 400;
  font-style: italic;
  color: var(--rust);
}
.row-body h3 { font-size: var(--fs-24); font-weight: 500; margin-bottom: var(--sp-8); }
.row-body p { font-size: var(--fs-16); margin: 0; max-width: 56ch; }

/* ==========================================================================
   Why Us
   ========================================================================== */
.why-us { background: var(--paper-deep); }
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-64); align-items: center; }
.why-media img { border: 1px solid var(--line); border-radius: var(--r-md); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.why-copy h2 { font-size: var(--fs-40); font-style: italic; font-weight: 400; }
.why-list { display: flex; flex-direction: column; margin-top: var(--sp-32); }
.why-item {
  display: flex; gap: var(--sp-24);
  padding: var(--sp-24) 0;
  border-top: 1px solid var(--line);
}
.why-list .why-item:last-child { border-bottom: 1px solid var(--line); }
.why-num {
  font-family: var(--font-display);
  font-size: var(--fs-24);
  font-weight: 400;
  font-style: italic;
  color: var(--rust);
  flex-shrink: 0;
  width: 40px;
}
.why-item h3 { font-size: var(--fs-16); font-weight: 600; font-family: var(--font-body); font-style: normal; color: var(--ink); margin-bottom: var(--sp-4); }
.why-item p { font-size: var(--fs-14); margin: 0; }

/* ==========================================================================
   Process
   ========================================================================== */
.process { background: var(--ink); color: var(--white); }
.process .eyebrow { color: var(--rust); }
.process .section-head h2 { color: var(--white); font-style: italic; font-weight: 400; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-32); }
.process-step {
  border-top: 1px solid rgba(242,236,224,0.18);
  padding-top: var(--sp-24);
}
.process-index {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-40);
  font-weight: 400;
  font-style: italic;
  color: var(--rust);
  margin-bottom: var(--sp-16);
}
.process-step h3 { font-size: var(--fs-16); font-weight: 600; font-family: var(--font-body); color: var(--white); margin-bottom: var(--sp-8); }
.process-step p { font-size: var(--fs-14); color: var(--text-on-dark-muted); margin: 0; }

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
  background: var(--ink);
  padding: var(--sp-96) 0;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-32); flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); font-size: var(--fs-40); font-style: italic; font-weight: 400; margin-bottom: var(--sp-8); }
.cta-inner p { color: var(--text-on-dark-muted); margin: 0; }
.cta-actions { display: flex; gap: var(--sp-16); flex-wrap: wrap; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-64); align-items: start; }
.contact-info h2 { color: var(--ink); font-size: var(--fs-40); font-style: italic; font-weight: 400; }
.contact-list { display: flex; flex-direction: column; margin-top: var(--sp-32); }
.contact-list li {
  display: flex; gap: var(--sp-16); align-items: flex-start;
  padding: var(--sp-16) 0;
  border-top: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--rust);
  margin-top: 2px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; font-size: var(--fs-12); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.contact-list span { font-size: var(--fs-14); color: var(--text-muted); }
.contact-list a:hover { color: var(--rust); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-32);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
.form-field { margin-bottom: var(--sp-24); }
.form-field label { display: block; font-size: var(--fs-12); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--text-muted); margin-bottom: var(--sp-8); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-family: inherit;
  font-size: var(--fs-16);
  color: var(--text-primary);
  background: transparent;
  transition: border-color var(--dur) var(--ease);
  resize: vertical;
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--text-faint); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--rust);
}
.form-note { min-height: 20px; font-size: var(--fs-14); color: var(--success); margin: var(--sp-16) 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--text-on-dark-muted); padding: var(--sp-96) 0 var(--sp-32); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-32); padding-bottom: var(--sp-48); border-bottom: 1px solid rgba(242,236,224,0.12); }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-sub { color: var(--text-on-dark-muted); }
.footer-brand p { color: var(--text-on-dark-muted); font-size: var(--fs-14); margin-top: var(--sp-16); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: var(--fs-12); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-16); }
.footer-col a, .footer-col p { display: block; font-size: var(--fs-14); margin-bottom: var(--sp-12); color: var(--text-on-dark-muted); }
.footer-col a:hover { color: var(--rust); }
.footer-bottom { padding-top: var(--sp-24); text-align: center; }
.footer-bottom p { color: var(--text-faint); font-size: var(--fs-12); margin: 0; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: var(--sp-24);
  bottom: var(--sp-24);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--rust); border-color: var(--rust); }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media, .why-media { max-width: 480px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-24); }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: var(--fs-48); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone span { display: none; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    padding: var(--sp-24);
    gap: var(--sp-8);
    border-bottom: 1px solid rgba(242,236,224,0.1);
  }
  .main-nav.open a { padding: var(--sp-12) 0; font-size: var(--fs-16); }
}

@media (max-width: 480px) {
  .brand-sub { font-size: 9px; letter-spacing: 0.1em; max-width: 200px; }
}

@media (max-width: 640px) {
  section { padding: var(--sp-64) 0; }
  .hero { min-height: auto; padding-top: var(--sp-64); }
  .hero-content { padding: var(--sp-64) var(--sp-24); }
  .hero h1 { font-size: var(--fs-32); }
  .hero-lead { font-size: var(--fs-16); }
  .section-head h2, .about-copy h2, .why-copy h2, .contact-info h2 { font-size: var(--fs-32); }
  .process-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 56px 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 1px solid var(--line); }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-media-badge { position: static; margin-top: var(--sp-16); }
}
