/* ==========================================================================
   BeYoNova Insurance Agency
   Blue is the dominant colour. Gold appears only as an accent: hairlines,
   underlines, small marks, and the single high-emphasis button on dark
   backgrounds. No gold fills, no metallic gradients.
   ========================================================================== */

:root {
  /* Brand */
  --blue-primary:   #0A2F6B;
  --blue-secondary: #123F8A;
  --blue-deep:      #081F45;
  --blue-tint:      #EDF2FA;

  --gold-primary:   #C79A3A;
  --gold-soft:      #E3C46E;

  /* Neutrals */
  --white:   #FFFFFF;
  --surface: #F7F9FC;
  --text:    #4A5568;
  --heading: #10203A;
  --border:  #D9E1EC;

  --error:   #B3261E;
  --error-bg:#FDECEA;
  --success: #1B6B4A;
  --success-bg:#EAF6F0;

  /* Type */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  /* Rhythm */
  --wrap:       1160px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);
  --section-y:  clamp(3.5rem, 7vw, 6rem);
  --radius:     14px;
  --radius-sm:  9px;

  --shadow-sm: 0 1px 2px rgba(8, 31, 69, .06), 0 2px 8px rgba(8, 31, 69, .05);
  --shadow-md: 0 4px 12px rgba(8, 31, 69, .07), 0 14px 34px rgba(8, 31, 69, .09);
  --shadow-lg: 0 10px 24px rgba(8, 31, 69, .10), 0 28px 60px rgba(8, 31, 69, .14);

  --header-h: 86px;
}

/* --------------------------------------------------------- reset & base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue-secondary); }

img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

address { font-style: normal; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: .75rem 1.25rem;
  background: var(--blue-primary);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .icon--fill { fill: currentColor; stroke: none; }

/* --------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__mark {
  width: 68px;
  height: 68px;
  border-radius: 10px;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.75rem);
}

.site-nav__link {
  position: relative;
  display: inline-block;
  padding: .45rem 0;
  color: var(--blue-primary);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}
/* Gold underline is the accent — it appears on hover and on the current page. */
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { font-weight: 600; }

.site-nav__aside {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.lang-switch__link {
  padding: .2rem .15rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.lang-switch__link:hover { color: var(--blue-primary); }
.lang-switch__link.is-active {
  color: var(--blue-primary);
  border-bottom-color: var(--gold-primary);
}
.lang-switch__sep { color: var(--border); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .55rem .8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--blue-primary);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after  { top: 6px; }

/* -------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 46px;
  padding: .7rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .97rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--primary {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--white);
}
.btn--primary:hover { background: var(--blue-secondary); border-color: var(--blue-secondary); }

.btn--ghost {
  background: transparent;
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}
.btn--ghost:hover { background: var(--blue-tint); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .55);
  color: var(--white);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

/* The one place gold carries a fill: a single button on a deep blue field. */
.btn--gold {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--blue-deep);
}
.btn--gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: .9rem; }
.btn--lg { min-height: 54px; padding: .9rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--blue-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold-primary);
  padding-bottom: 2px;
}
.link-arrow::after { content: '→'; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

.link-inline { color: var(--blue-secondary); text-decoration-color: var(--gold-soft); text-underline-offset: 3px; }

/* ------------------------------------------------------------- sections */

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
/* Two white sections in a row would otherwise stack their full padding. */
.section + .section--split { padding-top: 0; }
.section--center { text-align: center; }

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--blue-secondary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--gold-soft); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__title {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
}
.section__intro { font-size: 1.06rem; }
.section__foot { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  color: var(--heading);
}

/* Applied to a child of .wrap, never combined with it: combining the two makes
   the whole block a centred 44rem column, which knocks the body copy out of
   alignment with every other section on the page. */
.prose { max-width: 44rem; }
.prose--center { margin-inline: auto; }

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-office { margin: 0; }
.about-office__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.about-office__pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-office__caption {
  margin-top: 1.1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--gold-primary);
  font-size: .93rem;
  line-height: 1.6;
}
.about-office__title {
  display: block;
  margin-bottom: .2rem;
  color: var(--heading);
  font-weight: 600;
}

/* ----------------------------------------------------------------- hero */

