/* boatlicense.ae — shared stylesheet. Mobile-first, no framework.
   WHY: one small file keeps every page fast; there is deliberately no JS
   besides /assets/enquiry.js, so all layout (incl. the header nav) is pure CSS. */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #0b7285;       /* 5.3:1 on white — safe for text and buttons */
  --teal-dark: #085a69;
  --aqua: #8ee3ef;
  --sand: #f4f8fa;
  --ink: #1b2a3a;
  --muted: #4a5d70;      /* 6.4:1 on white */
  --line: #d8e3ea;
  --white: #ffffff;
  --wa: #128c4a;         /* WhatsApp green, darkened for white-text contrast */
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 37, 69, .08);
  --wrap: 1120px;
}

*, *::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: 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
/* Mobile: brand + WhatsApp on row one, nav on its own swipeable row below.
   Desktop: all three on one row. No hamburger, so no JS needed. */
.header-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 8px; }
.header-bar .nav { order: 3; width: 100%; }
@media (min-width: 860px) {
  .header-bar { flex-wrap: nowrap; min-height: 72px; padding-top: 0; }
  .header-bar .nav { order: 0; width: auto; margin-left: auto; padding-bottom: 0; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.1rem; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span b { color: var(--teal); font-weight: 800; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { background: var(--navy); color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--teal); color: var(--white);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: #0e7339; }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .95rem; }
.btn-sm .label { display: none; }

@media (min-width: 420px) { .btn-sm .label { display: inline; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(142, 227, 239, .25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--teal-dark) 100%);
  padding: 56px 0 96px;
}
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: #dbe9f3; max-width: 46ch; }
.hero .eyebrow { color: var(--aqua); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 28px 0 0; padding: 0; list-style: none; color: #dbe9f3; font-weight: 600; font-size: .95rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--aqua); }
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 60px; display: block; }
.hero-sm { padding: 40px 0 80px; }
.eyebrow { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--teal); margin-bottom: 10px; }
.crumbs { font-size: .9rem; margin-bottom: 14px; color: #c6dbe8; }
.crumbs a { color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 560px) and (max-width: 959px) { .grid-4 { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin-bottom: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e3f4f7; color: var(--teal); margin-bottom: 14px; }
.icon svg { width: 24px; height: 24px; }

.emirate-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.emirate-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(11, 37, 69, .14); color: inherit; }
.emirate-card .tag { font-size: .8rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .08em; }
.emirate-card h3 { font-size: 1.35rem; margin-top: 4px; }
.emirate-card .more { margin-top: auto; padding-top: 14px; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.emirate-card .more svg { width: 18px; height: 18px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat;
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; position: relative; padding: 18px 18px 18px 70px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: var(--white); font-weight: 800; display: grid; place-items: center;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

.note { border-left: 4px solid var(--teal); background: #eaf6f8; padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink); }
.note p:last-child { margin-bottom: 0; }

.facts { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 0; }
.facts div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.facts dd { margin: 4px 0 0; font-weight: 800; color: var(--navy); font-size: 1.05rem; }

/* ---------- FAQ (native details, no JS) ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 700; color: var(--navy);
  position: relative; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal); font-weight: 600; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* ---------- Enquiry form ---------- */
.enquire-wrap { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .enquire-wrap { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.enquiry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field label .req { color: #a32a1f; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9cad6; border-radius: 10px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--teal); outline: 3px solid rgba(11, 114, 133, .2); outline-offset: 0; }
.enquiry .btn { width: 100%; font-size: 1.05rem; }
.enquiry .small { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
/* Honeypot: off-screen for humans, still a real text input for bots.
   INVARIANT: must NOT be display:none or type=hidden — the server's bot check
   relies on naive bots filling it in. */
.hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c6d6e4; padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 32px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.center { text-align: center; }
.mt { margin-top: 28px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
