/* =========================================================
   RVS & CO. — STYLESHEET
   Design language: ledger rule-lines + registration seals,
   grounded in the world of chartered accountancy.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Colour */
  --navy-950: #071b34;
  --navy-900: #0b2747;
  --navy-800: #123a68;
  --navy-700: #1c4d84;
  --emerald-600: #67a03a;
  --emerald-700: #52802e;
  --icon-color: #67a03a;
  --gold-500: #c9a855;
  --paper: #f6f4ee;
  --paper-line: #e7e2d3;
  --ink-900: #14213d;
  --ink-600: #4b5568;
  --ink-400: #8791a1;
  --white: #ffffff;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(11, 39, 71, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 39, 71, 0.10);
  --shadow-lg: 0 24px 56px rgba(7, 27, 52, 0.18);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  /* Layout */
  --container-w: 1180px;

  /* Type */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
button { font: inherit; background: none; border: none; }
input { font: inherit; }

::selection { background: var(--gold-500); color: var(--navy-950); }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.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; left: -999px; top: 0;
  background: var(--navy-900); color: var(--white);
  padding: var(--space-3) var(--space-5);
  z-index: 200; border-radius: 0 0 8px 0; text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

#services-preview, #about-preview, .service-card {
  scroll-margin-top: 100px;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald-700);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gold-500);
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9em 1.7em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn svg { width: 1em; height: 1em; flex-shrink: 0; }

.btn--primary { background: var(--emerald-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--emerald-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; border-color: var(--navy-800); color: var(--navy-900); }
.btn--outline:hover { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }

.btn--text { padding: 0.5em 0; color: var(--emerald-600); text-decoration: underline; text-underline-offset: 3px; }
.btn--text:hover { color: var(--emerald-700); }

.btn--pill { background: var(--emerald-600); color: var(--white); padding: 0 1.3em; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; border-radius: 0; align-self: stretch; margin-block: calc(-1 * var(--space-3)); }
.btn--pill:hover { background: var(--emerald-700); }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--navy-950); color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.utility-bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-block: var(--space-3); flex-wrap: wrap;
}
.utility-bar__contact { display: flex; align-items: center; gap: var(--space-5); }
.utility-bar__contact a { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.utility-bar__contact a:hover { color: var(--white); }
.utility-bar__contact svg { width: 14px; height: 14px; color: var(--icon-color); }
.utility-bar__cta { display: flex; align-items: center; gap: var(--space-4); align-self: stretch; }
.utility-bar__question { display: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header--scrolled { box-shadow: var(--shadow-md); border-bottom-color: var(--paper-line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-3); gap: var(--space-4);
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo__img { display: block; height: 50px; width: auto; }
.logo--footer .logo__img {
  height: 40px; background: var(--white);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm);
}

.nav__list { display: flex; align-items: center; gap: var(--space-7); }
.nav__link {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; text-transform: uppercase;
  color: var(--ink-600); text-decoration: none; padding: var(--space-2) 0; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--emerald-600); transform: scaleX(0); transition: transform 0.2s ease;
}
.nav__link:hover { color: var(--navy-900); }
.nav__link.is-active { color: var(--emerald-600); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav__item--has-submenu { position: relative; }
.nav__submenu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 160px; background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); padding: var(--space-2);
  opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav__item--has-submenu:hover .nav__submenu,
.nav__item--has-submenu:focus-within .nav__submenu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav__submenu li + li { margin-top: 2px; }
.nav__submenu a {
  display: block; padding: var(--space-2) var(--space-3); border-radius: 6px;
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm);
  color: var(--ink-600); text-decoration: none; white-space: nowrap;
}
.nav__submenu a:hover { background: var(--paper); color: var(--navy-900); }
.nav__submenu a.is-active { color: var(--emerald-600); background: var(--paper); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin-inline: auto; background: var(--icon-color); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open span:nth-child(2) { opacity: 0; }
.nav-toggle--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  aspect-ratio: 21 / 9;
}
.hero__video-bg { position: absolute; inset: 0; z-index: 0; }
.hero__video-bg video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Credentials strip ---------- */
.credentials { background: var(--navy-900); padding-block: var(--space-6); }
.credentials__inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.credential { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: var(--text-sm); }
.credential svg { width: 28px; height: 28px; color: var(--icon-color); }