.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 85% 0%, var(--blue-secondary) 0%, transparent 55%),
    linear-gradient(160deg, var(--blue-primary) 0%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, .86);
  overflow: hidden;
}
/* Single gold hairline along the bottom edge — the accent, nothing more. */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary) 35%, var(--gold-soft) 55%, transparent);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero__title {
  margin: 0 0 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.hero__subtitle {
  max-width: 34rem;
  margin-bottom: 2rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero__note {
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, .62);
  font-size: .85rem;
  letter-spacing: .05em;
}

.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 0;
  padding-bottom: 2.5rem;
}
.hero__portrait { margin: 0; }
.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.hero__portrait--back {
  transform: translateY(-2rem);
  z-index: 1;
}
.hero__portrait--front {
  margin-left: -1.5rem;
  z-index: 2;
  outline: 3px solid rgba(227, 196, 110, .5);
  outline-offset: 0;
  border-radius: var(--radius);
}
.hero__caption {
  grid-column: 1 / -1;
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, .6);
  font-size: .82rem;
  letter-spacing: .04em;
  text-align: center;
}

/* ------------------------------------------------------------ page head */

.page-head {
  background: linear-gradient(160deg, var(--blue-primary) 0%, var(--blue-deep) 100%);
  color: rgba(255, 255, 255, .82);
  padding-block: clamp(3rem, 6vw, 4.75rem);
  border-bottom: 3px solid var(--gold-primary);
}
.page-head__title {
  max-width: 22ch;
  margin: 0 0 .75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 600;
}
.page-head__intro { max-width: 52rem; font-size: 1.08rem; margin: 0; }
.page-head__meta { margin: 0; color: rgba(255, 255, 255, .62); font-size: .9rem; }
.page-head--legal .page-head__title { max-width: none; }

/* ---------------------------------------------------------------- cards */

/* Explicit column counts rather than auto-fit. With four cards, auto-fit lands
   on three columns around 1024px and leaves a single orphan on a second row. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue-primary);
}
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__title { margin-bottom: .45rem; font-size: 1.12rem; }
.service-card__text { margin: 0; font-size: .95rem; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
/* The About page shows only two of these, which should not stretch full width. */
.trust-grid--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 60rem; }
.trust-card { padding-top: 1.25rem; border-top: 3px solid var(--gold-primary); }
.trust-card__title { margin-bottom: .4rem; font-size: 1.05rem; }
.trust-card__text { margin: 0; font-size: .95rem; }

.value-card {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.value-card__num {
  display: block;
  margin-bottom: .6rem;
  color: var(--gold-primary);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}
.value-card__title { margin-bottom: .35rem; font-size: 1.05rem; }
.value-card__text { margin: 0; font-size: .95rem; }

/* --------------------------------------------------------------- split */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.split__list { display: grid; gap: 1.5rem; }
.split__list li { padding-left: 1.25rem; border-left: 2px solid var(--gold-primary); }
.split__list h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.split__list p { margin: 0; font-size: .95rem; }

/* ------------------------------------------------------------- coverage */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.coverage-card {
  padding: 1.85rem 1.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.coverage-card__head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.coverage-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--blue-primary);
  color: var(--white);
}
.coverage-card__icon .icon { width: 24px; height: 24px; }
.coverage-card__title { margin-bottom: .3rem; font-size: 1.14rem; }
.coverage-card__text { margin: 0; font-size: .93rem; }

.coverage-list { display: grid; gap: .6rem; }
.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .96rem;
  color: var(--heading);
}
.coverage-list__tick { flex: 0 0 auto; color: var(--gold-primary); line-height: 0; margin-top: .25rem; }
.coverage-list__tick .icon { width: 16px; height: 16px; stroke-width: 2.4; }

.callout {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.5rem 1.65rem;
  background: var(--blue-tint);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-sm);
}
.callout__title { margin-bottom: .4rem; font-size: 1.02rem; }
.callout p { margin: 0; font-size: .93rem; }

/* ------------------------------------------------------------------ team */

.team-lead {
  max-width: 52rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--heading);
  padding-left: 1.15rem;
  border-left: 3px solid var(--gold-primary);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 900px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-card__media { position: relative; background: var(--blue-tint); }
.team-card__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.team-card__body { padding: 1.5rem 1.5rem 1.65rem; }
.team-card__name {
  margin-bottom: .15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.team-card__role {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gold-primary);
  display: inline-block;
  color: var(--blue-secondary);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.team-card__links { display: grid; gap: .55rem; }
.team-card__links li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; }
.team-card__icon { color: var(--blue-primary); line-height: 0; }
.team-card__icon .icon { width: 18px; height: 18px; }

/* -------------------------------------------------------------- cta band */

.cta-band {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-primary) 100%);
  color: rgba(255, 255, 255, .85);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.cta-band__title {
  margin: 0 0 .4rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}
