/* Al Manzel Marine — site styles */
:root {
  --blue: #286D98;
  --blue-dark: #1C5070;
  --navy: #0E2A3D;
  --ink: #1F2A33;
  --muted: #4A555E;
  --line: #E1E8ED;
  --line-strong: #C9D6DF;
  --mist: #EEF3F7;
  --white: #FFFFFF;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
}
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.stack { display: flex; flex-direction: column; gap: 8px; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

/* Placeholder blocks — replaced with real photos later */
.ph {
  background: repeating-linear-gradient(135deg, #DCE5EC 0 14px, #E5ECF1 14px 28px);
  display: flex; align-items: flex-end; padding: 14px;
  font-size: 13px; color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border-radius: 3px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--mist); color: var(--navy); }
.btn-ghost-light { color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.btn-outline { color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--mist); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); position: relative; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-top: 16px; padding-bottom: 16px;
}
.brand img { height: 48px; width: auto; }
.brand { flex: none; }
.nav-toggle {
  display: none;
  min-width: 48px; min-height: 48px; padding: 0 12px;
  background: none; border: 1px solid var(--line-strong); border-radius: 3px;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  align-items: center; gap: 8px;
}
.site-nav {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 18px;
  font-family: var(--display); font-size: 17px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.site-nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] { color: var(--blue); border-bottom: 2px solid var(--blue); }
.site-nav .nav-cta { color: var(--white); background: var(--blue); padding: 10px 18px; border-radius: 3px; }
.site-nav .nav-cta:hover { color: var(--white); background: var(--blue-dark); }

@media (max-width: 1260px) {
  .brand img { height: 42px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 14px; text-align: center; border-bottom: none; }
}

