/* ==========================================
   TradeCraft — Custom Design System
   ========================================== */

/* --- Color Tokens --- */
:root {
  --bg: #F5F0E8;
  --bg-warm: #EDE7DA;
  --bg-deep: #E4DDD0;
  --fg: #1A2B24;
  --fg-mid: #2E443C;
  --fg-light: #5A6E65;
  --accent: #C4622A;
  --accent-light: #D4784A;
  --accent-pale: rgba(196, 98, 42, 0.08);
  --green: #1B3D2F;
  --green-mid: #2A5345;
  --cream: #FAF7F2;
}

/* --- Typography --- */
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  line-height: 1.15;
  font-weight: 600;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 61, 47, 0.08);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg-mid);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* --- Section Common --- */
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--fg);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-light);
  max-width: 560px;
  line-height: 1.7;
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background: var(--bg);
  border-bottom: 1px solid rgba(27, 61, 47, 0.06);
}
.hero-bg-art {
  position: absolute;
  right: -60px;
  top: -40px;
  width: 55%;
  height: 100%;
  pointer-events: none;
}
.hero-geo { width: 100%; height: 100%; }
.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}
.hero-content { max-width: 680px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-mid);
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 28px;
  line-height: 1.05;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-mid);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* Stats bar */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--green);
  border-radius: 8px;
  padding: 20px 28px;
  width: fit-content;
  box-shadow: 0 4px 24px rgba(27, 61, 47, 0.15);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
}
.stat:first-child { padding-left: 0; }
.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
}
.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(250, 247, 242, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(250, 247, 242, 0.12);
}

/* --- How It Works --- */
.hiw { padding: 100px 0; background: var(--cream); }
.hiw-inner { max-width: 900px; margin: 0 auto; padding: 0 32px; }
.section-header { margin-bottom: 64px; }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 56px 1fr 80px;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
}
.step-connector {
  display: flex;
  justify-content: center;
  padding: 0 0 0 24px;
}
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  padding-top: 4px;
}
.step-body h3 {
  font-size: 1.25rem;
  color: var(--fg);
  margin-bottom: 10px;
}
.step-body p { font-size: 0.95rem; color: var(--fg-light); line-height: 1.7; }
.step-art {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}
.step-art svg { width: 60px; height: 60px; }

/* --- Trades --- */
.trades {
  padding: 100px 0;
  background: var(--bg);
  position: relative;
}
.trades::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196, 98, 42, 0.3), transparent);
}
.trades-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.trades-header { margin-bottom: 52px; }
.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.trade-category {
  background: var(--cream);
  border: 1px solid rgba(27, 61, 47, 0.07);
  border-radius: 10px;
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.trade-category:hover {
  box-shadow: 0 4px 20px rgba(27, 61, 47, 0.08);
  transform: translateY(-2px);
}
.trade-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}
.trade-icon svg { width: 32px; height: 32px; }
.trade-category h3 {
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 14px;
  font-family: 'Fraunces', serif;
}
.trade-category ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trade-category li {
  font-size: 0.875rem;
  color: var(--fg-light);
  padding-left: 16px;
  position: relative;
}
.trade-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}
.trade-cta {
  background: var(--green);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trade-cta p:first-child {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 8px;
}
.trade-cta p:nth-child(2) {
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.6);
  margin-bottom: 20px;
  line-height: 1.6;
}
.trade-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}
.trade-cta-link:hover { color: var(--cream); }

/* --- Why --- */
.why {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 98, 42, 0.05) 0%, transparent 70%);
  pointer-events: none;
}
.why-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}
.why-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}
.why-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-icon { flex-shrink: 0; margin-top: 2px; }
.why-icon svg { width: 24px; height: 24px; }
.why-point h4 {
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 4px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
}
.why-point p { font-size: 0.875rem; color: var(--fg-light); line-height: 1.6; }
.why-art { display: flex; align-items: center; justify-content: center; }
.why-art-inner { position: relative; }
.why-svg { width: 240px; height: auto; }

/* --- Service Area --- */
.area { padding: 100px 0; background: var(--bg); }
.area-inner { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.area-header { margin-bottom: 52px; }
.area-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.area-map svg { width: 100%; height: auto; }
.area-list { display: flex; flex-direction: column; gap: 32px; }
.area-group h4 {
  font-family: 'Fraunces', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.area-group ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.area-group li {
  font-size: 0.9rem;
  color: var(--fg-mid);
}
.area-note {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--fg-light);
  text-align: center;
}

/* --- Closing --- */
.closing {
  padding: 100px 0;
  background: var(--green);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(196, 98, 42, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(196, 98, 42, 0.05) 0%, transparent 50%);
}
.closing-inner { position: relative; max-width: 700px; margin: 0 auto; padding: 0 32px; }
.closing-art { margin-bottom: 32px; }
.closing-art svg { width: 120px; }
.closing-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 1.05rem;
  color: rgba(250, 247, 242, 0.65);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 48px;
}
.closing-rule {
  width: 60px;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  margin: 0 auto;
}

/* --- Footer --- */
.footer { padding: 40px 0; background: var(--bg-warm); border-top: 1px solid rgba(27, 61, 47, 0.08); }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  display: block;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-light);
  display: block;
  margin-top: 2px;
}
.footer-meta { text-align: right; }
.footer-meta p { font-size: 0.8rem; color: var(--fg-light); line-height: 1.6; }
.footer-copy { margin-top: 4px; opacity: 0.6; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .trade-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; }
  .why-art { display: none; }
  .area-content { grid-template-columns: 1fr; }
  .area-map { max-width: 360px; }
}
@media (max-width: 640px) {
  .hero-headline { font-size: 2.75rem; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 20px; }
  .stat-divider { display: none; }
  .trade-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 40px 1fr; }
  .step-art { display: none; }
  .nav-links { display: none; }
  .footer-meta { text-align: left; }
  .footer-inner { flex-direction: column; }
}