/* ============================================
   CCS DESIGN SYSTEM v3
   Institutional commodities brokerage — est. 1983
   Palette: Orange #C8460A | Navy #003264 | Cream
   Type: Fraunces (display) / Inter (text)
   ============================================ */

:root {
  --color-orange: #C8460A;
  --color-orange-light: #E8703A;
  --color-orange-dark: #A03500;
  --color-orange-pale: #FFF0E8;
  --color-navy: #003264;
  --color-navy-light: #1A5280;
  --color-navy-dark: #001A3D;
  --color-navy-ink: #001228;
  --color-navy-pale: #E8F0F8;
  --color-cream: #FDF8F3;
  --color-warm-gray: #F5F0EB;
  --color-text-dark: #16121E;
  --color-text-body: #3D3D4D;
  --color-text-muted: #6B6B7B;
  --color-white: #FFFFFF;
  --color-success: #2D7A3E;
  --color-border: #E8E3DE;
  --color-border-light: #F0EBE6;

  --font-heading: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 1px 2px rgba(0, 18, 40, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 32, 80, 0.08), 0 1px 3px rgba(0, 18, 40, 0.05);
  --shadow-lg: 0 12px 40px rgba(0, 32, 80, 0.14), 0 2px 8px rgba(0, 18, 40, 0.06);
  --shadow-orange: 0 4px 16px rgba(200, 70, 10, 0.18);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-body);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--color-orange); color: var(--color-white); }

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-navy-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--color-orange); }

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  color: var(--color-text-dark);
  line-height: 1.18;
  font-weight: 560;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.018em; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; font-size: 1.05rem; max-width: 68ch; }

.text-lead {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.text-small { font-size: 0.9rem; color: var(--color-text-muted); }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 900px; }
.container-wide { max-width: 1400px; }

.section { padding: 5.5rem 0; }
.section-cream { background: var(--color-cream); }
.section-navy {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 70%, var(--color-navy-ink) 100%);
  color: var(--color-white);
}
.section-navy h2, .section-navy h3, .section-navy p { color: var(--color-white); }
.section-orange {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-dark) 100%);
  color: var(--color-white);
}
.section-orange h2, .section-orange h3, .section-orange p { color: var(--color-white); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled { box-shadow: 0 2px 12px rgba(0, 32, 80, 0.1); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo img {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 640;
  color: var(--color-navy);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 0.62rem;
  color: var(--color-orange);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 2px;
  white-space: nowrap;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-body);
  position: relative;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--color-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out-expo);
}

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

.main-nav a:hover { color: var(--color-navy); }
.main-nav a.active { color: var(--color-navy); font-weight: 600; }

/* Header CTA */
.header-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.phone-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s;
}

.phone-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.phone-link:hover { color: var(--color-orange); text-decoration: none; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* Responsive Header */
@media (max-width: 1100px) {
  .main-nav a { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
  .main-nav a::after { left: 0.75rem; right: 0.75rem; }
  .header-cta { gap: 1rem; padding-left: 0.75rem; }
}

@media (max-width: 920px) {
  .phone-link { display: none; }
}

@media (max-width: 768px) {
  .header-inner { height: 64px; }
  .logo img { height: 40px; }
  .logo-title { font-size: 0.9rem; }
  .logo-subtitle { font-size: 0.6rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    margin-left: 0;
  }

  .main-nav.active { display: flex; }

  .main-nav a {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--color-border-light);
  }

  .main-nav a::after { display: none; }
  .main-nav a:last-child { border-bottom: none; }

  .header-cta { border-left: none; padding-left: 0; }
  .header-cta .btn { display: none; }

  .mobile-menu-btn { display: block; }
}

@media (max-width: 600px) {
  /* Hide the wordmark so the hamburger stays on-screen */
  .logo-text { display: none; }
  .logo img { height: 38px; }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease,
              background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  font-family: var(--font-body);
  white-space: nowrap;
  touch-action: manipulation;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  border-color: var(--color-orange);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 70, 10, 0.28);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-white);
}