/* ---------- Services ---------- */
.services { padding-block: var(--space-9); }
.section-heading { max-width: 640px; margin-inline: auto; text-align: center; margin-bottom: var(--space-8); }
.section-heading h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.5rem);
  color: var(--navy-950); letter-spacing: -0.01em;
  margin: var(--space-3) 0 var(--space-3);
}
.section-heading__lead { color: var(--ink-600); font-size: var(--text-md); }

.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-card {
  background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  padding: var(--space-6); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald-600); }
.service-card__seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); color: var(--icon-color); border: 1.5px solid var(--paper-line);
  margin-bottom: var(--space-5); transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.service-card:hover .service-card__seal { background: var(--navy-900); color: var(--icon-color); border-color: var(--navy-900); }
.service-card__seal svg { width: 24px; height: 24px; }
.service-card h3 { font-family: var(--font-display); font-size: var(--text-md); font-weight: 700; color: var(--navy-950); margin-bottom: var(--space-2); }
.service-card p { color: var(--ink-600); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.service-card__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--emerald-600); text-decoration: none;
}
.service-card__link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.service-card__link:hover svg { transform: translateX(3px); }
.services__more { text-align: center; margin-top: var(--space-8); }

/* ---------- Clientele ---------- */
.clientele-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.clientele-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-4);
  background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  padding: var(--space-6); transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.clientele-tile:hover { border-color: var(--emerald-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.clientele-tile__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--paper-line);
  display: flex; align-items: center; justify-content: center; color: var(--icon-color); flex-shrink: 0;
}
.clientele-tile__icon svg { width: 26px; height: 26px; }
.clientele-tile span { font-family: var(--font-display); font-weight: 700; color: var(--navy-950); font-size: var(--text-sm); }
a.clientele-tile { text-decoration: none; }
.clientele-tile__domain { font-family: var(--font-body); font-weight: 500; color: var(--ink-400); font-size: var(--text-xs); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.gallery-item {
  position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--paper-line);
  border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 370 / 247;
  background: var(--paper); cursor: pointer; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); color: var(--paper-line);
}
.gallery-item img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }

.modal__dialog--image { background: transparent; box-shadow: none; max-width: 900px; display: flex; align-items: center; justify-content: center; }
.modal__dialog--image img { max-width: 100%; max-height: 80vh; border-radius: var(--radius-sm); display: block; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.gallery-nav:hover { background: rgba(255, 255, 255, 0.24); }
.gallery-nav svg { width: 20px; height: 20px; }
.gallery-nav--prev { left: -60px; }
.gallery-nav--next { right: -60px; }

/* ---------- About ---------- */
.about { background: var(--paper); padding-block: var(--space-9); }
.about__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-9); align-items: start; }
.about__inner--full { grid-template-columns: 1fr; }

.about__visual { display: flex; justify-content: center; }
.seal { position: relative; width: 280px; height: 280px; display: flex; align-items: center; justify-content: center; }
.seal__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--navy-900); }
.seal__ring--dashed { inset: 18px; border: 2px dashed var(--gold-500); animation: spin 40s linear infinite; }
.seal__core {
  width: 70%; height: 70%; border-radius: 50%; background: var(--navy-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-2); color: var(--white); text-align: center;
}
.seal__mark { font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); color: var(--gold-500); }
.seal__est { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.75); }
.seal__chip {
  position: absolute; background: var(--white); border: 1px solid var(--paper-line); border-radius: 999px;
  padding: var(--space-2) var(--space-4); font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xs); color: var(--navy-900); box-shadow: var(--shadow-sm); white-space: nowrap;
}
.seal__chip--top { top: 0; right: -10px; }
.seal__chip--bottom { bottom: 6px; left: -16px; }

@keyframes spin { to { transform: rotate(360deg); } }

.about__content h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.25rem);
  color: var(--navy-950); letter-spacing: -0.01em;
  margin: var(--space-3) 0 var(--space-5);
}
.about__content p { color: var(--ink-600); margin-bottom: var(--space-4); }
.about__subhead { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); color: var(--navy-950); margin: var(--space-5) 0 var(--space-3); }
.about__bullets { list-style: disc; padding-left: var(--space-5); margin: var(--space-4) 0 var(--space-5); }
.about__bullets li { color: var(--ink-600); margin-bottom: var(--space-2); }
.about__content .btn { margin-top: var(--space-3); }

