/* ===========================================================
   SALAMANDRE CCR — Design system
   =========================================================== */

:root {
  --ink: #05131e;
  --ink-2: #0a1f2f;
  --surface: #0e2637;
  --surface-2: #123044;
  --line: rgba(255, 255, 255, 0.09);
  --teal: #2bd4c7;
  --teal-2: #12938a;
  --red: #e2001a;
  --white: #f4f8fa;
  --muted: #93aebd;
  --muted-2: #6b8695;

  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);

  --ff: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html, body { overflow-x: hidden; width: 100%; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; letter-spacing: .01em; }

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

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

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.section {
  padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--alt { background: var(--ink-2); }

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

h2.section-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
}

.lead {
  font-size: 18px;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: #04191c; }
.btn-primary:hover { background: #4fe3d7; }
.btn-outline { border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #ff1f38; }

/* ===================== DEPTH GAUGE ===================== */
.depth-gauge {
  position: fixed;
  top: 110px;
  bottom: 40px;
  left: 20px;
  width: 56px;
  z-index: 500;
  pointer-events: none;
}
.depth-gauge-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: linear-gradient(to bottom, var(--teal), var(--line) 10%, var(--line) 90%, var(--teal-2));
  opacity: .55;
}
.depth-gauge-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.depth-gauge-ticks .tick {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row-reverse;
  gap: 6px;
}
.depth-gauge-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.depth-gauge-tick-mark {
  flex: none;
  width: 7px;
  height: 1px;
  background: var(--muted-2);
}
.depth-gauge-marker {
  position: absolute;
  top: 0;
  left: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  transform: translateY(-50%);
}
.depth-gauge-marker::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px rgba(43, 212, 199, .9), 0 0 0 3px rgba(43, 212, 199, .15);
}
.depth-gauge-current {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  background: rgba(6, 21, 32, .9);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .depth-gauge { display: none; }
}

/* ===================== HEADER ===================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 21, 32, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .05em;
  white-space: nowrap;
  flex: none;
}
.brand img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .16em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  background: var(--surface-2);
}

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-actions .btn { padding: 10px 18px; white-space: nowrap; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,19,30,.35) 0%, rgba(5,19,30,.55) 55%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5,19,30,.85) 0%, rgba(5,19,30,.2) 55%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 80px;
  max-width: 720px;
}
.hero-content h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero-content h1 span { color: var(--teal); }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.hero-page {
  min-height: 46vh;
  align-items: center;
}
.hero-page .hero-content { padding: 60px 0 60px; }
.hero-page h1 { font-size: clamp(32px, 5vw, 52px); }

/* ===================== STATS STRIP ===================== */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 34px 20px;
  text-align: center;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--teal);
  display: block;
}
.stat .lbl {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: .02em;
}
.stat .sub {
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 2px;
}

/* ===================== FEATURE GRID ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--teal-2); }
.feature-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(43, 212, 199, .12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 14.5px; }

/* ===================== SPLIT / MEDIA-TEXT ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.split ul.check-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
  font-size: 15px;
}
.split ul.check-list li:last-child { border-bottom: none; }
.split ul.check-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--teal);
}

/* ===================== GALLERY ===================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  display: block;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

/* ===================== PHOTO GRID ===================== */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.photo-grid a {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.photo-grid a:hover img { transform: scale(1.07); }

/* ===================== CARDS (generic) ===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h3 { font-size: 18px; margin-bottom: 4px; }
.info-card .role { color: var(--teal); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; display: flex; align-items: center; }
.badge-logo {
  height: 20px;
  width: auto;
  margin-right: 8px;
  border-radius: 3px;
  flex: none;
}
.eyebrow .badge-logo {
  height: 22px;
  margin-right: 8px;
  margin-bottom: -2px;
}
.badge-logo-chip {
  background: #fff;
  padding: 3px 6px;
  box-sizing: content-box;
}
.info-card dl { margin: 0; }
.info-card dl div { display: flex; gap: 8px; padding: 6px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.info-card dl div:first-of-type { border-top: none; }
.info-card dl dt { color: var(--muted-2); min-width: 60px; }
.info-card dl dd { margin: 0; }
.info-card a.value { color: var(--teal); }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 70px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--teal-2), #0a4a52 60%, var(--ink));
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 36px); max-width: 640px; margin: 0 auto 12px; }
.cta-banner p { max-width: 560px; margin: 0 auto 28px; color: rgba(244,248,250,.85); }

/* ===================== FORM ===================== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--ff);
  font-size: 15px;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 14px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  border: 1px solid;
}
.form-status.success {
  background: rgba(43, 212, 199, .1);
  border-color: var(--teal-2);
  color: var(--teal);
}
.form-status.error {
  background: rgba(226, 0, 26, .1);
  border-color: var(--red);
  color: #ff8b98;
}

/* ===================== FOOTER ===================== */
#site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 60px 0 30px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 14.5px; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--muted); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--teal); }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.social-row a:hover { border-color: var(--teal); color: var(--teal); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--teal); }

/* ===================== PAGE (legal/text) ===================== */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split-reverse { direction: ltr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  nav.main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    bottom: 0;
    background: var(--ink);
    padding: 20px 24px;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }
  body.nav-open nav.main-nav { transform: translateX(0); }
  nav.main-nav ul { flex-direction: column; gap: 4px; }
  nav.main-nav a { font-size: 16px; padding: 14px 16px; }
  .header-actions .btn.hide-mobile { display: none; }
  .nav-toggle { display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .gallery-grid .wide { grid-column: span 1; }
  .gallery-grid .tall { grid-row: span 1; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }

  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 50px 24px; }
}
