/* ═══════════════════════════════════════════
   AMECAX Incorporated — main.css
   assets/css/main.css
═══════════════════════════════════════════ */

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0A1628;
  --navy2:  #0d1e35;
  --gold:   #C9972B;
  --gold2:  #a8791e;
  --copper: #b87333;
  --cream:  #F5F2EC;
  --off:    #EEE9DF;
  --muted:  #8B9BB4;
  --text:   #1a2840;
  --rule:   rgba(10,22,40,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ── UTILITIES ── */
.spacer-56 { height: 56px; }
.section-inner { max-width: 1320px; margin: 0 auto; }

/* ── NAV ── */
#amecax-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(245,242,236,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: background .3s, border-color .3s;
}
#amecax-nav.is-dark {
  background: rgba(10,22,40,0.97);
  border-bottom-color: rgba(201,151,43,0.15);
}
.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 40px;
}
.nav-logo-link { display: flex; align-items: center; }
.nav-logo-img  { height: 36px; width: auto; }

/* WP custom logo support */
.nav-logo .custom-logo-link img { height: 36px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }
#amecax-nav.is-dark .nav-links a { color: rgba(255,255,255,.5); }
#amecax-nav.is-dark .nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid var(--navy);
  padding: 9px 22px;
  transition: all .25s;
}
.nav-cta:hover { background: var(--navy); color: var(--cream); }
#amecax-nav.is-dark .nav-cta { color: var(--gold); border-color: var(--gold); }
#amecax-nav.is-dark .nav-cta:hover { background: var(--gold); color: var(--navy); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--navy);
  transition: all .3s;
}
#amecax-nav.is-dark .nav-burger span { background: #fff; }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--navy);
  z-index: 998;
  padding: 32px 40px 40px;
  transform: translateY(-100%);
  transition: transform .35s ease;
}
.mobile-menu.is-open { transform: translateY(0); display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.mobile-menu a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
}
.mobile-menu a:hover { color: var(--gold); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 80px 96px;
  position: relative;
  overflow: hidden;
}
.hero-bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-bg-lines svg { width: 100%; height: 100%; opacity: .06; }

.hero-stats {
  position: absolute;
  top: 50%;
  right: 80px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 36px;
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}
.hero-stats.visible { opacity: 1; }
.hero-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
}
.hero-stat-l {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.hero-stat-sep { width: 1px; height: 24px; background: rgba(255,255,255,.1); }

.hero-content { position: relative; z-index: 2; max-width: 820px; }

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transition: opacity .8s ease .4s;
}
.hero-eyebrow.visible { opacity: 1; }
.hero-eyebrow::before { content: ''; display: block; width: 48px; height: 1px; background: var(--gold); }

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 300;
  line-height: .95;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease .7s, transform 1s ease .7s;
}
.hero-h1.visible { opacity: 1; transform: translateY(0); }
.hero-h1 em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,.55);
  max-width: 540px;
  margin-bottom: 52px;
  opacity: 0;
  transition: opacity 1s ease 1.1s;
}
.hero-sub.visible { opacity: 1; }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 1s ease 1.4s;
}
.hero-actions.visible { opacity: 1; }

.btn-gold {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 14px 32px;
  display: inline-block;
  transition: background .2s;
}
.btn-gold:hover { background: var(--gold2); }

