/* Trident Cross Marine Services */

:root {
  --navy:        #0a1628;
  --navy-deep:   #060f1d;
  --navy-soft:   #10233c;
  --navy-line:   rgba(201, 162, 39, 0.22);
  --gold:        #c9a227;
  --gold-bright: #dcb84a;
  --bone:        #f3f1ec;
  --bone-line:   #ddd8cd;
  --ink:         #101c2c;
  --ink-soft:    #4a5666;
  --white:       #ffffff;
  --white-soft:  rgba(255, 255, 255, 0.72);
  --white-dim:   rgba(255, 255, 255, 0.55);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --shell: 1200px;
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.32rem; line-height: 1.25; }

p { margin: 0; }

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--s5);
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy);
  padding: var(--s3) var(--s4); z-index: 200; font-size: 0.9rem;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- Section labels & rules ---------- */

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s5);
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.label::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  opacity: 0.75;
  flex: none;
}
.section-head-center .label { justify-content: center; }
.label-dark { color: #97781a; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 17px var(--s6);
  border: 1px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 12px var(--s5); font-size: 0.72rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--navy-line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}

.brand { display: inline-flex; align-items: center; gap: var(--s3); }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}
.brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

.nav { display: flex; align-items: center; gap: var(--s6); }
.nav > a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-soft);
  transition: color .2s ease;
}
.nav > a:hover { color: var(--gold); }
.nav > a.nav-cta { color: var(--navy-deep); }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px;
  flex-direction: column; justify-content: center; gap: 6px;
  cursor: pointer;
}
.burger span {
  display: block; height: 1.5px; width: 100%;
  background: var(--white);
  transition: transform .3s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + var(--s8)) 0 var(--s8);
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6,15,29,.96) 0%, rgba(6,15,29,.78) 34%, rgba(6,15,29,.34) 68%, rgba(6,15,29,.55) 100%),
    linear-gradient(to right, rgba(10,22,40,.82) 0%, rgba(10,22,40,.18) 62%, rgba(10,22,40,.05) 100%);
}

.hero-inner { position: relative; max-width: 900px; }
.hero h1 { margin-bottom: var(--s5); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--white-soft);
  max-width: 620px;
  margin-bottom: var(--s5);
}
.motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: var(--s7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ---------- Trust bar ---------- */

.trust { background: var(--navy-deep); border-bottom: 1px solid var(--navy-line); }
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.trust-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 var(--s5);
  border-left: 1px solid var(--navy-line);
}
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-key {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1.1;
}
.trust-val {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--white-dim);
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 136px) 0; }
.section-light { background: var(--bone); color: var(--ink); }
.section-navy  { background: var(--navy); }
.section-deep  { background: var(--navy-deep); }

.section-head { max-width: 760px; margin-bottom: var(--s9); }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead {
  font-size: 1.06rem;
  color: var(--white-soft);
  margin-top: var(--s5);
  max-width: 620px;
}
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }
.section-light .section-lead { color: var(--ink-soft); }

/* ---------- Services ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--bone-line);
  border: 1px solid var(--bone-line);
}
.service {
  background: var(--bone);
  padding: var(--s7) var(--s6) var(--s6);
  position: relative;
  transition: background-color .3s ease;
}
.service::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.service:hover { background: #ece9e2; }
.service:hover::before { transform: scaleY(1); }
.service-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  color: #97781a;
  display: block;
  margin-bottom: var(--s4);
}
.service h3 { margin-bottom: var(--s3); color: var(--ink); }
.service p { font-size: 0.95rem; color: var(--ink-soft); }

.services-more {
  margin-top: var(--s7);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.42rem;
  color: var(--ink);
  text-align: center;
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.why-copy .btn { margin-top: var(--s7); }
.why-list { list-style: none; margin: 0; padding: 0; }
/* block + absolute marker, so the bold lead-in and its text stay on one
   continuous line rather than becoming two flex columns on narrow screens */
.why-list li {
  position: relative;
  padding: var(--s5) 0 var(--s5) var(--s6);
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--white-soft);
}
.why-list li:first-child { border-top: 1px solid rgba(255,255,255,.09); }
.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--s5) + 0.55em);
  width: 7px; height: 7px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

