/* Aegis Continental Veterinary — shared styles */

:root {
  --blue: #0073cf;
  --blue-deep: #005a9e;
  --blue-soft: #4da3e8;
  --black: #0a0a0a;
  --ink: #121418;
  --charcoal: #2a2e35;
  --muted: #6b7280;
  --line: rgba(0, 115, 207, 0.18);
  --cream: #f7f8fa;
  --white: #ffffff;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    padding 0.35s var(--ease);
}

.site-header.is-scrolled,
.site-header.solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.brand-text {
  display: none;
  flex-direction: column;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.25;
}

@media (min-width: 640px) {
  .brand-text {
    display: flex;
  }
}

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

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--blue);
  color: var(--white) !important;
  border-radius: 2px;
  font-weight: 560;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  position: absolute;
  left: 12px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    padding: 5.5rem 1.5rem 2rem;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

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

.btn-primary:hover {
  background: var(--blue-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

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

.btn-dark:hover {
  background: var(--charcoal);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.55) 45%, rgba(10, 10, 10, 0.92) 100%),
    linear-gradient(115deg, rgba(0, 115, 207, 0.28), transparent 50%),
    url("https://images.unsplash.com/photo-1587300003388-59208cc962cb?auto=format&fit=crop&w=2000&q=80")
      center / cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(6rem, 14vh, 9rem) 0 clamp(3.5rem, 8vh, 5.5rem);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero-brand span {
  display: block;
  color: var(--blue-soft);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.3s forwards;
}

.hero-lead {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 2rem;
  font-size: 1.02rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

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

/* ——— Page hero (inner) ——— */
.page-hero {
  position: relative;
  padding: clamp(7.5rem, 16vh, 10rem) 0 4rem;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(0, 115, 207, 0.35), transparent 55%),
    linear-gradient(160deg, #0a0a0a 0%, #0f1520 100%);
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 0.85rem;
}

.page-hero p {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--ink);
}

.section-lead {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-dark .section-title {
  color: var(--white);
}

.section-dark .section-lead {
  color: rgba(255, 255, 255, 0.65);
}

.section-split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .section-split {
    grid-template-columns: 1fr 1fr;
  }
}

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

.prose p {
  color: var(--charcoal);
  font-size: 1.05rem;
}

.section-dark .prose p {
  color: rgba(255, 255, 255, 0.72);
}

/* ——— Services strip ——— */
.services-grid {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 700px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-item {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .service-item {
    padding: 2rem 1.75rem 2rem 0;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }

  .service-item:nth-child(3n) {
    border-right: none;
    padding-right: 0;
  }

  .service-item:nth-child(n + 4) {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
  }
}

.service-item h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.service-item p {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 28ch;
}

.section-dark .services-grid {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.section-dark .service-item {
  border-color: rgba(255, 255, 255, 0.12);
}

.section-dark .service-item h3 {
  color: var(--white);
}

.section-dark .service-item p {
  color: rgba(255, 255, 255, 0.65);
}

/* ——— Product gallery ——— */
.product-gallery {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.75rem;
}

@media (min-width: 760px) {
  .product-gallery {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.5rem;
    align-items: stretch;
  }
}

.product-shot {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  background: #0f1218;
}

.product-shot img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.product-shot:hover img {
  transform: scale(1.04);
}

.product-shot figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.35rem 1.35rem;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.88));
}

.product-shot h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.product-shot p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 32ch;
}

.product-extras {
  margin-top: 2.5rem;
}

.about-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.about-products img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* ——— Feature band ——— */
.feature-band {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.feature-band-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.55) 55%, rgba(10, 10, 10, 0.35) 100%),
    url("https://images.unsplash.com/photo-1516734212186-a967f81ad0d7?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
}

.feature-band .container {
  position: relative;
  z-index: 1;
  padding-block: 4.5rem;
}

.feature-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  max-width: 16ch;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.feature-band p {
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1.75rem;
}

/* ——— Stats / trust ——— */
.trust-row {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .trust-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--blue-soft);
  margin-bottom: 0.35rem;
}

.trust-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ——— About values ——— */
.values {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 700px) {
  .values {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

.contact-detail {
  margin-bottom: 1.75rem;
}

.contact-detail h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.4rem;
}

.contact-detail p,
.contact-detail a {
  font-size: 1.1rem;
  color: var(--ink);
}

.contact-detail a:hover {
  color: var(--blue);
}

.hours-list {
  display: grid;
  gap: 0.4rem;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.98rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--charcoal);
}

.hours-list li span:last-child {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 60px rgba(18, 20, 24, 0.06);
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 560;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid transparent;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(0, 115, 207, 0.08);
  border-left: 3px solid var(--blue);
  color: var(--ink);
  font-size: 0.95rem;
}

.form-success.is-visible {
  display: block;
}

.map-embed {
  margin-top: 3rem;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(0, 115, 207, 0.12), rgba(10, 10, 10, 0.04)),
    var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.map-embed p {
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 1rem;
}

.map-embed a {
  color: var(--blue);
  font-weight: 560;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 700px) {
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-brand p {
  max-width: 32ch;
  font-size: 0.95rem;
  line-height: 1.55;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--blue-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ——— Utility ——— */
.mt-lg {
  margin-top: 2rem;
}

.text-link {
  color: var(--blue);
  font-weight: 560;
}

.text-link:hover {
  text-decoration: underline;
}

/* ——— Back to top ——— */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 2px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    visibility 0.3s, background 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-soft);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
