/* Lactovate one-page site, matching the earlier WordPress design: Lora headings, Inter text, brand blues. */
@font-face {
  font-family: 'Lora';
  src: url('/fonts/lora.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #184895;
  --sky: #30a7df;
  --ink: #1b1b1b;
  --line: #e6e9ee;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gradient: linear-gradient(180deg, #184895 0%, #30a7df 150%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  margin: 0;
}
h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem); /* 72px */
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
}
h2 {
  font-size: clamp(2.25rem, 4.6vw, 4rem); /* 64px */
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.5rem; /* 24px */
  line-height: 1.4;
}
p {
  margin: 0;
}
a {
  color: var(--navy);
}
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}
.hero :focus-visible,
.cta-card :focus-visible,
.footer :focus-visible {
  outline-color: #fff;
}
.footer .form :focus-visible {
  outline-color: var(--navy);
}

.wrap {
  width: min(1360px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus {
  left: 8px;
}

/* Buttons: gradient pills, 14px Inter */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 24px;
  border: 0;
  border-radius: 99px;
  background: var(--gradient);
  color: #fff;
  font: 500 14px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}
.button svg {
  width: 16px;
  height: 16px;
}
.button:hover {
  filter: brightness(1.1);
}
.button-white {
  background: #fff;
  color: var(--navy);
}
.button-white:hover {
  filter: none;
  background: #eef4fb;
}
.button-block {
  width: 100%;
}

/* Thank-you page (form sent without JavaScript) */
.thanks-title {
  color: var(--navy);
  margin: 40px 0 24px;
}

/* Header: scrolls away with the page */
.header {
  background: #fff;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand img {
  width: 124px;
}

/* Hero: photo, dark veil, rounded corners */
.hero {
  margin: 0 16px;
  min-height: 890px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  /* Keeps the animated photo inside the rounded corners (overflow alone lets it escape in Chrome). */
  clip-path: inset(0 round 24px);
  position: relative;
  isolation: isolate;
  background: #0b1e42;
  text-align: center;
}
/* The photo and its dark veil sit behind the words, so the photo can ease in on its own. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
}
.hero::before {
  z-index: -2;
  background: url('/img/consultation.webp') center / cover no-repeat;
}
.hero::after {
  z-index: -1;
  background: rgb(0 0 0 / 0.55);
}
.hero-inner {
  width: min(760px, 100% - 40px);
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 120px 0;
}
.hero p {
  color: #fff;
  font-size: 18px;
}
@media (max-width: 760px) {
  .hero {
    margin: 0 8px;
    min-height: 0;
  }
}

/* Sections */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-flush {
  padding-top: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.eyebrow-light {
  color: #fff;
}
.column {
  width: min(900px, 100%);
  margin-inline: auto;
  display: grid;
  justify-items: center;
  text-align: center;
}
.column-narrow {
  width: min(700px, 100%);
}
#services .column {
  width: min(640px, 100%);
}
.column h2 {
  margin-bottom: 40px;
}
.text {
  display: grid;
  gap: 25px;
  text-align: left;
  font-size: 18px;
}
.column .button {
  margin-top: 40px;
}
.photo {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}
.photo-wide {
  margin-top: 64px;
  aspect-ratio: 1344 / 700;
}

/* What we cover */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.photo-tall {
  aspect-ratio: 626 / 1000;
  position: sticky;
  top: 32px;
}
.split h2 {
  margin-bottom: 24px;
}
.lead {
  font-size: 18px;
}
.areas {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 32px;
}
.areas li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.areas p {
  margin-top: 6px;
}
.tile {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(160deg, #2d6b8f 0%, #0d2740 100%);
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .photo-tall {
    position: static;
    aspect-ratio: 16 / 10;
  }
}

/* Services: giant faint numbers behind each */
#services {
  overflow-x: clip;
}
.services {
  list-style: none;
  padding: 0;
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.services li {
  position: relative;
  padding: 120px 22px 0;
}
.num {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 240px;
  line-height: 0.8;
  color: rgb(1 60 25 / 0.04);
  pointer-events: none;
}
.services .tile {
  position: relative;
  margin-bottom: 20px;
}
.services h3 {
  position: relative;
  margin-bottom: 12px;
}
@media (max-width: 1000px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 56px;
  }
}
@media (max-width: 600px) {
  .services {
    grid-template-columns: 1fr;
  }
  .num {
    font-size: 180px;
  }
}

/* Consultation banner: photo card and blue card */
.cta {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 16px;
}
.cta-photo {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 24px;
  min-height: 500px;
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.55)),
    url('/img/production-hall.webp') center / cover no-repeat;
}
.cta-photo h2,
.cta-card h2 {
  color: #fff;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0;
}
.cta-photo h2 {
  max-width: 460px;
}
.cta-photo p {
  max-width: 460px;
}
.cta-card {
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 32px;
  border-radius: 16px;
  color: #fff;
  background: var(--gradient);
}
.cta-card .eyebrow {
  margin-bottom: 0;
  font-size: 12px;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: grid;
  gap: 16px;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checks svg {
  flex: none;
  width: 18px;
  height: 18px;
  padding: 2px;
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  stroke-width: 3;
}
.cta-card .button {
  align-self: end;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .cta {
    grid-template-columns: 1fr;
  }
  .cta-photo {
    min-height: 380px;
    padding: 32px 24px;
  }
  .cta-photo h2,
  .cta-card h2 {
    font-size: 32px;
  }
}

/* Footer: deep blue, contact details beside a white form card */
.footer {
  position: relative;
  overflow: hidden;
  color: #c7d4e8;
  background:
    radial-gradient(60% 80% at 100% 0%, rgb(48 167 223 / 0.18), transparent 60%),
    linear-gradient(180deg, #0c2350 0%, #071733 100%);
  padding-top: clamp(72px, 9vw, 112px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
  padding-bottom: clamp(64px, 8vw, 96px);
}
.footer-brand {
  display: grid;
  gap: 28px;
}
.footer-brand img {
  width: 140px;
}
.footer-tagline {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  color: #fff;
  max-width: 420px;
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 18px;
}
.footer-contact li {
  display: flex;
  gap: 16px;
  align-items: center;
}
.footer-contact li > span:last-child {
  display: grid;
  gap: 2px;
}
.footer-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
}
.footer-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ea6c8;
}
.footer-contact a {
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s;
}
.footer-contact a:hover {
  background-size: 100% 1px;
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.5);
}
.form h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}
.form-intro {
  margin-top: -10px;
  color: #5b6472;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: #3b4452;
}
.form input,
.form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #8d98a8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: 15px/1.4 var(--sans);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.form input::placeholder,
.form textarea::placeholder {
  color: #6b7480;
}
.form input:hover,
.form textarea:hover {
  border-color: #5f6b7c;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgb(24 72 149 / 0.12);
}
.form textarea {
  resize: vertical;
  min-height: 130px;
}
.form .button {
  margin-top: 4px;
  padding: 18px 24px;
  font-size: 15px;
}
.form .button[aria-disabled='true'] {
  opacity: 0.7;
  cursor: progress;
}
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.form-status {
  min-height: 1.4em;
  margin-top: -6px;
  font-size: 14px;
  color: #5b6472;
}
.form.is-sent .form-status {
  color: #15803d;
}
.form.is-error .form-status {
  color: #b42318;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 28px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 14px;
  color: #8ea6c8;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c7d4e8;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-nav a:hover {
  color: #fff;
}
.to-top svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s;
}
.to-top:hover svg {
  transform: translateY(-2px);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Motion: quiet and short. Off for anyone who asked their device for reduced motion. --- */
.button svg {
  transition: transform 0.25s;
}
.button:hover svg {
  transform: translateX(3px);
}
.form .button:hover svg {
  transform: translate(2px, -2px);
}
.photo {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.photo-wide:hover {
  transform: scale(1.01);
}
.tile {
  transition: transform 0.3s;
}
.areas li:hover .tile,
.services li:hover .tile {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  /* The hero settles in once: the photo eases out of a slight zoom, the words rise. */
  .hero::before {
    animation: hero-photo 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  [data-hero] > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  [data-hero] > :nth-child(2) {
    animation-delay: 0.15s;
  }
  [data-hero] > :nth-child(3) {
    animation-delay: 0.3s;
  }
  /* Sections fade up as they come into view (site.js); without the script everything just shows. */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
      transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
@keyframes hero-photo {
  from {
    transform: scale(1.08);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
