/* ============================================================
   BAYOCORP LINKS - the digital reception page
   ------------------------------------------------------------
   Palette and type are the company's own, not this page's:
   black #000000, brand gold #FFDE59, white, warm light grey for
   secondary text - the three colours in the logo file itself
   (assets/logos/favicon.svg) - and the Poppins / Inter pairing
   www.bayocorp.uk loads on every page.

   Radii come from the site's tokens rather than being invented
   here: 12px on anything card-shaped, 6px on anything button- or
   chip-shaped. Nothing on a Bayocorp surface has a square corner.

   Gold NEVER carries body text. It is a fill (gold panel, black
   text, ~15:1) or an accent on black. On a light ground it sits
   near 1.4:1 and is unreadable.

   Mobile first throughout: most visitors arrive from Instagram on
   a phone. Every interactive element clears 44px, body text never
   drops below 16px, and the layout is verified at 320/375/390/430.
   ============================================================ */

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

:root {
  --black:       #000000;
  --yellow:      #FFDE59;
  --yellow-deep: #F0CB33;   /* pressed / hover fill only */
  --white:       #FFFFFF;

  /* Warm light greys - secondary and tertiary text. Both are read on
     black: 10.2:1 and 5.9:1 respectively. */
  --warm:        #B9B4A8;
  --warm-faint:  #8C877D;

  /* Surfaces are a warm near-black rather than a neutral grey, so a
     card reads as a panel on the same ground, not as a grey box. */
  --card:        #0E0E0C;
  --card-hi:     #171612;

  --line:        rgba(255,255,255,0.10);  /* dark-grey hairline */
  --line-gold:   rgba(255,222,89,0.18);   /* muted-gold hairline */
  --line-gold-hi:rgba(255,222,89,0.55);

  --radius:        12px;   /* cards, panels, action blocks */
  --button-radius:  6px;   /* buttons, chips, small tiles */

  --display: 'Poppins', 'Segoe UI', Arial, Helvetica, sans-serif;
  --body:    'Inter', 'Segoe UI', Arial, Helvetica, sans-serif;

  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  --gutter: 20px;
  --column: 560px;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* One focus treatment for the whole page, so a keyboard user never
   loses their place. Gold ring, offset so it clears the element. */
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255,222,89,0.62);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -200%; left: 12px; z-index: 99;
  background: var(--yellow); color: var(--black);
  font-family: var(--display); font-weight: 700; font-size: 0.9rem;
  padding: 10px 16px; border-radius: var(--button-radius);
}
.skip-link:focus { top: calc(10px + env(safe-area-inset-top)); }

/* The centred content column. Padding respects the notch cut-outs on
   a landscape iPhone as well as the ordinary gutter. */
.wrap {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding-left:  max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* ── SECTION FURNITURE ───────────────────────────────────── */
.section { padding-top: 34px; }
/* The profiles panel belongs to the reviews card immediately above it,
   so it sits closer than a new section would. */
.section-tight { padding-top: 14px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 16px;
}
/* The rule after the label is what stops a heading reading as a
   list header and makes the page read as a designed sheet. */
.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-gold), transparent);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(clamp(30px, 6vh, 58px) + env(safe-area-inset-top));
  padding-bottom: clamp(26px, 4vh, 38px);
  text-align: center;
}

/* The photograph is a band behind the hero only - it deliberately
   does not continue behind the rest of the page. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
}
/* Two layers: a vertical dark gradient that guarantees text contrast
   and lands on solid black at the bottom edge so the band dissolves
   into the page, plus the site's own gold bloom top-right. */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 6%, rgba(255,222,89,0.16), transparent 46%),
    linear-gradient(180deg,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.74) 18%,
      rgba(0,0,0,0.55) 40%,
      rgba(0,0,0,0.80) 72%,
      rgba(0,0,0,0.97) 92%,
      #000 100%);
}

.hero-logo {
  width: auto;
  height: clamp(76px, 21vw, 104px);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.95rem, 8.4vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: clamp(16px, 3.4vh, 24px) 0 0;
  color: var(--white);
  text-wrap: balance;
}
.hero h1 .dot { color: var(--yellow); }

.hero-lead {
  margin: 14px auto 0;
  max-width: 40ch;
  font-size: clamp(1rem, 3.7vw, 1.06rem);
  line-height: 1.62;
  color: var(--warm);
}

/* Credentials strip. Typographic, no badges, no emoji - the dots are
   gold so the line carries brand without carrying gold text. */
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 0;
  margin: 20px auto 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-gold);
  max-width: 430px;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.90);
}
.trust li {
  list-style: none;
  text-align: center;
  padding: 0 10px;
}
.trust li:nth-child(odd) { border-right: 1px solid var(--line-gold); }

/* The 2x2 block is kept at every width rather than becoming a single
   dotted row on desktop: four credentials of uneven length wrapped 3+1
   there, which reads as an accident. A fixed block reads as a spec. */