.btn-white:hover {
  background: var(--color-cream);
  color: var(--color-navy-dark);
  transform: translateY(-1px);
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* ============================================
   HERO
   ============================================ */

.hero {
  background:
    radial-gradient(90% 120% at 85% 10%, rgba(200, 70, 10, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 62%, var(--color-navy-ink) 100%);
  color: var(--color-white);
  padding: 5.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  color: var(--color-white);
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  font-weight: 520;
}

.hero-content h1 span {
  color: var(--color-orange-light);
  font-style: italic;
}

.hero-content .text-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.15rem);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-badges {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-icon {
  width: 18px;
  height: 18px;
  color: var(--color-orange-light);
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-media { position: relative; }

.hero-video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 10, 30, 0.5);
  aspect-ratio: 16/10;
  background: var(--color-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-video-container video,
.hero-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 18, 40, 0.92));
  pointer-events: none;
}

.video-overlay p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  margin: 0;
}

/* Play button — video starts with sound on click */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: var(--color-orange);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 10, 30, 0.45);
  transition: transform 0.3s var(--ease-out-expo), background-color 0.2s ease;
  z-index: 2;
}

.video-play-btn svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.video-play-btn:hover {
  background: var(--color-orange-dark);
  transform: translate(-50%, -50%) scale(1.08);
}

.hero-video-container.playing .video-play-btn,
.hero-video-container.playing .video-overlay {
  display: none;
}

/* Hero entrance — one authored moment */
.hero-content > * {
  animation: hero-rise 0.9s var(--ease-out-expo) both;
}
.hero-content > *:nth-child(2) { animation-delay: 0.08s; }
.hero-content > *:nth-child(3) { animation-delay: 0.16s; }
.hero-content > *:nth-child(4) { animation-delay: 0.24s; }

.hero-media {
  animation: hero-media-in 1.1s var(--ease-out-expo) 0.15s both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}

@keyframes hero-media-in {
  from { opacity: 0; transform: translateY(28px) scale(0.97); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0) scale(1);       filter: blur(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo), filter 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--color-orange);
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 auto;
  letter-spacing: 0.02em;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-border-light);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-orange);
  flex-shrink: 0;
}

.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* Service Cards */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-header {
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
}

.service-card-header h3 {
  color: var(--color-white);
  margin-bottom: 0.25rem;
  font-size: 1.15rem;
}

.service-card-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

.service-card-body {
  padding: 1.5rem 2rem;
  flex-grow: 1;
}

.service-card-body ul { list-style: none; }

.service-card-body li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text-body);
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.service-card-body li:last-child { border-bottom: none; }

.service-card-body li::before {
  content: '✓';
  color: var(--color-orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* Commodity Cards */
.commodity-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease;
  text-align: center;
  display: block;
  color: inherit;
}

.commodity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--color-orange);
  color: inherit;
}

.commodity-card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.commodity-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.commodity-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 auto;
}

/* ============================================
   GRID SYSTEMS
   ============================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }

/* ============================================
   FEATURE SECTION
   ============================================ */

.feature-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-content h2 { margin-bottom: 1.25rem; }
.feature-content .text-lead { margin-bottom: 1.5rem; }

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  padding: 0.6rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.feature-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-heading);
  font-size: 5rem;
  color: var(--color-orange);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author-info h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.testimonial-author-info p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0; }

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background:
    radial-gradient(70% 100% at 30% 50%, rgba(200, 70, 10, 0.16) 0%, transparent 60%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 70%, var(--color-navy-ink) 100%);
  color: var(--color-white);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-section .btn { position: relative; z-index: 1; }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-navy-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--color-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-title {
  color: var(--color-white);
  font-size: 1.15rem;
}

.footer-brand .logo-subtitle {
  color: var(--color-orange-light);
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--color-orange-light); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.85rem; margin: 0; }

.footer-disclaimer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */

.page-header {
  background:
    radial-gradient(80% 120% at 80% 0%, rgba(200, 70, 10, 0.12) 0%, transparent 55%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-dark) 70%, var(--color-navy-ink) 100%);
  color: var(--color-white);
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.contact-info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-orange);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-item div h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-item div p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-body);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(200, 70, 10, 0.12);
}

