/* ===========================================================
   McIntyre Marine Inspections — site styles
   Brand: navy #031732 · steel blue #467CA2 · mid blue #165D94
   =========================================================== */

:root {
  --navy: #031732;
  --navy-2: #0a2742;
  --steel: #467ca2;
  --steel-light: #5e95bd;
  --mid: #165d94;
  --ink: #1c2733;
  --muted: #5b6b7a;
  --line: #e3e9ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --bg-softer: #eef3f7;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(3, 23, 50, 0.08);
  --shadow-lg: 0 24px 60px rgba(3, 23, 50, 0.16);
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--navy); }

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

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--mid); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--steel);
  margin: 0 0 0.6rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--steel); color: #fff; box-shadow: 0 8px 20px rgba(70,124,162,0.35); }
.btn-primary:hover { background: var(--mid); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); color:#fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--mid); color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; color: var(--navy); font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--mid); text-decoration: none; border-bottom-color: var(--steel); }
.nav-links a.active { color: var(--navy); border-bottom-color: var(--steel); }
.nav-cta { margin-left: 6px; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(70,124,162,0.35), transparent 60%),
    linear-gradient(160deg, #031732 0%, #07223f 55%, #0c2e52 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 70px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 60%, 0 60%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 150px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: var(--steel-light); }
.hero p { color: #cdd9e6; font-size: 1.2rem; max-width: 56ch; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-tag {
  display:inline-block; margin-top: 34px; font-style: italic;
  color:#9fd0ed; font-weight:600; letter-spacing:0.01em;
}
.wave-deco { position:absolute; right:-40px; top:40px; width:520px; opacity:0.10; z-index:1; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #e7eef5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 60ch; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Grid cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--bg-softer); color: var(--steel);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin-bottom: 0; font-size: 0.97rem; }

.tag {
  display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:0.06em;
  text-transform:uppercase; color: var(--mid); background: var(--bg-softer);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.tag.dev { color:#8a6d00; background:#fff3cf; }
.tag.live { color:#0a6b3b; background:#d9f5e6; }

/* ---------- Product list rows ---------- */
.prod {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.prod-head { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.prod-head h3 { margin:0; }

/* Partner logo on a service row (e.g. Hepburn / Octo on water services) */
.prod-partner { display:flex; align-items:center; gap:12px; margin-left:auto; }
.prod-partner .pp-label {
  font-size:0.68rem; text-transform:uppercase; letter-spacing:0.12em;
  font-weight:700; color:var(--steel); white-space:nowrap;
}
.prod-partner img { height:38px; width:auto; display:block; }
.prod-partner img[src*="octo"] { height:56px; }
@media (max-width:560px){
  .prod-partner { margin-left:0; margin-top:4px; flex-basis:100%; }
}
.prod p { color: var(--muted); margin: 6px 0 0; }
.prod ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.prod ul li { margin-bottom: 4px; }

/* ---------- Stats ---------- */
.stats { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; text-align:center; }
.stat .num { font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; color:#fff; }
.stat .lbl { color:#9fb6cc; font-size: 0.9rem; letter-spacing:0.04em; }

/* ---------- Split / about ---------- */
.split { display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items:center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.feature-list { list-style:none; padding:0; margin: 18px 0 0; }
.feature-list li { position:relative; padding-left: 30px; margin-bottom: 12px; color: var(--muted); }
.feature-list li::before {
  content:""; position:absolute; left:0; top:7px; width:16px; height:16px; border-radius:50%;
  background: var(--steel);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--steel), var(--mid));
  color:#fff; border-radius: 20px; padding: 54px; text-align:center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 52ch; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:600; margin-bottom:6px; font-size:0.92rem; color: var(--navy); }
.field input, .field textarea, .field select {
  width:100%; padding: 13px 14px; border:1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.98rem; background:#fff; color:var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline:2px solid var(--steel); border-color: transparent; }
.contact-info-item { display:flex; gap:14px; margin-bottom:22px; align-items:flex-start; }
.contact-info-item .ic { width:42px;height:42px;border-radius:10px;background:var(--bg-softer);color:var(--steel);display:grid;place-items:center;flex:0 0 auto; }
.contact-info-item .ic svg { width:20px;height:20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color:#aebfd0; padding: 56px 0 28px; }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand { display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.footer-brand .markmini { width:40px; height:40px; }
.footer-brand strong { color:#fff; font-size:1.05rem; }
.site-footer h4 { color:#fff; font-size:0.85rem; letter-spacing:0.1em; text-transform:uppercase; margin-bottom:16px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer ul li { margin-bottom:10px; }
.site-footer a { color:#aebfd0; }
.site-footer a:hover { color:#fff; text-decoration:none; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top:1px solid rgba(255,255,255,0.12);
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; font-size:0.85rem; color:#7f93a9;
}

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(160deg, #031732 0%, #0a2742 100%);
  color:#fff; padding: 70px 0 56px;
}
.page-hero h1 { color:#fff; }
.page-hero p { color:#cdd9e6; max-width: 60ch; margin-bottom:0; }
.breadcrumb { color:#7fa3c4; font-size:0.85rem; margin-bottom:14px; }
.breadcrumb a { color:#7fa3c4; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background:#fff; border-bottom:1px solid var(--line);
    padding: 10px 24px 20px; box-shadow: var(--shadow);
    transform: translateY(-130%); transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width:100%; }
  .nav-links a { display:block; width:100%; padding: 14px 0; border-bottom:1px solid var(--line); }
  .nav-links .nav-cta { margin: 14px 0 0; }
  .nav-links .nav-cta a { border:0; }
  .nav-toggle { display:block; }
  .cta-band { padding: 36px 24px; }
  .hero .container { padding-bottom: 110px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .brand-sub { display:none; }
}

/* ===========================================================
   Fixed full-page video background
   =========================================================== */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--navy);
}
.site-bg-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.site-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,23,50,0.34) 0%, rgba(3,23,50,0.42) 100%);
}

/* Content sits over the video as translucent "glass" panels.
   Light panels keep dark text; navy panels keep light text.
   Lower opacity = more video showing through. */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(70,124,162,0.22), transparent 60%),
    linear-gradient(160deg, rgba(3,23,50,0.34) 0%, rgba(7,34,63,0.28) 55%, rgba(12,46,82,0.24) 100%);
}
.hero::after { background: rgba(255,255,255,0.86); }

/* Hero two-column layout with large MMI emblem */
.hero-grid { display:grid; grid-template-columns: 1.15fr 0.85fr; gap:40px; align-items:center; }
.hero-copy { min-width:0; }
.hero-logo { display:flex; justify-content:center; }
.hero-logo img { width:100%; max-width:360px; opacity:0.96; filter: drop-shadow(0 14px 36px rgba(0,0,0,0.45)); }
@media (max-width:860px){
  .hero-grid { grid-template-columns:1fr; }
  .hero-logo { display:none; }
}

.section {
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
/* Let the background video show through a section (around its inner panel) */
.section.section-clear {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
/* Let the video show through a little more, while keeping text readable */
.section.section-airy {
  background: rgba(255,255,255,0.55);
}
.section.section-founder {
  background: rgba(0,0,0,0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.section-founder h2,
.section-founder .eyebrow { color: #fff; }
.section-founder .eyebrow { color: #9fd0ed; }
.section-founder p,
.section-founder .feature-list li { color: #f1f6fb; }
.section-founder h2,
.section-founder p,
.section-founder .feature-list li {
  text-shadow: 0 2px 14px rgba(3,23,50,0.75);
}
.section-soft {
  background: rgba(241,245,249,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section-navy {
  background: rgba(3,23,50,0.62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

/* Cards / panels: lift slightly off the glass, stay readable */
.card { background: rgba(255,255,255,0.94); }
.prod { background: rgba(255,255,255,0.94); }

/* Header & footer as frosted bars */
.site-header { background: rgba(255,255,255,0.78); }
.site-footer {
  background-image:
    linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.45) 100%),
    url("img/yacht-dark.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.site-footer p, .site-footer a, .site-footer strong,
.site-footer h4, .site-footer .footer-bottom span {
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

/* Interior page hero (services/products/about/contact) */
.page-hero {
  background: linear-gradient(160deg, rgba(3,23,50,0.55) 0%, rgba(10,39,66,0.48) 100%);
}

/* Product imagery */
.split img.product-shot { max-width:100%; width:100%; max-height:520px; object-fit:cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.prod-img { display:grid; grid-template-columns: 1fr 300px; gap: 30px; align-items:center; }
.prod-img .prod-body { display:flex; flex-direction:column; }
.prod-photo { width:100%; height:100%; max-height:260px; object-fit:cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.card-photo { display:block; width:calc(100% + 60px); height:190px; object-fit:cover; margin:-30px -30px 20px; border-radius: var(--radius) var(--radius) 0 0; }
@media (max-width: 860px) {
  .prod-img { grid-template-columns: 1fr; }
  .prod-photo { max-height:220px; }
}

/* Footer logo image (replaces hand-drawn mark) */
.footer-brand img.footer-logo { width:42px; height:42px; }

/* Coming soon block */
.coming-soon { display:grid; grid-template-columns: 360px 1fr; gap:34px; align-items:center;
  background: rgba(3,23,50,0.66); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border:1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding:30px; }
.coming-soon img { width:100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.coming-soon h3 { color:#fff; }
.coming-soon p { color:#cdd9e6; }
.tag.soon { color:#8a6d00; background:#ffe9a8; }
@media (max-width:860px){ .coming-soon { grid-template-columns:1fr; } }

/* News / updates */
.news-card { background: rgba(255,255,255,0.94); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; box-shadow: var(--shadow); transition:transform .18s ease, box-shadow .18s ease; display:flex; flex-direction:column; }
.news-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.news-card img { width:100%; height:200px; object-fit:cover; display:block; }
.news-body { padding:22px 24px; }
.news-date { font-size:0.75rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--steel); margin-bottom:8px; }
.news-card h3 { margin-bottom:8px; }
.news-card p { color:var(--muted); margin:0; font-size:0.97rem; }

/* Coming-soon expandable service list */
.soon-list { display:grid; gap:14px; max-width:860px; }
.soon-item { background:rgba(255,255,255,0.94); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.soon-item summary { list-style:none; cursor:pointer; padding:18px 22px; display:flex; align-items:center; gap:14px; font-weight:700; color:var(--navy); font-size:1.08rem; }
.soon-item summary::-webkit-details-marker { display:none; }
.soon-item .soon-title { flex:1; }
.soon-item .marker { color:var(--steel); font-weight:400; font-size:1.6rem; line-height:1; transition:transform .2s ease; }
.soon-item[open] .marker { transform:rotate(45deg); }
.soon-inner { padding:2px 22px 24px; }
.soon-inner p { color:var(--muted); }
.soon-inner ul { color:var(--muted); margin:0 0 18px; padding-left:18px; }
.soon-inner ul li { margin-bottom:5px; }

/* Where to buy strip (light, colour logos in white chips) */
.buy { background: rgba(255,255,255,0.86); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); padding: 40px 0; border-top:1px solid var(--line); }
.buy-label { text-align:center; text-transform:uppercase; letter-spacing:0.16em; font-size:0.75rem; font-weight:700; color:var(--steel); margin:0 0 6px; }
.buy-sub { text-align:center; color:var(--muted); margin:0 0 24px; }
.buy-row { display:flex; align-items:center; justify-content:center; gap:30px; flex-wrap:wrap; }
.buy-chip { background:#fff; border:1px solid var(--line); border-radius:12px; padding:16px 26px; box-shadow:var(--shadow); display:flex; align-items:center; transition:transform .2s ease, box-shadow .2s ease; }
.buy-chip:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); }
.buy-chip img { height:42px; width:auto; display:block; }
@media (max-width:600px){ .buy-row{ gap:18px; } .buy-chip img{ height:34px; } }

/* Partner / "working with" strip */
.partners { background: rgba(10,39,66,0.82); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.partners-label { text-align:center; text-transform:uppercase; letter-spacing:0.16em; font-size:0.75rem; font-weight:700; color:#7fa3c4; margin:0 0 26px; }
.partners-row { display:flex; align-items:center; justify-content:center; gap:54px; flex-wrap:wrap; }
.partners-row a { display:inline-flex; line-height:0; }
.partners-row img { height:64px; width:auto; opacity:0.92; transition:opacity .2s ease; }
.partners-row a:hover img { opacity:1; }
.buy-chip { text-decoration:none; }
.partner-word { color:#fff; font-weight:800; font-size:1.5rem; letter-spacing:0.02em; display:inline-flex; align-items:baseline; gap:7px; }
.partner-word span { font-weight:500; color:#9fb6cc; font-size:1rem; }
@media (max-width:600px){ .partners-row{ gap:30px; } .partners-row img{ height:48px; } .partner-word{ font-size:1.25rem; } }

/* Respect reduced-motion / let the poster stand in */
@media (prefers-reduced-motion: reduce) {
  .site-bg-video { display: none; }
  .site-bg { background: var(--navy) url("bg-poster.jpg") center/cover no-repeat; }
}

/* ---- Image lightbox ---- */
.zoomable { cursor: zoom-in; transition: transform .15s ease, box-shadow .15s ease; }
.zoomable:hover { transform: scale(1.015); }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(3, 23, 50, 0.88); backdrop-filter: blur(4px);
  padding: 28px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw; max-height: 92vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: fixed; top: 18px; right: 26px;
  color: #fff; font-size: 2.6rem; line-height: 1; font-weight: 300;
  cursor: pointer; opacity: 0.85;
}
.lightbox-close:hover { opacity: 1; }

/* Prev / next navigation arrows */
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #fff; font-size: 2.2rem; line-height: 1;
  cursor: pointer; opacity: 0.85;
  transition: background 0.15s ease, opacity 0.15s ease;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); opacity: 1; }
.lightbox-prev { left: 22px; }
.lightbox-next { right: 22px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 46px; height: 46px; font-size: 1.8rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---- Centered hero (home) ---- */
.hero-centered .container { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-centered .hero-logo { display: flex; justify-content: center; margin-bottom: 26px; }
.hero-centered .hero-logo img { width: 200px; max-width: 48vw; opacity: 0.98; filter: drop-shadow(0 14px 36px rgba(0,0,0,0.45)); }
.hero-centered .hero-copy { max-width: 760px; }
.hero-centered h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero-centered .hero-copy p { margin-left: auto; margin-right: auto; }
.hero-centered .hero-actions { justify-content: center; }
.hero-centered .hero-tag { display: inline-block; }
@media (max-width: 600px){ .hero-centered .hero-logo img { width: 150px; } }

/* Compact homepage card photos */
.home-cards .card-photo { height: 150px; }

/* "See full services list" cue inside home cards */
.card-link{
  display:inline-block;
  margin-top:12px;
  font-weight:600;
  color:var(--navy);
  font-size:.95rem;
}
.card:hover .card-link{ text-decoration:underline; }

/* Superyacht Spares logo reads small due to built-in whitespace — enlarge it */
.buy-chip img[src*="superyacht-spares"]{ height:62px; }
@media (max-width:600px){ .buy-chip img[src*="superyacht-spares"]{ height:50px; } }

/* Keep the item logo (bottom-left of the photo) fully in frame when cropped */
.prod-photo[src*="bespoke-storage"]{ object-position:left bottom; }

/* Home page — let the background video show through more clearly */
body.home .site-bg-overlay{
  background: linear-gradient(180deg, rgba(3,23,50,0.30) 0%, rgba(3,23,50,0.40) 100%);
}
body.home .hero{
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(70,124,162,0.14), transparent 60%),
    linear-gradient(160deg, rgba(3,23,50,0.14) 0%, rgba(7,34,63,0.10) 55%, rgba(12,46,82,0.08) 100%);
}

/* Home page — let the video show through the soft panels */
body.home .section-soft{
  background: rgba(238,243,247,0.14);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* ...but light up the heading text so it reads over the video */
body.home .section-soft .section-head h2{ color:#fff; }
body.home .section-soft .section-head .lead,
body.home .section-soft .section-head p{ color:#e7eef6; }
body.home .section-soft .section-head .eyebrow{ color:#9fd0ed; }
body.home .section-soft .section-head h2,
body.home .section-soft .section-head .lead,
body.home .section-soft .section-head p{
  text-shadow: 0 2px 14px rgba(3,23,50,0.65);
}

/* ===========================================================
   Yacht photo backgrounds
   =========================================================== */

/* Interior page headers with a full-bleed yacht shot behind the navy gradient.
   Set the image per page via inline style:  style="--photo:url('assets/img/yacht-ice.jpg')" */
.page-hero.has-photo{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Bright turquoise sea behind interior page headers. Defined in the stylesheet
   for reliable path resolution ("img/..." is relative to this CSS file).
   Light overlay so the water shows through; text-shadow keeps text readable. */
.page-hero.ph-sea{
  background-image:
    linear-gradient(95deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.18) 42%, rgba(0,0,0,0) 72%),
    url("img/yacht-turquoise.jpg");
}
.page-hero.ph-sea h1,
.page-hero.ph-sea p,
.page-hero.ph-sea .breadcrumb{
  text-shadow: 0 2px 16px rgba(0,0,0,0.65);
}
.page-hero.ph-sea .breadcrumb,
.page-hero.ph-sea .breadcrumb a{ color:#eaf2f9; }

/* Contact page — soften the turquoise-hero to sunrise-video seam with a
   shared dark navy fade, so blue never butts straight up against orange. */
body.contact .page-hero{ position:relative; }
body.contact .page-hero .container{ position:relative; z-index:2; }
body.contact .page-hero::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:130px; z-index:1;
  background:linear-gradient(180deg, rgba(3,23,50,0) 0%, rgba(3,23,50,0.9) 100%);
  pointer-events:none;
}
body.contact .section.section-clear{ position:relative; }
body.contact .section.section-clear > .container{ position:relative; z-index:2; }
body.contact .section.section-clear::before{
  content:""; position:absolute; left:0; right:0; top:0; height:190px; z-index:1;
  background:linear-gradient(180deg, rgba(3,23,50,0.9) 0%, rgba(3,23,50,0.45) 45%, rgba(3,23,50,0) 100%);
  pointer-events:none;
}
/* Readable text over the video (white inputs and the two cards keep dark text). */
body.contact .section-clear h2{ color:#fff; text-shadow:0 2px 14px rgba(3,23,50,0.85); }
body.contact .section-clear .lead{ color:#eaf2f9; text-shadow:0 2px 12px rgba(3,23,50,0.85); }
body.contact .section-clear .lead a{ color:#bfe0f5; }
body.contact .section-clear .field label{ color:#eef5fb; text-shadow:0 1px 8px rgba(3,23,50,0.8); }
body.contact .section-clear .contact-info-item{ color:#eaf2f9; text-shadow:0 1px 10px rgba(3,23,50,0.85); }
body.contact .section-clear .contact-info-item strong{ color:#fff; }
body.contact .section-clear .contact-info-item a{ color:#bfe0f5; }

/* Full-bleed parallax yacht band used as a divider between content sections.
   Set the image via inline style: style="--photo:url('assets/img/yacht-turquoise.jpg')" */
.photo-band{
  position: relative;
  padding: 120px 0;
  background-image: url("img/yacht-turquoise.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--navy);
  overflow: hidden;
}
.photo-band::before{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.22) 100%);
}
.photo-band .hero-tag, .photo-band .eyebrow, .photo-band p{
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}
.photo-band .container{ position:relative; z-index:1; text-align:center; }
.photo-band .eyebrow{ color:#9fd0ed; }
.photo-band h2{ color:#fff; max-width:24ch; margin-left:auto; margin-right:auto; }
.photo-band p{ color:#dce6f0; max-width:56ch; margin-left:auto; margin-right:auto; }
.photo-band .hero-tag{
  display:inline-block; font-style:italic; font-weight:700;
  color:#fff; font-size: clamp(1.4rem, 3vw, 2.1rem); letter-spacing:0.01em;
  text-shadow: 0 4px 24px rgba(0,0,0,0.45);
}
/* Mobile: fixed attachment is janky on iOS — fall back to scroll */
@media (max-width: 860px){
  .photo-band{ background-attachment: scroll; padding: 84px 0; }
}
