/* ==========================================================================
   Fixwave — public site
   Palette is taken from the logo: deep navy, cyan wave, orange accent.
   ========================================================================== */

:root {
  --navy-900: #0a2740;
  --navy-800: #0f3557;
  --navy-700: #16456d;
  --cyan-600: #1489bd;
  --cyan-500: #1a9fd9;
  --cyan-400: #4fb8e5;
  --cyan-050: #e8f6fc;
  --orange:   #e8862b;

  --wa-green: #25d366;
  --wa-dark:  #1da851;

  --ink:      #14202b;
  --ink-soft: #4a5b6a;
  --line:     #dde5ec;
  --bg:       #ffffff;
  --bg-alt:   #f5f9fc;

  --ok-bg: #e6f7ed;  --ok-fg: #11683c;
  --err-bg:#fdecec;  --err-fg:#a12020;

  --radius:    10px;
  --radius-lg: 16px;
  --shadow:    0 1px 2px rgba(16, 40, 60, .06), 0 6px 20px rgba(16, 40, 60, .07);
  --shadow-lg: 0 10px 40px rgba(16, 40, 60, .13);

  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  /*
   * Mobile menu: no slide or stagger, it just appears. The rule above gives
   * every element a .01ms transition on all properties, including the
   * visibility each descendant inherits from the panel, which leaves them
   * "hidden" at the moment it opens and stops focus moving in. So the panel
   * and everything inside it get no transitions at all.
   */
  .nav, .nav.is-open, .nav *, .nav.is-open *, .nav *::before { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-600); text-decoration: none; }
a:hover { text-decoration: underline; }
/* WhatsApp buttons render without href until a number is set (whatsapp_attrs()).
   They do nothing, so they shouldn't lift, recolour or show a pointer on hover either. */
a:not([href]) { pointer-events: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; color: var(--navy-900); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 780px; }
.muted { color: var(--ink-soft); }
.h3 { font-size: 1.5rem; margin-top: 2.2rem; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 11px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; color: var(--navy-800); font: inherit; font-weight: 600;
  cursor: pointer; text-align: center; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }
