/* Survey Support Ltd - styles.css */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-latin-variable.woff2") format("woff2-variations"),
       url("assets/fonts/fraunces-latin-variable.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #01684a;
  --green-dark: #014e37;
  --green-deep: #06261b;
  --ink: #0c0c0c;
  --white: #ffffff;
  --cream: #f6f5f2;
  --border: #e2ded5;
  --focus: #0c53c7;
  --radius: 4px;
  --font-sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --header-height: 96px;
  --header-height-compact: 64px;
  --wrap-max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

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

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

/* Eyebrow labels */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1em;
}

.eyebrow--on-dark {
  color: #cfe8de;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

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

.btn--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.btn--primary:disabled {
  background: #6a9c8d;
  border-color: #6a9c8d;
  cursor: not-allowed;
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--large {
  font-size: 1.02rem;
  padding: 15px 30px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header.site-header--on-hero {
  background: transparent;
  border-bottom-color: transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  transition: height 0.2s ease;
}

.site-header.is-compact .site-header__inner {
  height: var(--header-height-compact);
}

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

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

.site-header.is-compact .site-header__logo {
  height: 32px;
}

.site-header__logo--white {
  display: none;
}

.site-header__logo--dark {
  display: block;
}

.site-header.site-header--on-hero .site-header__logo--white {
  display: block;
}

.site-header.site-header--on-hero .site-header__logo--dark {
  display: none;
}

.site-header__cta {
  font-size: 0.88rem;
  padding: 11px 18px;
}

/* Body padding for fixed header */
main {
  display: block;
}

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 48px) 0 96px;
  overflow: hidden;
  background: var(--green-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(6, 38, 27, 0.92) 0%, rgba(6, 38, 27, 0.8) 45%, rgba(1, 104, 74, 0.62) 100%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__inner > * {
  max-width: 820px;
}

.hero__title {
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.6rem);
  color: var(--white);
}

.hero__sub {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
  color: #f1f0ec;
  max-width: 640px;
}

.hero__actions {
  margin-top: 32px;
}

.hero__secondary {
  margin-top: 16px;
  font-size: 0.98rem;
  color: #e4e2dc;
}

.hero__secondary a {
  color: var(--white);
  text-decoration: underline;
}

/* Full-bleed image bands */
.image-band {
  position: relative;
  height: 44vh;
  min-height: 260px;
  max-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-band__media,
.image-band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 38, 27, 0.55) 0%, rgba(6, 38, 27, 0.35) 100%);
}

.image-band__line {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 2rem);
  color: var(--white);
  text-align: center;
  max-width: 780px;
  margin: 0;
  padding: 0 24px;
}

/* Problem */
.problem {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.problem__inner p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  line-height: 1.4;
  max-width: 820px;
  margin: 0;
  color: var(--green-deep);
  font-weight: 400;
}

/* Section heading */
.section-heading {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem);
  color: var(--ink);
}

.section-sub {
  max-width: 640px;
  color: #3a3a3a;
  font-size: 1.05rem;
}

/* Services */
.services {
  padding: 96px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--border);
  background: var(--border);
}

.service-card--wide {
  grid-column: span 2;
}

.service-card {
  background: var(--white);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card__icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card__body {
  font-size: 0.96rem;
  color: #3a3a3a;
  margin: 0;
}

/* Bench / carousel */
.bench {
  padding: 96px 0;
  background: var(--cream);
}

.carousel {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 40px;
}

.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 12px;
  flex: 0 0 100%;
  order: -1;
  scrollbar-width: thin;
}

.profile-card {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 40px) / 3);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 34px 26px;
}

.profile-card__role {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--green-deep);
}

.profile-card__facts {
  margin: 0;
  font-size: 0.9rem;
}

