/* ═══════════════════════════════════════════════
   Ironwave Marine Services — styles
   Brand: navy #0d2236 · cyan #0099cc · mist #eef2f7
   Fonts: Barlow Condensed (display) · Plus Jakarta Sans (text)
   ═══════════════════════════════════════════════ */

:root {
  --navy: #0d2236;
  --navy-2: #122d47;
  --cyan: #0099cc;
  --cyan-d: #007ba8;
  --mist: #eef2f7;
  --ink: #4a6880;
  --ink-2: #5a7a96;
  --white: #ffffff;
  --line: rgba(13, 34, 54, 0.09);

  --display: 'Barlow Condensed', sans-serif;
  --text: 'Plus Jakarta Sans', sans-serif;

  --header-h: 74px;
  --maxw: 1240px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* [hidden] must win over class display rules (e.g. .contact-form{display:flex}) */
[hidden] { display: none !important; }

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

body {
  font-family: var(--text);
  font-weight: 300;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Accessibility ── */
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--navy); color: var(--white);
  padding: 12px 20px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 2px;
}

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

.section { padding: clamp(64px, 10vw, 120px) 0; }

.eyebrow {
  font-family: var(--text);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 16px;
}
.eyebrow-light { color: var(--cyan); }

.section-title {
  font-family: var(--display);
  font-weight: 900; text-transform: uppercase;
  color: var(--navy);
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.0; letter-spacing: 0.01em;
}
.section-title.light { color: var(--white); }

.minor-title {
  font-family: var(--display);
  font-size: 22px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--navy); margin-bottom: 22px;
}

.block-head { max-width: 640px; margin-bottom: 48px; }
.block-lead { margin-top: 18px; font-size: 16px; color: var(--ink); }

.rule { display: block; width: 72px; height: 4px; background: var(--cyan); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--text);
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  padding: 16px 40px;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-cyan { background: var(--cyan); color: var(--white); }
.btn-cyan:hover { background: var(--cyan-d); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); padding: 14px 38px; }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-block { width: 100%; text-align: center; }

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--white);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 24px rgba(13,34,54,0.06);
}
.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark { width: 68px; height: auto; }

/* Official horizontal lockup has a dark wordmark — swap it in only once
   the header background turns white (.scrolled). */
.brand-lockup { display: none; height: 44px; width: auto; }
.site-header.scrolled .brand-mark,
.site-header.scrolled .brand-text { display: none; }
.site-header.scrolled .brand-lockup { display: block; }

.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-family: var(--display); font-size: 21px; font-weight: 800;
  letter-spacing: 0.1em; line-height: 1; text-transform: uppercase;
  color: var(--white); transition: color 0.3s;
}
.brand-sub {
  font-size: 9px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; line-height: 1; color: var(--cyan);
}
.scrolled .brand-name { color: var(--navy); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13px; font-weight: 500; text-decoration: none;
  color: rgba(255,255,255,0.85); transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active { text-shadow: 0 0 1px currentColor; }
.scrolled .nav-link { color: var(--ink); }
.scrolled .nav-link:hover, .scrolled .nav-link.active { color: var(--cyan); }
.nav-cta { color: var(--white) !important; padding: 11px 24px; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px; background: var(--white);
  transition: transform 0.3s, opacity 0.2s, background 0.3s;
}
.scrolled .hamburger span { background: var(--navy); }
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(13,34,54,0.5); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.3s;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy);
}
.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(110deg, rgba(13,34,54,0.92) 0%, rgba(13,34,54,0.62) 45%, rgba(13,34,54,0.30) 100%),
    linear-gradient(to top, rgba(13,34,54,0.7), transparent 40%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: 0 24px;
}
.hero-title {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  color: var(--white); line-height: 0.92; letter-spacing: 0.01em;
  font-size: clamp(46px, 8vw, 96px);
  margin: 8px 0 28px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--cyan); }
