/* Kaskoutas Shipping Agency — site styles
   Brand: navy #142945 / #1F426F / #3550A0, gold #E2C044, Cardo + Manrope */

:root {
  --navy-900: #0d1d33;
  --navy-800: #142945;
  --navy-700: #1f426f;
  --navy-500: #3550a0;
  --gold: #e2c044;
  --gold-600: #c9a62b;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #e1e2e8;
  --tint: #f4f7fb;
  --tint-2: #dfe9f6;
  --white: #fff;

  --serif: "Cardo", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(13, 29, 51, .06), 0 8px 24px rgba(13, 29, 51, .08);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; color: var(--navy-800); font-weight: 400; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--navy-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--navy-500);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold); }

.h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin-bottom: 18px; }
.h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 14px; }
.h4 { font-family: var(--sans); font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.45; color: var(--navy-700); margin-bottom: 26px; }
.lead-sm { font-size: 18px; color: var(--muted); }
.rule { border: 0; height: 1px; background: var(--line); margin: 34px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 700 15px/1 var(--sans); letter-spacing: .02em;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn-gold { background: var(--gold); color: var(--navy-900); }
.btn-gold:hover { background: #ecd06a; color: var(--navy-900); }
.btn-navy { background: var(--navy-800); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .14); color: var(--white); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 1px 0 var(--line);
  transition: background .3s, box-shadow .3s, height .3s;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; position: relative; }
.brand img { width: 290px; height: auto; transition: opacity .3s; }
.brand-light { position: absolute; inset: 0; opacity: 0; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 6px; }
.site-nav ul a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy-800);
}
.site-nav ul a:hover { color: var(--navy-500); background: var(--tint); }
.site-nav ul a[aria-current="page"] { color: var(--navy-500); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy-800); cursor: pointer; }
.nav-toggle .ico { width: 28px; height: 28px; }
.nav-toggle-close { display: none; }

/* Transparent header while over a hero image */
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) { background: transparent; box-shadow: none; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .brand-dark { opacity: 0; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .brand-light { opacity: 1; }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .site-nav ul a,
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .nav-toggle { color: var(--white); }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .site-nav ul a:hover { background: rgba(255, 255, 255, .12); }
.site-header.is-over-hero:not(.is-scrolled):not(.is-open) .site-nav ul a[aria-current="page"] { color: var(--white); background: none; }
.site-header.is-scrolled { height: 78px; box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(13, 29, 51, .06); }

body:not(.page-home):not(.page-ports):not(.page-services):not(.page-contact) main { padding-top: var(--header-h); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); overflow: hidden; background: var(--navy-900); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 29, 51, .88) 0%, rgba(13, 29, 51, .55) 55%, rgba(13, 29, 51, .25) 100%),
    linear-gradient(0deg, rgba(13, 29, 51, .6) 0%, rgba(13, 29, 51, 0) 40%);
}
.hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: 80px; }
.hero-home { min-height: min(92vh, 860px); display: flex; align-items: center; }
.hero-home .hero-content { padding-top: calc(var(--header-h) + 40px); padding-bottom: 80px; }
.hero-page { min-height: 440px; display: flex; align-items: flex-end; }
.hero-title {
  font-family: var(--serif); color: var(--white);
  font-size: clamp(40px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -.01em;
  max-width: 14ch; margin-bottom: 20px;
}
.hero-page .hero-title { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.1; max-width: 26ch; }
.hero-sub { font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 46ch; margin-bottom: 34px; }
.hero-page .hero-sub { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tint { background: var(--tint); }
.section-head { margin-bottom: 44px; }

/* Tiles (home "every time") */
.section-legacy { padding-bottom: clamp(48px, 6vw, 72px); }
.every-time { margin: 28px 0 0; font-weight: 700; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); }
.every-time::after { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin: 14px auto 0; }
.section-tiles { padding-top: clamp(48px, 6vw, 72px); }
.tile-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-bottom: 44px; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 14px;
  text-align: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 24px 16px; font-weight: 600; line-height: 1.35; color: var(--navy-800);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tile:hover { border-color: var(--tint-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-icon {
  flex: none; display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--tint-2); color: var(--navy-700);
}
.tile-icon .ico { width: 24px; height: 24px; }

/* Split layout */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-reverse { grid-template-columns: 7fr 5fr; }
.split-reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.split-media-wide img { aspect-ratio: 4 / 3; }
.split-text > p:last-of-type { margin-bottom: 0; }
.split-text .btn { margin-top: 18px; }

/* Feature (full-bleed image) */
.feature { position: relative; isolation: isolate; color: var(--white); padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13, 29, 51, .9) 0%, rgba(13, 29, 51, .6) 50%, rgba(13, 29, 51, .1) 100%); }
.feature-content { max-width: var(--wrap); }
.feature-content > * { max-width: 560px; }
.feature .h2 { color: var(--white); }
.feature p { color: rgba(255, 255, 255, .88); margin-bottom: 30px; }