/* ---------- Work / story ---------- */

.story {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.story-step { margin: 0; position: relative; }
.story-step img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
}
.story-tag {
  position: absolute;
  z-index: 2; /* images carry a filter, which makes them paint above unlayered siblings */
  top: var(--s4); left: var(--s4);
  background: rgba(6,15,29,.86);
  border: 1px solid var(--navy-line);
  color: var(--gold);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px var(--s4);
}
.story-step figcaption {
  margin-top: var(--s4);
  font-size: 0.92rem;
  color: var(--white-dim);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s5);
}
.gallery figure { margin: 0; overflow: hidden; }
.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(.92) contrast(1.04);
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.gallery figure:hover img { transform: scale(1.04); }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.review {
  margin: 0;
  padding: var(--s7) var(--s6);
  border: 1px solid var(--bone-line);
  display: flex;
  flex-direction: column;
}
.stars { display: flex; gap: 5px; margin-bottom: var(--s5); }
.stars svg { width: 15px; height: 15px; fill: var(--gold); }
.review blockquote {
  margin: 0 0 var(--s5);
  font-family: var(--serif);
  font-size: 1.24rem;
  line-height: 1.5;
  color: var(--ink);
  flex: 1;
}
.review blockquote::before { content: "\201C"; }
.review blockquote::after  { content: "\201D"; }
.review figcaption {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #97781a;
}

.review-badge {
  margin-top: var(--s7);
  text-align: center;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Service area ---------- */

.area-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 112px);
  align-items: start;
}
.area-list { list-style: none; margin: 0; padding: 0; }
.area-list li {
  padding: var(--s5) 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  font-size: 0.98rem;
  color: var(--white-dim);
}
.area-list li:first-child { border-top: 1px solid rgba(255,255,255,.09); }
.area-list span {
  display: block;
  font-family: var(--serif);
  font-size: 1.36rem;
  color: var(--white);
  margin-bottom: 6px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.contact-direct { margin-top: var(--s7); }
.contact-line {
  display: flex;
  align-items: baseline;
  gap: var(--s5);
  padding: var(--s4) 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.contact-line:first-child { border-top: 1px solid rgba(255,255,255,.09); }
.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  width: 74px;
  flex: none;
}
.contact-value {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--white);
  word-break: break-word;
}
a.contact-line:hover .contact-value { color: var(--gold); }

.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: var(--s7); }

