/* ============================================================
   Beyond Measures Support — warm, person-centred NDIS support
   Palette: tan/taupe · blush · cream · warm brown
   Type: Fraunces (headings) + DM Sans (body)
   ============================================================ */

:root {
  --cream:        #faf5ef;
  --blush-soft:   #f6ece3;
  --blush:        #e7d4c4;
  --tan:          #b08968;
  --tan-deep:     #8a6244;
  --ink:          #4a3b30;  /* headings */
  --body:         #7d6a5a;  /* body text */
  --surface:      #fffdfa;  /* card surfaces */
  --line:         #ead9c8;

  --shadow-sm: 0 2px 10px rgba(74, 59, 48, 0.06);
  --shadow-md: 0 14px 36px rgba(74, 59, 48, 0.10);
  --shadow-lg: 0 26px 60px rgba(74, 59, 48, 0.14);

  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-pill: 999px;

  --ff-head: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --nav-h: 76px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;        /* ~17px */
  line-height: 1.7;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--ff-head);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1rem; }
a { color: var(--tan-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: #fff; padding: .6rem 1rem;
  border-radius: var(--r-sm); z-index: 200; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--tan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  padding: .95rem 1.7rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  text-align: center;
  line-height: 1.2;
}
.btn-primary {
  background: var(--tan);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--tan-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--tan-deep);
  border-color: var(--tan);
}
.btn-ghost:hover {
  background: var(--blush-soft);
  color: var(--ink);
  transform: translateY(-2px);
}
/* Round social icon button — matches the ghost button, warm tone (not Facebook blue) */
.btn-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--tan);
  background: transparent;
  color: var(--tan-deep);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-social:hover {
  background: var(--tan);
  color: #fff;
  transform: translateY(-2px);
}
.btn-social svg { width: 22px; height: 22px; display: block; }

/* ---------- Eyebrows / section heads ---------- */
.eyebrow, .section-eyebrow {
  font-family: var(--ff-body);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--tan-deep);
  margin: 0 0 1rem;
}
.section-title { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.section-head { max-width: 40rem; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-head .section-eyebrow { display: block; }
.section-intro { font-size: 1.12rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 239, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.scrolled {
  background: rgba(250, 245, 239, 0.92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-mark { color: var(--tan); display: inline-flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--ff-head); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.brand-sub  { font-family: var(--ff-body); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--tan-deep); margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav-links a { font-weight: 500; color: var(--ink); font-size: .98rem; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--tan); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--tan); color: #fff; padding: .55rem 1.2rem; border-radius: var(--r-pill);
  transition: background .25s ease, transform .25s ease;
}
.nav-cta:hover { background: var(--tan-deep); color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; border: none; background: transparent; cursor: pointer;
  border-radius: 12px;
}
.nav-toggle span { display: block; height: 2px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% -10%, var(--blush) 0%, rgba(231,212,196,0) 55%),
    radial-gradient(100% 80% at 0% 110%, var(--blush-soft) 0%, rgba(246,236,227,0) 60%),
    var(--cream);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero-inner { position: relative; z-index: 3; max-width: 50rem; }

/* Soft drifting glow behind the hero text — subtle, warm, breathing */
.hero-aura { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  will-change: transform;
}
.aura-1 {
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  top: -8%; left: -6%;
  background: radial-gradient(circle at 30% 30%, var(--blush) 0%, rgba(231,212,196,0) 70%);
  animation: aura-float-1 22s ease-in-out infinite;
}
.aura-2 {
  width: 38vw; height: 38vw; max-width: 460px; max-height: 460px;
  top: 18%; left: 26%;
  background: radial-gradient(circle at 40% 40%, var(--tan) 0%, rgba(176,137,104,0) 70%);
  opacity: .28;
  animation: aura-float-2 28s ease-in-out infinite;
}
.aura-3 {
  width: 34vw; height: 34vw; max-width: 420px; max-height: 420px;
  bottom: -12%; left: 8%;
  background: radial-gradient(circle at 50% 50%, #f3ddc9 0%, rgba(243,221,201,0) 70%);
  opacity: .5;
  animation: aura-float-3 25s ease-in-out infinite;
}
@keyframes aura-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(5%, 4%) scale(1.12); }
}
@keyframes aura-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50%      { transform: translate(-6%, 5%) scale(.92); }
}
@keyframes aura-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(4%, -5%) scale(1.1); }
}
.hero-title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.hero-lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  max-width: 38rem;
  color: var(--body);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }

