/* ============================================================
   Technical Calibrations Australia — site styles
   Palette drawn from the TCA logo:
   navy #004070 · instrument blue #0868A8 · steel #C0C6CC
   ============================================================ */

:root {
  --navy: #003A66;
  --navy-deep: #002845;
  --blue: #0868A8;
  --blue-bright: #0E7CC4;
  --steel: #8E99A4;
  --steel-light: #C7CDD3;
  --paper: #F6F8FA;
  --white: #FFFFFF;
  --ink: #16232E;
  --tick: rgba(0, 58, 102, 0.22);

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Calibration rule (signature divider) ---------- */
.rule {
  height: 18px;
  background-image:
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(to right, var(--tick) 0 1px, transparent 1px 60px);
  background-size: auto 8px, auto 18px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
}
.rule--light {
  --tick: rgba(255, 255, 255, 0.3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--steel-light);
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  margin-right: auto;
}
.brand img { width: 46px; height: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  max-width: 180px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--paper); color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-bright); }
.btn--ghost { border-color: var(--white); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--blue); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, #074E80 100%);
  color: var(--white);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px 64px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 17ch;
  margin-bottom: 20px;
}
.hero p.lede {
  font-size: 1.15rem;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

/* Needle scale: indicator settles on zero as the page loads */
.scale {
  position: relative;
  height: 64px;
  max-width: 560px;
  font-family: var(--font-mono);
}
.scale__track {
  position: absolute;
  inset: 22px 0 auto 0;
  height: 20px;
  background-image:
    repeating-linear-gradient(to right, rgba(255,255,255,0.35) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(to right, rgba(255,255,255,0.55) 0 1px, transparent 1px 70px);
  background-size: auto 10px, auto 20px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
}
.scale__labels {
  position: absolute;
  inset: 46px 0 auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--steel-light);
}
.scale__needle {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 2px;
  height: 40px;
  background: #7FD1FF;
  box-shadow: 0 0 12px rgba(127, 209, 255, 0.9);
  animation: settle 2.4s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}
.scale__readout {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #7FD1FF;
  white-space: nowrap;
}
@keyframes settle {
  0%   { left: 8%; }
  45%  { left: 71%; }
  70%  { left: 44%; }
  85%  { left: 53%; }
  100% { left: 50%; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: var(--white); }

.section__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section--navy .section__label { color: #7FD1FF; }
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  max-width: 26ch;
  margin-bottom: 16px;
}
.section--navy h2 { color: var(--white); }
.section .intro { max-width: 62ch; margin-bottom: 40px; color: #3B4A57; }
.section--navy .intro { color: rgba(255, 255, 255, 0.85); }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
}
.card {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-top: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}
.card__spec {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.card p { font-size: 0.97rem; color: #3B4A57; margin-bottom: 16px; }
.card__link {
  margin-top: auto;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
}
.card__link:hover { text-decoration: underline; }

/* ---------- Trust strip ---------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.trust__item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
}
.trust__item p { font-size: 0.95rem; color: rgba(255, 255, 255, 0.82); }
.trust__num {
  font-family: var(--font-mono);
  color: #7FD1FF;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 10px;
}

/* ---------- EasyCAL / split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split ul { list-style: none; }
.split li {
  padding: 14px 0 14px 34px;
  position: relative;
  border-bottom: 1px dashed var(--steel-light);
}
.split li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 18px;
  height: 2px;
  background: var(--blue);
}
.split li strong { color: var(--navy); }

/* ---------- Industries ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border: 1px solid var(--steel-light);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
}

/* ---------- Service page ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: var(--white);
}
.page-hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 48px; }
.breadcrumbs {
  font-size: 0.85rem;
  margin-bottom: 22px;
  color: var(--steel-light);
}
.breadcrumbs a { color: var(--steel-light); }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 22ch;
  margin-bottom: 16px;
}
.page-hero .lede { max-width: 58ch; color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 28px; }

.equip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
  list-style: none;
}
.equip li {
  background: var(--white);
  border: 1px solid var(--steel-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-weight: 500;
  color: var(--navy);
}

.steps { list-style: none; counter-reset: step; max-width: 720px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 28px 64px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--blue);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--white);
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 6px;
  width: 1px;
  background: var(--steel-light);
}
.steps h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 4px; }
.steps p { font-size: 0.97rem; color: #3B4A57; }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  background: var(--white);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  padding: 16px 20px;
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--blue);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: #3B4A57; }

/* CTA band */
.cta-band { text-align: left; }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); }
.site-footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.site-footer h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    background: none;
    border: 1px solid var(--steel-light);
    border-radius: var(--radius);
    padding: 9px 14px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy);
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--steel-light);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 2px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .btn { margin-top: 8px; text-align: center; }
}

