/* =========================================================
   Arena Fluor Materials — arenafluor.com
   Sibelco-style corporate layout. Palette: deep marine navy,
   steel blue accent, cool neutrals. Type: Cormorant Garamond
   (display, matching Arena Capital) + Source Sans 3 (body).
   ========================================================= */

:root {
  --navy: #16283a;
  --navy-deep: #0e1c2a;
  --accent: #2e6e9e;
  --accent-dark: #235a83;
  --body-text: #46525e;
  --gray-bg: #f4f6f7;
  --line: #dde3e7;
  --white: #ffffff;

  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --maxw: 1160px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

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

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

body {
  font-family: var(--sans);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

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

h1, h2, h3 {
  font-family: var(--display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.005em;
}
h4 { color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.kicker {
  font-family: var(--sans);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  color: var(--white);
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, color 0.25s ease;
}
.topbar.solid {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(22, 40, 58, 0.06);
  padding-top: 11px;
  padding-bottom: 11px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.logo-mark { width: 48px; height: auto; flex: none; }
.logo-mark-footer { width: 54px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-top: 2px;
}

.nav { display: flex; align-items: center; gap: clamp(14px, 2.5vw, 32px); }
.nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0.92;
}
.nav a:hover { opacity: 1; color: var(--accent); }
.topbar:not(.solid) .nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  background: var(--accent);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 9px 20px;
  border-radius: 999px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img.missing { display: none; }
.hero:has(.hero-img.missing)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 90% at 85% 10%, #29455f 0%, transparent 60%),
    linear-gradient(160deg, #1d3448 0%, #16283a 55%, #0e1c2a 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 20, 30, 0.74) 0%, rgba(10, 20, 30, 0.38) 55%, rgba(10, 20, 30, 0.16) 100%);
}
.hero-content {
  position: relative;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 150px var(--pad) 110px;
}
.hero-content h1 {
  color: var(--white);
  font-weight: 600;
  font-size: clamp(2.5rem, 5.6vw, 4.2rem);
  max-width: 18ch;
}
.hero-content p {
  margin-top: 20px;
  max-width: 56ch;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}
.hero-content .btn { margin-top: 30px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.scroll-cue span { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-gray { background: var(--gray-bg); }

.section h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 8px; }

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.about-text p + p { margin-top: 16px; }

/* ---------- Material tiles ---------- */
.tiles {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 22px;
}
.tile {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(22, 40, 58, 0.09);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(22, 40, 58, 0.15);
}
.tile img { width: 100%; aspect-ratio: 3/2; object-fit: cover; background: #dfe4e8; }
.tile:has(img.missing)::before {
  content: "Photo coming soon";
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  background: repeating-linear-gradient(135deg, #e6eaed 0 14px, #eef1f3 14px 28px);
  color: #7b8590;
  font-size: 0.82rem;
  font-weight: 600;
}
.tile:has(img.missing) img { display: none; }

.tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-body h3 { font-size: 1.45rem; }
.tile-body p { font-size: 0.93rem; }
.tile-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}
.tile:hover .tile-link { text-decoration: underline; }

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: clamp(44px, 6vw, 70px) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 28px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.8vw, 3.4rem);
  font-weight: 600;
  color: var(--white);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

/* ---------- Feature bands (image + text) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.feature-reverse .feature-media { order: 2; }

.feature-media { position: relative; min-height: 400px; background: #dfe4e8; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-media img.missing { display: none; }
.feature-media:has(img.missing)::after {
  content: "Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, #e6eaed 0 14px, #eef1f3 14px 28px);
  color: #7b8590;
  font-size: 0.85rem;
  font-weight: 600;
}

.feature-body {
  padding: clamp(48px, 6vw, 90px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.feature-body h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.feature-body .btn, .feature-body .btn-outline { margin-top: 26px; align-self: flex-start; }

.check-list { list-style: none; margin-top: 16px; }
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-top: 8px;
  font-weight: 600;
  color: var(--navy);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Operations gallery ---------- */
.gallery {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 3px rgba(22, 40, 58, 0.09);
}
.gallery img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 16px 12px;
  background: linear-gradient(to top, rgba(14, 28, 42, 0.78), transparent);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Applications ---------- */
.apps {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.app {
  background: var(--gray-bg);
  border-radius: var(--radius);
  padding: 26px 24px;
  border-top: 3px solid var(--accent);
}
.app h3 { font-size: 1.4rem; margin-bottom: 6px; }
.app p { font-size: 0.92rem; }

.apps-note {
  margin-top: 28px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Contact ---------- */
.contact { background: var(--gray-bg); padding: clamp(60px, 8vw, 110px) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.contact h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 12px; }
.contact-direct { margin-top: 22px; font-weight: 700; color: var(--navy); line-height: 2; }
.contact-direct a { color: var(--accent); text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(22, 40, 58, 0.09);
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 16px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  background: var(--white);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.78rem; color: #7b8590; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: clamp(48px, 6vw, 72px) 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand .brand-name { font-size: 1.5rem; }
.footer-brand .brand-sub { opacity: 0.7; }
.footer h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.footer a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
  margin-top: 8px;
}
.footer a:hover { color: var(--white); }
.footer-fine { padding-top: 22px; font-size: 0.8rem; }
.footer-fine p + p { margin-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
  .feature-media { min-height: 280px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 80vh; }
}
