/* Foreign Immigration Services — base stylesheet
   No external font or asset dependencies. System font stacks only. */

:root {
  --color-green: #0D3D25;
  --color-gold: #C3963B;
  --color-gold-text: #816327; /* darkened gold: meets 4.5:1+ text/focus contrast on white/off-white */
  --color-offwhite: #F7F4EF;
  --color-charcoal: #242824;
  --color-grey: #626862;
  --color-white: #FFFFFF;
  --color-green-tint: #EEF2EE; /* faint green wash for layered section backgrounds */

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1120px;
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-offwhite);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-green);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
  color: var(--color-green);
  text-decoration-color: var(--color-gold);
  text-underline-offset: 3px;
}

a:hover { color: var(--color-gold-text); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
label:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

/* On dark backgrounds a green outline would not be visible; use off-white instead */
.site-footer__legal-panel a:focus-visible,
.urgent-banner a:focus-visible,
.btn-primary:focus-visible,
.accreditation-strip a:focus-visible,
.feature-split--dark a:focus-visible {
  outline-color: var(--color-offwhite);
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-green);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Decorative icon wrapper */

.icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--color-green);
}

.icon--24 { width: 24px; height: 24px; }
.icon--32 { width: 32px; height: 32px; }
.icon--40 { width: 40px; height: 40px; }
.icon--44 { width: 44px; height: 44px; }
.icon--52 { width: 52px; height: 52px; }
.icon--56 { width: 56px; height: 56px; }
.icon--140 { width: 140px; height: 140px; }
.icon--220 { width: 220px; height: 220px; }

.icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Header */

.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(13, 61, 37, 0.12);
  position: relative;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.site-header__left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header__credential {
  display: none;
}

@media (min-width: 900px) {
  .site-header__credential {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-grey);
    border-left: 1px solid rgba(13, 61, 37, 0.15);
    margin-left: 1.1rem;
    padding-left: 1.1rem;
    line-height: 1.3;
    white-space: nowrap;
  }

  .site-header__credential strong {
    color: var(--color-green);
    font-weight: 600;
  }
}

.site-header__logo {
  height: 84px;
  width: auto;
  transition: opacity 0.15s ease;
}

@media (max-width: 600px) {
  .site-header__logo {
    height: 60px;
  }
}

.site-header__brand:hover .site-header__logo { opacity: 0.82; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-charcoal);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-green);
  border-bottom-color: var(--color-gold-text);
}

.nav-toggle,
.nav-toggle__label { display: none; }

/* Urgent assistance banner */

.urgent-banner {
  background: var(--color-charcoal);
  color: var(--color-offwhite);
  border-bottom: 1px solid var(--color-gold);
}

.urgent-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 0.7rem 1.5rem;
  text-align: center;
}

.urgent-banner__text {
  margin: 0;
  font-size: 0.92rem;
}

.urgent-banner__text strong {
  color: var(--color-white);
  font-weight: 600;
}

.urgent-banner__cta {
  flex-shrink: 0;
  color: var(--color-charcoal);
  background: var(--color-gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.urgent-banner__cta:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.98rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-primary:hover {
  background: #082a19;
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}

.btn-secondary:hover {
  border-color: var(--color-gold-text);
  color: var(--color-green);
}

.btn-on-dark {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

.btn-on-dark:hover {
  background: var(--color-white);
  color: var(--color-charcoal);
}

/* Hero */

.hero {
  padding: clamp(2.5rem, 1.7rem + 3.2vw, 5.5rem) 0 clamp(2.25rem, 1.6rem + 2.6vw, 4.5rem);
  border-bottom: 2px solid rgba(13, 61, 37, 0.12);
  background: linear-gradient(180deg, var(--color-offwhite) 55%, var(--color-green-tint) 100%);
  overflow: hidden;
}

/* Mobile composition (base): single column, logo as a brand interlude
   between the message and the call to action. */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "eyebrow"
    "headline"
    "lede"
    "visual"
    "actions"
    "accreditation";
}

.hero__eyebrow {
  grid-area: eyebrow;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.82rem);
  color: var(--color-gold-text);
  font-weight: 600;
  margin-bottom: clamp(0.65rem, 0.4rem + 0.9vw, 1.25rem);
}

.hero__headline {
  grid-area: headline;
  font-size: clamp(1.85rem, 1.4rem + 3.9vw, 2.4rem);
  line-height: 1.16;
  margin-bottom: 0.45em;
}

.hero__lede {
  grid-area: lede;
  font-size: clamp(0.92rem, 0.86rem + 0.45vw, 1rem);
  line-height: 1.5;
  color: var(--color-grey);
  max-width: 42em;
  margin-bottom: clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem);
}