.cta-band__text { max-width: 40rem; margin: 0; font-size: .98rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------------------------------------------------------------- legal */

.legal { max-width: 46rem; }
.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.16rem;
}
.legal .lead { margin-bottom: 1.5rem; }
.legal__highlight {
  padding: 1.1rem 1.25rem;
  background: var(--blue-tint);
  border-left: 4px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  color: var(--heading);
  font-weight: 500;
}

/* ----------------------------------------------------------- contact page */

/* The joint portrait leads the page, with the ways to reach the agency beside
   it. The image is framed by the layout rather than dropped into a card. */
.contact-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-portrait { margin: 0; position: relative; }
.contact-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /* Faces sit in the upper third, so keep them in frame on shorter crops. */
  object-position: center 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
/* No decorative rule over the photograph: an overlay line reads as an artifact
   across the subjects rather than as an accent. The gold on this page stays in
   the page-head underline and the section rules. */
.contact-portrait__caption {
  margin-top: 1rem;
  color: var(--text);
  font-size: .9rem;
  text-align: center;
}

.contact-form-section { max-width: 46rem; }


.contact-details__list { display: grid; gap: 1.5rem; }
.contact-details__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-details__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue-primary);
}
.contact-details__icon .icon { width: 21px; height: 21px; }
.contact-details__label {
  margin: 0 0 .1rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--blue-secondary);
}
.contact-details__value {
  margin: 0;
  color: var(--heading);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
}
a.contact-details__value:hover { color: var(--blue-primary); text-decoration: underline; }

.contact-details__list { column-gap: 2rem; }
.contact-details__value-sub { color: var(--text); font-weight: 400; font-size: .95rem; }
.contact-details__value--email { word-break: break-word; }

.contact-details__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
}
.contact-details__cta .btn { flex: 1 1 12rem; }
.contact-details__social { margin-top: 1.5rem; font-size: .93rem; }

/* ----------------------------------------------------------------- forms */

.form-title { font-family: var(--font-display); font-size: 1.55rem; margin-bottom: .5rem; }
.form-note {
  padding: .9rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
}
.form-note--small { background: none; border: 0; padding: 0; color: var(--text); }

.form { margin-top: 1.5rem; display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: .35rem; }
.field label,
.field legend {
  color: var(--heading);
  font-size: .9rem;
  font-weight: 600;
}
.field--fieldset { border: 0; padding: 0; margin: 0; }
.field--fieldset legend { padding: 0; margin-bottom: .55rem; }
.req { color: var(--gold-primary); }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--heading);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2F6B' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue-secondary);
  box-shadow: 0 0 0 3px rgba(18, 63, 138, .14);
  outline: none;
}

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--error); }
.field__error { margin: 0; color: var(--error); font-size: .86rem; font-weight: 500; }
.field__hint  { margin: 0; color: var(--text); font-size: .86rem; }

.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 400;
  cursor: pointer;
}
.radio:has(input:checked) {
  border-color: var(--blue-primary);
  background: var(--blue-tint);
  color: var(--blue-primary);
  font-weight: 500;
}
.radio input { accent-color: var(--blue-primary); width: 17px; height: 17px; }

.consent {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue-primary);
  border-radius: var(--radius-sm);
}
.consent__label { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.consent__label input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: .15rem;
  accent-color: var(--blue-primary);
}
.consent__text { font-size: .85rem; line-height: 1.55; font-weight: 400; color: var(--text); }
.consent__text a { color: var(--blue-secondary); }
.consent__note { margin: .6rem 0 0 2.75rem; font-size: .82rem; font-style: italic; }

.alert {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
}
.alert p:last-child { margin: 0; }
.alert__title { margin-bottom: .35rem; font-size: 1.1rem; }
.alert--error   { background: var(--error-bg);   border-color: var(--error);   color: var(--error); }
.alert--success { background: var(--success-bg); border-color: var(--success); }
.alert--success .alert__title { color: var(--success); }

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: 2rem;
  background: var(--blue-deep);
  color: rgba(255, 255, 255, .72);
  font-size: .93rem;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
