/* =========================================================
   Hout Bay Tourism — main stylesheet
   Change the look of the whole site from the tokens below.
   ========================================================= */
:root {
  /* Colour palette */
  --ocean: #0d3b52;        /* primary dark blue */
  --ocean-2: #125a78;      /* lighter blue */
  --teal: #1d8a99;         /* accent blue-green */
  --sand: #f6f0e6;         /* warm light background */
  --sand-2: #ece2d0;
  --sunset: #e9823a;       /* call-to-action orange */
  --sunset-dark: #cf6a24;
  --fynbos: #4d7c3a;       /* green accent */
  --ink: #17252e;          /* body text */
  --muted: #5b6b74;
  --white: #ffffff;
  --line: rgba(13, 59, 82, .12);

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 59, 82, .10);
  --shadow-lg: 0 20px 50px rgba(13, 59, 82, .18);
  --max: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ocean-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sunset-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ocean); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.015em; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ocean); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: all .25s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--sunset); color: #fff; }
.btn-primary:hover { background: var(--sunset-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(233,130,58,.35); }
.btn-outline { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ocean); }
.btn-dark { background: var(--ocean); color: #fff; }
.btn-dark:hover { background: var(--ocean-2); color: #fff; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ocean); color: rgba(255,255,255,.85); font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--sunset); }
.topbar-items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-items span, .topbar-items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 15px; height: 15px; opacity: .85; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(13,59,82,.10); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ocean); }
.brand-mark { width: 46px; height: 46px; flex: none; }
.brand-text { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); margin-top: 5px; }
.nav-menu { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: .93rem; color: var(--ink); text-decoration: none; transition: .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ocean); background: var(--sand); }
.nav-links .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 10px;
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s ease;
}
.submenu a { border-radius: 10px; padding: 10px 14px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ocean); margin: 5px auto; transition: .3s; border-radius: 2px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(88vh, 780px);
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background: var(--ocean) center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,40,56,.85) 0%, rgba(10,40,56,.55) 45%, rgba(10,40,56,.15) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 60px; padding-bottom: 120px; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; max-width: 46ch; color: rgba(255,255,255,.9); margin-bottom: 2em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero .eyebrow, .page-hero .eyebrow { color: #ffc49a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 80px; }

/* Quick links strip overlapping the hero */
.quick-links { position: relative; z-index: 5; margin-top: -70px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.quick-card {
  background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; transition: .25s ease;
  border-bottom: 4px solid transparent;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--sunset); color: var(--ink); }
.quick-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sand); color: var(--ocean); margin-bottom: 6px; }
.quick-card .icon svg { width: 26px; height: 26px; }
.quick-card h3 { margin: 0; font-size: 1.2rem; }
.quick-card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.55; }
.quick-card .more { font-weight: 700; font-size: .88rem; color: var(--sunset-dark); margin-top: auto; padding-top: 6px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; padding: 120px 0 130px; background: var(--ocean) center/cover no-repeat; overflow: hidden;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,40,56,.55), rgba(10,40,56,.8)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero p { max-width: 56ch; font-size: 1.12rem; color: rgba(255,255,255,.9); margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { color: var(--sunset); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-sand { background: var(--sand); }
.bg-ocean { background: var(--ocean); color: rgba(255,255,255,.88); }
.bg-ocean h2, .bg-ocean h3 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 50px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.bg-ocean .section-head p { color: rgba(255,255,255,.75); }

/* Split: image + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media .badge {
  position: absolute; bottom: -26px; right: -18px; background: var(--sunset); color: #fff;
  padding: 18px 24px; border-radius: 16px; box-shadow: var(--shadow-lg); font-family: var(--font-head); line-height: 1.1;
}
.split-media .badge strong { font-size: 2rem; display: block; }
.split-media .badge span { font-family: var(--font-body); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; 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;
}

/* Cards grid */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  transition: .25s ease; border: 1px solid var(--line);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sand); color: var(--teal); margin-bottom: 20px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sunset-dark); margin-bottom: 8px; }
.bg-ocean .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.bg-ocean .card p { color: rgba(255,255,255,.75); }
.bg-ocean .card .icon { background: rgba(255,255,255,.1); color: #ffc49a; }

/* Photo cards */
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,40,56,.9)); }
.photo-card:hover img { transform: scale(1.06); }
.photo-card .body { position: relative; z-index: 1; padding: 28px; }
.photo-card h3 { color: #fff; margin: 0 0 6px; }
.photo-card p { margin: 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.photo-card:hover { color: #fff; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3.2rem); color: #ffc49a; line-height: 1.1; }
.stat span { font-size: .9rem; letter-spacing: .06em; color: rgba(255,255,255,.8); }

/* Info / tip boxes */
.tip {
  display: flex; gap: 18px; align-items: flex-start; background: var(--sand); border-left: 5px solid var(--sunset);
  padding: 24px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 30px 0;
}
.tip svg { width: 28px; height: 28px; flex: none; color: var(--sunset-dark); margin-top: 2px; }
.tip p { margin: 0; }
.tip strong { color: var(--ocean); }

/* Timeline / steps */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { position: relative; padding: 26px 26px 26px 90px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 24px; top: 24px; font-family: var(--font-head); font-size: 1.9rem; color: var(--sunset); font-weight: 700;
}
.step h3, .prose .step h3 { margin: 0 0 .3em; }
.step p { margin: 0; color: var(--muted); }

/* Table-like info rows */
.info-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.info-row dt { font-weight: 700; color: var(--ocean); }
.info-row dd { margin: 0; color: var(--muted); }

/* Prose content */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: #33434c; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 60px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
.side-box { background: var(--sand); border-radius: var(--radius); padding: 28px; }
.side-box h3 { font-size: 1.15rem; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li a { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.side-box li:last-child a { border-bottom: 0; }
.side-box li a:hover, .side-box li a[aria-current="page"] { color: var(--sunset-dark); }
.side-box.dark { background: var(--ocean); color: rgba(255,255,255,.85); }
.side-box.dark h3 { color: #fff; }
.side-box.dark p { font-size: .95rem; }

/* CTA band */
.cta-band {
  position: relative; border-radius: 28px; overflow: hidden; padding: 70px 60px; color: #fff;
  background: linear-gradient(120deg, var(--ocean) 0%, var(--ocean-2) 60%, var(--teal) 100%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,130,58,.55), transparent 70%);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); font-size: 1.08rem; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; position: relative; z-index: 1; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item .icon { width: 50px; height: 50px; border-radius: 14px; background: var(--sand); color: var(--teal); display: grid; place-items: center; flex: none; }
.contact-item .icon svg { width: 24px; height: 24px; }
.contact-item h3 { font-size: 1.05rem; margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); text-decoration: none; }
.contact-item a:hover { color: var(--sunset-dark); }
.form { background: #fff; border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 700; font-size: .88rem; color: var(--ocean); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; padding: 13px 16px; border: 1.5px solid var(--sand-2); border-radius: 12px; background: #fdfbf7; color: var(--ink); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(29,138,153,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a2d3f; color: rgba(255,255,255,.72); padding: 80px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--sunset); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-text small { color: #7fd0da; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--sunset); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: .25s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 10px 10px; font-size: .9rem; }
  .nav-cta { display: none; }
}
@media (max-width: 980px) {
  .quick-grid, .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .content-layout { grid-template-columns: 1fr; gap: 50px; }
  .split.reverse .split-media { order: 0; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 50px 36px; }
  .cta-band .actions { justify-content: flex-start; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: #fff; padding: 20px 24px 100px; border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(13,59,82,.12);
    overflow-y: auto; opacity: 0; transform: translateY(-12px); transition: opacity .25s ease, transform .25s ease, visibility .25s; visibility: hidden; pointer-events: none;
  }
  .nav-menu { display: block; }
  .nav-open .nav-menu { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
  .nav-links .has-sub > a::after { display: none; }
  .nav-cta { display: inline-flex; margin: 20px 0 0; }
  html.nav-lock { overflow: hidden; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 70px 0; }
  .topbar .hide-sm { display: none; }
  .quick-grid, .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px 10px; }
  .info-row { grid-template-columns: 1fr; gap: 4px; }
  .step { padding: 70px 22px 22px; }
  .form { padding: 26px 20px; }
  .split-media .badge { right: 12px; bottom: -20px; }
  .hero .container { padding-bottom: 110px; }
  .page-hero { padding: 80px 0 100px; }
  .cta-band { padding: 40px 24px; border-radius: 20px; }
  .brand-text { font-size: 1.1rem; }
}
.footer-bottom .credit { color: #fff; font-weight: 700; }
