/* =============================================================
   MoorSafe — Maine-built mooring safety
   Design system v1
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg:           #F5EFE3;
  --bg-deep:      #ECE3D0;
  --surface:      #FFFFFF;
  --surface-warm: #FAF6EC;

  --ink:          #0E2436;
  --ink-soft:     #34495F;
  --ink-muted:    #5C6F84;
  --line:         #D9CFB8;
  --line-soft:    #E7DFCB;

  --navy:         #0E2436;
  --navy-deep:    #061626;
  --navy-soft:    #1B3A56;

  --rope:         #B68A4E;
  --rope-deep:    #8C6A38;
  --buoy:         #B43A2D;
  --buoy-deep:    #8B2B20;
  --orange:       #E5772D;   /* matches the logo's "Safe" orange */
  --orange-deep:  #C25E1B;
  --orange-soft:  #FBE4D2;
  --sea:          #1A8FA8;
  --sea-deep:     #136D81;
  --sea-bright:   #4FC3D7;
  --sea-soft:     #D6EEF3;

  --gold:         #C5A465;

  --font-serif:   "Source Serif 4", "Source Serif Pro", "Charter", Georgia, "Times New Roman", serif;
  --font-display: "Playfair Display", "Source Serif 4", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container:    1200px;
  --container-narrow: 880px;
  --radius:       6px;
  --radius-sm:    4px;
  --radius-lg:    14px;

  --shadow-sm:    0 1px 2px rgba(14, 36, 54, 0.06), 0 2px 8px rgba(14, 36, 54, 0.04);
  --shadow-md:    0 6px 18px rgba(14, 36, 54, 0.08), 0 16px 40px rgba(14, 36, 54, 0.08);
  --shadow-lg:    0 20px 60px rgba(14, 36, 54, 0.18);

  --transition:   200ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 106, 119, 0.07) 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(182, 138, 78, 0.06) 0%, transparent 60%);
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.35rem; font-family: var(--font-serif); font-weight: 600; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
p { margin: 0 0 1em; color: var(--ink-soft); }

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

.section { padding: 110px 0; }
.section-tight { padding: 72px 0; }
.section-warm { background: var(--surface-warm); }
.section-navy { background: var(--navy); color: #D9E0E8; }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy p { color: #B7C2D0; }

.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rope); margin-bottom: 16px; }
.eyebrow-line { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow-line::before { content: ""; width: 28px; height: 1px; background: var(--rope); }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: var(--radius); font-weight: 600; font-size: 0.97rem;
  font-family: var(--font-sans); letter-spacing: 0.02em; border: 1px solid transparent;
  cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-buoy { background: var(--buoy); color: #fff; }
.btn-buoy:hover { background: var(--buoy-deep); color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 239, 227, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  border: 2px solid var(--rope);
}
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; line-height: 1; }
.brand-text small {
  display: block; font-family: var(--font-sans); font-weight: 500;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rope); margin-top: 4px;
}
.brand-logo {
  height: 56px;
  width: auto;
  display: block;
  /* Hide white background of logo on cream page */
  mix-blend-mode: multiply;
}
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
  mix-blend-mode: normal;
  height: 48px;
}
@media (max-width: 640px) {
  .brand-logo { height: 44px; }
}

/* ---------- Ocean / Nautical accents ---------- */

/* Hero wave divider — sits at bottom of hero */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 80px;
  z-index: 3;
  pointer-events: none;
  display: block;
}
.hero-wave svg { width: 100%; height: 100%; display: block; }

/* Subtle wave pattern background for navy sections */
.section-navy.with-waves {
  background-image:
    radial-gradient(900px 500px at 80% -20%, rgba(45, 106, 119, 0.18) 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(45, 106, 119, 0.15) 0%, transparent 60%),
    var(--navy);
  position: relative;
  overflow: hidden;
}
.section-navy.with-waves::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cg fill='none' stroke='%231B3A56' stroke-width='1.5'%3E%3Cpath d='M-100 200 Q150 120 300 200 T700 200'/%3E%3Cpath d='M-100 280 Q150 200 300 280 T700 280'/%3E%3Cpath d='M-100 360 Q150 280 300 360 T700 360'/%3E%3Cpath d='M-100 440 Q150 360 300 440 T700 440'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 600px;
  opacity: 0.35;
  pointer-events: none;
}
.section-navy.with-waves > * { position: relative; z-index: 1; }