.hero__actions {
  grid-area: actions;
  display: flex;
  gap: clamp(0.6rem, 0.5rem + 0.4vw, 1rem);
  flex-wrap: wrap;
  margin: 0 0 clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
}

.hero__actions .btn {
  padding: clamp(0.65rem, 0.58rem + 0.3vw, 0.8rem) clamp(1.1rem, 0.9rem + 0.8vw, 1.6rem);
  font-size: clamp(0.9rem, 0.87rem + 0.15vw, 0.98rem);
}

.hero__accreditation {
  grid-area: accreditation;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.88rem);
  color: var(--color-charcoal);
  background: var(--color-white);
  border: 1px solid rgba(13, 61, 37, 0.15);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: clamp(0.5rem, 0.44rem + 0.3vw, 0.6rem) clamp(0.7rem, 0.62rem + 0.3vw, 0.9rem);
}

.hero__accreditation strong { color: var(--color-green); }

.hero__visual {
  grid-area: visual;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(0.15rem, 0.05rem + 0.4vw, 0.4rem) 0 clamp(0.9rem, 0.7rem + 0.8vw, 1.3rem);
}

.hero__logo {
  display: block;
  width: clamp(170px, 120px + 22vw, 260px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Tablet composition: the proposition (eyebrow/H1/description) stays
   full width for a comfortable reading measure, then a compact
   action/brand row places the CTA group and the logo side by side
   (tested a narrow two-column copy layout here first; it compressed
   the paragraph too much, see report), followed by the accreditation
   card. This replaces the mobile single-column stack once there's
   enough width for the action/brand row to breathe. */
@media (min-width: 640px) and (max-width: 959px) {
  .hero__grid {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "eyebrow eyebrow"
      "headline headline"
      "lede lede"
      "actions visual"
      "accreditation accreditation";
    column-gap: clamp(1.5rem, 0.5rem + 3vw, 2.5rem);
    align-items: center;
  }

  .hero__headline {
    font-size: clamp(2.375rem, 1.325rem + 2.625vw, 2.9rem);
  }

  .hero__lede {
    font-size: clamp(1rem, 0.94rem + 0.3vw, 1.08rem);
    margin-bottom: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  }

  .hero__actions {
    margin: 0;
    flex-wrap: nowrap;
  }

  .hero__actions .btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .hero__visual {
    margin: 0;
    justify-content: flex-end;
  }

  .hero__logo {
    width: clamp(225px, 154.8px + 10.97vw, 260px);
  }

  .hero__accreditation {
    margin-top: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  }
}

/* Desktop composition: two columns, logo takes the right column and
   spans the full height of the text block. */
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr clamp(270px, -490px + 79.17vw, 460px);
    grid-template-areas:
      "eyebrow visual"
      "headline visual"
      "lede visual"
      "actions visual"
      "accreditation visual";
    column-gap: clamp(1.5rem, 0.4rem + 3vw, 2.5rem);
    align-items: center;
  }

  .hero__headline {
    font-size: clamp(2.625rem, 0.125rem + 4.167vw, 3.25rem);
  }

  .hero__lede {
    font-size: clamp(1.02rem, 0.92rem + 0.4vw, 1.18rem);
  }

  .hero__actions .btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.98rem;
  }

  .hero__visual {
    margin: 0;
  }

  .hero__logo {
    width: 100%;
  }
}

