/* ==========================================================================
   AL-FA Inc Marine — Design Tokens
   Palette derived from brand logo (lime green + amber-orange wave)
   ========================================================================== */
:root {
  --navy-950: #0A1E2C;
  --navy-900: #0E2A3D;
  --navy-800: #143850;
  --navy-700: #1D4863;

  --brass-500: #C7A465;
  --brass-600: #A9813F;
  --brass-100: #E9D9AF;

  --copper-500: #A85A35;
  --copper-600: #833F22;
  --copper-100: #E3C6B0;

  --cream: #F6F3EA;
  --cream-dim: #EEE8D9;
  --ink: #161D24;
  --slate: #57626B;
  --slate-light: #869199;
  --line: rgba(22, 29, 36, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: 'Spectral', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --wrap: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Type helpers
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-100);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow-dark { color: var(--copper-600); }
.eyebrow .coord { color: inherit; opacity: 0.85; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  margin: 0 0 20px;
  max-width: 15ch;
  color: var(--navy-900);
}
.section-title-light { color: #fff; }
.section-lead {
  font-size: 17px;
  color: var(--slate);
  max-width: 56ch;
  margin: -6px 0 40px;
}
.section-lead-dark { color: rgba(255,255,255,0.72); }

.text-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--copper-600);
  border-bottom: 1px solid var(--copper-500);
  padding-bottom: 2px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--copper-500);
  color: var(--navy-950);
  font-weight: 600;
}
.btn-primary:hover { background: var(--copper-600); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--line-light);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--copper-500); color: var(--copper-500); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-full { width: 100%; padding: 15px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 30, 44, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo { height: 40px; width: auto; }
.main-nav { display: flex; gap: 34px; }
.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.72);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; border-color: var(--copper-500); }

.header-actions { display: flex; align-items: center; gap: 18px; }
.phone-pill {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  border: 1px solid var(--line-light);
  padding: 6px 16px;
  border-radius: 999px;
}
.phone-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-500);
}
.phone-number { font-size: 13px; color: #fff; font-weight: 600; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.menu-toggle span { width: 22px; height: 2px; background: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #fff;
  padding: 176px 0 0;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  top: -60px;
  left: 0;
  right: 0;
  height: calc(100% + 120px);
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(9,20,29,0.82) 0%, rgba(9,20,29,0.5) 40%, rgba(9,20,29,0.32) 65%, rgba(9,20,29,0.4) 100%),
    linear-gradient(180deg, transparent 0%, transparent 58%, var(--navy-900) 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  z-index: 1;
}
.hero-chart { width: 100%; height: 100%; }
.hero-mark {
  position: absolute;
  top: 96px;
  right: 6%;
  z-index: 1;
  opacity: 0.7;
  display: none;
}
@media (min-width: 981px) { .hero-mark { display: block; } }
.chart-line {
  fill: none;
  stroke: rgba(199, 164, 101, 0.4);
  stroke-width: 1.5;
}
.chart-line-2 { stroke: rgba(168, 90, 53, 0.3); }
.chart-line-3 { stroke: rgba(199, 164, 101, 0.2); }

.hero-inner { position: relative; z-index: 2; padding-bottom: 100px; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 16ch;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.76);
  max-width: 60ch;
  margin: 0 0 40px;
}
.hero-ctas { display: flex; gap: 16px; margin-bottom: 68px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 56px;
  border-top: 1px solid var(--line-light);
  padding-top: 30px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-value { display: flex; align-items: baseline; }
.stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--brass-500);
  display: inline;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--brass-500);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin-top: 4px;
}