/* Big stat block — chunky uppercase with rope underline */
.big-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}
.big-stat {
  border-bottom: 2px solid var(--rope);
  padding-bottom: 18px;
}
.big-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
  line-height: 1.05;
  margin-bottom: 10px;
  display: block;
}
.big-stat .label {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
  letter-spacing: 0.02em;
}
.section-navy .big-stat .num { color: #fff; }
.section-navy .big-stat .label { color: rgba(255,255,255,0.78); }

/* Vertical feature card — image on top, colored panel below */
.feature-vertical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-vertical {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.feature-vertical .image {
  aspect-ratio: 4 / 3;
  background: var(--bg-deep);
  overflow: hidden;
}
.feature-vertical .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature-vertical .body {
  background: var(--sea);
  color: #fff;
  padding: 28px;
  flex: 1;
}
.feature-vertical .body h3 {
  color: #fff;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.feature-vertical .body p {
  color: rgba(255,255,255,0.92);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}
@media (max-width: 1000px) {
  .feature-vertical-grid { grid-template-columns: repeat(2, 1fr); }
  .big-stats { grid-template-columns: 1fr 1fr; gap: 32px 36px; }
}
@media (max-width: 640px) {
  .feature-vertical-grid { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: 1fr; }
}

/* ---------- Result highlight callout (orange) ---------- */
.result-highlight {
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
  margin: 24px 0 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.result-highlight .result-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.result-highlight p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}
.result-highlight .accent {
  color: var(--orange);
  font-weight: 700;
}

/* ---------- Product feature box (Portsmouth-style 2-col) ---------- */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.product-feature .image {
  background: var(--bg-deep);
  overflow: hidden;
  min-height: 320px;
}
.product-feature .image img,
.product-feature .image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) {
  .product-feature .image { aspect-ratio: 5 / 4; min-height: 0; }
}
.product-feature .panel {
  background: var(--sea);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-feature .panel h2 {
  color: #fff;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.product-feature .panel .subhead {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 18px;
  display: block;
}
.product-feature .panel .divider {
  width: 100%;
  height: 1px;
  background: var(--rope);
  margin: 0 0 22px;
}
.product-feature .panel p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.97rem;
  line-height: 1.7;
  margin: 0 0 18px;
}
.product-feature .panel ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.product-feature .panel ul li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.96rem;
}
.product-feature .panel ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--rope);
  font-weight: 700;
}
.product-feature .panel ul.sizes li {
  padding: 8px 0 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.product-feature .panel ul.sizes li:last-child { border-bottom: 0; }
.product-feature .panel ul.sizes strong {
  display: inline-block;
  min-width: 80px;
  color: #fff;
  font-weight: 700;
}
@media (max-width: 900px) {
  .product-feature { grid-template-columns: 1fr; }
  .product-feature .panel { padding: 36px 28px; }
}

/* ---------- FAQ accordion (uses HTML5 details/summary) ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 4px 0;
  transition: color var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--sea);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--sea-deep); }
.faq details[open] summary { color: var(--sea-deep); }
.faq .answer {
  padding: 14px 0 6px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}
.faq .answer p:last-child { margin-bottom: 0; }
.section-navy .faq summary { color: #fff; }
.section-navy .faq summary::after { color: var(--sea-bright); }
.section-navy .faq .answer { color: rgba(255,255,255,0.85); }
.section-navy .faq details { border-color: rgba(255,255,255,0.12); }
.section-navy .faq details:first-of-type { border-top-color: rgba(255,255,255,0.12); }

/* Video grid (for videos.html) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-card .video-frame {
  aspect-ratio: 16 / 9;
  background: var(--ink);
  position: relative;
}
.video-card .video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-card .body { padding: 24px 26px 28px; }
.video-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.video-card .meta {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.video-card p { font-size: 0.96rem; margin: 0; }
@media (max-width: 768px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* Figure variants — natural-aspect image, capped height, centered */
.figure.figure-natural {
  background: var(--surface);
  padding: 28px;
  text-align: center;
}
.figure.figure-natural img {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 480px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 auto;
}
.figure.figure-natural-lg img {
  max-height: 720px !important;
}
.figure.figure-badge {
  background: var(--navy);
  border-color: rgba(255,255,255,0.1);
  text-align: center;
  padding: 36px;
}
.figure.figure-badge img {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  max-width: 280px !important;
  max-height: 280px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  margin: 0 auto;
}
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color var(--transition); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

.hero {
  position: relative; min-height: 88vh;
  display: grid; align-items: center; overflow: hidden;
  background: var(--navy); color: #fff;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 22, 38, 0.55) 0%, rgba(6, 22, 38, 0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; padding: 120px 0; }
.hero h1 { color: #fff; max-width: 14ch; margin-bottom: 24px; }
.hero .lede { font-size: 1.2rem; color: rgba(255, 255, 255, 0.85); max-width: 540px; margin-bottom: 36px; }
.hero .eyebrow { color: var(--rope); }

/* Portsmouth-style hero variant — image bg, big uppercase text, centered */
.hero.hero-impact {
  text-align: center;
  background-image: url("assets/hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.hero-impact .hero-overlay {
  background: linear-gradient(180deg, rgba(6, 22, 38, 0.55) 0%, rgba(6, 22, 38, 0.35) 50%, rgba(6, 22, 38, 0.85) 100%);
}
.hero.hero-impact .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 100px 0 110px;
}
.hero.hero-impact h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  max-width: 18ch;
  margin: 0 auto 14px;
}
.hero.hero-impact h1 .accent {
  display: block;
  color: var(--sea-bright);
  font-weight: 800;
}
.hero.hero-impact .subline {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--rope);
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 22px auto 28px;
}
.hero.hero-impact .lede {
  margin: 0 auto 36px;
  text-align: center;
}
.hero.hero-impact .hero-actions { justify-content: center; }
.hero.hero-impact .hero-trust { justify-content: center; }

/* Full-bleed video section (the unobstructed video) */
.section-video {
  background: var(--navy-deep);
  padding: 96px 0;
  color: #fff;
  position: relative;
}
.section-video .section-head { margin-bottom: 40px; }
.section-video .section-head h2 { color: #fff; }
.section-video .section-head p { color: rgba(255,255,255,0.78); }
.video-frame-large {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-frame-large video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 36px; margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.15); flex-wrap: wrap;
}
.hero-trust div { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; }
.hero-trust strong {
  display: block; color: #fff;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 2px;
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px; }
.compare-card.problem { border-left: 4px solid var(--buoy); }
.compare-card.answer  { border-left: 4px solid var(--sea); }
.compare-card h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 6px; }
.compare-card .tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.compare-card.problem .tag { color: var(--buoy); }
.compare-card.answer  .tag { color: var(--sea); }
.compare-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.compare-card li { padding: 10px 0 10px 28px; position: relative; border-top: 1px solid var(--line-soft); font-size: 0.96rem; color: var(--ink-soft); }
.compare-card li:first-child { border-top: 0; }
.compare-card li::before { content: ""; position: absolute; left: 0; top: 14px; width: 16px; height: 16px; border-radius: 50%; }
.compare-card.problem li::before { background: var(--buoy); opacity: 0.18; }
.compare-card.answer li::before { background: var(--sea); opacity: 0.18; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; transition: transform var(--transition), box-shadow var(--transition); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sea-soft); color: var(--sea); display: grid; place-items: center; margin-bottom: 22px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { font-size: 0.96rem; margin-bottom: 0; }

.figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { padding: 18px 22px; font-size: 0.92rem; color: var(--ink-muted); font-style: italic; border-top: 1px solid var(--line-soft); }

/* Blog post thumbnail (replaces emoji on blog cards) */
.post-cover img.post-thumb { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Article (single blog post) */
.article { padding: 64px 0 96px; }
.article-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 18px; }
.article-head .lede { font-size: 1.12rem; color: var(--ink-soft); }
.article-byline { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 22px; font-size: 0.9rem; color: var(--ink-muted); }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.075rem; line-height: 1.75; color: var(--ink-soft); }
.article-body h2 { margin: 2em 0 0.6em; color: var(--ink); font-size: 1.55rem; }
.article-body h3 { margin: 1.6em 0 0.5em; color: var(--ink); font-size: 1.2rem; }
.article-body p { margin-bottom: 1.1em; }
.article-body strong { color: var(--ink); }
.article-body ul, .article-body ol { margin: 0 0 1.2em 1.4em; padding: 0; }
.article-body li { margin-bottom: 0.5em; }
.article-body blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--rope); background: var(--surface-warm); font-family: var(--font-serif); color: var(--ink); }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.article-cta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; text-align: center; margin-top: 40px; }
.article-cta h3 { margin-bottom: 8px; }
.article-cta p { margin-bottom: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.93rem; color: var(--ink-muted); margin-bottom: 24px; }
.back-link:hover { color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col-text h2 { margin-bottom: 22px; }

.memorial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.memorial-portrait { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-family: var(--font-display); font-size: 3rem; color: var(--rope); font-weight: 700; }
.memorial-portrait img { width: 100%; height: 100%; object-fit: cover; }
.memorial h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 4px; }
.memorial .dates { display: block; font-family: var(--font-sans); font-weight: 500; color: var(--ink-muted); font-size: 0.9rem; letter-spacing: 0.06em; margin-bottom: 16px; }
.memorial blockquote { margin: 18px 0 0; padding: 18px 22px; border-left: 3px solid var(--rope); background: var(--surface-warm); font-family: var(--font-serif); font-style: italic; color: var(--ink); }

