/* Nu Power Marine — luxury yacht electrical */
:root {
  --navy: #0b1628;
  --navy-mid: #132038;
  --navy-soft: #1c2d4a;
  --ink: #0e1726;
  --white: #ffffff;
  --off-white: #f6f4ef;
  --cream: #ebe6dc;
  --gold: #c9a227;
  --gold-soft: #d4b45a;
  --bronze: #9a7b3c;
  --muted: #8a93a3;
  --text: #2a3344;
  --text-light: #c5cdd8;
  --line: rgba(201, 162, 39, 0.35);
  --shadow: 0 24px 60px rgba(11, 22, 40, 0.18);
  --radius: 4px;
  --max: 1180px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 1.25rem 0;
}
.site-header.is-scrolled,
.site-header.solid {
  background: rgba(11, 22, 40, 0.96);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  padding: 0.75rem 0;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}
.brand img {
  height: 42px;
  width: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text .name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
}
.brand-text .tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}
.nav a:hover,
.nav a.active { color: var(--gold-soft); }
.nav-cta {
  padding: 0.65rem 1.2rem !important;
  border: 1px solid var(--gold);
  color: var(--gold-soft) !important;
  letter-spacing: 0.14em !important;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--navy) !important;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--navy);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,22,40,0.55) 0%, rgba(11,22,40,0.2) 35%, rgba(11,22,40,0.75) 70%, rgba(11,22,40,0.95) 100%),
    linear-gradient(90deg, rgba(11,22,40,0.65) 0%, transparent 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 0 5.5rem;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  max-width: 720px;
  margin-left: max(1.25rem, calc((100% - var(--max)) / 2 + 1.25rem));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-soft);
}
.hero-lead {
  font-size: 1.12rem;
  color: var(--text-light);
  max-width: 34rem;
  margin: 0 0 2rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: var(--gold-soft);
  color: var(--gold-soft);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-soft); }
.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-credentials span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-credentials span strong {
  color: var(--gold-soft);
  font-weight: 500;
}

/* —— Sections —— */
.section { padding: 5.5rem 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head.center {
  text-align: center;
  margin-inline: auto;
}
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.75rem;
}
.section-head h2,
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 1rem;
}
.section-head p { margin: 0; color: var(--text); }

/* —— Services strip —— */
.services-strip { background: var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  padding: 1.75rem 1.5rem;
  border-top: 2px solid var(--gold);
  box-shadow: 0 10px 30px rgba(11,22,40,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.65rem;
}
.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}

/* Featured service with photo */
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  min-height: 520px;
  background: var(--navy);
  color: var(--white);
}
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-photo {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}
.feature-copy .section-label { color: var(--gold-soft); }
.feature-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 1rem;
  color: var(--white);
}
.feature-copy p {
  color: var(--text-light);
  margin: 0 0 1.25rem;
  max-width: 32rem;
}
.feature-list {
  margin: 0 0 1.75rem;
}
.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.55rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* —— About —— */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-visual img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-visual .accent-frame {
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: -1;
  pointer-events: none;
}
.about-copy .lede {
  font-size: 1.2rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.45;
  margin: 0 0 1.25rem;
}

/* —— Credentials —— */
.credentials {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.credentials::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,162,39,0.12), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(201,162,39,0.06), transparent 40%);
  pointer-events: none;
}
.credentials .section-head h2 { color: var(--white); }
.credentials .section-head p { color: var(--text-light); }
.credentials .section-label { color: var(--gold-soft); }

.cred-primary {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}
.cred-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}
.cred-card:hover {
  border-color: rgba(201,162,39,0.45);
  background: rgba(255,255,255,0.06);
}
.cred-card.featured {
  border-color: rgba(201,162,39,0.4);
  background: linear-gradient(145deg, rgba(201,162,39,0.12), rgba(255,255,255,0.03));
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.cred-card.featured img {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  background: var(--white);
  padding: 0.65rem;
  border-radius: 3px;
}
.cred-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.3rem 0.55rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.cred-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--white);
}
.cred-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-light);
}
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
  margin-bottom: 2.5rem;
}
.partners-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1rem;
  position: relative;
}
.partners-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  position: relative;
}
.partner-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
}
.partner-chip .kind {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.partner-chip .name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.partner-chip .desc {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.35rem;
}

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 1rem;
}
.gallery-grid a,
.gallery-grid figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid a:hover img,
.gallery-grid figure:hover img {
  transform: scale(1.04);
}
.gallery-grid .g-large {
  grid-row: 1 / span 2;
}
.gallery-grid figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(11,22,40,0.85));
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —— Contact CTA —— */
.contact-cta {
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.contact-cta-bg {
  position: absolute;
  inset: 0;
}
.contact-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.contact-cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,22,40,0.92) 0%, rgba(11,22,40,0.78) 50%, rgba(11,22,40,0.55) 100%);
}
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.contact-inner h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 0 0 1rem;
  color: var(--white);
}
.contact-inner > div > p {
  color: var(--text-light);
  margin: 0 0 1.75rem;
  max-width: 32rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.contact-details a {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}
.contact-details a:last-child { border-bottom: 0; }
.contact-details a:hover { color: var(--gold-soft); }
.contact-details .label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.contact-details .value {
  font-size: 1.15rem;
  font-weight: 500;
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: 9rem 0 4rem;
  background:
    linear-gradient(180deg, rgba(11,22,40,0.88), rgba(11,22,40,0.75)),
    var(--navy) center/cover no-repeat;
  color: var(--white);
}
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 {
  color: var(--white);
  margin: 0 0 0.75rem;
}
.page-hero p {
  max-width: 36rem;
  color: var(--text-light);
  margin: 0;
}

/* Services detail page */
.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.service-detail {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--cream);
}
.service-detail:last-child { border-bottom: 0; }
.service-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}
.service-detail h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.service-detail p { margin: 0 0 0.75rem; }
.service-detail ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.service-detail li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.95rem;
  color: var(--text);
}
.service-detail li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--bronze);
}

/* About page extras */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.value-card {
  padding: 1.75rem;
  background: var(--off-white);
  border-top: 2px solid var(--gold);
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  margin: 0 0 0.5rem;
}
.value-card p { margin: 0; font-size: 0.95rem; }

/* —— Footer —— */
.site-footer {
  background: #070e1a;
  color: var(--text-light);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.95;
}
.footer-brand .marine {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.footer-brand p {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}
.footer-col a {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text-light);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.82rem;
  color: var(--muted);
}

/* —— Utilities —— */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .feature-photo { min-height: 320px; }
  .about-grid,
  .contact-inner,
  .cred-primary { grid-template-columns: 1fr; }
  .cred-card.featured { flex-direction: column; align-items: flex-start; }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .gallery-grid .g-large {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 320px;
  }
  .gallery-grid a,
  .gallery-grid figure { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-detail ul { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 70px 1rem auto;
    background: rgba(11,22,40,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
  }
  .services-grid,
  .cred-grid,
  .partners-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content { padding-bottom: 3.5rem; }
  .about-visual img { height: 360px; }
  .about-visual .accent-frame { display: none; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.5rem, var(--max)); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .brand-text .name { font-size: 1.1rem; }
}