/* Hero */
.hero {
  color: var(--white);
  background: repeating-linear-gradient(135deg, #123247 0 16px, #163a51 16px 32px);
}
.hero .wrap { padding-top: 120px; padding-bottom: 110px; display: flex; flex-direction: column; gap: 22px; }
.hero .kicker {
  font-family: var(--display); font-size: 18px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: #9FC4DD;
}
.hero h1 { font-size: clamp(48px, 8vw, 84px); line-height: 0.98; letter-spacing: 0.01em; max-width: 900px; }
.hero p { font-size: 21px; max-width: 640px; color: #D6E4EE; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.hero .ph-note { margin-top: 40px; font-size: 13px; color: #9FC4DD; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 40px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(38px, 5vw, 52px); }
.section-head p { max-width: 460px; }
.band { background: var(--mist); }
.page-intro { background: var(--mist); }
.page-intro .wrap { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 12px; }
.page-intro h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.page-intro p { max-width: 680px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }

/* Division cards */
.division {
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
}
.division:hover { border-color: var(--line-strong); color: var(--ink); }
.division .ph { height: 260px; }
.division .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.division h3 { font-size: 30px; }
.division .more { font-weight: 700; color: var(--blue); margin-top: 6px; }

/* Split feature */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.split .ph { min-height: 420px; }
.split h2 { font-size: clamp(36px, 4.5vw, 48px); }
.split .copy { display: flex; flex-direction: column; gap: 22px; }
.points { display: flex; flex-direction: column; gap: 16px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point svg { flex: none; margin-top: 2px; }

/* Project cards */
.project-card {
  text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px;
}
.project-card:hover { color: var(--ink); }
.project-card:hover .title { color: var(--blue); }
.project-card .ph { height: 230px; }
.project-card .tag {
  font-family: var(--display); font-size: 15px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
}
.project-card .title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.project-card .meta { font-size: 15px; color: var(--muted); }

/* Sectors strip */
.sectors {
  border-top: 2px solid var(--blue); padding-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px;
}
.sectors b { display: block; font-family: var(--display); font-size: 26px; font-weight: 700; text-transform: uppercase; }

/* CTA band */
.cta-band { background: var(--blue); color: var(--white); }
.cta-band .wrap {
  padding-top: 72px; padding-bottom: 72px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px;
}
.cta-band h2 { font-size: clamp(36px, 4.5vw, 48px); }
.cta-band p { font-size: 19px; color: #E1EDF5; }

/* Footer */
.site-footer { background: var(--navy); color: #C5D6E2; }
.site-footer a { color: #C5D6E2; }
.site-footer a:hover { color: var(--white); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 6px; }
.footer-cols b { color: var(--white); }
.footer-logo { background: var(--white); padding: 12px 14px; border-radius: 3px; align-self: flex-start; }
.footer-logo img { width: 240px; }
.footer-base {
  border-top: 1px solid #24465C; padding-top: 18px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}

/* Projects library filters */
.filters { display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-row .label { font-weight: 700; width: 64px; }
.pill {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  min-height: 44px; padding: 8px 16px; border-radius: 22px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink);
}
.pill:hover { border-color: var(--blue); }
.pill[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.library { padding-top: 36px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 24px; }
.empty { padding: 40px; text-align: center; background: var(--mist); color: var(--muted); }
.link-btn { font: inherit; font-weight: 700; color: var(--blue); background: none; border: none; cursor: pointer; text-decoration: underline; min-height: 44px; }

/* Project sheet */
.breadcrumb { font-size: 15px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-head { padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.sheet-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.sheet-title h1 { font-size: clamp(40px, 5.5vw, 60px); line-height: 1; }
.gallery { padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.gallery .main { grid-column: 1 / -1; height: clamp(260px, 45vw, 560px); }
.gallery .thumb { height: 150px; font-size: 12px; }
.sheet-body { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 56px; }
.sheet-body .prose { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.sheet-body h2 { font-size: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--mist); padding: 6px 14px; border-radius: 3px; font-weight: 600; }
.particulars { flex: 1 1 320px; min-width: 0; align-self: flex-start; border: 1px solid var(--line); }
.particulars .head {
  background: var(--blue); color: var(--white); padding: 12px 18px;
  font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.particulars dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 16px; }
.particulars dt, .particulars dd { margin: 0; padding: 10px 18px; border-bottom: 1px solid #E6EBEF; }
.particulars dt { color: var(--muted); }
.particulars dd { font-weight: 600; }
.particulars dt:last-of-type, .particulars dd:last-of-type { border-bottom: none; }

/* About & contact */
.about-intro { padding-top: 72px; padding-bottom: 64px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-intro .copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-intro h1 { font-size: clamp(44px, 6vw, 64px); line-height: 1; }
.about-intro .ph { flex: 1 1 360px; min-width: 0; height: 420px; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; gap: 6px; }
.person .ph { height: 260px; }
.person b { font-size: 19px; }
.contact { padding-top: 72px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; scroll-margin-top: 24px; }
.contact .details { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact .details h2 { font-size: clamp(40px, 5vw, 52px); line-height: 1; }
.contact .details .ph { height: 260px; }
.enquiry {
  flex: 999 1 520px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  border: 1px solid var(--line); padding: 32px;
}
.enquiry h3 { font-size: 30px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.enquiry label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.enquiry input, .enquiry select, .enquiry textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  min-height: 46px; padding: 0 12px;
  border: 1px solid #B7C4CF; border-radius: 3px; background: var(--white);
}
.enquiry textarea { padding: 10px 12px; resize: vertical; }
.enquiry input:focus, .enquiry select:focus, .enquiry textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.enquiry .note { font-size: 14px; color: var(--muted); }
.enquiry .btn { align-self: flex-start; }

@media (max-width: 600px) {
  .hero .wrap { padding-top: 72px; padding-bottom: 64px; }
  .section { padding-top: 64px; }
  .split { padding-top: 56px; padding-bottom: 56px; }
  .enquiry { padding: 22px; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- v2 additions ---------- */

/* Placeholder illustrations (swap for photos later) */
.illus { position: relative; margin: 0; overflow: hidden; background: var(--mist); }
.illus img { width: 100%; height: 100%; object-fit: cover; }
.illus figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(14, 42, 61, 0.78); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 8px; border-radius: 2px;
}
.division .illus, .project-card .illus, .news-card .illus { aspect-ratio: 16 / 10; }
.split .illus { aspect-ratio: 16 / 10; min-height: 0; }
.gallery .illus.main { grid-column: 1 / -1; aspect-ratio: 16 / 8; height: auto; }
.about-intro .illus { flex: 1 1 360px; min-width: 0; aspect-ratio: 16 / 11; }
.post .illus { aspect-ratio: 16 / 9; }
.page-intro .illus { aspect-ratio: 16 / 10; }

/* Hero */
.hero { background: linear-gradient(135deg, #0E2A3D 0%, #163A51 100%); }
.hero .wrap.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-illus { aspect-ratio: 16 / 9; border-radius: 3px; box-shadow: 0 18px 50px rgba(0,0,0,0.35); }

/* Stats */
.stats-band { background: var(--white); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.stats div { display: flex; flex-direction: column; gap: 2px; }
.stats b { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--blue); }
.stats span { color: var(--muted); font-size: 15px; }

.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.grid-4 .division h3 { font-size: 26px; }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cred { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); padding: 20px; }
.cred svg { flex: none; }
.cred div { display: flex; flex-direction: column; gap: 4px; }
.cred b { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.cred .muted { font-size: 15px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.service { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); padding: 22px; }
.service svg { flex: none; margin-top: 2px; }
.service div { display: flex; flex-direction: column; gap: 6px; }
.service b { font-size: 18px; }
.intro-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: center; }

/* Sectors beside copy */
.sectors-tight { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* News */
.news-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.news-card:hover { color: var(--ink); }
.news-card:hover .title { color: var(--blue); }
.news-card time { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.news-card .title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.post { max-width: 860px; padding-top: 32px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.post h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.02; }
.prose { display: flex; flex-direction: column; gap: 16px; }
.lead { font-size: 20px; }

/* Founder message */
.founder { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.founder blockquote { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.founder blockquote p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--navy); }
.founder footer { color: var(--muted); }

/* People */
.ph.portrait { height: 300px; align-items: center; justify-content: center; }

/* Careers */
.careers { padding-top: 64px; padding-bottom: 64px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.careers h2 { font-size: clamp(36px, 4.5vw, 48px); }

/* Photos */
.illus.photo { background: var(--navy); }
.gallery .illus.thumb { aspect-ratio: 4 / 3; }
.footer-logo { background: none; padding: 0; }
.footer-logo img { width: 210px; height: auto; }
.brand img { height: 46px; width: auto; }

/* Enquiry form status */
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 600; min-height: 1em; }
.form-status.ok { color: #1F6B3A; }
.form-status.err { color: #A33A1A; }