/* ── PRIMARY ACTIONS ─────────────────────────────────────── */
/* Deliberately not three identical pills. One gold panel carries the
   enquiry; the other two are glass panels on the black ground, so the
   hierarchy is visible before a single word is read. */
.actions {
  display: grid;
  gap: 12px;
  margin-top: -14px;      /* lifts the stack into the hero's foot */
  position: relative;
  z-index: 1;
}

.action {
  display: grid;
  grid-template-columns: 46px 1fr 20px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 15px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform var(--ease), border-color var(--ease),
              background-color var(--ease), box-shadow var(--ease);
}
.action-label {
  display: block;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.action-note {
  display: block;
  margin-top: 3px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--warm);
}
.action-icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--button-radius);
  background: rgba(255,222,89,0.10);
  border: 1px solid var(--line-gold);
  color: var(--yellow);
}
.action-icon svg { width: 22px; height: 22px; }
.action-chevron { color: var(--warm-faint); transition: transform var(--ease), color var(--ease); }
.action-chevron svg { width: 20px; height: 20px; }

/* The enquiry - the one action the page exists for. */
.action-primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
  min-height: 82px;
  box-shadow: 0 10px 30px rgba(255,222,89,0.16);
}
.action-primary .action-note  { color: rgba(0,0,0,0.72); }
.action-primary .action-icon  { background: rgba(0,0,0,0.90); border-color: rgba(0,0,0,0.90); color: var(--yellow); }
.action-primary .action-chevron { color: rgba(0,0,0,0.55); }

/* WhatsApp keeps its own green on the icon tile only, so it is
   recognisable at a glance without a green button competing with
   the gold one. */
.action-whatsapp .action-icon {
  background: rgba(37,211,102,0.13);
  border-color: rgba(37,211,102,0.38);
  color: #25D366;
}

@media (hover: hover) {
  .action:hover {
    transform: translateY(-2px);
    border-color: var(--line-gold-hi);
    background: var(--card-hi);
    box-shadow: 0 12px 30px rgba(0,0,0,0.55);
  }
  .action:hover .action-chevron { transform: translateX(3px); color: var(--yellow); }
  .action-primary:hover {
    background: var(--yellow-deep);
    border-color: var(--yellow-deep);
    box-shadow: 0 14px 34px rgba(255,222,89,0.24);
  }
  .action-primary:hover .action-chevron { color: rgba(0,0,0,0.75); }
}
/* Press feedback on a touch screen, where there is no hover. */
.action:active { transform: scale(0.988); }

/* ── EXPLORE ─────────────────────────────────────────────── */
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: transform var(--ease), border-color var(--ease),
              background-color var(--ease), box-shadow var(--ease);
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    border-color: var(--line-gold-hi);
    background: var(--card-hi);
    box-shadow: 0 14px 34px rgba(0,0,0,0.6);
  }
  .card:hover .card-title { color: var(--yellow); }
}
.card:active { transform: scale(0.992); }

.card + .card, .card + .split, .split + .card { margin-top: 12px; }
.split .card + .card { margin-top: 0; }

.card-media, .card-body, .cred-title, .cred-note { display: block; }
.card-row picture { display: block; width: 82px; }

.card-title {
  display: block;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  transition: color var(--ease);
}
.card-note {
  display: block;
  margin: 5px 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--warm);
}

/* Projects - a photograph the width of the column, with the title
   sitting on the image itself. */
.card-feature .card-media {
  position: relative;
  aspect-ratio: 1264 / 790;
  background: #0a0a0a;
}
.card-feature .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-feature .card-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.86) 100%);
}
.card-feature .card-media .card-title {
  position: absolute;
  left: 16px; right: 16px; bottom: 13px;
  z-index: 1;
  font-size: 1.24rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.card-feature .card-body { padding: 13px 16px 15px; }

/* Reviews - typographic, no photograph. The stars are the picture. */
.card-reviews { padding: 18px 16px; }
.stars {
  display: flex;
  gap: 3px;
  color: var(--yellow);
  margin-bottom: 9px;
}
.stars svg { width: 19px; height: 19px; }
.card-reviews .card-count {
  display: block;
  margin-top: 10px;
  padding-top: 11px;
  border-top: 1px solid var(--line-gold);
  font-family: var(--display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
}
.card-count strong { color: var(--yellow); font-weight: 700; }

/* Brochure - the real cover, standing like a printed document. */
.card-row {
  display: grid;
  grid-template-columns: 82px 1fr 20px;
  align-items: center;
  gap: 15px;
  padding: 14px 16px;
}
.card-row .cover {
  width: 82px;
  border-radius: 4px;               /* a printed page, not a card */
  box-shadow: 0 6px 18px rgba(0,0,0,0.65), 0 0 0 1px rgba(255,255,255,0.09);
}
.card-row .thumb {
  width: 82px; height: 82px;
  object-fit: cover;
  border-radius: var(--button-radius);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.09);
}
.card-row .action-chevron { justify-self: end; }

/* The two lightest destinations sit side by side so they read as
   secondary to everything above them. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split .card { padding: 15px 14px; display: flex; flex-direction: column; gap: 8px; }
.split .card-title { font-size: 1rem; }
.split .card-note { font-size: 1rem; }
.split .tile-icon { display: flex; color: var(--yellow); }
.split .tile-icon svg { width: 21px; height: 21px; }
/* 320px is too narrow for two columns of readable text. */
@media (max-width: 359px) {
  .split { grid-template-columns: 1fr; }
}

/* ── EXPANDABLE PANELS (reviews, credentials) ────────────── */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}
.panel + .panel { margin-top: 12px; }
.panel > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color var(--ease);
}
.panel > summary::-webkit-details-marker { display: none; }
.panel > summary::marker { content: ''; }
.panel > summary:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 3px rgba(255,222,89,0.62);
}
.panel > summary .caret {
  margin-left: auto;
  color: var(--warm-faint);
  transition: transform var(--ease), color var(--ease);
}
.panel > summary .caret svg { width: 20px; height: 20px; display: block; }
.panel[open] > summary { background: rgba(255,255,255,0.03); }
.panel[open] > summary .caret { transform: rotate(180deg); color: var(--yellow); }
@media (hover: hover) {
  .panel > summary:hover { background: rgba(255,255,255,0.045); }
  .panel > summary:hover .caret { color: var(--yellow); }
}
.panel-body { padding: 4px 16px 16px; }

