/* ==========================================================================
   7Seas Marine Electronics — site stylesheet
   ========================================================================== */

:root {
  --navy-950: #081420;
  --navy-900: #0b1f33;
  --navy-800: #123a5c;
  --navy-700: #1a4d78;
  --teal: #1b9aaa;
  --teal-light: #4fc3d3;
  --amber: #e8792f;
  --amber-dark: #c95f1c;
  --off-white: #f5f7f9;
  --white: #ffffff;
  --ink: #16232f;
  --ink-soft: #4a5a68;
  --line: #e1e6ea;
  --shadow: 0 10px 30px rgba(8, 20, 32, 0.12);
  --radius: 6px;
  --container: 1180px;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy-800); }

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.6em;
}

section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--off-white); }
.section-navy {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900));
  color: var(--off-white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #b9c7d3; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--white); }
.btn-primary:hover { background: var(--amber-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline-navy { border-color: var(--navy-800); color: var(--navy-900); background: transparent; }
.btn-outline-navy:hover { background: var(--navy-900); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-phone {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #dfe8ef;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--amber);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .phone {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    height: auto;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08) !important; }
  .nav-cta .phone { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  min-height: 74vh;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,20,32,0.45) 0%, rgba(8,20,32,0.55) 45%, rgba(8,20,32,0.94) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-bottom: 68px;
  max-width: 760px;
}
.hero h1, .hero h2, .hero h3 { color: var(--white); }
.hero p.lead { color: #dfe8ef; font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.page-hero {
  position: relative;
  color: var(--white);
  padding: 150px 0 60px;
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(8,20,32,0.88), rgba(11,31,51,0.78));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1, .page-hero h2, .page-hero h3 { color: var(--white); }
.page-hero p.lead { color: #dfe8ef; max-width: 640px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
}
.card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(27,154,170,0.1);
  color: var(--teal);
  border-radius: 8px;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }
.card ul { margin: 0.6em 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.card ul li { margin-bottom: 4px; }

.stat-row { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { min-width: 140px; }
.stat .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--white); }
.stat .label { color: #b9c7d3; font-size: 0.92rem; }

.photo-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.photo-feature img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-feature.reverse { direction: rtl; }
.photo-feature.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .photo-feature { grid-template-columns: 1fr; }
  .photo-feature.reverse { direction: ltr; }
}

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-strip img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- Services detail blocks ---------- */
.service-block {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}
.service-block:first-of-type { border-top: none; padding-top: 0; }
.service-block h3 { margin-bottom: 10px; }
.service-block .tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-800);
  background: rgba(27,154,170,0.12);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.service-block .items { columns: 2; column-gap: 32px; margin: 0.4em 0 0; padding-left: 1.1em; color: var(--ink-soft); }
.service-block .items li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 760px) {
  .service-block { grid-template-columns: 1fr; gap: 12px; }
  .service-block .items { columns: 1; }
}

/* ---------- Checklist (safety inspection) ---------- */
.checklist-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}
.checklist-panel h3 { margin-bottom: 4px; }
.checklist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; margin-top: 22px; }
.checklist-grid .group h4 {
  font-family: var(--font-head);
  font-size: 0.98rem;
  color: var(--navy-800);
  margin: 18px 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.checklist-grid .group:first-child h4 { margin-top: 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.check-item svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--teal); }
@media (max-width: 760px) {
  .checklist-grid { grid-template-columns: 1fr; }
  .checklist-panel { padding: 26px; }
}

/* ---------- Testimonials / CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); margin: 0; }
.cta-band p { color: #cfe0ea; margin-top: 6px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy-900); }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27,154,170,0.18);
}
textarea { resize: vertical; min-height: 130px; }
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 10px; }
#form-status { margin-top: 16px; font-weight: 600; }
#form-status[data-state="ok"] { color: #1b8a57; }
#form-status[data-state="error"] { color: #c0392b; }

/* ---------- Contact info cards ---------- */
.contact-info { display: grid; gap: 20px; }
.contact-info .item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info .icon {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(232,121,47,0.12);
  color: var(--amber);
  border-radius: 8px;
}
.contact-info .icon svg { width: 22px; height: 22px; }
.contact-info h4 { margin: 0 0 2px; font-size: 1rem; color: var(--navy-900); }
.contact-info p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #a9b9c6; padding: 56px 0 26px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid img { height: 40px; margin-bottom: 14px; }
.footer-grid h4 { color: var(--white); font-family: var(--font-head); font-size: 1rem; margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #a9b9c6; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: 0.85rem; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.hide-mobile { }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .service-block { padding: 32px 0; }
  section { padding: 52px 0; }
}