.quote-form {
  background: var(--navy-soft);
  border: 1px solid var(--navy-line);
  padding: clamp(28px, 4vw, 48px);
}
.field { margin-bottom: var(--s5); }
.field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s3);
}
.field input, .field textarea {
  width: 100%;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  padding: 14px var(--s4);
  transition: border-color .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.34); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.form-note {
  margin-top: var(--s4);
  font-size: 0.8rem;
  color: var(--white-dim);
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); border-top: 1px solid var(--navy-line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s7);
  padding-top: var(--s9);
  padding-bottom: var(--s8);
}
.footer-motto {
  margin-top: var(--s5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.16rem;
  color: var(--gold);
}
.footer-nav { display: flex; flex-direction: column; gap: var(--s3); }
.footer-nav a, .footer-contact a, .footer-contact p {
  font-size: 0.88rem;
  color: var(--white-dim);
  transition: color .2s ease;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { display: flex; flex-direction: column; gap: var(--s3); }

.footer-base {
  padding-top: var(--s5);
  padding-bottom: var(--s7);
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-base p { font-size: 0.78rem; color: rgba(255,255,255,.4); }

/* ---------- Mobile call bar ---------- */

.mobile-bar { display: none; }
.mobile-bar a {
  flex: 1;
  text-align: center;
  padding: 16px 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mb-call { background: var(--gold); color: var(--navy-deep); }
.mb-wa { background: var(--navy-soft); color: var(--white); border-left: 1px solid var(--navy-line); }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .why-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .burger { display: flex; }

  /* backdrop-filter would make the header a containing block for the
     fixed-position menu below, collapsing it to zero height */
  .site-header {
    background: var(--navy);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    gap: var(--s6);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav > a { font-size: 1rem; letter-spacing: 0.2em; color: var(--white); }
  .nav > a.nav-cta { margin-top: var(--s3); }

  body.nav-locked { overflow: hidden; }

  .hero { min-height: 88vh; padding-top: calc(var(--header-h) + var(--s8)); }
  .hero-media img { object-position: 58% 50%; }

  .trust-inner { grid-template-columns: 1fr 1fr; gap: var(--s5) 0; }
  .trust-item:nth-child(odd) { border-left: 0; padding-left: 0; }

  .story, .gallery, .reviews { grid-template-columns: 1fr; }
  .story-step img { aspect-ratio: 3 / 2; }

  .section-head { margin-bottom: var(--s8); }

  .mobile-bar {
    display: flex;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    border-top: 1px solid var(--navy-line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  body { padding-bottom: 56px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .shell { padding: 0 var(--s4); }
  .services { grid-template-columns: 1fr; }
  .service { padding: var(--s6) var(--s5); }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; gap: var(--s6); }
  .brand-name { font-size: 1.24rem; }
  .contact-line { flex-direction: column; gap: 2px; }
  .contact-line .contact-label { width: auto; }

  /* keep long eyebrow labels on one line beside their rule */
  .label { font-size: 0.62rem; letter-spacing: 0.16em; gap: var(--s2); }
  .label::before { width: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero trust badges (fully insured / mobile / Australian owned) ---------- */

.hero-badges {
  list-style: none;
  margin: 0 0 var(--s6);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
}
.hero-badge {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5) var(--s3) 0;
  border-right: 1px solid rgba(255,255,255,.16);
}
.hero-badge:last-child { border-right: 0; padding-right: 0; }
.badge-icon { width: 26px; height: 26px; color: var(--gold); flex: none; }
.badge-flag {
  width: 30px; height: auto; flex: none;
  border: 1px solid rgba(255,255,255,.35);
}
.hero-badge span {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--white-dim);
}
.hero-badge strong {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
}

/* ---------- Work section subheads ---------- */

.work-subhead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin: var(--s9) 0 var(--s3);
  text-align: center;
}
.work-sublead {
  text-align: center;
  color: var(--white-dim);
  font-size: 0.97rem;
  max-width: 560px;
  margin: 0 auto var(--s7);
}

/* ---------- Video grid ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.video-item { margin: 0; }
.video-item video {
  width: 100%;
  height: auto;          /* let aspect-ratio win over the HTML height attribute */
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--navy-line);
  display: block;
}
.video-item figcaption {
  margin-top: var(--s4);
  font-size: 0.9rem;
  color: var(--white-dim);
}

/* Brand/flyer video inside the Why Us column */
.brand-video { margin: var(--s7) 0 0; }
.brand-video video {
  width: 100%;
  max-width: 340px;
  height: auto;          /* same: aspect-ratio must beat the height attribute */
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
  border: 1px solid var(--navy-line);
  display: block;
}
.brand-video figcaption {
  margin-top: var(--s3);
  font-size: 0.86rem;
  color: var(--white-dim);
}

/* ---------- Why list: lead-in phrase in gold ---------- */

.why-list li strong {
  font-weight: 600;
  color: var(--white);
}

/* ---------- Facebook button + footer flag ---------- */

.btn-fb { display: inline-flex; align-items: center; gap: var(--s2); }
.fb-icon { width: 15px; height: 15px; flex: none; }

.footer-flag {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-top: var(--s3);
}
.footer-flag img {
  border: 1px solid rgba(255,255,255,.3);
  flex: none;
}

.footer-strap {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--gold);
  margin-bottom: var(--s2);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; }
  .brand-video video { max-width: 100%; }
  .work-subhead { margin-top: var(--s8); }
}

@media (max-width: 620px) {
  .hero-badges { gap: var(--s3) var(--s4); }
  .hero-badge {
    border-right: 0;
    padding: 0;
    flex: 1 1 100%;
  }
}