/* Three clearly separated jobs: read them, find us, leave one. */
.group + .group { margin-top: 16px; }
.group-label {
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm-faint);
  margin: 0 0 9px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--button-radius);
  background: rgba(255,255,255,0.02);
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}
.chip svg { width: 17px; height: 17px; flex: none; color: var(--warm-faint); transition: color var(--ease); }
@media (hover: hover) {
  .chip:hover { border-color: var(--line-gold-hi); background: rgba(255,222,89,0.07); color: var(--yellow); }
  .chip:hover svg { color: var(--yellow); }
}
.chip:active { transform: scale(0.97); }

/* ── CREDENTIALS ─────────────────────────────────────────── */
.cred {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease);
}
.cred + .cred { margin-top: 10px; }
.cred-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--button-radius);
  background: var(--white);
  overflow: hidden;
}
.cred-mark img { width: 38px; height: auto; }
.cred-mark.glyph {
  background: rgba(255,222,89,0.09);
  border: 1px solid var(--line-gold);
  color: var(--yellow);
}
.cred-mark.glyph svg { width: 21px; height: 21px; }
.cred-title { font-family: var(--display); font-size: 0.99rem; font-weight: 600; line-height: 1.3; }
.cred-note { margin: 3px 0 0; font-size: 1rem; line-height: 1.4; color: var(--warm); }
@media (hover: hover) {
  .cred:hover { transform: translateY(-2px); border-color: var(--line-gold-hi); background: var(--card-hi); }
  .cred:hover .action-chevron { transform: translateX(3px); color: var(--yellow); }
}
.cred:active { transform: scale(0.992); }

/* ── CONTACT ROW ─────────────────────────────────────────── */
.contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 4px auto 0;
  max-width: 222px;          /* 4 x 48px + 3 x 10px */
}
@media (min-width: 480px) { .contact { max-width: 100%; } }
.icon-btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: rgba(255,255,255,0.86);
  transition: transform var(--ease), border-color var(--ease),
              background-color var(--ease), color var(--ease);
}
.icon-btn svg { width: 21px; height: 21px; }
@media (hover: hover) {
  .icon-btn:hover {
    transform: translateY(-2px);
    border-color: var(--line-gold-hi);
    background: rgba(255,222,89,0.09);
    color: var(--yellow);
  }
}
.icon-btn:active { transform: scale(0.94); }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-foot {
  margin-top: 40px;
  padding-top: 26px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
}
/* The mark, small - never the word "Bayocorp" set in a typeface. */
.site-foot .mark { height: 54px; width: auto; margin: 0 auto 12px; }
.site-foot p { margin: 0; font-size: 0.86rem; line-height: 1.6; color: var(--warm-faint); }
.site-foot .legal-name { color: var(--warm-faint); }
.site-foot .place { color: var(--warm); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  margin: 14px 0 16px;
}
.foot-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.86);
  border-radius: var(--button-radius);
  transition: color var(--ease);
}
@media (hover: hover) { .foot-links a:hover { color: var(--yellow); } }
.foot-links .sep { color: var(--line-gold-hi); align-self: center; }

/* ── LARGER SCREENS ──────────────────────────────────────── */
/* The column stays 560px. Beyond that only the hero band and the
   breathing room grow, so the page never becomes a wide list. */
@media (min-width: 700px) {
  :root { --gutter: 28px; }
  .section { padding-top: 42px; }
  .section-tight { padding-top: 16px; }
  .hero { padding-bottom: 44px; }
  .actions { margin-top: -18px; }
}