.profile-card__fact {
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.profile-card__fact:first-child {
  padding-top: 0;
  border-top: none;
}

.profile-card__fact dt {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.profile-card__fact dd {
  margin: 3px 0 0;
  color: var(--ink);
}

.carousel__nav[hidden] {
  display: none;
}

.carousel__nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.carousel__nav:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.carousel__noscript {
  padding: 20px;
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

@media (max-width: 700px) {
  .carousel__nav {
    display: none;
  }
}

/* Proof */
.proof {
  padding: 96px 0;
}

.proof__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.proof__stat,
.how__step {
  padding-top: 24px;
  border-top: 1px solid var(--green);
}

.proof__number {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.8rem);
  font-weight: 500;
  color: var(--green-deep);
  margin: 0 0 8px;
  line-height: 1;
}

.proof__label {
  margin: 0;
  color: #3a3a3a;
}

/* How it works */
.how {
  padding: 96px 0;
  background: var(--cream);
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.how__step {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how__step p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.how__number {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.9rem + 2vw, 3.8rem);
  color: var(--green);
  line-height: 1;
}

/* Enquiry form */
.enquiry {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}

.enquiry__media,
.enquiry__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enquiry__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6, 38, 27, 0.92) 0%, rgba(6, 38, 27, 0.86) 100%);
}

.enquiry__inner {
  position: relative;
  z-index: 1;
}

.enquiry__panel {
  background: var(--white);
  padding: 48px;
  max-width: 900px;
}

.enquiry .eyebrow {
  color: var(--green);
}

.enquiry-form {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 22px;
}

.form-row {
  display: flex;
  flex-direction: column;
}

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

.form-row--actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

label {
  font-weight: 600;
  margin-bottom: 7px;
  font-size: 0.92rem;
}

input,
select,
textarea {
  font: inherit;
  padding: 11px 13px;
  border: 1px solid #b9b3a4;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.honeypot-field {
  display: none;
}

.form-fallback {
  margin: 0;
  font-size: 0.92rem;
  color: #3a3a3a;
}

.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status--pending {
  color: #3a3a3a;
}

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

.form-status--error {
  color: #a41616;
  font-weight: 600;
}

/* Privacy page */
.policy-section {
  padding: calc(var(--header-height) + 56px) 0 80px;
}

.policy {
  max-width: 760px;
}

.policy h2 {
  font-size: 1.25rem;
  margin-top: 1.5em;
}

/* Footer */
.site-footer {
  padding: 40px 0 56px;
  background: var(--green-deep);
  color: #cfd8d3;
}

.site-footer a {
  color: #ffffff;
}

.site-footer__inner p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

/* Scroll reveal (progressive enhancement; enabled via .js-reveal on <html>) */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .how__steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .proof__stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .profile-card {
    flex-basis: calc((100% - 20px) / 2);
  }
  .enquiry__panel {
    padding: 36px 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
    --header-height-compact: 56px;
  }
  .hero {
    min-height: 520px;
    padding: calc(var(--header-height) + 32px) 0 64px;
  }
  .services,
  .bench,
  .proof,
  .how,
  .enquiry {
    padding: 64px 0;
  }
  .difference {
    padding: 64px 0;
  }
  .profile-card {
    flex-basis: 85%;
  }
  .services__grid {
    grid-template-columns: 1fr;
  }
  .service-card--wide {
    grid-column: auto;
  }
  .enquiry-form {
    grid-template-columns: 1fr;
  }
  .enquiry__panel {
    padding: 28px 20px;
  }
  .site-header__cta {
    font-size: 0.8rem;
    padding: 9px 14px;
  }
  .site-header__logo {
    height: 34px;
  }
  .image-band {
    height: 34vh;
    min-height: 200px;
  }
}

/* The difference (NXN-trained USP) */
.difference {
  padding: 96px 0;
  background: var(--green-deep);
  color: var(--white);
}

.difference__heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 3.2rem);
  line-height: 1.15;
  max-width: 880px;
  margin: 0 0 24px;
  color: var(--white);
}

.difference__body {
  max-width: 680px;
  margin: 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.65;
  color: #d9e4de;
}

.difference__body a {
  color: var(--white);
  text-underline-offset: 3px;
}