.form-group input.field-error,
.form-group textarea.field-error,
.form-group select.field-error {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(200, 70, 10, 0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
  margin-bottom: 0;
}

/* ============================================
   FAQ (AEO)
   ============================================ */

.faq-section { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.faq-answer {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-answer p { margin-bottom: 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  background: var(--color-cream);
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.breadcrumb-inner a { color: var(--color-navy-light); }
.breadcrumb-inner a:hover { color: var(--color-orange); }
.breadcrumb-sep { color: var(--color-text-muted); opacity: 0.5; }
.breadcrumb-current { color: var(--color-text-dark); font-weight: 500; }

/* ============================================
   TABLE OF CONTENTS
   ============================================ */

.toc {
  background: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
}

.toc h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
}

.toc ul { list-style: none; }
.toc li { margin-bottom: 0.5rem; }

.toc a {
  font-size: 0.95rem;
  color: var(--color-text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc a::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.toc a:hover { color: var(--color-orange); }

/* ============================================
   NOTICE / ALERT
   ============================================ */

.notice {
  background: linear-gradient(135deg, var(--color-navy-pale) 0%, var(--color-cream) 100%);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.notice p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.notice strong {
  color: var(--color-navy);
  font-weight: 600;
}

.notice-compact {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.notice-compact p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ============================================
   LEAD MAGNET
   ============================================ */

.lead-magnet {
  background: linear-gradient(135deg, var(--color-orange-pale) 0%, var(--color-cream) 100%);
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
}

.lead-magnet h3 {
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}

.lead-magnet p {
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   COMMODITY LIST (hedging pages)
   ============================================ */

.commodity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.commodity-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.commodity-list-item:hover {
  border-color: var(--color-orange);
  box-shadow: var(--shadow-sm);
}

.commodity-list-item::before {
  content: '→';
  color: var(--color-orange);
  font-weight: 700;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-orange), var(--color-navy));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  background: var(--color-orange);
  border-radius: 50%;
  transform: translateX(-5px);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-orange);
}

.timeline-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.timeline-item p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-orange);
  font-weight: 700;
  display: block;
  margin-bottom: 0.25rem;
}

/* ============================================
   ARTICLE / CONTENT
   ============================================ */

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-body);
}

/* ============================================
   GLOSSARY
   ============================================ */

.glossary-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
}

.glossary-item:first-child { padding-top: 0; }

.glossary-item dt {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.glossary-item dd {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ============================================
   SPEC / DATA TABLES
   ============================================ */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  color: var(--color-navy);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
  font-family: var(--font-body);
}

.spec-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-body);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: none; }

.spec-table-wrap {
  overflow-x: auto;
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.spec-table-full { min-width: 720px; }

.spec-table-full thead th {
  background: var(--color-navy);
  color: var(--color-white);
  text-align: left;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  white-space: nowrap;
}

.spec-table-full tbody tr:nth-child(even) { background: var(--color-cream); }
.spec-table-full tbody tr:hover { background: var(--color-orange-pale); }

/* ============================================
   PORTRAIT PLACEHOLDER (honest stand-in until
   the client supplies a real photo)
   ============================================ */

.portrait-placeholder {
  aspect-ratio: 6 / 7;
  min-height: 400px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 80% 10%, rgba(200, 70, 10, 0.18) 0%, transparent 55%),
    linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-ink) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.portrait-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
}

.portrait-placeholder .portrait-initials {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  color: var(--color-orange-light);
  line-height: 1;
}

.portrait-placeholder .portrait-caption {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   404 PAGE
   ============================================ */

.error-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 5rem 0;
}

.error-code {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 560;
  color: var(--color-orange);
  line-height: 1;
  letter-spacing: -0.03em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-inner,
  .feature-section,
  .contact-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

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

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

  .hero { padding: 3.5rem 0 3rem; }
  .section { padding: 3.5rem 0; }

  .feature-section { gap: 2.5rem; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .commodity-list { grid-template-columns: 1fr; }

  .lead-magnet { padding: 1.5rem; }

  .btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }

  .hero-badges { flex-direction: column; gap: 0.75rem; }
  .hero-cta-group { flex-direction: column; }
  .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }

  .service-card-header { padding: 1.25rem; }
  .service-card-body { padding: 1.25rem; }

  .contact-form { padding: 1.5rem; }
  .contact-info-card { padding: 1.5rem; }

  .testimonial { padding: 1.5rem; }
  .testimonial::before { font-size: 3rem; top: 0.25rem; left: 1rem; }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-center p { margin-left: auto; margin-right: auto; }
.text-orange { color: var(--color-orange); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Skip Link (Accessibility) */
.skip-link {
  position: absolute;
  top: -48px;
  left: 0;
  background: var(--color-navy);
  color: white;
  padding: 10px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 0; }

/* Print Styles */
@media print {
  .site-header, .site-footer, .cta-section, .hero-badges, .hero-cta-group { display: none; }
  .hero { background: white; color: black; padding: 1rem 0; }
  .hero-content h1 { color: black; }
  body { font-size: 12pt; line-height: 1.5; }
  a { text-decoration: underline; color: black; }
}