.wave-divider {
  position: relative;
  z-index: 2;
  line-height: 0;
}
.wave-divider svg { width: 100%; height: 90px; display: block; }
.wave-divider path { fill: var(--cream); }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 96px 0; background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { color: var(--slate); font-size: 16.5px; margin: 0 0 18px; }
.about-side { display: flex; flex-direction: column; gap: 24px; }
.about-photo {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}
.about-panel {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 8px 32px;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
}
.panel-row:last-child { border-bottom: none; }
.panel-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-500);
  flex-shrink: 0;
}
.panel-value { text-align: right; font-size: 14.5px; color: rgba(255,255,255,0.88); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { padding: 96px 0; background: #fff; }
.service-list { border-top: 1px solid var(--line); margin-top: 12px; }
.service-row {
  display: grid;
  grid-template-columns: 76px 1fr 200px;
  align-items: center;
  gap: 44px;
  padding: 34px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.35s ease;
}
.service-row:hover { background: var(--cream); padding-left: 22px; }
.service-index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  color: var(--copper-500);
  transition: color 0.3s ease;
}
.service-row:hover .service-index { color: var(--brass-600); }
.service-row-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 8px;
  color: var(--navy-900);
}
.service-row-body p { font-size: 14.5px; color: var(--slate); margin: 0; max-width: 60ch; }
.service-row-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  filter: grayscale(0.6) brightness(0.96);
  transition: filter 0.45s ease, transform 0.45s ease;
}
.service-row:hover .service-row-photo { filter: grayscale(0) brightness(1.02); transform: scale(1.045); }

/* ==========================================================================
   Products
   ========================================================================== */
.products { padding: 96px 0; background: var(--navy-900); color: #fff; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product-chip {
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 22px 20px;
  font-family: var(--font-display);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.product-chip:hover { border-color: var(--copper-500); background: rgba(168,90,53,0.08); }
.chip-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brass-500);
  border: 1px solid var(--brass-500);
  border-radius: 3px;
  padding: 2px 6px;
}

/* ==========================================================================
   Capabilities
   ========================================================================== */
.capabilities { padding: 96px 0; background: var(--cream); }
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.capability-col {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper-500);
  padding: 32px 28px;
}
.capability-col h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--navy-900);
}
.capability-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--brass-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.capability-col p { font-size: 14.5px; color: var(--slate); margin: 16px 0; }
.capability-col ul li {
  font-size: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery { padding: 96px 0; background: var(--navy-950); color: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery-item {
  margin: 0;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6,16,24,0.88) 0%, rgba(6,16,24,0.15) 55%, transparent 100%);
}
.gallery-item figcaption {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 15px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-item figcaption span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  padding: 72px 0;
}
.cta-inner { text-align: center; max-width: 720px; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
  margin: 0 0 14px;
}
.cta-banner p { color: rgba(255,255,255,0.76); margin: 0 0 30px; font-size: 16px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 96px 0; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-info p { color: var(--slate); font-size: 16px; }
.contact-list { margin-top: 28px; }
.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.contact-list li a:hover { color: var(--copper-600); }
.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-600);
}

.contact-form { background: var(--cream); border: 1px solid var(--line); padding: 36px; border-radius: var(--radius); }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 0;}
.form-row-split > div { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.contact-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--navy-900);
}
.contact-form input, .contact-form textarea {
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--copper-500);
  outline-offset: 1px;
  border-color: var(--copper-500);
}
.form-note {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--brass-600);
  min-height: 18px;
  margin: 14px 0 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
}
.footer-logo { height: 34px; margin-bottom: 16px; filter: brightness(1.3); }
.footer-brand p { font-size: 14px; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-500);
  margin: 0 0 6px;
}
.footer-col a, .footer-col span { font-size: 14px; }
.footer-col a:hover { color: var(--copper-500); }
.footer-bottom {
  padding: 24px 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--copper-500);
  color: var(--navy-950);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 52px 1fr 140px; gap: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--navy-950);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 400px; border-bottom: 1px solid var(--line-light); }
  .main-nav a { padding: 16px 32px; border-bottom: 1px solid var(--line-light); width: 100%; }
  .menu-toggle { display: flex; }
  .phone-pill { display: none; }
  .product-grid, .gallery-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row-photo { display: none; }
  .service-row:hover { padding-left: 4px; }
  .form-row-split { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero-stats { gap: 32px; }
}

