/* =================================================================
   Klamon Design - hand-coded stylesheet
   ================================================================= */

:root {
  --primary: #121212;
  --secondary: #555555;
  --muted: #6b6b6b;
  --white: #ffffff;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --accent: #ffcd4d;
  --accent-strong: #8a6a12; /* AA-compliant gold for text on white (4.9:1) */
  --orange: #f26522; /* accent pop - decorative fills only */
  --orange-text: #c4470a; /* AA-compliant orange for text on white (4.95:1) */
  --border: rgba(18, 18, 18, 0.10);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1320px;
  --gutter: clamp(20px, 5vw, 60px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

* {
  margin: 0;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--secondary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  color: var(--primary);
  line-height: 1.1;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

ul {
  list-style: none;
  padding: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input,
textarea {
  font-family: inherit;
}

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 130px);
}

/* Offset in-page anchor jumps for the sticky header */
#about,
#portfolio,
#services,
#automation,
#contact {
  scroll-margin-top: 96px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}

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

/* Visible keyboard focus indicator (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 3px;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 40px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head--center {
  text-align: center;
}

.section-lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
  max-width: 56ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 40px;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease);
}

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

.btn--primary:hover {
  background-color: var(--orange);
  color: var(--primary);
}

.btn--lg {
  padding: 16px 38px;
  font-size: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(18, 18, 18, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 92px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.site-logo__mark {
  height: 46px;
  width: auto;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
  color: var(--primary);
  white-space: nowrap;
}

.site-logo__name {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-logo__sub {
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--secondary);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.main-nav a:not(.btn) {
  font-weight: 500;
  font-size: 16px;
  color: var(--primary);
}

.main-nav a:not(.btn):hover {
  color: var(--secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* ---------- Mobile nav ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.45);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 84vw);
  background: var(--white);
  padding: 88px 40px 40px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: -20px 0 60px rgba(18, 18, 18, 0.12);
}

.mobile-nav.is-open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 40px;
  line-height: 1;
  color: var(--primary);
}

.mobile-nav nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav nav a {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--primary);
  padding: 10px 0;
}

.mobile-nav nav a:hover {
  color: var(--accent);
}

.mobile-nav__address {
  margin-top: 40px;
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.6;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(40px, 6vw, 70px);
}

.hero__inner {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
}

.hero__title {
  font-size: clamp(44px, 9vw, 140px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 0.98;
}

.hero__line {
  display: block;
  position: relative;
}

.hero__star {
  display: inline-block;
  width: clamp(26px, 3.5vw, 52px);
  height: auto;
  vertical-align: middle;
  margin-right: 0.18em;
  transform: translateY(-0.1em);
}

/* The "O" in AUTOMATION - a CSS-drawn orange capsule so its box (and therefore
   letter spacing) matches the visible shape. Animates from sideways to upright. */
.hero__o {
  display: inline-block;
  box-sizing: border-box;
  width: 0.72em;
  height: 0.84em;
  /* side margin leaves room so the sideways state (during the animation)
     never touches the neighbouring letters */
  margin: 0 0.09em;
  border: 0.13em solid var(--orange);
  border-radius: 999px;
  vertical-align: middle;
  transform: translateY(-0.10em) rotate(0deg); /* upright resting state */
  animation: o-correct 1.1s cubic-bezier(0.7, 0, 0.3, 1) 1.5s both;
}

@keyframes o-correct {
  from { transform: translateY(-0.10em) rotate(90deg); } /* sideways */
  to   { transform: translateY(-0.10em) rotate(0deg); }  /* upright */
}

@media (prefers-reduced-motion: reduce) {
  .hero__o { animation: none; }
}

.hero__lede {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
  max-width: 1000px;
  margin-left: auto;
}

.hero__kicker {
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--primary);
  line-height: 1.3;
}

.hero__text {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
  max-width: 56ch;
}

.hero__cta {
  margin-top: 30px;
}