.hero-lead {
  color: rgba(255,255,255,0.82); font-size: clamp(15px, 2vw, 18px);
  max-width: 460px; line-height: 1.8; margin: 28px 0 40px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5);
  border-radius: 14px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--white);
  animation: scrollCue 1.6s var(--ease) infinite;
}
@keyframes scrollCue { 0% { opacity: 0; transform: translateY(-4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ═══════════ ABOUT ═══════════ */
.section-about { background: var(--white); }
.about-intro {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; margin-bottom: 64px;
}
.about-copy p { font-size: 16px; line-height: 1.85; margin-bottom: 20px; color: var(--ink); }
.about-copy .btn { margin-top: 12px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  border-top: 1px solid var(--line); padding-top: 44px;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: clamp(34px, 5vw, 52px); color: var(--cyan); line-height: 1;
}
.stat-label {
  display: block; margin-top: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy);
}

.about-grid { margin-top: 72px; }
.team-list {
  list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 56px;
}
.team-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.team-list .avatar {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--mist); color: var(--cyan); font-family: var(--display);
  font-weight: 800; font-size: 16px; letter-spacing: 0.05em;
  display: flex; align-items: center; justify-content: center;
}
.team-list strong { display: block; font-family: var(--display); font-size: 17px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); }
.team-list span { font-size: 13px; color: var(--ink-2); }

/* ═══════════ CARDS / GRIDS ═══════════ */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.card {
  background: var(--white); padding: 40px 34px;
  box-shadow: 0 2px 20px rgba(13,34,54,0.05);
  border-bottom: 4px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(13,34,54,0.12); border-bottom-color: var(--cyan); }
.card h3 {
  font-family: var(--display); font-size: 21px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy);
  margin-bottom: 12px;
}
.card p { font-size: 14px; line-height: 1.8; color: var(--ink-2); }
.card-num {
  display: block; font-family: var(--display); font-size: 60px; font-weight: 900;
  line-height: 1; color: rgba(0,153,204,0.13); margin-bottom: 14px;
}
.card-clientele { border-top: 4px solid var(--mist); }

.section-services { background: var(--mist); }

/* ═══════════ PARALLAX BANDS ═══════════ */
.parallax {
  position: relative; margin: clamp(64px, 9vw, 110px) 0;
  background-color: var(--navy);
  background-size: cover; background-position: center;
  background-attachment: fixed;
  display: flex; align-items: center;
  min-height: 420px; padding: 80px 0;
}
/* Paths are relative to THIS stylesheet (css/), hence ../assets */
.parallax--about {
  background-image: linear-gradient(rgba(13,34,54,0.62), rgba(13,34,54,0.68)), url('../assets/img/ship-2.jpg');
}
.parallax--cta {
  background-image: linear-gradient(rgba(13,34,54,0.66), rgba(13,34,54,0.74)), url('../assets/img/ship-3.jpg');
}
.parallax-inner { text-align: center; max-width: 760px; }
.parallax-quote {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(24px, 3.6vw, 38px); line-height: 1.25; text-transform: uppercase;
  letter-spacing: 0.02em;
}
.parallax-title {
  font-family: var(--display); font-weight: 900; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05;
  font-size: clamp(30px, 5vw, 52px); margin-bottom: 20px;
}
.parallax-sub { color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.8; margin: 18px auto 0; max-width: 620px; }
.parallax-cta .btn { margin-top: 32px; }