.btn-ghost {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.btn-ghost:hover { color: #fff; }
.btn-ghost::after { content: ' →'; }

.hero-corner {
  position: absolute;
  bottom: 40px;
  right: 80px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.2);
  text-align: right;
  line-height: 1.8;
  text-transform: uppercase;
}

/* ── TICKER ── */
.ticker-wrap {
  background: var(--navy2);
  border-top: 1px solid rgba(201,151,43,0.2);
  border-bottom: 1px solid rgba(201,151,43,0.2);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.ticker-inner {
  display: inline-flex;
  animation: ticker 30s linear infinite;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 40px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .06em;
  color: rgba(255,255,255,.4);
}
.tick-item .tick-name { color: rgba(255,255,255,.7); font-weight: 700; }
.tick-item .tick-up   { color: #4caf82; }
.tick-sep { width: 1px; height: 12px; background: rgba(255,255,255,.12); margin-left: 28px; }

/* ── SECTION BASE ── */
.amecax-section { padding: 120px 80px; }
.section-cream  { background: var(--cream); }
.section-white  { background: #fff; }
.section-navy   { background: var(--navy); }
.section-off    { background: var(--off); }

.s-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.s-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--navy);
}
.s-h2 em { font-style: italic; color: var(--gold); }
.s-h2-white { color: #fff; }
.s-rule { width: 48px; height: 1px; background: var(--gold); margin: 32px 0; }

/* ── GRID LAYOUTS ── */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.four-col  { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }

/* ── ABOUT ── */
.about-lead {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 24px;
}
.about-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: #4a5a72;
}
.about-stats-col { display: flex; flex-direction: column; }
.about-stat {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.about-stat:first-child { border-top: 1px solid var(--rule); }
.about-stat-k {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.about-stat-v {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--navy);
}

/* ── SERVICE CARDS ── */
.service-card {
  padding: 40px 36px;
  border: 1px solid var(--rule);
  background: #fff;
  transition: border-color .25s;
}
.service-card:hover { border-color: var(--gold); }
.service-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.service-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}
.service-p { font-size: 13px; font-weight: 300; line-height: 1.75; color: #4a5a72; }

/* ── PROCESS ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,.08);
}
.process-step {
  padding: 48px 40px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.process-step:nth-child(3),
.process-step-last { border-right: none; }
.process-step:nth-child(4),
.process-step:nth-child(5),
.process-step-last  { border-bottom: none; }
.ps-num {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.ps-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}
.ps-p { font-size: 13px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.45); }

/* ── COMMODITIES ── */
.comm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
}
.comm-card {
  background: var(--off);
  padding: 40px 36px;
  transition: background .25s;
}
.comm-card:hover { background: #fff; }
.comm-n {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.comm-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.1;
}
.comm-row { display: flex; flex-direction: column; gap: 14px; }
.comm-kv  { display: flex; flex-direction: column; gap: 3px; }
.comm-k { font-size: 9px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.comm-v { font-size: 13px; font-weight: 300; color: var(--text); }

/* ── WHO WE SERVE ── */
.serve-card {
  padding: 48px 40px;
  border-left: 2px solid var(--gold);
}
.serve-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}
.serve-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 14px;
}
.serve-p { font-size: 13px; font-weight: 300; line-height: 1.75; color: #4a5a72; }

/* ── LOGISTICS ── */
.logistics-intro {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.5);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 56px;
}
.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.08);
}
.hub-card {
  background: var(--navy2);
  padding: 48px 40px;
}
.hub-primary { border: 1px solid rgba(201,151,43,.3); }
.hub-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.hub-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
}
.hub-desc { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.4); margin-bottom: 28px; }
.hub-spec { display: flex; flex-direction: column; }
.hub-spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hub-spec-last { border-bottom: none; }
.hub-spec-k { font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.hub-spec-v { font-size: 11px; color: rgba(255,255,255,.7); }

/* ── CORPORATE STRUCTURE ── */
.struct-parent {
  background: var(--navy);
  padding: 40px 48px;
  margin-bottom: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.struct-parent-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
}
.struct-parent-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: #fff;
}
.struct-parent-tag { font-size: 11px; color: rgba(255,255,255,.35); font-weight: 300; }

.entity-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--rule);
}
.entity-card { background: var(--off); padding: 36px 28px; }
.entity-n {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.entity-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.3;
}
.entity-state {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.entity-desc { font-size: 12px; font-weight: 300; line-height: 1.65; color: #4a5a72; }

/* ── PRINCIPLE ── */
.principle-block {
  background: var(--navy2);
  border-top: 1px solid rgba(201,151,43,.15);
  border-bottom: 1px solid rgba(201,151,43,.15);
  padding: 96px 80px;
  text-align: center;
}
.principle-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 24px;
}
.principle-source {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CONTACT ── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-h {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.contact-h em { font-style: italic; color: var(--gold); }
.contact-sub {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
  max-width: 380px;
}
.contact-details { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.cd-item { display: flex; flex-direction: column; gap: 6px; }
.cd-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.cd-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  color: #fff;
}
.cd-value a { color: #fff; transition: color .2s; }
.cd-value a:hover { color: var(--gold); }

/* ── FOOTER ── */
#amecax-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 80px;
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo .custom-logo-link img,
.footer-logo .nav-logo-img { height: 28px; opacity: .65; }
.footer-center { text-align: center; }
.footer-links  {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 12px;
}
.footer-links a {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.2);
}
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.18);
}
.footer-email,
.footer-web {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.footer-email:hover,
.footer-web:hover { color: var(--gold); }

/* ── SCROLL REVEAL ── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .12s; }
.rv-d2 { transition-delay: .24s; }
.rv-d3 { transition-delay: .36s; }
.rv-d4 { transition-delay: .48s; }
.rv-d5 { transition-delay: .60s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  #hero, .amecax-section, .principle-block, #amecax-footer { padding-left: 48px; padding-right: 48px; }
  .hero-stats { right: 48px; }
  .hero-corner { right: 48px; }
  .four-col { grid-template-columns: 1fr 1fr; }
  .entity-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-inner  { padding: 0 24px; }

  #hero { padding: 0 24px 80px; }
  .hero-stats  { display: none; }
  .hero-corner { display: none; }

  .amecax-section { padding: 80px 24px; }
  .principle-block { padding: 72px 24px; }
  #amecax-footer   { padding: 32px 24px; }
  .footer-inner    { flex-direction: column; align-items: flex-start; }
  .footer-right    { align-items: flex-start; }

  .two-col    { grid-template-columns: 1fr; gap: 48px; }
  .three-col  { grid-template-columns: 1fr; }
  .four-col   { grid-template-columns: 1fr; }
  .comm-grid  { grid-template-columns: 1fr; }
  .hub-grid   { grid-template-columns: 1fr; }
  .entity-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step,
  .process-step-last { border-right: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .struct-parent { flex-direction: column; align-items: flex-start; gap: 12px; }
}