.test-results { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.test-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.test-card .where { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--rope); font-weight: 600; margin-bottom: 12px; }
.test-card h3 { font-family: var(--font-display); font-size: 1.4rem; }
.test-card .compare-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.test-card .compare-row > div { text-align: left; }
.test-card .compare-row .num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 6px; }
.test-card .compare-row .tag { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 600; }
.test-card .compare-row .moorsafe .num { color: var(--sea); }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: left; }
.team-photo { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: var(--bg-deep); margin-bottom: 18px; overflow: hidden; display: grid; place-items: center; color: var(--rope); font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-member .role { font-size: 0.85rem; color: var(--ink-muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px; }
.team-member p { font-size: 0.92rem; margin: 0; }

.banner { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 20% -20%, rgba(182, 138, 78, 0.18) 0%, transparent 60%), radial-gradient(500px 250px at 90% 120%, rgba(45, 106, 119, 0.25) 0%, transparent 60%); }
.banner > * { position: relative; }
.banner h2 { color: #fff; max-width: 22ch; margin: 0 auto 18px; }
.banner p { color: rgba(255, 255, 255, 0.8); max-width: 56ch; margin: 0 auto 28px; }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info li svg { color: var(--sea); flex-shrink: 0; margin-top: 3px; }
.contact-info strong { display: block; color: var(--ink); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 0.97rem; color: var(--ink); background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 0; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(45, 106, 119, 0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.83rem; color: var(--ink-muted); margin: 12px 0 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition); }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-cover { aspect-ratio: 16 / 9; background: var(--bg-deep); display: grid; place-items: center; color: var(--rope); font-family: var(--font-display); font-size: 1.8rem; }
.post-card .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 10px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card p { font-size: 0.95rem; margin-bottom: 16px; }
.post-card .read-more { margin-top: auto; font-weight: 600; color: var(--sea); }

.site-footer { background: var(--navy-deep); color: #B7C2D0; padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.site-footer .brand-text { color: #fff; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.site-footer a { color: #B7C2D0; font-size: 0.93rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: #8A97A6; }

@media (max-width: 1000px) {
  .two-col, .compare, .test-results, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid, .team-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .memorial { grid-template-columns: 1fr; gap: 24px; }
  .memorial-portrait { width: 180px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .hero { min-height: 70vh; }
  .nav-links {
    position: absolute; top: 100%; left: 16px; right: 16px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; padding: 16px; gap: 4px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { margin: 8px 0 0; }
  .feature-grid, .team-grid, .post-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .banner { padding: 48px 28px; }
  .hero-trust { gap: 24px; }
}