/* The logo artwork sits on white, so it gets its own light tile on the dark footer. */
.site-footer__logo {
  display: inline-block;
  padding: 6px;
  background: var(--white);
  border-radius: 12px;
  line-height: 0;
}
.site-footer__logo img { width: 68px; height: 68px; border-radius: 7px; }
.site-footer__name {
  margin: 1rem 0 .35rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.site-footer__tagline { max-width: 26rem; font-size: .9rem; }

.site-footer__heading {
  margin: 0 0 .9rem;
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-footer__col ul { display: grid; gap: .55rem; }
.site-footer__contact address { line-height: 1.55; }
/* The email address is a single long token. Without this it sets a floor on the
   column width and the whole footer grid overflows the viewport. */
.site-footer__contact { overflow-wrap: anywhere; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1rem;
  font-weight: 500;
}
.social-link .icon { width: 20px; height: 20px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.lang-switch--footer .lang-switch__link { color: rgba(255, 255, 255, .72); }
.lang-switch--footer .lang-switch__link.is-active {
  color: var(--white);
  border-bottom-color: var(--gold-primary);
}
.lang-switch--footer .lang-switch__sep { color: rgba(255, 255, 255, .3); }

.site-footer__legal { margin: 0; font-size: .86rem; }
.site-footer__disclaimer {
  margin: 1.25rem 0 0;
  color: rgba(255, 255, 255, .5);
  font-size: .8rem;
  line-height: 1.6;
}

/* -------------------------------------------------- floating WhatsApp button */

/* WhatsApp brand green. Kept as WhatsApp's own colour rather than restyled in
   BeYoNova blue, so the button stays instantly recognizable; the BeYoNova
   treatment comes from the radius, shadow and focus ring around it. */
:root {
  --wa-green:       #25D366;
  --wa-green-dark:  #1DA851;
  --fab-size:       58px;
  --fab-offset:     22px;
}

.wa-fab {
  position: fixed;
  right: calc(var(--fab-offset) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--fab-offset) + env(safe-area-inset-bottom, 0px));
  z-index: 90;

  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: var(--fab-size);
  padding-inline: 1.15rem;
  border-radius: 999px;

  background: var(--wa-green);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 6px 16px rgba(8, 31, 69, .22), 0 12px 32px rgba(8, 31, 69, .18);
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.wa-fab:hover {
  background: var(--wa-green-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(8, 31, 69, .26), 0 16px 40px rgba(8, 31, 69, .22);
}
.wa-fab:active { transform: none; }
.wa-fab:focus-visible {
  outline: 3px solid var(--blue-primary);
  outline-offset: 3px;
}

/* Set by main.js while focus is inside a form, so the button never sits over a
   field or a submit button that someone is actually using. */
.wa-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.9);
}

.wa-fab__icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  fill: currentColor;
}

/* Keep the footer's last rows clear of the button. Above 1280px the content
   column is narrow enough that the button sits beside it, not over it. */
@media (max-width: 1280px) {
  .site-footer { padding-bottom: calc(3.5rem + var(--fab-size) + env(safe-area-inset-bottom, 0px)); }
}

/* Icon-only below the mobile breakpoint: a pill wide enough to read as a label
   would sit over a meaningful slice of a 390px viewport. */
@media (max-width: 620px) {
  :root { --fab-size: 54px; --fab-offset: 16px; }
  .wa-fab { width: var(--fab-size); padding-inline: 0; justify-content: center; gap: 0; }
  .wa-fab__text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media print { .wa-fab { display: none; } }

/* ------------------------------------------------------------ responsive */


/* Four-up card rows become two-up well before they would wrap to an orphan. */
@media (max-width: 1100px) {
  .card-grid,
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .contact-intro__grid { grid-template-columns: minmax(0, 1fr); }
  .contact-portrait { max-width: 460px; margin-inline: auto; }
  .about-intro { grid-template-columns: minmax(0, 1fr); }
  .about-office { max-width: 34rem; }
  .coverage-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--border); }
  .site-nav__link { display: block; padding: .95rem 0; font-size: 1.02rem; }
  .site-nav__link::after { display: none; }
  .site-nav__link.is-active { color: var(--blue-secondary); }

  .site-nav__aside {
    flex-direction: column;
    align-items: stretch;
    gap: 1.1rem;
    margin-top: 1.35rem;
  }
  .lang-switch { justify-content: center; font-size: .95rem; gap: .5rem; }
  .site-nav__aside .btn { width: 100%; }

  .brand__mark { width: 56px; height: 56px; }

  .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 460px; margin-inline: auto; padding-bottom: 1rem; }
  .hero__portrait--back { transform: translateY(-1rem); }

  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .card-grid,
  .trust-grid,
  .team-grid,
  .trust-grid--pair { grid-template-columns: minmax(0, 1fr); }

  /* A 4:5 portrait is too tall on a phone; crop to 4:3 and hold the faces. */
  .contact-portrait img { aspect-ratio: 4 / 3; object-position: center 22%; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn { flex: 1 1 100%; }
  .team-card__media img { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .btn:hover, .service-card:hover, .team-card:hover, .wa-fab:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, .skip-link { display: none; }
  body { color: #000; }
}