.btn--primary { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--wa { background: var(--wa-green); border-color: var(--wa-green); color: #06301a; }
.btn--wa:hover { background: var(--wa-dark); color: #fff; }
.btn--wa-outline { background: #fff; border-color: var(--ok-fg); color: var(--ok-fg); }
.btn--wa-outline:hover { background: var(--wa-green); border-color: var(--wa-green); color: #06301a; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.pill {
  display: inline-flex; align-items: baseline; gap: .4em;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
  background: rgba(255,255,255,.16); color: #fff;
}
.pill small { font-weight: 500; opacity: .85; font-size: .8em; }

/* ── Header ──────────────────────────────────────────────────────────────── */

.topbar { background: var(--navy-900); color: #cfe0ec; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar__contact { display: flex; gap: 18px; }
.topbar__item { color: #cfe0ec; }
.topbar__item:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.header.is-stuck { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }

.logo img { width: 130px; height: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__list { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__list > li > a { color: var(--navy-800); font-weight: 600; font-size: .96rem; padding: 8px 0; display: block; }
.nav__list > li > a:hover, .nav__list > li > a[aria-current] { color: var(--cyan-600); text-decoration: none; }

.nav__item--has-children { position: relative; }
.nav__dropdown {
  position: absolute; top: 100%; left: -14px; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav__item--has-children:hover .nav__dropdown,
.nav__item--has-children:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a { display: block; padding: 9px 14px; border-radius: 6px; color: var(--navy-800); font-size: .93rem; }
.nav__dropdown a:hover { background: var(--cyan-050); color: var(--cyan-600); text-decoration: none; }

/*
 * Mobile menu layers, explicit so the order is deterministic: scrim 1,
 * panel 2. The hamburger stays below both; the panel carries its own close
 * button in its top row, so nothing needs to sit above it.
 */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 1;
  background: rgba(10, 39, 64, .5);
  opacity: 0; transition: opacity .3s ease;
}
.nav-scrim.is-visible { opacity: 1; }

/* The panel's top row (logo + close) exists only in the mobile menu. */
.nav__top { display: none; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(1000px 420px at 78% -10%, rgba(26,159,217,.30), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff; padding: 76px 0 84px;
}

/*
 * Background photos (admin: Hero Slides / Page Banners). A navy-900 overlay
 * at >= .82 behind any text keeps every text colour here at 4.5:1 or better
 * even over a pure-white photo; the hero fades to .55 only on its empty right.
 * The photo sits in a negative z-index layer, so the text needs no changes.
 */
.bg-picture { position: absolute; inset: 0; display: block; }
.bg-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,39,64,.88) 0%, rgba(10,39,64,.82) 60%, rgba(10,39,64,.55) 100%);
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero__slide.is-active { opacity: 1; }
/* cyan-400 would need a .88 overlay to reach 4.5:1 over a bright photo; the light token needs .75 */
.hero__media ~ .hero__inner .hero__eyebrow { color: var(--cyan-050); }
.hero__eyebrow { color: var(--cyan-400); font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 14px; }
.hero__title { color: #fff; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16ch; margin-bottom: .4em; }
.hero__text { font-size: 1.15rem; color: #d3e3ef; max-width: 54ch; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2.4em; }
.hero__points { display: flex; flex-wrap: wrap; gap: 12px 30px; list-style: none; padding: 0; margin: 0; }
.hero__points li { position: relative; padding-left: 26px; color: #cfe0ec; font-size: .96rem; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 8px; border-left: 2px solid var(--cyan-400); border-bottom: 2px solid var(--cyan-400);
  transform: rotate(-45deg);
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { padding: 66px 0; }
.section--alt { background: var(--bg-alt); }
.section--center { text-align: center; padding: 90px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section__head--left { text-align: left; margin-left: 0; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: .35em; }
.section__sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0; }
.section__more { margin-top: 34px; text-align: center; font-weight: 600; }

/*
 * Height comes from padding, never a fixed height, so a long heading or a
 * two-line description just makes the banner taller. The padding scales with
 * the viewport: roomy enough on desktop for a background photo to read,
 * bottoming out on phones at about today's size.
 */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #fff;
  padding: clamp(56px, 8vw, 112px) 0 clamp(60px, 8.5vw, 120px);
}
.page-head__media { position: absolute; inset: 0; z-index: -1; }
.page-head__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,39,64,.9), rgba(10,39,64,.84));
}
.page-head__title { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .3em; }
.page-head__text { color: #d3e3ef; font-size: 1.08rem; max-width: 62ch; margin-bottom: 0; }
.page-head__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }

.crumbs { font-size: .87rem; color: #a9c4d8; margin-bottom: 16px; }
.crumbs a { color: #cfe0ec; }
.crumbs span { margin: 0 4px; }

/* ── Grids ───────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

.split { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.split__side { position: sticky; top: 100px; }

/* ── Category tiles ──────────────────────────────────────────────────────── */

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 30px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; height: 100%; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--cyan-400); }
/* The trade icon (partials/trade-icon.php) draws in currentColor. */
.cat-tile__icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--cyan-050); border: 2px solid var(--cyan-400);
  display: grid; place-items: center; color: var(--cyan-600);
}
.cat-tile__icon .trade-icon { width: 28px; height: 28px; }
.cat-tile__name { font-weight: 700; color: var(--navy-900); }
.cat-tile__count { font-size: .84rem; color: var(--ink-soft); }

/* ── Service cards ───────────────────────────────────────────────────────── */

.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; height: 100%; transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.card__link:hover { text-decoration: none; }
.card__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-alt); }
.card__img--placeholder {
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 800;
  color: var(--cyan-400); background: linear-gradient(135deg, var(--cyan-050), #fff);
}
.card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.14rem; margin-bottom: .4em; }
.card__text { color: var(--ink-soft); font-size: .94rem; flex: 1; }
.card__meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__arrow { color: var(--cyan-600); font-size: 1.2rem; }

.price { font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.price small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .8em; }
.price--quote { color: var(--ink-soft); font-weight: 600; }

/* ── Packages ────────────────────────────────────────────────────────────── */

/* Tier colours: every card's top edge, and the featured card's whole header.
   Light metallic gradients keep navy text readable. */
.package--gold   { --tier-from: #f8e7ac; --tier-to: #e2b64a; --tier-edge: #b8862b; }
.package--silver { --tier-from: #f1f4f7; --tier-to: #c7cfd9; --tier-edge: #8a96a6; }
.package--bronze { --tier-from: #f6d9c0; --tier-to: #d59a6e; --tier-edge: #a8612f; }

/* A section with fewer cards than a full row is capped and centred, so its
   cards keep full-row size instead of stretching across the page. */
.packages--1 { max-width: 360px; margin-inline: auto; }
.packages--2 { max-width: 744px; margin-inline: auto; }

/*
 * Standard card: white, with the tier only as a thin top edge.
 *
 * Each card is a subgrid spanning four of the row's tracks (head, price,
 * details, button), so those parts line up across every card in a row:
 * prices align however long a name or header is. Without subgrid support the
 * card simply stacks its parts, unaligned.
 */
.package {
  position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--tier-edge);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.package:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Content sits at the bottom of the head, so the name meets the price row. */
.package__head {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px 22px 0; color: var(--navy-900);
}
.package__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.package__tier { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.package__badge {
  padding: 3px 10px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok-fg); font-size: .78rem; font-weight: 700;
}
.package__name { margin: 6px 0 0; font-size: 1.2rem; color: var(--navy-900); }

/* The price is the anchor: small currency above, large number, muted period. */
.package__price { margin: 0; padding: 18px 22px 14px; color: var(--navy-900); }
.package__currency { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-soft); }
.package__amount { font-size: 2.8rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.package__amount--quote { display: block; font-size: 1.5rem; letter-spacing: 0; }
.package__period { color: var(--ink-soft); font-size: .95rem; }
.package__details { padding: 0 22px; }
.package__text { color: var(--ink-soft); font-size: .94rem; margin: 0 0 14px; }
.package__cta { padding: 0 22px 22px; }

/*
 * Featured card: raised, full tier header and a ribbon. The negative margins
 * extend it past its subgrid tracks at the top and bottom, so it stands taller
 * than its row while its price stays level with its neighbours'.
 */
.package--featured { z-index: 1; margin-block: -14px; border: 0; box-shadow: var(--shadow-lg); }
.package--featured .package__head {
  padding: 0 22px 20px; background: linear-gradient(135deg, var(--tier-from), var(--tier-to));
}
.package--featured .package__meta { margin-top: 16px; }
.package--featured .package__tier {
  padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.6); color: var(--navy-900);
}
/* margin-bottom: auto pins the ribbon to the top however tall the head track is. */
.package__ribbon {
  margin: 0 -22px auto; padding: 7px 12px; background: var(--navy-900); color: #fff; text-align: center;
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* Monthly / Yearly toggle. It ships hidden and site.js reveals it, so with
   JavaScript off both panels show, each under its own heading. */
.plan-toggle {
  display: flex; gap: 4px; width: fit-content; margin: -12px auto 44px; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.plan-toggle[hidden] { display: none; }
.plan-toggle__btn {
  padding: 9px 26px; border: 0; border-radius: 999px; background: transparent;
  color: var(--navy-800); font: inherit; font-weight: 600; cursor: pointer;
}
.plan-toggle__btn:hover { background: var(--cyan-050); }
.plan-toggle__btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; }

.plans__title { margin: 0 0 30px; text-align: center; font-size: 1.3rem; }
.plans__panel + .plans__panel { margin-top: 64px; }
/* With the toggle on, the pressed button names the panel; keep the heading for screen readers. */
.plans--toggle .plans__title {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.package__features { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.package__features li { position: relative; padding: 5px 0 5px 28px; font-size: .95rem; }
/* Tick drawn with borders rather than a glyph, so it renders in every font. */
.package__features li::before {
  content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 11px;
  border: solid var(--ok-fg); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { text-align: center; padding: 0 12px; }
.step__n {
  display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 800; font-size: 1.2rem;
}
.step__title { font-size: 1.14rem; }
.step__text { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ── Work / gallery ──────────────────────────────────────────────────────── */

.work { margin: 0; }
.work--card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.work__images { display: grid; grid-template-columns: 1fr; gap: 2px; }
.work__images--pair { grid-template-columns: 1fr 1fr; }
.work__shot { position: relative; }
.work__shot img, .work__images > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-alt); }
.work__label {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: rgba(10,39,64,.85); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.work__label--after { background: rgba(26,159,217,.94); }
.work__caption { padding: 14px 16px; font-size: .94rem; }
.work__caption .muted { display: block; font-size: .85rem; }
.work__caption p { margin: .5em 0 0; color: var(--ink-soft); font-size: .9rem; }

.filters { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 18px 0; }
.filter-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 1em; }
.tag {
  display: inline-block; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800);
  font-size: .88rem; font-weight: 500;
}
.tag:hover { text-decoration: none; border-color: var(--cyan-400); background: var(--cyan-050); }
.tag--active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ── Reviews ─────────────────────────────────────────────────────────────── */

.review {
  margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; height: 100%; display: flex; flex-direction: column;
}
.review__stars { color: var(--orange); font-size: 1.05rem; letter-spacing: 2px; margin-bottom: 12px; }
.review__stars-off { color: var(--line); }
.review__body { margin: 0 0 18px; padding: 0; font-size: .98rem; color: var(--ink); flex: 1; }
.review__meta { font-size: .9rem; }
.review__context { display: block; color: var(--ink-soft); font-size: .85rem; margin-top: 2px; }

/* ── Areas ───────────────────────────────────────────────────────────────── */

.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.area-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.area-card__name { font-size: 1.1rem; margin-bottom: .5em; }
.area-card__links { list-style: none; padding: 0; margin: 0; }
.area-card__links li { margin-bottom: 6px; }
.area-card__links a { font-size: .9rem; color: var(--ink-soft); }
.area-card__links a:hover { color: var(--cyan-600); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); margin-bottom: 1.5em; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { padding: 18px 40px 18px 0; font-weight: 600; color: var(--navy-900); cursor: pointer; position: relative; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--cyan-600); line-height: 1;
}
.faq__item[open] .faq__q::after { content: "\2212"; }
.faq__a { padding: 0 40px 20px 0; color: var(--ink-soft); }

/* ── Prose ───────────────────────────────────────────────────────────────── */

.prose { font-size: 1.02rem; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.24rem; margin-top: 1.5em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose__hero { width: 100%; border-radius: var(--radius-lg); margin-bottom: 28px; aspect-ratio: 16 / 9; object-fit: cover; }

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta { background: linear-gradient(120deg, var(--navy-800), var(--cyan-600)); color: #fff; padding: 52px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta__title { color: #fff; font-size: 1.7rem; margin-bottom: .25em; }
.cta__text { color: #dceefa; margin: 0; max-width: 56ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Forms ───────────────────────────────────────────────────────────────── */

.enquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.enquiry__title { font-size: 1.3rem; margin-bottom: .3em; }
.enquiry__sub { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.4em; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__field { margin-bottom: 16px; }
.form__field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy-900); }
.form__field input[type="text"], .form__field input[type="tel"], .form__field input[type="email"],
.form__field input[type="password"], .form__field input[type="number"], .form__field input[type="file"],
.form__field select, .form__field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: .96rem; color: var(--ink); background: #fff;
}
.form__field textarea { resize: vertical; min-height: 90px; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 3px rgba(26,159,217,.18);
}
.form__field.has-error input, .form__field.has-error textarea, .form__field.has-error select { border-color: #d94a4a; }
.form__error { color: var(--err-fg); font-size: .85rem; margin: 6px 0 0; }
.form__hint { color: var(--ink-soft); font-size: .84rem; margin: 6px 0 0; }
.form__note { font-size: .82rem; color: var(--ink-soft); margin: 14px 0 0; }
.req { color: #d94a4a; }
.opt { color: var(--ink-soft); font-weight: 400; }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ── Contact cards ───────────────────────────────────────────────────────── */

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 24px; }
.contact-card {
  display: block; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; color: inherit; transition: border-color .15s ease, transform .15s ease;
}
.contact-card:hover { text-decoration: none; border-color: var(--cyan-400); transform: translateY(-2px); }
.contact-card--wa { border-color: var(--wa-green); background: #f2fdf6; }
.contact-card--static:hover { transform: none; border-color: var(--line); }
.contact-card__label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 6px; }
.contact-card__value { display: block; font-size: 1.02rem; color: var(--navy-900); word-break: break-word; }
.contact-card__hint { display: block; font-size: .84rem; color: var(--ink-soft); margin-top: 4px; }

/* ── Notices ─────────────────────────────────────────────────────────────── */

.alert { padding: 14px 18px; border-radius: var(--radius); margin: 20px 0; font-size: .95rem; }
.alert--success { background: var(--ok-bg); color: var(--ok-fg); }
.alert--error { background: var(--err-bg); color: var(--err-fg); }
.alert--info { background: var(--cyan-050); color: var(--navy-800); }

.notice { padding: 44px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.notice--success { border-color: #b6e6c9; background: var(--ok-bg); }
.notice__code { font-size: 3.4rem; font-weight: 800; color: var(--cyan-400); margin: 0 0 .1em; line-height: 1; }
.notice__title { font-size: 1.6rem; }
.notice__text { color: var(--ink-soft); }
.notice__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 30px 0; }
.pagination__status { color: var(--ink-soft); font-size: .9rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer { background: var(--navy-900); color: #b9cddc; padding: 56px 0 0; margin-top: auto; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
/* Light logo straight on the navy (logo-light.webp: 7:1 on navy-900). */
.footer__logo { margin-bottom: 16px; width: 150px; }
.footer__blurb { font-size: .9rem; color: #9db6c8; }
.footer__heading { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: 9px; font-size: .92rem; }
.footer__list a { color: #b9cddc; }
.footer__list a:hover { color: #fff; }
.footer__list--contact li { color: #9db6c8; }
.footer__social { display: flex; gap: 14px; list-style: none; padding: 0; margin: 16px 0 0; font-size: .88rem; }
.footer__social a { color: var(--cyan-400); }
.footer__bar { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .85rem; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__bar p { margin: 0; }
.footer__built { color: #7f9ab0; }

/* ── Floating WhatsApp ───────────────────────────────────────────────────── */

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa-green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(37,211,102,.45);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.07); text-decoration: none; }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  /*
   * Mobile menu: a navy glass panel. The base is solid navy, so browsers
   * without backdrop-filter get a clean opaque panel; the @supports block
   * below swaps in the translucent, blurred version. A .72 tint keeps every
   * text colour here at 7:1 or better even over a white page.
   *
   * Opening uses the .is-open transitions (slow, eased, staggered); closing
   * falls back to the base ones (quicker, no stagger), so it reverses faster.
   */
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(88%, 360px); z-index: 2;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 0 24px max(30px, env(safe-area-inset-bottom, 0px) + 30px);
    overflow-y: auto; overscroll-behavior: contain;
    background: var(--navy-900); color: #fff;
    border-left: 1px solid rgba(255,255,255,.08);
    box-shadow: -24px 0 60px rgba(10,39,64,.45);
    transform: translateX(100%); visibility: hidden;   /* hidden: closed links can't take focus */
    transition: transform .22s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .22s;
  }
  .nav.is-open {
    transform: none; visibility: visible;
    transition: transform .42s cubic-bezier(.22, 1, .36, 1), visibility 0s;
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav {
      background: rgba(10,39,64,.72);
      -webkit-backdrop-filter: blur(20px) saturate(140%);
      backdrop-filter: blur(20px) saturate(140%);
    }
  }

  /* Top row: logo left, close right; the same 74px row height as the site header. */
  .nav__top {
    display: flex; align-items: center; min-height: 74px; margin-bottom: 6px;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav__logo img { width: 130px; height: auto; }
  .nav-close {
    position: relative; width: 44px; height: 44px; margin: 0 -10px 0 auto; padding: 0;
    border: 0; border-radius: 50%; background: none; color: #fff; cursor: pointer;
    transition: transform .25s cubic-bezier(.22, 1, .36, 1), background .2s ease;
  }
  .nav-close span {
    position: absolute; top: 21px; left: 11px; width: 22px; height: 2px;
    border-radius: 2px; background: currentColor;
  }
  .nav-close span:first-child { transform: rotate(45deg); }
  .nav-close span:last-child  { transform: rotate(-45deg); }
  .nav-close:hover { background: rgba(255,255,255,.08); }
  .nav-close:active { transform: rotate(-20deg) scale(.92); }

  /* Links: white, roomy, and they fade and rise in one after another. */
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li,
  .nav__cta {
    opacity: 0; transform: translateY(14px);
    transition: opacity .14s ease, transform .14s ease;
  }
  .nav__list > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav.is-open .nav__list > li,
  .nav.is-open .nav__cta {
    opacity: 1; transform: none;
    transition: opacity .38s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
    transition-delay: calc(110ms + var(--i, 0) * 45ms);
  }
  .nav__list > li:nth-child(2) { --i: 1; }
  .nav__list > li:nth-child(3) { --i: 2; }
  .nav__list > li:nth-child(4) { --i: 3; }
  .nav__list > li:nth-child(5) { --i: 4; }
  .nav__list > li:nth-child(6) { --i: 5; }
  .nav__list > li:nth-child(7) { --i: 6; }
  .nav__list > li:nth-child(8) { --i: 7; }
  .nav__list > li:nth-child(9) { --i: 8; }
  .nav__cta { --i: 9; }

  .nav__list > li > a {
    position: relative; padding: 15px 0 15px 16px;
    color: #fff; font-size: 1.1rem; letter-spacing: .01em;
    transition: color .2s ease, text-shadow .2s ease;
  }
  /* Tap / hover / current page: a glowing cyan bar grows at the left, text brightens. */
  .nav__list > li > a::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 22px; margin-top: -11px;
    border-radius: 3px; background: var(--cyan-400); box-shadow: 0 0 12px rgba(79,184,229,.8);
    transform: scaleY(0); transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  }
  .nav__list > li > a:hover,
  .nav__list > li > a:active,
  .nav__list > li > a:focus-visible,
  .nav__list > li > a[aria-current] {
    color: var(--cyan-050); text-decoration: none; text-shadow: 0 0 18px rgba(79,184,229,.55);
  }
  .nav__list > li > a:hover::before,
  .nav__list > li > a:active::before,
  .nav__list > li > a:focus-visible::before,
  .nav__list > li > a[aria-current]::before { transform: scaleY(1); }

  .nav__dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; border-radius: 0; box-shadow: none; background: none;
    padding: 0 0 12px 16px; display: none;
  }
  .nav__item--has-children.is-open .nav__dropdown { display: block; }
  .nav__dropdown a { color: #cfe0ec; font-size: .98rem; padding: 9px 12px; }
  .nav__dropdown a:hover,
  .nav__dropdown a:active { background: rgba(255,255,255,.07); color: #fff; }

  /* The CTA stays the brand green and full width. */
  .nav__cta { margin-top: 26px; padding: 14px 22px; font-size: 1.05rem; box-shadow: 0 10px 28px rgba(37,211,102,.28); }

  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__side { position: static; }

  .section { padding: 48px 0; }
  .hero { padding: 54px 0 60px; }
  /* Text spans the full width here, so the hero overlay stays even. */
  .hero__media::after { background: rgba(10,39,64,.84); }
}

@media (max-width: 620px) {
  .topbar__item--hide-sm { display: none; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .work__images--pair { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { flex: 1 1 100%; }
  /* Cards stack in one column here, so the featured card must not overlap its neighbours */
  .package--featured { margin-block: 0; }
}

/*
 * Phones and small tablets: the homepage sections and the CTA band.
 * Everything is inside this block, so desktop is untouched. The [data-slider]
 * hook is written by home.php and package-grid.php only when there are two or
 * more cards.
 */
@media (max-width: 768px) {
  /* What we do: two tiles a row. Every row is as tall as the tallest, so the
     odd last tile spans the row at the same height as the others. */
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
  .cat-grid__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cat-tile { padding: 22px 12px; }

  /*
   * Sliders: CSS scroll-snap, no JavaScript needed to swipe. The track bleeds
   * to the screen edges past the container's 20px gutter; the matching
   * padding and scroll-padding keep the first and last card snapping 20px in.
   * A card is sized so one card, the gap and an eighth of the next fill the
   * space from the gutter to the screen edge: 1.125 slides, a peek of the next
   * card to show there is more. The 340px cap only bites above ~416px wide:
   * phones keep the 1.125 layout, and a 768px tablet shows two cards and a
   * peek instead of one very wide card.
   *
   * It stays a grid (auto-flow column) rather than flex, so each package card
   * is still a subgrid and prices line up across the row.
   */
  [data-slider] {
    --slider-gap: 14px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(340px, calc((100% + 20px - var(--slider-gap)) / 1.125));
    gap: var(--slider-gap);
    max-width: none;
    margin-inline: -20px;
    padding-inline: 20px;
    scroll-padding-inline: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* A scroller clips on both axes: room for card shadows, handed back by the margins. */
    padding-block: 16px 28px;
    margin-block: -16px -28px;
  }
  [data-slider]::-webkit-scrollbar { display: none; }
  [data-slider] > * { scroll-snap-align: start; }
  /* The track reaches the screen edge, so draw the keyboard focus ring inside it. */
  [data-slider]:focus-visible { outline-offset: -3px; }
  /* Side by side the raised featured card would be cut off by the track. */
  [data-slider] .package--featured { margin-block: 0; }

  /*
   * CTA band (partials/whatsapp-cta.php, on every page that has one): the
   * buttons go full width, one under the other. A grid with 1fr rows keeps
   * them the same height even if one label wraps. Scoped to .cta__actions:
   * the same .btn classes appear in the hero, page heads, footer and package
   * cards, and those keep their own layout.
   */
  .cta__inner { flex-direction: column; align-items: stretch; }
  .cta__actions { display: grid; grid-auto-rows: 1fr; gap: 12px; }
}