/* ---------- Feature image ---------- */
.feature-image {
  padding-block: clamp(20px, 3vw, 40px);
}

.feature-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

/* ---------- About ---------- */
.about__statement {
  margin-top: 28px;
  font-size: clamp(22px, 2.8vw, 40px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--primary);
  max-width: 22ch;
  max-width: min(100%, 1080px);
}

.about__body {
  margin-top: 28px;
  max-width: 720px;
}

.about__body p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
}

.about__body p + p {
  margin-top: 18px;
}

/* ---------- Portfolio ---------- */
.project-card--featured {
  display: none;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 56px);
}

.project-card--featured.is-active {
  display: grid;
  animation: proj-fade 0.4s var(--ease) both;
}

@keyframes proj-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .project-card--featured.is-active { animation: none; }
}

.project-card--featured .project-card__meta {
  display: block;
  padding-inline: 0;
}

.project-card--featured .project-card__num {
  display: block;
  margin-bottom: 16px;
}

.project-card--featured .project-card__title {
  font-size: clamp(24px, 2.6vw, 38px);
}

.project-card--featured .project-card__desc {
  margin-top: 14px;
}

.project-card--featured .project-card__tag {
  display: inline-block;
  margin-top: 20px;
  background: var(--white);
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  margin-left: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
  transition: color 0.18s ease, gap 0.18s ease;
}

.project-card__link svg {
  width: 14px;
  height: 14px;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  color: var(--orange-text);
  gap: 11px;
}

.project-card--featured .project-card__frame {
  box-shadow: 0 18px 44px rgba(18, 18, 18, 0.10);
}

/* Stack the featured project card on narrow screens: screenshot on top,
   details below, both full width. */
@media (max-width: 700px) {
  .project-card--featured.is-active {
    grid-template-columns: 1fr;
    gap: clamp(20px, 5vw, 28px);
    padding: clamp(20px, 5vw, 32px);
  }
  .project-card--featured .project-card__frame {
    order: -1;
  }
  .project-card--featured .project-card__title {
    font-size: clamp(22px, 6vw, 30px);
  }
}

.portfolio__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.portfolio__dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.portfolio__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  border: 6px solid transparent;
  background-clip: content-box;
  box-sizing: content-box;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.portfolio__dot.is-active {
  background: var(--orange);
  transform: scale(1.4);
}

.portfolio__dot:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.portfolio__nav {
  display: flex;
  gap: 10px;
}

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

.portfolio__arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.portfolio__arrow:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.portfolio__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Browser-window frame around each screenshot */
.project-card__frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(18, 18, 18, 0.05);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.project-card:hover .project-card__frame {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(18, 18, 18, 0.14);
}

.project-card__bar {
  display: flex;
  gap: 7px;
  padding: 13px 18px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.project-card__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.14);
}

.project-card__bar span:first-child {
  background: var(--orange);
}

.project-card__frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-inline: 4px;
}

.project-card__num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.project-card__title {
  flex: 1;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card__tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 6px 14px;
  white-space: nowrap;
}

.project-card__desc {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--secondary);
  max-width: 44ch;
}


/* ---------- Services ---------- */
.services {
  background: var(--bg-alt);
}

.services__grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 4vw, 70px);
  align-items: start;
  padding: clamp(28px, 3.5vw, 50px);
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(18, 18, 18, 0.08);
}

.service-card__num {
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.service-card__title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.service-card__text {
  font-size: clamp(15px, 1.2vw, 17px);
  max-width: 62ch;
}

.service-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 20px;
}

.service-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
}

.service-card__list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.service-card__icon {
  width: clamp(48px, 5vw, 72px);
  height: auto;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
  transition: color 0.18s var(--ease), gap 0.18s var(--ease);
}

.service-card__link svg {
  width: 14px;
  height: 14px;
}

.service-card__link:hover,
.service-card__link:focus-visible {
  color: var(--orange-text);
  gap: 11px;
}

/* ---------- Automation hook ---------- */
.automation {
  background: var(--bg-alt);
}

