/* =====================================================================
   Lighthouse Ship Supply — main stylesheet
   ===================================================================== */

:root {
  --navy-dark: #0b1f33;
  --navy: #0d2b4a;
  --navy-light: #123a63;
  --navy-lighter: #1c4a7a;
  --red: #b6362c;
  --red-dark: #8f2a22;
  --gold: #c8964a;
  --gold-light: #e0b578;
  --ink: #1c2733;
  --muted: #5b6c7c;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-soft-2: #eef2f6;
  --border: #e2e8ee;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --shadow-sm: 0 4px 14px rgba(11, 31, 51, 0.08);
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* Safety net: every hand-authored icon from svg_icon() gets a sane default
   size unless a more specific rule below overrides it. Without this, a bare
   <svg> with no width/height renders at the browser's fallback intrinsic
   size (300x150px) — which is the "giant icon" bug. */
svg { width: 20px; height: 20px; flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
li { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy-dark);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 { font-size: clamp(30px, 4.5vw, 48px); }
h2 { font-size: clamp(26px, 3.5vw, 34px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 14px; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.section { padding: 80px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.78); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item a { color: rgba(255,255,255,0.9); }
.topbar-item a:hover { color: var(--gold-light); }
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar svg { flex: none; width: 15px; height: 15px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 52px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border-radius: 6px;
  transition: all .15s ease;
}
.main-nav a:hover { background: var(--bg-soft-2); color: var(--red); }
.main-nav li.active a { color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: 14px; }
.header-cta .btn svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: all .2s ease;
}

/* ---------- Hero / slider ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(9,25,43,0.92) 0%, rgba(11,43,74,0.82) 45%, rgba(11,43,74,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 640px; padding: 60px 0; }
.hero-content .eyebrow { color: var(--gold-light); }
.hero-content h1 { color: #fff; }
.hero-content p { color: rgba(255,255,255,0.85); font-size: 17px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  padding: 92px 0 60px;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero .eyebrow { justify-content: center; color: var(--gold-light); }
.breadcrumb { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 6px; }
.breadcrumb a { color: rgba(255,255,255,0.9); }
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.about-flex {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-media .stat-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.about-media .stat-badge strong { display: block; font-size: 26px; line-height: 1; }
.about-media .stat-badge span { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--bg-soft-2);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; margin: 0; }

.vision-banner {
  margin-top: 8px;
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.vision-banner .feature-icon { background: rgba(255,255,255,0.12); color: var(--gold-light); flex: none; }
.vision-banner h3 { color: var(--gold-light); margin-bottom: 6px; }
.vision-banner p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Service card (home teaser) ---------- */
.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,51,0.05) 30%, rgba(11,31,51,0.92) 100%);
}
.service-card-body { position: relative; z-index: 2; padding: 28px; color: #fff; }
.service-card-body h3 { color: #fff; margin-bottom: 8px; }
.service-card-body p { color: rgba(255,255,255,0.82); font-size: 14.5px; }
.service-card-body a { color: var(--gold-light); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; }

/* ---------- Category cards (technical supply) ---------- */
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cat-card-media {
  height: 170px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.cat-card-media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(11,31,51,0) 40%, rgba(11,31,51,0.55) 100%); }
.cat-card-media.no-image { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
.cat-card-num {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255,255,255,0.92); color: var(--navy);
  font-weight: 800; font-size: 13px;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cat-card-body { padding: 22px 22px 24px; }
.cat-card-body h3 { margin-bottom: 8px; font-size: 18px; }
.cat-card-body p { font-size: 14px; }
.cat-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg-soft-2); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cat-card-icon svg { width: 22px; height: 22px; }
.cat-link { color: var(--red); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.cat-link svg { width: 14px; height: 14px; }

.cat-detail {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 34px 8px; margin-bottom: 26px; scroll-margin-top: 110px;
}
.cat-detail-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.cat-detail-head .cat-card-icon { margin-bottom: 0; }
.cat-detail-body h4 { color: var(--navy-light); font-size: 15.5px; text-transform: uppercase; letter-spacing: .03em; margin: 22px 0 8px; }
.cat-detail-body h4:first-child { margin-top: 0; }
.cat-detail-body ul { margin: 0 0 14px; }
.cat-detail-body ul li {
  position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--muted); font-size: 15px;
}
.cat-detail-body ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}
.cat-detail-body p { font-size: 15px; }
.cat-detail-media { border-radius: 8px; overflow: hidden; margin-bottom: 18px; }

.jumplinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.jumplinks a {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  transition: all .15s ease;
}
.jumplinks a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item strong { display: block; font-size: 36px; color: var(--gold-light); }
.stat-item span { font-size: 14px; color: rgba(255,255,255,0.75); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--red-dark), var(--red));
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.88); margin: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.12); }
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-icon {
  width: 42px; height: 42px; border-radius: 10px; flex: none;
  background: rgba(255,255,255,0.1); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 19px; height: 19px; }
.contact-info-item h4 { color: #fff; font-size: 14px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .04em; }
.contact-info-item a, .contact-info-item span { color: rgba(255,255,255,0.85); font-size: 15px; }
.contact-info-item a:hover { color: var(--gold-light); }
.contact-socials { display: flex; gap: 10px; margin-top: 22px; }
.contact-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.contact-socials a svg { width: 17px; height: 17px; }
.contact-socials a:hover { background: var(--gold); color: var(--navy-dark); }

.contact-form-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], textarea, select {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  background: #fbfcfd;
  transition: border-color .15s ease, background .15s ease;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--navy-light); background: #fff;
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
#formAlert { display: none; padding: 13px 16px; border-radius: 6px; font-size: 14.5px; margin-bottom: 18px; }
#formAlert.show { display: block; }
#formAlert.ok { background: #e7f6ec; color: #1c7c3c; border: 1px solid #bfe6cb; }
#formAlert.err { background: #fbeaea; color: #a4302a; border: 1px solid #f0c4c1; }

.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.72); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand img { height: 46px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.62); font-size: 14.5px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .04em; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: rgba(255,255,255,0.68); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 14.5px; }
.footer-contact-item svg { flex: none; margin-top: 2px; color: var(--gold-light); width: 17px; height: 17px; }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials a svg { width: 16px; height: 16px; }
.footer-socials a:hover { background: var(--gold); color: var(--navy-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13.5px; color: rgba(255,255,255,0.5);
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 13.5px;
  transition: opacity .15s ease;
}
.footer-credit:hover { opacity: 0.8; }
.footer-credit img { height: 13px; width: auto; opacity: 0.85; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-flex { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 860px) {
  .topbar { display: none; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn span.long { display: none; }
  .site-header.nav-open .main-nav {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 2px; }
  .site-header.nav-open .main-nav a { padding: 12px 8px; }
}

@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .vision-banner { flex-direction: column; text-align: center; }
  .cta-band { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-left { gap: 14px; }
  .about-media .stat-badge { right: 10px; bottom: -16px; padding: 14px 16px; }
}