/* Sections */

.section {
  padding: 3.5rem 0;
}

.section--muted {
  background: var(--color-white);
}

.section--tint {
  background: var(--color-green-tint);
}

.section__intro {
  max-width: 42em;
  margin-bottom: 2.25rem;
}

.section__intro--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card-grid--specialised,
.card-grid--3up {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--4up {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--color-white);
  border: 1px solid rgba(13, 61, 37, 0.1);
  border-top: 3px solid var(--color-green);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-top-color: var(--color-gold);
}

.card .icon {
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.5rem; }

.card p { color: var(--color-grey); margin-bottom: 0.75rem; }

.card a.card__link {
  font-size: 0.95rem;
  font-weight: 600;
}

.card--muted {
  border-top-color: var(--color-grey);
}

.card--notice {
  border-top-color: var(--color-gold);
  background: var(--color-offwhite);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-grey);
  background: rgba(98, 104, 98, 0.12);
  border-radius: var(--radius);
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}

.tag--available {
  color: var(--color-green);
  background: rgba(13, 61, 37, 0.1);
}

/* Feature split (Airport VIP homepage feature) */

.feature-split {
  background: var(--color-green);
  color: var(--color-offwhite);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.feature-split__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

@media (min-width: 901px) {
  .feature-split--photo .feature-split__grid {
    grid-template-columns: 0.88fr 1.12fr;
  }
}

.feature-split__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.feature-split__visual .icon {
  color: var(--color-offwhite);
  opacity: 0.9;
}

.feature-split .tag {
  background: var(--color-offwhite);
  color: var(--color-green);
}

.feature-split h2 { color: var(--color-white); }

.feature-split p { color: rgba(247, 244, 239, 0.85); }

.feature-split__lede {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-white);
}

/* CTA banner ("Not Sure What You Need?") */

.cta-banner {
  background: var(--color-charcoal);
  color: var(--color-offwhite);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-banner h2 { color: var(--color-white); }

.cta-banner p {
  max-width: 40em;
  margin-left: auto;
  margin-right: auto;
  color: rgba(247, 244, 239, 0.85);
}

/* Accreditation / trust section */

.accreditation-strip {
  background: var(--color-green);
  color: var(--color-offwhite);
  padding: 1.5rem 0;
}

.accreditation-strip .wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.accreditation-strip strong { color: var(--color-white); }

.trust-section {
  position: relative;
  background-image: radial-gradient(rgba(13, 61, 37, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
}

.trust-section__inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  background: var(--color-white);
  border: 1px solid rgba(13, 61, 37, 0.12);
  border-radius: var(--radius);
  padding: 2rem;
}

.portal-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem 2.25rem;
  margin-top: 0.5rem;
}

.portal-preview-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  color: var(--color-green);
}

.trust-section h2 { margin-bottom: 0.35rem; }

.trust-section p { margin-bottom: 0; color: var(--color-grey); }

/* Prose pages (about, legal, etc.) */

.prose {
  max-width: 42em;
}

.prose > .icon {
  margin-bottom: 1rem;
}

.service-lede {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-grey);
}

.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 1.75rem; }

.prose h2 { margin-top: 2em; }

.prose ul { padding-left: 1.25em; }

.notice-box {
  border: 1px solid rgba(195, 150, 59, 0.5);
  background: var(--color-white);
  border-left: 4px solid var(--color-gold);
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  color: var(--color-charcoal);
}

.notice-box p:last-child { margin-bottom: 0; }

/* Restrained, in-flow context note — used instead of heavy disclaimer boxes */

.context-note {
  border-left: 2px solid var(--color-gold);
  padding-left: 1.1rem;
  margin: 1.75rem 0;
  color: var(--color-grey);
  font-size: 0.97rem;
}

