/* ============================================
   Cedro Distribution — Shared Stylesheet
   Cedar green + warm neutral palette
   ============================================ */

:root {
  --cedar-900: #1d3324;
  --cedar-800: #24402d;
  --cedar-700: #2e5239;
  --cedar-600: #3a6647;
  --cedar-500: #4c7f5b;
  --cedar-100: #e4ede6;
  --cedar-50:  #f1f6f2;
  --bark:      #7a5c44;
  --sand:      #f7f4ef;
  --paper:     #ffffff;
  --ink:       #22271f;
  --ink-soft:  #5a6156;
  --line:      #e0ddd5;
  --radius:    10px;
  --maxw:      1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; }

a { color: var(--cedar-600); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Nav ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark svg { flex-shrink: 0; }

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.wordmark-text .top {
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: var(--cedar-800);
}

.wordmark-text .bottom {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--bark);
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  color: var(--cedar-800);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--cedar-700); }

.nav-links a.active {
  color: var(--cedar-800);
  border-bottom-color: var(--cedar-500);
}

.nav-links a.nav-cta {
  background: var(--cedar-700);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
  border-bottom: none;
}

.nav-links a.nav-cta:hover { background: var(--cedar-600); }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--cedar-900) 0%, var(--cedar-700) 100%);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 65%);
  border-radius: 50%;
}

.hero .kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  color: var(--cedar-100);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 620px;
  color: #dbe7dd;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 0.98rem;
}

.btn-light { background: #fff; color: var(--cedar-800); }
.btn-light:hover { background: var(--cedar-50); }

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.6);
  color: #fff;
  margin-left: 12px;
}
.btn-outline:hover { border-color: #fff; }

.btn-solid { background: var(--cedar-700); color: #fff; }
.btn-solid:hover { background: var(--cedar-600); }

/* Interior page hero (smaller) */
.page-hero {
  background: linear-gradient(160deg, var(--cedar-900) 0%, var(--cedar-700) 100%);
  color: #fff;
  padding: 56px 0 60px;
}

.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 10px; }

.page-hero p { color: #dbe7dd; max-width: 640px; font-size: 1.05rem; }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

section.tint { background: var(--sand); }

.section-head { max-width: 640px; margin-bottom: 44px; }

.section-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  color: var(--bark);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--cedar-900);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-head p { color: var(--ink-soft); }

/* ---------- Cards / grids ---------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--cedar-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.card h3 { color: var(--cedar-900); font-size: 1.08rem; margin-bottom: 8px; }

.card p { color: var(--ink-soft); font-size: 0.95rem; }

.card a.more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Detail blocks (services/logistics pages) ---------- */

.detail {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.detail:last-of-type { border-bottom: none; }

.detail h3 {
  color: var(--cedar-900);
  font-size: 1.3rem;
  line-height: 1.3;
}

.detail .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bark);
  margin-bottom: 8px;
}

.detail ul {
  margin: 14px 0 0 18px;
  color: var(--ink-soft);
}

.detail li { margin-bottom: 8px; }

/* ---------- Photos ---------- */

.ph {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.ph-wide { aspect-ratio: 21 / 9; }

.photo-band { margin-top: 8px; }

.photo-band figure { margin: 0; }

.photo-band figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
  font-weight: 600;
}

.detail .ph { margin-top: 18px; }

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px 22px;
  text-align: center;
}

.stat .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--cedar-800);
}

.stat .label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- Clients strip ---------- */

.clients {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.client-chip {
  flex: 1 1 260px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.client-chip .name { font-weight: 700; color: var(--cedar-900); font-size: 1.05rem; }

.client-chip .desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--cedar-900);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 12px; }

.cta-band p { color: #cfdcd2; margin-bottom: 26px; }

/* ---------- Values (about) ---------- */

.value-list { list-style: none; }

.value-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
}

.value-list li:last-child { border-bottom: none; }

.value-list .v-name { font-weight: 700; color: var(--cedar-800); }

.value-list .v-desc { color: var(--ink-soft); }

/* ---------- Contact ---------- */

.contact-box {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 620px;
}

.contact-box .label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bark);
}

.contact-box .big {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 6px 0 22px;
  word-break: break-all;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cedar-900);
  color: #b9c9bd;
  padding: 44px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.site-footer .fm { color: #fff; font-weight: 700; letter-spacing: 0.12em; }

.site-footer ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }

.site-footer a { color: #b9c9bd; text-decoration: none; }

.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #8fa394;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 26px 22px; }
  .detail { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
  }

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

  .nav-links li { width: 100%; }

  .nav-links a { display: block; padding: 12px 0; }

  .nav-links a.nav-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 10px 20px;
  }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }

  .stats { grid-template-columns: repeat(2, 1fr); }

  .value-list li { grid-template-columns: 1fr; gap: 4px; }

  .btn-outline { margin-left: 0; margin-top: 12px; }

  .contact-box { padding: 26px; }
}