.principles { display: flex; flex-direction: column; gap: var(--space-3); margin: var(--space-5) 0; }
.principles li {
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-display); font-weight: 700; color: var(--navy-950); font-size: var(--text-sm);
}
.principles__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--navy-900); color: var(--gold-500); font-size: var(--text-xs);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.78); }
.site-footer .container { max-width: none; }

.footer__contact-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-7);
  padding-block: var(--space-7); border-bottom: 1px solid var(--navy-800);
}
.footer__contact-item { display: inline-flex; align-items: center; gap: var(--space-4); text-decoration: none; color: var(--white); font-weight: 600; }
.footer__contact-item:hover { color: var(--gold-500); }
.footer__contact-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--emerald-600); color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.footer__contact-icon svg { width: 20px; height: 20px; }

.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr; gap: var(--space-7);
  padding-block: var(--space-8); border-bottom: 1px solid var(--navy-800);
}
.footer__col--brand p { font-size: var(--text-sm); line-height: 1.7; max-width: 34ch; }
.footer__col--brand .footer__principles { margin-top: var(--space-4); }

.footer__links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__links a { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); text-decoration: none; }
.footer__links a:hover { color: var(--gold-500); }
.footer__caret { width: 12px; height: 12px; flex-shrink: 0; color: var(--icon-color); }

.footer__signup-label { font-family: var(--font-display); font-weight: 700; color: var(--white); margin-bottom: var(--space-4); }
.newsletter-form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.newsletter-form input {
  width: 100%; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--navy-700);
  background: var(--white); color: var(--ink-900); font-family: var(--font-body); font-size: var(--text-sm);
}
.newsletter-form button {
  background: var(--emerald-600); color: var(--white); border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-6); font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; transition: background-color 0.2s ease;
}
.newsletter-form button:hover { background: var(--emerald-700); }
.newsletter-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.newsletter-form__status { font-size: var(--text-xs); margin: 0; min-height: 1em; color: var(--gold-500); }
.newsletter-form__status--error { color: #e88a8a; }

.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: var(--space-3); padding-block: var(--space-5); font-size: var(--text-xs); color: rgba(255, 255, 255, 0.55);
}
.footer__bottom-inner a { text-decoration: none; }
.footer__bottom-inner a:hover { color: var(--gold-500); }

/* ---------- Video modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: var(--space-5);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal--open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(7, 27, 52, 0.86); }
.modal__dialog {
  position: relative; width: 100%; max-width: 860px; background: #000;
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lg);
  transform: scale(0.96); transition: transform 0.25s ease;
}
.modal--open .modal__dialog { transform: scale(1); }
.modal__video { position: relative; aspect-ratio: 16 / 9; }
.modal__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal__close {
  position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: var(--icon-color);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: rgba(255, 255, 255, 0.24); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  padding-block: var(--space-8) var(--space-7);
}
.page-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(rgba(201, 168, 85, 0.08) 0 1px, transparent 1px 34px);
}
.page-header__inner { position: relative; text-align: center; }
.page-header .eyebrow { justify-content: center; color: var(--gold-500); }
.page-header .eyebrow::before { background: var(--gold-500); }
.page-header h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--white);
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); letter-spacing: -0.01em;
  margin: var(--space-3) 0 var(--space-4);
}
.breadcrumb {
  display: flex; justify-content: center; align-items: center; gap: var(--space-2);
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 600; color: rgba(255, 255, 255, 0.55);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb [aria-current="page"] { color: var(--gold-500); }

/* ---------- Page CTA band ---------- */
.page-cta { background: var(--navy-900); padding-block: var(--space-7); }
.page-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.page-cta .eyebrow { color: var(--gold-500); }
.page-cta .eyebrow::before { background: var(--gold-500); }
.page-cta h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  font-size: var(--text-lg); max-width: 36ch; margin-top: var(--space-2);
}

/* ---------- Team page ---------- */
.team-list { display: flex; flex-direction: column; }
.team-row {
  display: grid; grid-template-columns: 220px 1fr; gap: var(--space-7); align-items: start;
  padding-block: var(--space-7); border-bottom: 1px solid var(--paper-line);
}
.team-row:first-child { padding-top: 0; }
.team-row:last-child { border-bottom: none; padding-bottom: 0; }
.team-row__photo {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4 / 4.5;
  border: 1px solid var(--paper-line); box-shadow: var(--shadow-sm);
}
.team-row__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-row__role {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--emerald-600); margin-bottom: var(--space-2);
}
.team-row__name { font-family: var(--font-display); font-weight: 700; color: var(--navy-950); font-size: var(--text-xl); margin-bottom: var(--space-3); }
.team-row__bio { color: var(--ink-600); margin-top: var(--space-3); max-width: 68ch; }