.context-note p:last-child { margin-bottom: 0; }

/* Numbered process steps */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-list li {
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.5rem;
  counter-increment: step;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.95rem;
}

.step-list h3 { margin-bottom: 0.3rem; }
.step-list p { margin-bottom: 0; color: var(--color-grey); }

/* Contextual CTA panel at the end of service pages */

.service-cta {
  background: var(--color-green-tint);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2.5rem;
}

.service-cta h2 { margin: 0 0 0.5rem; }
.service-cta p { color: var(--color-grey); }
.service-cta p:last-child { margin-bottom: 0; }

/* Restrained premium callout for the Extensions & Compliance page's
   dominant commercial proposition, the page's primary visual/
   commercial focal point given it carries no photograph. Built from
   the same tokens already used elsewhere (the green tint behind
   .service-cta, the gold accent language used by .context-note)
   rather than a new visual style. Scoped to this one class; leaves
   .service-cta and .context-note themselves untouched everywhere
   else. */

.proposition-highlight {
  background: var(--color-green-tint);
  border-left: 3px solid var(--color-gold);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
}

.proposition-highlight h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.proposition-highlight p:last-child {
  margin-bottom: 0;
}

/* Media panel — reserved photography slot.
   Real licensed photography has not been sourced yet (see
   docs/photography-plan.md); this renders a considered abstract
   placeholder rather than a fake or stock-scraped image, sized and
   composed exactly as the final photograph should be. */

.media-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-green) 0%, #082a19 100%);
  aspect-ratio: 4 / 3;
}

.media-panel--wide { aspect-ratio: 16 / 9; }
.media-panel--square { aspect-ratio: 1 / 1; }

.media-panel--light {
  background: linear-gradient(135deg, var(--color-green-tint) 0%, var(--color-offwhite) 100%);
  border: 1px solid rgba(13, 61, 37, 0.1);
}

.media-panel__motif {
  width: 55%;
  height: 55%;
  color: var(--color-offwhite);
  opacity: 0.16;
}

.media-panel--light .media-panel__motif {
  color: var(--color-green);
  opacity: 0.12;
}

.media-panel__motif .icon { color: inherit; width: 100%; height: 100%; }

/* Image/text split layout for service pages */

.media-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.media-split--reverse .media-split__media { order: -1; }

/* Standalone editorial feature photograph, sitting inline within a
   .prose page ahead of a full-width section (rather than paired
   side-by-side with text). Inherits the same content column as the
   surrounding prose at every breakpoint, so its left/right edges
   always match the page's established content rails; no independent
   breakout width, no negative margins. Shown at its native aspect
   ratio; no forced crop or fixed height. This is the established
   reference pattern for landscape service-page photography (see
   Visa & Immigration Applications and Work & Employment Visas). */

.feature-image {
  margin: 2.5rem 0;
}

.feature-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Modest breakout for a media-split whose photo needs more presence
   than the 42em prose column can share with its paired text without
   squeezing the paragraph into a cramped, mismatched column. Scoped to
   individual pages via this modifier only. */

@media (min-width: 900px) {
  .media-split--feature {
    max-width: 880px;
    grid-template-columns: 0.83fr 1fr;
    margin-top: 1.5rem;
    margin-right: -104px;
    margin-bottom: 2.5rem;
    margin-left: -104px;
  }
}

.media-split__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 780px) {
  .media-split { grid-template-columns: 1fr; }
  .media-split--reverse .media-split__media { order: 0; }
}

/* Service feature hero — premium photo + intro treatment used on
   Airport VIP Meet & Assist; a full-width variant of the two-column
   hero pattern for services with a real photograph. */

.service-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.service-feature__icon {
  width: 56px;
  height: auto;
  margin-bottom: 1rem;
}

.service-feature__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 900px) {
  .service-feature__grid { grid-template-columns: 1fr; }
  .service-feature__media { order: -1; }
}

