/* ==========================================================================
   OakBridge Logistics — stylesheet
   ========================================================================== */

:root {
  /* Palette — calm, warm, trustworthy: sage green, soft blue, cream neutrals */
  --color-primary: #4a6b5d;        /* deep sage green (from logo tree) */
  --color-primary-dark: #375044;
  --color-primary-light: #e7ede9;
  --color-accent: #6f8fa3;         /* soft slate blue */
  --color-accent-dark: #4f6d80;
  --color-gold: #b58a4a;           /* warm bridge-stone accent, used sparingly */

  --color-bg: #faf8f4;             /* warm cream */
  --color-bg-alt: #f1ede4;         /* deeper cream for section contrast */
  --color-surface: #ffffff;

  --color-text: #2f3733;           /* soft near-black, warm undertone */
  --color-text-muted: #5c6862;
  --color-border: #e1dbcd;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(47, 55, 51, 0.08);
  --shadow-md: 0 6px 24px rgba(47, 55, 51, 0.10);
  --container-width: 1140px;
}

/* ---- Reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -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-heading);
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: normal;
}
p { margin: 0 0 1em; }
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: inherit;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-primary-dark);
}
.btn-secondary:hover { border-color: var(--color-primary); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 152px;
  max-width: 1320px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand img {
  height: 120px;
  width: auto;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary-dark);
  letter-spacing: 0.02em;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.main-nav ul {
  display: flex;
  gap: 8px;
  align-items: center;
}
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 0.2s ease, color 0.2s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.main-nav .btn { margin-left: 8px; }

.lang-switch {
  border: 1px solid var(--color-border) !important;
  font-weight: 700 !important;
  margin-left: 4px;
}
.lang-switch:hover {
  border-color: var(--color-primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--color-primary-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 65%);
  color: #fdfcf9;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-top: 88px;
  padding-bottom: 88px;
}
.hero-inner {
  max-width: 680px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e4ded0;
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: #e4ded0;
  display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 0.5em;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #e9e5d9;
  max-width: 560px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Page (non-home) hero — smaller */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 70%);
  color: #fff;
  text-align: center;
}
.page-hero .container { padding: 64px 24px; }
.page-hero h1 { color: #fff; margin-bottom: 0.4em; }
.page-hero p {
  color: #e9e5d9;
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.08rem;
}

/* ---- Sections ---- */
section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--color-text-muted); }

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--color-primary);
}
.icon-badge svg { width: 28px; height: 28px; }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.card p { color: var(--color-text-muted); margin-bottom: 0; }
.card ul.detail-list {
  margin-top: 14px;
  color: var(--color-text-muted);
}
.card ul.detail-list li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.card ul.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ---- CTA band ---- */
.cta-band {
  background: var(--color-primary-dark);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e9e5d9; max-width: 560px; margin: 0 auto 28px; }

/* ---- Steps (How It Works) ---- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  position: relative;
  padding-bottom: 48px;
}
.step:last-child { padding-bottom: 0; }
.step-marker {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  flex-shrink: 0;
  z-index: 1;
}
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 72px;
  left: 35px;
  width: 2px;
  height: calc(100% - 72px);
  background: var(--color-border);
}
.step-content h3 { margin-bottom: 0.4em; }
.step-content p { color: var(--color-text-muted); margin-bottom: 0.6em; }
.step-content .step-note {
  display: inline-block;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 4px;
}

/* ---- Values / About ---- */
.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.value-item .icon-badge { margin-bottom: 0; flex-shrink: 0; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.value-item p { color: var(--color-text-muted); font-size: 0.96rem; margin-bottom: 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat {
  text-align: center;
  padding: 24px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.stat .num {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--color-primary);
  display: block;
}
.stat .label {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Decorative bridge/tree motif panel (CSS-only, used in place of stock photography) */
.motif-panel {
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--color-primary-light) 0%, #dce6e0 100%);
  border: 1px solid var(--color-border);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}
.motif-panel img { max-height: 220px; width: auto; }
.motif-panel.photo {
  padding: 0;
  background: var(--color-bg-alt);
  overflow: hidden;
}
.motif-panel.photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: inherit;
}

/* ---- Photo gallery ---- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.photo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.photo-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.photo-card figcaption {
  padding: 16px 18px 18px;
  color: var(--color-primary-dark);
  font-weight: 600;
}

/* ---- Testimonial ---- */
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 40px;
  position: relative;
}
.testimonial p.quote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary-dark);
  font-style: italic;
  margin-bottom: 16px;
}
.testimonial .attribution {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(111, 143, 163, 0.18);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field .error-msg {
  font-size: 0.82rem;
  color: #a4463a;
  min-height: 1.1em;
}
.form-field.invalid input,
.form-field.invalid textarea,
.form-field.invalid select {
  border-color: #a4463a;
}
.form-status {
  padding: 16px 18px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  display: none;
}
.form-status.visible { display: block; }
.form-status.success {
  background: #e7f0e6;
  color: #2f5233;
  border: 1px solid #c3dbc2;
}
.form-status.error {
  background: #f7e7e5;
  color: #7a2f24;
  border: 1px solid #e3bdb6;
}

.contact-info-card {
  background: var(--color-primary-light);
  border-radius: var(--radius);
  padding: 32px;
}
.contact-info-card h3 { margin-bottom: 0.8em; }
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-info-item .icon-badge {
  background: #fff;
  margin-bottom: 0;
}
.contact-info-item strong { display: block; color: var(--color-primary-dark); }
.contact-info-item span,
.contact-info-item a { color: var(--color-text-muted); font-size: 0.96rem; }
.contact-info-item a:hover { color: var(--color-primary-dark); }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: #d9e0da;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 46px; }
.footer-brand span {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
}
.site-footer p { color: #bcc7bf; font-size: 0.95rem; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a {
  color: #cfd8d1;
  display: inline-flex;
  transition: color 0.2s ease, transform 0.15s ease;
}
.footer-social a:hover { color: #fff; transform: translateY(-1px); }
.footer-social svg { width: 22px; height: 22px; }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul li a { color: #cfd8d1; font-size: 0.96rem; }
.site-footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #a9b5ac;
}

/* ---- FAQ accordion ---- */
.faq-group { max-width: 760px; margin: 0 auto 56px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 {
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 34px 20px 0;
  position: relative;
  font-weight: 600;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  content: "\2212";
}
.faq-item .faq-answer {
  padding: 0 34px 22px 0;
  color: var(--color-text-muted);
  max-width: 66ch;
}
.faq-item .faq-answer p { margin: 0; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Nav switches to the hamburger menu earlier than the content breakpoints
   below — the larger logo needs more breathing room, and this avoids an
   awkward squeeze zone where desktop nav links start wrapping. */
@media (max-width: 1260px) {
  .main-nav {
    position: fixed;
    top: 152px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 20px;
    gap: 4px;
  }
  .main-nav a { padding: 12px 14px; }
  .main-nav .btn { margin-left: 0; margin-top: 8px; text-align: center; }
  .lang-switch { margin-left: 0; text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero .container { padding-top: 56px; padding-bottom: 56px; }
  .step { grid-template-columns: 56px 1fr; gap: 16px; }
  .step-marker { width: 56px; height: 56px; font-size: 1.3rem; }
  .step:not(:last-child)::before { left: 27px; top: 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .testimonial { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .site-header .container { min-height: 138px; }
  .main-nav { top: 138px; }
  .brand-name { font-size: 1.08rem; }
  .brand img { height: 96px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
}