/* ═══════════ CAPABILITIES ═══════════ */
.cap-grid {
  display: grid; gap: 18px;
  /* 420px floor → max 2 columns even at full width (2×2 with 4 pillars);
     min(…, 100%) prevents overflow on narrow phones */
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  align-items: stretch;
}
.cap-col {
  display: flex; flex-direction: column;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(13,34,54,0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.cap-col:hover { transform: translateY(-4px); box-shadow: 0 14px 44px rgba(13,34,54,0.12); }

.cap-head {
  position: relative; background: var(--navy); color: var(--white);
  padding: 26px 28px 22px; overflow: hidden;
  border-bottom: 4px solid var(--cyan);
}
.cap-num {
  position: absolute; top: -14px; right: 10px;
  font-family: var(--display); font-weight: 900; font-size: 88px; line-height: 1;
  color: rgba(255,255,255,0.07);
}
.cap-head h3 {
  font-family: var(--display); font-size: 24px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1;
}
.cap-count {
  margin-top: 6px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan);
}

.cap-list { list-style: none; padding: 10px 28px 4px; flex: 1; }
.cap-list li { padding: 13px 0 13px 22px; position: relative; border-bottom: 1px solid var(--line); }
.cap-list li:last-child { border-bottom: none; }
.cap-list li::before {
  content: ''; position: absolute; left: 0; top: 20px;
  width: 8px; height: 8px; background: var(--cyan);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.cap-list strong { display: block; font-weight: 600; color: var(--navy); font-size: 14.5px; margin-bottom: 3px; }
.cap-list span { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; }

.cap-cta {
  display: block; margin: 0 28px; padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; color: var(--cyan);
  transition: color 0.2s;
}
.cap-cta:hover { color: var(--navy); }

/* ═══════════ CONTACT ═══════════ */
.section-contact { background: var(--navy); position: relative; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-lead { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.8; margin: 22px 0 36px; max-width: 420px; }
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.contact-info li { display: flex; align-items: center; gap: 16px; }
.contact-info a { color: var(--white); text-decoration: none; font-size: 16px; font-weight: 500; word-break: break-word; }
.contact-info a:hover { color: var(--cyan); }
.ci-icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--cyan);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}

.contact-card { background: var(--white); padding: clamp(28px, 4vw, 44px); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.field em { color: var(--cyan); font-style: normal; }
.field input, .field select, .field textarea {
  font-family: var(--text); font-size: 15px; color: var(--navy);
  padding: 13px 14px; border: 1px solid var(--line); background: var(--mist);
  width: 100%; transition: border-color 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }

/* Registered-office address in the contact list */
.ci-address { font-style: normal; color: var(--white); font-size: 15px; line-height: 1.7; }
.contact-info li:has(.ci-address) { align-items: flex-start; }
.ci-addr-wrap { display: flex; flex-direction: column; gap: 12px; }

/* Phone-number rows — tel: number followed by call + WhatsApp icon actions */
.ci-number { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ci-actions { display: flex; gap: 10px; }
.contact-info a.ci-action {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.ci-action:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }
.contact-info a.ci-action--wa, .contact-info a.ci-action--wa:hover { color: #25d366; }
.contact-info a.ci-action--apple, .contact-info a.ci-action--apple:hover { color: rgba(255,255,255,0.85); }

/* Honeypot — visually removed, still in the DOM for bots */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Turnstile widget + inline error */
.cf-turnstile { min-height: 65px; }
.form-error {
  background: #fdecea; border-left: 4px solid #c0392b;
  color: #7c2d24; font-size: 14px; line-height: 1.6; padding: 12px 16px;
}

.form-success { text-align: center; padding: 40px 20px; }
.success-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%; background: var(--cyan);
  color: var(--white); font-size: 30px; margin-bottom: 20px;
}
.form-success h3 { font-family: var(--display); font-size: 30px; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.form-success p { color: var(--ink-2); max-width: 340px; margin: 0 auto; }

/* ═══════════ FOOTER ═══════════ */
.site-footer { background: #08182a; padding: 48px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer img { width: 64px; height: auto; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--cyan); }
.footer-legal {
  width: 100%; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; margin-top: 8px;
}
.footer-legal p { color: rgba(255,255,255,0.55); font-size: 13px; line-height: 1.8; }
.footer-legal strong { color: rgba(255,255,255,0.85); font-weight: 600; }
.footer-legal a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-legal a:hover { color: var(--cyan); }
.copyright { color: rgba(255,255,255,0.4); font-size: 13px; width: 100%; text-align: center; padding-top: 16px; }

.made-by {
  background: #050f1c; padding: 12px 24px; text-align: center;
  font-size: 11px; letter-spacing: 0.04em; color: rgba(255,255,255,0.32);
}
.made-by a { color: rgba(255,255,255,0.5); text-decoration: none; }
.made-by a:hover { color: var(--cyan); }

/* ═══════════ REVEAL ANIMATION ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 860px) {
  .about-intro, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed; top: 0; right: 0; z-index: 95;
    height: 100vh; height: 100dvh; width: min(80vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: 32px 36px; background: var(--white);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    box-shadow: -8px 0 40px rgba(13,34,54,0.18);
  }
  .nav-open .nav { transform: translateX(0); }
  .nav-link { color: var(--navy); font-size: 20px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 0; }
  .scrolled .nav-link { color: var(--navy); }
  .nav-cta { margin-top: 14px; }
  .hamburger { display: flex; z-index: 96; }
  .nav-open .hamburger span { background: var(--navy); }
  .nav-open .nav-backdrop { opacity: 1; }

  /* iOS jank: fixed backgrounds don't play well — fall back to scroll */
  .parallax { background-attachment: scroll; min-height: 360px; }

  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .container, .header-inner, .hero-content { padding-left: 18px; padding-right: 18px; }
  .btn { padding: 14px 30px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* Respect reduced motion + small-device parallax already handled */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parallax { background-attachment: scroll; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