/* ============================================================
   v2 additions: photography, NATA strip, reveal animations
   ============================================================ */

/* ---------- NATA accreditation strip ---------- */
.nata-strip {
  background: var(--white);
  border-bottom: 1px solid var(--steel-light);
}
.nata-strip .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}
.nata-strip img { height: 54px; width: auto; }
.nata-strip p { font-size: 0.95rem; color: #3B4A57; max-width: 60ch; }
.nata-strip a { font-weight: 600; }

/* ---------- Photo cards ---------- */
.card--photo { padding: 0; overflow: hidden; }
.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
}
.card__media img,
.card__media svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card--photo:hover .card__media img { transform: scale(1.045); }
.card--photo .card__body {
  padding: 22px 24px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card--photo { display: flex; flex-direction: column; }

/* ---------- On-site split with photo ---------- */
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-light);
  box-shadow: 0 20px 40px -24px rgba(0, 40, 69, 0.45);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Page hero with photo */
.page-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.page-hero__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5);
}
.page-hero__media img { width: 100%; display: block; }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.cards .reveal:nth-child(2) { transition-delay: 0.08s; }
.cards .reveal:nth-child(3) { transition-delay: 0.16s; }
.cards .reveal:nth-child(4) { transition-delay: 0.08s; }
.cards .reveal:nth-child(5) { transition-delay: 0.16s; }
.cards .reveal:nth-child(6) { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   v3 additions: forms, contact page, articles, scope table
   ============================================================ */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 760px; }
