/* ==========================================================================
   Corvitum Animal Health — main stylesheet
   ========================================================================== */

:root {
  --sage-light:  #b6cdb9;
  --sage-mid:    #9fbaa2;
  --sage-dark:   #6f8f76;
  --sage-deep:   #4d6b55;
  --ink:         #2c4a57;
  --ink-soft:    #3d5a63;
  --paper:       #f6f7f4;
  --paper-warm:  #eef1ea;
  --white:       #ffffff;
  --line:        rgba(44, 74, 87, 0.12);

  --font: 'Poppins', 'Century Gothic', 'Segoe UI', Avenir, Helvetica, Arial, sans-serif;

  --maxw: 1200px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

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

/* ------------------------------ Skip link -------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 0.6em 1em;
  z-index: 1000;
}
.skip-link:focus {
  left: 1em;
  top: 1em;
}

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

/* ------------------------------ Header ----------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  background: rgba(246, 247, 244, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  padding: 0.85rem 0;
  box-shadow: 0 1px 0 var(--line);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

.logo small {
  font-weight: 400;
  font-size: 0.62em;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-header:not(.is-scrolled) .logo,
.site-header:not(.is-scrolled) .logo small {
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 0.2rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--ink);
  transition: width 0.25s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ------------------------------ Hero -------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--sage-mid) 45%, var(--sage-dark) 100%);
  display: flex;
  align-items: center;
}

/* Fade the hero — gradient background and dog photo alike — into the
   page's own background color, so the hero dissolves into the next
   section instead of ending on a hard line. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(28vh, 260px);
  z-index: 3;
  background: linear-gradient(to bottom, rgba(246, 247, 244, 0) 0%, var(--paper) 92%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 6vw;
  display: grid;
  grid-template-columns: minmax(280px, 46%) 1fr;
  align-items: center;
  height: 100%;
}

.hero__text {
  padding-right: 2vw;
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.9s ease 0.15s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.75;
  margin-bottom: 0.9rem;
}

.hero__title {
  line-height: 1.02;
  font-weight: 700;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  color: var(--ink);
}

.hero__title .sub {
  display: block;
  font-weight: 400;
  font-size: 0.82em;
  margin-top: 0.05em;
}

.hero__tagline {
  margin-top: 1.4rem;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 34ch;
}

.hero__tagline strong {
  font-weight: 700;
  color: var(--ink);
}

.hero__actions {
  margin-top: 2.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__image-wrap {
  position: relative;
  height: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero__image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
  object-position: top center;
}

.hero__image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--sage-mid) 0%, rgba(159,186,162,0) 14%);
  pointer-events: none;
}

.scroll-cue {
  position: absolute;
  left: 6vw;
  bottom: 2.2rem;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.75;
}

.scroll-cue__line {
  width: 1px;
  height: 26px;
  background: var(--ink);
  opacity: 0.5;
}

/* ------------------------------ Buttons ----------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: var(--sage-deep); }

.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(44,74,87,0.08); }

/* ------------------------------ Sections ----------------------------------- */
section { padding: clamp(4.5rem, 9vw, 7rem) 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}

.section-head .kicker {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
}

.section-head p {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  max-width: 46ch;
}

/* ---- About ---- */
.about {
  background: var(--paper);
}

.about .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: start;
}

.about__figure {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: 2.4rem;
  border: 1px solid var(--line);
}

.about__stat {
  display: flex;
  gap: 1.6rem;
  padding: 1.1rem 0;
}

.about__stat + .about__stat {
  border-top: 1px solid var(--line);
}

.about__stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--ink);
}

.about__stat span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.about__body p + p { margin-top: 1rem; }

/* ---- Approach / values (icon grid) ---- */
.approach {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
}

.card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.1rem;
  color: var(--sage-deep);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- Offering (spotlight rows) ---- */
.offering .wrap > p.lede {
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 2.8rem;
}

.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
  background: var(--white);
}

.spotlight__panel {
  padding: 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.spotlight__panel .tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--sage-deep);
  margin-bottom: 0.7rem;
}

.spotlight__panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.spotlight__panel p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
}

.spotlight__visual {
  background: linear-gradient(135deg, var(--sage-light), var(--sage-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.6rem;
  min-height: 220px;
}

.spotlight__visual svg { width: 96px; height: 96px; color: var(--ink); opacity: 0.85; }

.spotlight--reverse .spotlight__panel { order: 2; }
.spotlight--reverse .spotlight__visual { order: 1; }

/* ---- Quote / mission band ---- */
.mission {
  background: var(--ink);
  color: var(--paper);
}

.mission blockquote {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  max-width: 720px;
}

.mission blockquote strong { color: var(--sage-light); }

.mission cite {
  display: block;
  margin-top: 1.4rem;
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ---- Contact ---- */
.contact {
  background: var(--paper);
}

.contact .wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
}

.contact__info h2 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.contact__info p { margin-top: 1rem; max-width: 34ch; }

.contact__email {
  display: inline-flex;
  margin-top: 1.6rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--sage-deep);
  padding-bottom: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.field textarea { min-height: 130px; resize: vertical; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(111,143,118,0.18);
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1.4rem;
  padding: 0.85rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.form-status--success {
  background: rgba(111, 143, 118, 0.14);
  color: var(--sage-deep);
}

.form-status--error {
  background: rgba(184, 74, 62, 0.1);
  color: #8a3a30;
}

/* ------------------------------ Footer ----------------------------------- */
.site-footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding: 2.6rem 0;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-nav a { font-size: 0.9rem; color: var(--ink-soft); }
.footer-nav a:hover { color: var(--ink); }

.footer-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ------------------------------ Focus visibility -------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .spotlight { grid-template-columns: 1fr; }
  .spotlight--reverse .spotlight__panel,
  .spotlight--reverse .spotlight__visual { order: initial; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.4rem 6vw 1.8rem;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }

  .hero__content {
    grid-template-columns: 1fr;
    padding: 9vh 7vw 0;
    height: auto;
    min-height: 100vh;
  }
  .hero__text { padding-right: 0; order: 1; z-index: 2; }
  .hero__image-wrap {
    order: 2;
    min-height: 50vh;
    margin-top: 4vh;
  }
  .hero__image-wrap::before { display: none; }
  .scroll-cue { display: none; }
}

@media (max-width: 620px) {
  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