.automation__head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.automation__head .section-title {
  margin-top: 18px;
}

.automation__lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
}

.automation__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px clamp(16px, 2vw, 28px);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.automation__task {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px 20px 56px;
  position: relative;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--primary);
  font-weight: 600;
}

.automation__task::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
}

.automation__body {
  max-width: 720px;
}

.automation__body p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
}

.automation__body p + p {
  margin-top: 18px;
}

.automation__cta {
  margin-top: clamp(32px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  flex-wrap: wrap;
}

.automation__cta-text {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  max-width: 32ch;
}

@media (max-width: 767px) {
  .automation__list {
    grid-template-columns: 1fr;
  }
}

/* ---------- Approach / why clients come to us ---------- */
.approach__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.approach__head .section-title {
  margin-top: 18px;
}

.approach__lead {
  margin-top: 20px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
}

.approach__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(32px, 5vw, 80px);
}

.approach__item::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  margin-bottom: 20px;
}

.approach__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.approach__text {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--secondary);
  max-width: 46ch;
}

@media (max-width: 767px) {
  .approach__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Testimonials ---------- */
.testimonials__slider {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  transition: transform 0.6s var(--ease);
}

.testimonial {
  flex: 0 0 100%;
  text-align: center;
  padding-inline: clamp(0px, 3vw, 30px);
}

.testimonial__quote {
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.testimonial__quote::before {
  content: "\201C";
}

.testimonial__quote::after {
  content: "\201D";
}

.testimonial__cite {
  margin-top: 32px;
}

.testimonial__name {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
}

.testimonial__role {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 44px;
}

.testimonials__playpause {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--primary);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.testimonials__playpause:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.testimonials__playpause svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.testimonials__dots {
  display: flex;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid rgba(18, 18, 18, 0.14);
  justify-content: center;
  gap: 10px;
}

.testimonials__dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 50%;
  background: var(--secondary);
  border: 5px solid transparent;
  background-clip: content-box;
  box-sizing: content-box;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.testimonials__dots button.is-active {
  background: var(--orange);
  transform: scale(1.25);
}

/* ---------- Contact ---------- */
.contact__lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--secondary);
  max-width: 60ch;
}

.contact__head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.contact__form-wrap {
  max-width: 920px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 28px);
}

.form-required-note {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: clamp(16px, 2vw, 28px);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 18px 22px;
  font-size: 16px;
  color: var(--primary);
  background: var(--bg-alt);
  border: 1px solid #8a8a8a;
  border-radius: 12px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  background: var(--white);
  border-color: var(--primary);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Honeypot - visually and physically hidden, off-screen for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-turnstile {
  margin-bottom: 22px;
}

.form-submit {
  margin-top: 8px;
}

.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.form-status--success {
  background: rgba(46, 160, 67, 0.12);
  color: #176e30;
}

.form-status--error {
  background: rgba(207, 34, 46, 0.10);
  color: #cf222e;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 900px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

.site-footer__group-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.site-footer__nav--col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__copy {
  font-size: 15px;
  color: var(--secondary);
}

.site-footer__address {
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.site-footer__nav {
  display: flex;
  gap: 28px;
}

.site-footer__nav a {
  font-size: 15px;
  color: var(--secondary);
}

.site-footer__nav a:hover {
  color: var(--primary);
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-page {
  padding-block: clamp(56px, 8vw, 110px);
}

.legal-page .container {
  max-width: 860px;
}

.legal-page__title {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.02em;
}

.legal-page__updated {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

.legal-content {
  margin-top: 44px;
}

.legal-content h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  margin-top: 44px;
  margin-bottom: 14px;
}

.legal-content p,
.legal-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--secondary);
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
  list-style: disc;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--secondary);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .testimonials__track {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .hero__lede {
    grid-template-columns: 1fr;
  }
  .service-card {
    grid-template-columns: auto 1fr;
  }
  .service-card__icon {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .site-header__inner {
    height: 76px;
  }
.form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

