/* F. Miller & Co. — Shared Styles */
/* Build: 2026-06-30 */

/* ─── TOKENS ─── */
:root {
  --navy:       #16314F;
  --navy-deep:  #0e2135;
  --navy-mid:   #1c3f63;
  --amber:      #E8722A;
  --amber-dim:  #c85f22;
  --amber-pale: #fef2eb;
  --steel:      #3C7DB5;
  --steel-dim:  #2f659a;
  --graphite:   #2B2F36;
  --ink:        #1A2433;
  --muted:      #6B7B8A;
  --muted-lt:   #9aaab8;
  --line:       #E2E8EE;
  --bg:         #F5F7FA;
  --white:      #FFFFFF;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
::placeholder { color: hsl(0 0% 60% / 0.25); }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 40px; } }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.eyebrow--muted { color: var(--muted-lt); }

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(42px, 6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 50px); }
h3 { font-size: clamp(22px, 3vw, 32px); }
h4 { font-size: 18px; font-weight: 600; letter-spacing: 0; }

p { max-width: 65ch; }
p + p { margin-top: 1em; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-amber {
  background: var(--amber);
  color: var(--white);
}
.btn-amber:hover { background: var(--amber-dim); }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

/* ─── NAVIGATION ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-mark {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.nav-name {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
}
.nav-name small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--muted-lt);
  margin-top: 3px;
  font-family: "Inter", Arial, sans-serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 767px) { .nav-links { display: none; } }
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.72);
  padding: 8px 14px;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--white); }
.nav-cta.btn {
  padding: 9px 20px;
  font-size: 12px;
  margin-left: 8px;
}
.nav-toggle {
  display: none;
  color: var(--white);
  padding: 8px;
}
@media (max-width: 767px) {
  .nav-toggle { display: block; }
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 8px 0 20px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 14px 24px;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.05); color: var(--white); }

/* ─── PAGE HERO (shared dark hero for inner pages) ─── */
.page-hero {
  background: var(--navy-deep);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 100%, rgba(232,114,42,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .lead {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  max-width: 56ch;
  line-height: 1.6;
}

/* ─── SECTIONS ─── */
.section { padding: 88px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 112px 0; }
.section--dark { background: var(--navy-deep); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--light { background: var(--bg); }

.section-head { margin-bottom: 56px; }
.section-head p { font-size: 17px; color: var(--muted); margin-top: 12px; }
.section--dark .section-head p,
.section--navy .section-head p { color: rgba(255,255,255,0.6); }

/* ─── GRIDS ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1023px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.card--dark:hover { background: rgba(255,255,255,0.07); transform: none; box-shadow: none; }
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--amber-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--amber);
}
.card--dark .card-icon { background: rgba(232,114,42,0.15); }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card--dark h3 { color: var(--white); }
.card p { font-size: 15px; color: var(--muted); }
.card--dark p { color: rgba(255,255,255,0.6); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--white);
  border-top: 3px solid var(--amber);
  box-shadow: 0 -4px 40px rgba(0,0,0,0.18), 0 4px 24px rgba(0,0,0,0.08);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: var(--line);
}
@media (max-width: 767px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── CAPABILITY CHAIN ─── */
.chain {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  gap: 0;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.chain-step {
  flex: 1;
  min-width: 160px;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
  position: relative;
  text-align: center;
  transition: background 0.2s;
}
.chain-step:last-child { border-right: none; }
.chain-step:hover { background: rgba(232,114,42,0.08); }
.chain-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.7;
}
.chain-step h4 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.chain-step p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  max-width: none;
  line-height: 1.5;
}
/* Arrow between steps */
.chain-step::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 12px solid rgba(255,255,255,0.08);
  z-index: 2;
}
.chain-step:last-child::after { display: none; }
@media (max-width: 767px) {
  .chain { flex-direction: column; }
  .chain-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .chain-step::after { display: none; }
}

/* ─── INDUSTRY PILLS ─── */
.industry-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pill:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }

/* ─── CERTIFICATIONS ─── */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.cert-badge svg { color: var(--amber); flex-shrink: 0; }

/* ─── PHOTO BAND ─── */
.photo-band {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4px;
  height: 420px;
}
@media (max-width: 767px) {
  .photo-band { grid-template-columns: 1fr; height: auto; }
  .photo-band .photo-band-item { height: 220px; }
}
.photo-band-item {
  position: relative;
  overflow: hidden;
}
.photo-band-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-band-item:hover img { transform: scale(1.04); }

/* ─── VIDEO HERO ─── */
.video-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14,33,53,0.3) 0%,
    rgba(14,33,53,0.25) 40%,
    rgba(14,33,53,0.75) 75%,
    rgba(14,33,53,0.95) 100%
  );
  z-index: 1;
}
.video-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  width: 100%;
}
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-title em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ─── FACILITY SPEC SECTION ─── */
.spec-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 28px;
}
.spec-block h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
  font-family: "Inter", Arial, sans-serif;
}
.spec-list { display: flex; flex-direction: column; gap: 8px; }
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.spec-item::before {
  content: '—';
  color: var(--amber);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0px;
}

/* ─── ENQUIRY FORM ─── */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 3px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(22,49,79,0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7B8A' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--muted); }
.form-success {
  display: none;
  padding: 20px 24px;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  border-radius: 4px;
  color: #065f46;
  font-weight: 500;
  margin-top: 16px;
}
.form-success.visible { display: block; }

/* ─── CONTACT DETAILS ─── */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-detail:first-child { padding-top: 0; }
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--amber-pale);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.contact-detail-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-detail-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.contact-detail-value a { color: var(--navy); transition: color 0.15s; }
.contact-detail-value a:hover { color: var(--amber); }

/* ─── MAP ─── */
.map-embed {
  width: 100%;
  height: 340px;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 32px;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.55);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 639px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand { }
.footer-mark {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.65;
  max-width: 30ch;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
.footer-amber { color: var(--amber); font-weight: 600; }

/* ─── DIVIDER ─── */
.amber-rule {
  height: 3px;
  background: var(--amber);
  border: none;
  margin: 0;
}

/* ─── UTILITIES ─── */
.text-white { color: var(--white); }
.text-amber { color: var(--amber); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.gap-8 { gap: 32px; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* ─── RESPONSIVE AIDS ─── */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .section--lg { padding: 80px 0; }
}

/* Responsive 2-column grid: stacks on mobile */
.rg-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.rg-2-wide {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}
.rg-2-wide-r {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 767px) {
  .rg-2, .rg-2-wide, .rg-2-wide-r {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Responsive 3-col photo band on About */
.photo-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 639px) {
  .photo-3 { grid-template-columns: 1fr; }
  .photo-3 img { height: 180px; }
}

/* ─── SVG ICONS ─── */
.icon { display: inline-block; vertical-align: middle; }