/* ---------- Service grid (services page) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.service-grid__card {
  background: var(--white); border: 1px solid var(--paper-line); border-radius: var(--radius-md);
  padding: var(--space-6); display: flex; flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.service-grid__card:hover { border-color: var(--emerald-600); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-grid__icon {
  width: 60px; height: 60px; border-radius: 50%; background: var(--navy-900); color: var(--icon-color);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: var(--space-5);
}
.service-grid__icon svg { width: 28px; height: 28px; }
.service-grid__card h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); color: var(--navy-950); margin-bottom: var(--space-3); }
.service-grid__card > p { color: var(--ink-600); font-size: var(--text-sm); margin-bottom: var(--space-4); }
.service-grid__list { display: flex; flex-direction: column; gap: var(--space-2); margin-top: auto; padding-top: var(--space-4); border-top: 1px dashed var(--paper-line); }
.service-grid__list li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-xs); color: var(--navy-900); font-weight: 600; }
.service-grid__list svg { width: 14px; height: 14px; color: var(--emerald-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- Contact page ---------- */
.contact-section { padding-block: var(--space-9); }
.contact-section__inner { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: var(--space-8); align-items: start; }
.contact-info h2 {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md);
  color: var(--navy-950); margin: var(--space-5) 0 var(--space-2);
}
.contact-info h2:first-child { margin-top: 0; }
.contact-info p { color: var(--ink-600); }
.contact-info a { color: var(--navy-950); font-weight: 600; text-decoration: none; }
.contact-info a:hover { color: var(--emerald-600); }

.contact-form-card { padding: 0; }
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: stretch; }
.contact-form__fields { display: flex; flex-direction: column; }
.contact-form__field { margin-bottom: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.contact-form__field--message { flex: 1; }
.contact-form__field label {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--navy-900);
}
.contact-form__required { color: #c0392b; }
.contact-form__field input, .contact-form__field textarea {
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); border: 1px solid var(--paper-line);
  background: var(--paper); color: var(--ink-900); font-family: var(--font-body); font-size: var(--text-sm); resize: vertical;
}
.contact-form__field textarea { flex: 1; min-height: 210px; height: 100%; }
.contact-form__field input:focus, .contact-form__field textarea:focus {
  outline: none; border-color: var(--emerald-600); background: var(--white); box-shadow: 0 0 0 3px rgba(103, 160, 58, 0.15);
}
.contact-form__status { font-size: var(--text-xs); margin-top: var(--space-3); min-height: 1em; color: var(--emerald-700); }
.contact-form__status--error { color: #c0392b; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .utility-bar__question { display: inline; }
}

@media (max-width: 880px) {
  .hero { aspect-ratio: 4 / 5; }
  .eyebrow { justify-content: center; }

  .about__inner { grid-template-columns: 1fr; }
  .about__visual { order: -1; margin-bottom: var(--space-4); }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .clientele-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-nav--prev { left: 8px; }
  .gallery-nav--next { right: 8px; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .footer__contact-row { justify-content: center; text-align: center; gap: var(--space-5); }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  }
  .nav--open { max-height: 420px; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-2) var(--space-5) var(--space-5); }
  .nav__link { padding: var(--space-3) 0; border-bottom: 1px solid var(--paper-line); }
  .nav__link::after { display: none; }

  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: 0 0 var(--space-2) var(--space-4);
  }
  .nav__submenu a { color: var(--ink-400); padding: var(--space-2) 0; }

  .team-row { grid-template-columns: 1fr; text-align: center; }
  .team-row__photo { width: 160px; margin-inline: auto; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-section__inner { grid-template-columns: 1fr; }
  .page-cta__inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .credentials__inner { grid-template-columns: repeat(2, 1fr); }
  .utility-bar__contact { gap: var(--space-3); }
}

@media (max-width: 560px) {
  .container { padding-inline: var(--space-4); }
  .services__grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .clientele-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__contact-row { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .seal { width: 220px; height: 220px; }
  .seal__mark { font-size: var(--text-xl); }
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__field--message textarea { min-height: 160px; }
}