/* Hero art / placeholder photo */
.hero-art { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero-photo {
  position: absolute; right: var(--gut); top: 50%; transform: translateY(-50%);
  width: min(40%, 420px); aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background:
    linear-gradient(150deg, rgba(255,255,255,.5), rgba(255,255,255,0) 60%),
    linear-gradient(180deg, var(--blush) 0%, var(--tan) 120%);
  box-shadow: var(--shadow-lg);
  display: none;
  place-items: center;
  overflow: hidden;
  border: 6px solid var(--surface);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo-note {
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.85); font-weight: 600;
}
.hero-flutter { position: absolute; color: var(--tan); opacity: .5; animation: drift 9s ease-in-out infinite; }
.flutter-1 { top: 18%; right: 8%; animation-delay: 0s; }
.flutter-2 { bottom: 22%; right: 30%; opacity: .38; animation-delay: 1.5s; }
.flutter-3 { top: 30%; right: 40%; opacity: .3; animation-delay: 3s; }
@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-copy p { font-size: 1.08rem; }
.values-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
}
.values-heading { font-family: var(--ff-head); font-size: 1.3rem; color: var(--ink); margin-bottom: 1.25rem; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.values-list li { font-size: .98rem; color: var(--body); padding-left: 1.4rem; position: relative; }
.values-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--tan);
}
.values-list span { display: block; font-family: var(--ff-head); font-size: 1.08rem; color: var(--ink); margin-bottom: 2px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--blush-soft); }
.service-group + .service-group { margin-top: clamp(2.25rem, 4.5vw, 3.25rem); }
.service-group-title {
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  color: var(--tan-deep);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.service-group-title::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--blush) 0%, rgba(231,212,196,0) 100%);
}
.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blush);
}
.service-ico {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--blush-soft);
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: .4rem; }
.service-card p { font-size: .96rem; margin: 0; }

/* ============================================================
   AREAS
   ============================================================ */