/* Restrained three-item benefit row (icon + heading + short copy,
   no card chrome) */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(13, 61, 37, 0.12);
  text-align: center;
}

.benefit-item img {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
}

.benefit-item h3 { margin-bottom: 0.4rem; }
.benefit-item p { color: var(--color-grey); font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 700px) {
  .benefit-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Featured-banner photograph (Airport VIP) — the photo fills the
   visual column with real presence rather than sitting in a small
   frame surrounded by dead space. */

.feature-split__visual--photo {
  align-self: stretch;
  min-height: 320px;
}

.feature-split__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 32%;
  border-radius: var(--radius);
  display: block;
}

@media (max-width: 900px) {
  .feature-split__visual.feature-split__visual--photo {
    min-height: 0;
    height: auto;
  }

  .feature-split__visual--photo img {
    height: auto;
    aspect-ratio: 3 / 2;
  }
}

/* Related services */

.related-services {
  border-top: 1px solid rgba(13, 61, 37, 0.12);
  margin-top: 3rem;
  padding-top: 1.75rem;
}

.related-services h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-grey);
  margin-bottom: 1rem;
}

.related-services ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
}

.related-services a {
  font-weight: 600;
}

/* FAQ (native details/summary — no JavaScript required) */

.faq {
  margin: 2rem 0;
  max-width: 42em;
}

.faq details {
  border-bottom: 1px solid rgba(13, 61, 37, 0.12);
  padding: 1.1rem 0;
}

.faq details:first-child {
  border-top: 1px solid rgba(13, 61, 37, 0.12);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--color-green);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-gold-text);
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p {
  margin: 0.85rem 0 0;
  color: var(--color-grey);
}

/* Footer */

.site-footer { margin-top: 4rem; }

.site-footer__brand-panel {
  background: var(--color-offwhite);
  border-top: 1px solid rgba(13, 61, 37, 0.12);
  padding: 3rem 0 2.5rem;
}

.site-footer__brand-inner {
  text-align: center;
}

.site-footer__logo {
  height: 60px;
  width: auto;
  margin: 0 auto 1rem;
}

.site-footer__accreditation {
  color: var(--color-grey);
  font-size: 0.92rem;
  margin: 0;
}

.site-footer__legal-panel {
  background: var(--color-charcoal);
  color: rgba(247, 244, 239, 0.85);
}

.site-footer__legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 2rem 0 1.5rem;
}

.site-footer__legal-panel a {
  color: rgba(247, 244, 239, 0.85);
  text-decoration-color: var(--color-gold);
}

.site-footer__legal-panel a:hover { color: var(--color-gold); }

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-footer__legal {
  border-top: 1px solid rgba(247, 244, 239, 0.15);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.6);
}

/* Responsive nav (checkbox toggle, no JavaScript) */

@media (max-width: 780px) {
  .nav-toggle {
    /* Visible only to keyboard/assistive tech, not sighted users; the
       label below is the visual control. Kept out of the desktop tab
       order entirely by the base display:none rule above this query. */
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-toggle:focus-visible + .nav-toggle__label {
    outline: 3px solid var(--color-green);
    outline-offset: 2px;
  }

  .nav-toggle__label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.25rem;
    height: 2.25rem;
    cursor: pointer;
  }

  .nav-toggle__label span {
    display: block;
    height: 2px;
    background: var(--color-green);
    border-radius: 1px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(13, 61, 37, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
  }

  .site-nav li { border-top: 1px solid rgba(13, 61, 37, 0.08); }
  .site-nav li:first-child { border-top: none; }
  .site-nav a { display: block; padding: 0.85rem 0.1rem; }

  .nav-toggle:checked ~ .site-nav {
    max-height: 24rem;
  }
}

@media (max-width: 900px) {
  .feature-split__grid { grid-template-columns: 1fr; }
  .feature-split__visual { order: -1; min-height: 160px; }
  .feature-split__visual .icon { width: 100px; height: 100px; }

  .card-grid--specialised,
  .card-grid--3up,
  .card-grid--4up { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid--specialised,
  .card-grid--3up,
  .card-grid--4up { grid-template-columns: 1fr; }

  .urgent-banner__inner { text-align: center; justify-content: center; }

  .site-footer__legal-inner { justify-content: center; text-align: center; }

  .trust-section__inner { flex-direction: column; text-align: center; }
}

/* Enquiry form */

.enquiry-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 46em;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-charcoal);
}