/* ---------- Ports ---------- */
.gulf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 28px; }
.gulf { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gulf-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gulf-body { padding: 30px 32px 32px; }
.port-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--navy-800); line-height: 1.45; }
.port-list li:first-child { border-top: 0; }
.port-list .ico { color: var(--gold-600); margin-top: 1px; }

.note-card { display: flex; gap: 22px; align-items: flex-start; background: var(--tint); border-radius: var(--radius); padding: 30px 32px; }
.note-card p { margin: 0; color: var(--muted); }
.note-card .h3 { margin-bottom: 6px; }

/* ---------- Services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-group .section-head { margin-bottom: 26px; }
.svc-group .section-head .h2 { margin-bottom: 0; }
.svc-row { display: grid; grid-template-columns: repeat(var(--total), 1fr); gap: 24px; }
.svc-row .svc-group { grid-column: span var(--n); display: flex; flex-direction: column; }
.svc-row .svc-group .card-grid { flex: 1; }
.svc-row .card-grid { grid-template-columns: repeat(var(--n), 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .tile-icon { margin-bottom: 22px; }
.card .eyebrow { font-size: 12px; margin-bottom: 8px; }
.card .eyebrow::before { width: 18px; }
.card p:last-child { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.info-list { display: grid; gap: 22px; margin-top: 34px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list li > div { padding-top: 2px; }
.info-list strong { display: block; color: var(--navy-800); font-size: 15px; margin-bottom: 2px; }
.info-list li > div > a, .info-list li > div > span { display: block; color: var(--muted); }
.info-list a:hover { color: var(--navy-500); }
.info-list li:last-child { align-items: center; }

.form-card { scroll-margin-top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--navy-800); }
.field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 13px; }
.field input, .field textarea {
  width: 100%; font: 16px/1.5 var(--sans); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-500); background: var(--white); box-shadow: 0 0 0 4px rgba(53, 80, 160, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c2412d; }
.check { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 600; color: var(--navy-800); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy-700); }
.hp { position: absolute; left: -9999px; }
.alert { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.alert-ok { background: #e7f5ec; color: #1d6b3a; }
.alert-err { background: #fdecea; color: #a12c1c; }

.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.35) contrast(1.05); }

.section-404 { min-height: 60vh; display: grid; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .75); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { width: 290px; max-width: 100%; margin-bottom: 20px; }
.footer-brand p { max-width: 32ch; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; }
.footer-h { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
.footer-list { margin-bottom: 24px; }
.footer-list a, .footer-address { display: flex; align-items: center; gap: 10px; color: var(--white); padding: 3px 0; }
.footer-address { align-items: flex-start; margin-bottom: 12px; }
.footer-list .ico, .footer-address .ico { width: 17px; height: 17px; color: rgba(255, 255, 255, .5); }
.footer-address .ico { margin-top: 4px; }
.footer-list a:hover { color: var(--gold); }
.footer-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; }
.footer-link .ico { width: 16px; height: 16px; }
.footer-link:hover { color: #ecd06a; }
.footer-nav li a { display: block; padding: 4px 0; color: var(--white); }
.footer-nav li a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .55); }
.footer-bottom a { color: rgba(255, 255, 255, .75); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom { align-items: center; }
.credit { display: inline-flex; align-items: baseline; gap: 10px; color: rgba(255, 255, 255, .55); }
.footer-bottom .credit:hover { color: var(--white); }
.brandon-logo { display: block; height: 10px; width: auto; align-self: baseline; color: #e9ebef; transition: color .2s; }
.credit:hover .brandon-logo { color: var(--white); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .brand img { width: 220px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px 24px 28px; box-shadow: 0 12px 30px rgba(13, 29, 51, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-header.is-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-header.is-open .nav-toggle-open { display: none; }
  .site-header.is-open .nav-toggle-close { display: inline; }
  .site-header.is-scrolled { height: var(--header-h); }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; border-radius: 0; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gold); padding-left: 12px; }
  .site-nav ul a:hover { background: none; }

  .split, .split-reverse, .contact-grid { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; gap: 56px; }
  .svc-row .svc-group { grid-column: auto; }
  .svc-row .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split-reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .gulf-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero-home { min-height: 88vh; }
  .hero-page { min-height: 380px; }
  .hero-content { padding-bottom: 56px; }
  .btn-row .btn { flex: 1 1 auto; }
  .card-grid, .svc-row .card-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .tile { padding: 18px 12px; font-size: 15px; }
  .gulf-body, .note-card { padding: 24px 20px; }
  .note-card { flex-direction: column; }
  .map iframe { height: 320px; }
}