.form .full { grid-column: 1 / -1; }
.form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.form input, .form select, .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  background: var(--white);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--blue);
}
.form .hint { font-size: 0.85rem; color: var(--steel); margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; margin-bottom: 10px; }
.contact-card address { font-style: normal; line-height: 1.8; margin-bottom: 18px; }
.contact-card .big-link {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 6px;
}
.contact-card .big-link:hover { color: var(--blue); }
.map-embed {
  margin-top: 24px;
  border: 1px solid var(--steel-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Scope table */
.scope-table { width: 100%; border-collapse: collapse; max-width: 820px; }
.scope-table th, .scope-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--steel-light);
}
.scope-table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}
.scope-table .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag--nata { background: #E3F0E6; color: #1E6B34; }
.tag--trace { background: #E8F1F8; color: var(--blue); }

/* Articles */
.article-list { list-style: none; max-width: 780px; }
.article-list li {
  border-bottom: 1px solid var(--steel-light);
  padding: 26px 0;
}
.article-list h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 8px; }
.article-list h3 a { color: var(--navy); text-decoration: none; }
.article-list h3 a:hover { color: var(--blue); }
.article-list .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel); margin-bottom: 8px; }
.article-body { max-width: 720px; }
.article-body h2 { margin-top: 40px; }
.article-body p { margin-bottom: 18px; color: #2A3843; }
.article-body ul { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 8px; }

/* ---------- Hero entrance sequence ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero .eyebrow      { animation: riseIn .55s ease both; }
.hero h1            { animation: riseIn .6s ease .12s both; }
.hero .lede         { animation: riseIn .6s ease .26s both; }
.hero__actions      { animation: riseIn .6s ease .4s both; }
.hero .scale        { animation: riseIn .6s ease .55s both; }
.hero .scale__needle { animation: settle 2.6s cubic-bezier(0.2, 0.8, 0.25, 1) .8s both; }
@keyframes lockPulse {
  0% { box-shadow: 0 0 12px rgba(127,209,255,.9); }
  50% { box-shadow: 0 0 26px rgba(127,209,255,1); }
  100% { box-shadow: 0 0 12px rgba(127,209,255,.9); }
}
.hero .scale__needle.locked { animation: lockPulse .7s ease 1; }

/* ---------- Header NATA mark ---------- */
.header-nata { display: flex; align-items: center; margin-right: 6px; }
.header-nata img { height: 36px; width: auto; }
@media (max-width: 860px) {
  .header-nata img { height: 28px; }
}
@media (max-width: 420px) {
  .header-nata { display: none; }
}

/* ---------- Why choose TCA (icon version) ---------- */
.whytca h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); max-width: none; margin-bottom: 40px; }
.trust--icons .trust__item { border-top: 3px solid rgba(255,255,255,0.25); padding-top: 22px; }
.trust__icon { display: flex; align-items: center; height: 60px; margin-bottom: 16px; }
.trust__icon img { width: 56px; height: 56px; object-fit: contain; }
.trust__icon--tile { background: #fff; border-radius: 10px; width: 58px; height: 58px; justify-content: center; }
.trust__icon--tile img { width: 42px; height: 42px; }
.trust--icons .trust__item h3 { font-size: 1.2rem; }

/* ---------- Industries icon grid ---------- */
.industries h2 { font-size: clamp(2rem, 4.5vw, 2.8rem); max-width: none; margin-bottom: 40px; }
.ind { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ind__item {
  background: #fff; border: 1px solid var(--steel-light); border-radius: var(--radius);
  padding: 26px 16px 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.ind__item:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -16px rgba(0,40,69,.45); border-color: var(--blue); }
.ind__icon { height: 72px; display: flex; align-items: center; }
.ind__icon img { width: 68px; height: 68px; object-fit: contain; }
.ind__label { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: var(--navy); line-height: 1.25; }
@media (max-width: 900px) { .ind { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Hero: full-bleed fading image slider ---------- */
.hero { position: relative; }
.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 46%; }
.hero-wedge {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 62%;
  z-index: 1;
  -webkit-mask-image: linear-gradient(100deg, transparent 22%, rgba(0,0,0,0.4) 42%, black 60%);
  mask-image: linear-gradient(100deg, transparent 22%, rgba(0,0,0,0.4) 42%, black 60%);
}
.hs__track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.4,0,.2,1); }
.hs__slide { flex: 0 0 100%; height: 100%; }
.hs__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs__dots { position: absolute; bottom: 14px; right: 20px; display: flex; gap: 8px; z-index: 3; }
.hs__dot { width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; background: rgba(255,255,255,0.5); padding: 0; }
.hs__dot.on { background: #7FD1FF; }
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; }
  .hero__inner { order: 1; padding-bottom: 8px; }
  .hero__content { max-width: 100%; }
  .hero-wedge {
    order: 2;
    position: relative; width: 100%; height: 240px; margin-top: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%);
  }
}
@media (prefers-reduced-motion: reduce) { .hs__track { transition: none; } }

/* ---------- Page hero: static fading image ---------- */
.page-hero { position: relative; overflow: hidden; }
.page-hero__inner { position: relative; z-index: 2; }
.hero-wedge--static > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-hero .hero__content { max-width: 52%; }
@media (max-width: 900px) {
  .page-hero { display: flex; flex-direction: column; }
  .page-hero__inner { order: 1; padding-bottom: 8px; }
  .page-hero .hero__content { max-width: 100%; }
  .page-hero .hero-wedge {
    order: 2;
    position: relative; width: 100%; height: 220px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 14%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 14%);
  }
  /* Fix 2: re-centre subject in the mobile band */
  .hero-wedge--static > img { object-position: 62% center; }
}

/* ---------- Form validation ---------- */
.form .err {
  display: none;
  font-size: 0.82rem;
  color: #B3261E;
  margin-top: 5px;
}
.form .invalid input { border-color: #B3261E; background: #FEF7F6; }
.form .invalid .err { display: block; }