.form-field .hint {
  font-size: 0.85rem;
  color: var(--color-grey);
}

.required-mark {
  color: var(--color-gold-text);
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(13, 61, 37, 0.6);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-charcoal);
  width: 100%;
}

.enquiry-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.enquiry-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.enquiry-form-actions button {
  font: inherit;
  cursor: pointer;
}

.form-status {
  color: var(--color-green);
  font-weight: 600;
  margin: 0;
}

.form-status:empty { display: none; }

@media (max-width: 640px) {
  .enquiry-form { grid-template-columns: 1fr; }
}

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

/* Client Portal (authenticated pages) — scoped to .portal-* classes,
   used only on src/portal/*.njk, so nothing here affects any other page. */

.muted { color: var(--color-grey); }

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

.portal-form--login { max-width: 28em; }
.portal-form--profile { max-width: 32em; }

.status-badge {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: capitalize;
  background: var(--color-green-tint);
  color: var(--color-green);
  padding: 0.15em 0.65em;
  border-radius: var(--radius);
}

.portal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.portal-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(13, 61, 37, 0.12);
  margin-bottom: 1.5rem;
}

.portal-tab {
  font: inherit;
  background: none;
  border: none;
  padding: 0.7rem 0.2rem;
  margin-right: 1.5rem;
  cursor: pointer;
  color: var(--color-grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.portal-tab[aria-selected="true"] {
  color: var(--color-green);
  font-weight: 600;
  border-bottom-color: var(--color-green);
}

.portal-application-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  font: inherit;
  background: var(--color-white);
  border: 1px solid rgba(13, 61, 37, 0.15);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.7rem;
  cursor: pointer;
}

.portal-application-item:hover { border-color: var(--color-green); }

.portal-application-item__ref {
  font-weight: 600;
  color: var(--color-green);
}

.portal-application-item__service {
  color: var(--color-grey);
  text-transform: capitalize;
  flex: 1;
}

.portal-detail-card { margin-top: 1rem; }
.portal-detail-card h3 { margin-top: 1.4rem; margin-bottom: 0.5rem; font-size: 1.05rem; }

.portal-history, .portal-doc-requests, .portal-payments {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portal-history li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(13, 61, 37, 0.08);
}

.portal-doc-request, .portal-payment {
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(13, 61, 37, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.portal-payment { display: block; }

.portal-upload-label {
  font-size: 0.85rem;
  color: var(--color-green);
  cursor: pointer;
}

.portal-upload-label input { display: block; margin-top: 0.3rem; }

.portal-messages { max-height: 20rem; overflow-y: auto; margin-bottom: 0.8rem; }

.portal-message {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(13, 61, 37, 0.08);
}

.portal-message p { margin: 0.2rem 0 0; }

.portal-message--staff { background: var(--color-green-tint); padding-left: 0.6rem; border-radius: var(--radius); }

.portal-message-form {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.portal-message-form textarea {
  flex: 1;
  font: inherit;
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(13, 61, 37, 0.6);
  border-radius: var(--radius);
  min-height: 3rem;
  resize: vertical;
}

.portal-payment-instructions {
  background: var(--color-offwhite);
  border: 1px solid rgba(13, 61, 37, 0.12);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-top: 0.5rem;
  width: 100%;
}

.portal-payment-instructions p { margin: 0.4rem 0; }

.portal-qr-image {
  max-width: 220px;
  display: block;
  border: 1px solid rgba(13, 61, 37, 0.15);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}