.areas { background: var(--cream); }
.areas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.areas-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
}
.areas-list li {
  display: flex; align-items: center; gap: .7rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: .85rem 1.3rem;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.area-pin { color: var(--tan); font-size: .7rem; }
.area-more { grid-column: 1 / -1; background: var(--blush-soft); font-style: italic; color: var(--tan-deep); }

/* ============================================================
   FORMS (enquiry + careers)
   ============================================================ */
.enquiry-section { background: var(--blush-soft); }
.careers-section { background: var(--cream); }

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.form-layout.reverse .form-intro { order: 2; }
.form-layout.reverse .form { order: 1; }

.form-intro { padding-top: .5rem; }
.form-intro p { font-size: 1.06rem; }
.form-aside { font-size: .98rem; color: var(--body); margin-top: 1.5rem; }

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label {
  display: block; font-weight: 600; color: var(--ink);
  font-size: .95rem; margin-bottom: .45rem;
}
.optional { font-weight: 400; color: var(--body); font-size: .85em; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #b5a392; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tan);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(176, 137, 104, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }

/* File upload (careers form) */
.field input[type="file"] {
  width: 100%;
  font-family: var(--ff-body);
  font-size: .92rem;
  color: var(--body);
  background: var(--cream);
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  padding: .6rem .75rem;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input[type="file"]:hover { border-color: var(--tan); background: var(--surface); }
.field input[type="file"]:focus {
  outline: none; border-color: var(--tan);
  box-shadow: 0 0 0 4px rgba(176, 137, 104, 0.14);
}
.field input[type="file"]::file-selector-button {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .85rem;
  color: #fff;
  background: var(--tan);
  border: none;
  border-radius: var(--r-pill);
  padding: .5rem 1.05rem;
  margin-right: .85rem;
  cursor: pointer;
  transition: background .2s ease;
}
.field input[type="file"]::file-selector-button:hover { background: var(--tan-deep); }

.hint { display: block; font-size: .85rem; color: var(--body); margin-top: .4rem; }
.error { display: block; font-size: .85rem; color: #b4452f; margin-top: .4rem; min-height: 1em; }
.field.invalid input, .field.invalid textarea { border-color: #c9583f; }

.form .btn { width: 100%; margin-top: .5rem; }
.form-result { margin: 1rem 0 0; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-result.ok { color: var(--tan-deep); }
.form-result.err { color: #b4452f; }
.hp { position: absolute; left: -9999px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: #e9ddd1;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}
.footer a { color: #e9ddd1; }
.footer a:hover { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer-brand .brand-mark { color: var(--blush); }
/* Real logo sits on a light chip so its dark plum text stays readable on the dark footer */
.footer-logo-chip {
  display: inline-block;
  background: var(--cream);
  padding: .85rem 1.1rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.footer-logo { height: 70px; width: auto; display: block; }
/* Facebook social icon — warm blush tone (not Facebook blue) to fit the brand */
.footer .footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-top: 1.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--blush);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.footer .footer-social:hover {
  background: var(--blush);
  color: var(--ink);
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; display: block; }
.footer-name { font-family: var(--ff-head); font-size: 1.5rem; color: #fff; margin: .8rem 0 .3rem; }
.footer-tag { font-style: italic; color: #cdbcab; margin: 0; }
.footer-label { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 600; color: var(--blush); margin-bottom: 1rem; }
.footer-contact p { margin: 0 0 .5rem; }
.footer-region { color: #cdbcab; font-size: .92rem; margin-top: 1rem !important; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer-links a { font-size: .98rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-block: 1.75rem;
}
.footer-close {
  font-family: var(--ff-head);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #f3e9dd;
  text-align: center;
  max-width: 42rem; margin: 0 auto 1.5rem;
  font-style: italic;
}
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .85rem; color: #b6a596;
}
.footer-meta p { margin: 0; }
.footer-meta-left { display: flex; flex-direction: column; gap: .15rem; }
.footer-abn { opacity: .65; letter-spacing: .03em; }
.built-by a { opacity: .5; transition: opacity .25s ease; }
.built-by a:hover { opacity: .85; }

/* ============================================================
   ABOUT PHOTO
   ============================================================ */
.about-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-md);
  margin: .25rem 0 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ============================================================
   COMMUNITY MOMENT (image band)
   ============================================================ */
.moment { padding-inline: var(--gut); padding-block: clamp(1rem, 3vw, 2rem); background: var(--cream); }
.moment-media {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 280px;
}
.moment-media img {
  width: 100%; height: 100%; min-height: 280px;
  max-height: 460px;
  object-fit: cover;
  display: block;
}
.moment-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(74,59,48,0) 35%, rgba(74,59,48,0.62) 100%);
}
.moment-text {
  margin: 0;
  font-family: var(--ff-head);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.3;
  color: #fff;
  max-width: 30ch;
  text-shadow: 0 1px 8px rgba(74,59,48,0.35);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--blush-soft); }
.testimonial-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.75rem);
  align-items: start;
}
.testimonial-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2.5rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote-mark {
  position: absolute; top: .35rem; left: 1.4rem;
  font-family: var(--ff-head);
  font-size: 3.4rem; line-height: 1;
  color: var(--blush);
}
.testimonial-text {
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  flex: 0 1 auto;
}
.testimonial-by { margin: 1.25rem 0 0; display: flex; flex-direction: column; }
.testimonial-name { font-weight: 600; color: var(--ink); font-family: var(--ff-body); }
.testimonial-role { font-size: .85rem; color: var(--body); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger service cards / area chips a touch */
.service-card.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 980px) {
  .hero-photo { display: grid; }
  /* Keep the hero text as a normal left-aligned container and cap the text blocks
     so the headline never slides under the photo on the right. */
  .hero-inner { max-width: var(--maxw); }
  .hero-inner > * { max-width: min(560px, 48vw); }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .values-card { position: static; }
  .areas-grid { grid-template-columns: 1fr; }
  .form-layout { grid-template-columns: 1fr; }
  .form-layout.reverse .form-intro { order: 1; }
  .form-layout.reverse .form { order: 2; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: .5rem var(--gut) 1.25rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-links a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .75rem; border-bottom: none !important; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .field-row { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-flutter { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
