/* =========================================================
   Old Chapel Veterinary Clinic - Global Design System
   Premium static website stylesheet
   ========================================================= */

:root {
  /* Core design tokens used across every page */
  --color-bg: #f5f1ea;
  --color-surface: #fffdf8;
  --color-surface-strong: #fbf7f0;
  --color-primary: #7f9b8a;
  --color-primary-deep: #5f7768;
  --color-primary-soft: rgba(127, 155, 138, 0.16);
  --color-accent: #b9ab98;
  --color-heading: #232625;
  --color-text: #4f564f;
  --color-text-soft: #6a736c;
  --color-border: rgba(35, 38, 37, 0.08);
  --color-shadow: 0 28px 60px rgba(35, 38, 37, 0.09);
  --color-shadow-soft: 0 18px 30px rgba(35, 38, 37, 0.07);
  --gradient-hero: linear-gradient(135deg, rgba(36, 41, 39, 0.88), rgba(60, 80, 69, 0.68));
  --gradient-button: linear-gradient(135deg, #89a796 0%, #6f8f7c 52%, #58705f 100%);
  --gradient-button-hover: linear-gradient(135deg, #93b2a1 0%, #789684 52%, #4f6657 100%);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-pill: 999px;
  --container: min(1160px, calc(100% - 2rem));
  --transition: 240ms ease;
  --header-height: 84px;
}

/* Base browser resets and global element defaults */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(127, 155, 138, 0.12), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(185, 171, 152, 0.14), transparent 24%),
    linear-gradient(180deg, #faf7f2 0%, #f5f1ea 100%);
  line-height: 1.6;
}

::selection {
  background: rgba(127, 155, 138, 0.28);
  color: var(--color-heading);
}

::-moz-selection {
  background: rgba(127, 155, 138, 0.28);
  color: var(--color-heading);
}

body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid rgba(127, 155, 138, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-heading);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

/* Shared top progress indicator */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 160;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
}
.scroll-progress-bar {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #7f9b8a 0%, #a4baac 48%, #d7c5b1 100%);
  box-shadow: 0 6px 18px rgba(127, 155, 138, 0.28);
  transition: transform 120ms linear;
}

/* Shared layout helpers */
.container { width: var(--container); margin: 0 auto; }
.section { padding: 5.8rem 0; }
.section-tight { padding: 4.5rem 0; }
.surface-card {
  /* Reusable soft glass panel used for feature areas and mobile navigation */
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--color-shadow-soft);
}

/* Small pill labels used above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  color: #eef4ef;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.dark {
  background: rgba(127, 155, 138, 0.1);
  color: var(--color-primary-deep);
  border-color: rgba(127, 155, 138, 0.18);
}
.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

/* Typography system */
h1, h2, h3, h4 {
  color: var(--color-heading);
  line-height: 1.1;
  margin: 0 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
p { margin: 0 0 1rem; max-width: 66ch; }
.lead {
  /* Larger paragraph style used for intros and supporting hero copy */
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text-soft);
  max-width: 62ch;
}
.text-white { color: rgba(255,255,255,0.88); }
.text-white h1, .text-white h2, .text-white h3 { color: white; }

/* Shared button system */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.btn {
  /* Shared button shell used for all button variants */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.2rem;
  padding: 0.92rem 1.45rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.btn::before {
  /* Inner highlight gives the button a softer premium finish */
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02));
  opacity: 0.85;
  z-index: -2;
  pointer-events: none;
}
.btn::after {
  /* Passing light streak used on hover for a more premium interaction */
  content: "";
  position: absolute;
  inset: -130% auto auto -20%;
  width: 55%;
  height: 320%;
  transform: rotate(18deg) translateX(-170%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transition: transform 560ms ease;
  z-index: -1;
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(35, 38, 37, 0.14);
}
.btn:hover::after { transform: rotate(18deg) translateX(280%); }
.btn-primary {
  background: var(--gradient-button);
  color: white;
  box-shadow: 0 16px 24px rgba(95, 119, 104, 0.24);
}
.btn-primary:hover { background: var(--gradient-button-hover); }
.btn-secondary {
  background: linear-gradient(135deg, #a8c695 0%, #89ae74 52%, #6f945d 100%);
  color: #f8fbf5;
  border-color: rgba(88, 112, 75, 0.28);
  box-shadow: 0 14px 24px rgba(111, 148, 93, 0.22);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #b4d2a2 0%, #93b97e 52%, #688855 100%);
}
.btn-outline {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.24);
  backdrop-filter: blur(14px);
}
.btn-outline:hover { background: rgba(255,255,255,0.16); }

/* =========================================================
   Sticky Header + Navigation
   ========================================================= */
.header {
  /* Sticky glass-style navbar that stays visible while scrolling */
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(250, 247, 242, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 12px 32px rgba(35, 38, 37, 0.05);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.logo-mark {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--color-primary), #95ae9f);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 22px rgba(95, 119, 104, 0.18);
}
.logo-mark svg { width: 1.5rem; height: 1.5rem; }
.logo-text strong {
  display: block;
  color: var(--color-heading);
  font-size: 1rem;
}
.logo-text span {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-links a {
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-soft);
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.34);
  border-color: rgba(127, 155, 138, 0.16);
  color: var(--color-heading);
  transform: translateY(-1px);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.mobile-toggle {
  /* Circular hamburger button shown on smaller screens */
  display: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
  position: relative;
}
.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  content: "";
  position: absolute;
  width: 1.25rem;
  height: 2px;
  background: var(--color-heading);
  left: 50%;
  transform: translateX(-50%);
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.mobile-toggle span { top: 50%; }
.mobile-toggle::before { top: 1rem; }
.mobile-toggle::after { top: 1.95rem; }
.mobile-toggle[aria-expanded="true"] span { opacity: 0; }
.mobile-toggle[aria-expanded="true"]::before { top: 1.5rem; transform: translateX(-50%) rotate(45deg); }
.mobile-toggle[aria-expanded="true"]::after { top: 1.5rem; transform: translateX(-50%) rotate(-45deg); }
.mobile-nav {
  /* Hidden by default and opened by JavaScript on mobile */
  display: none;
  margin-bottom: 1rem;
  padding: 1rem;
}
.mobile-nav a {
  display: block;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  color: var(--color-heading);
  font-weight: 600;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { background: rgba(127, 155, 138, 0.12); }

/* =========================================================
   Hero System + Rotating Words
   ========================================================= */
/* Hero sections used on the home page and inner pages */
.page-hero {
  position: relative;
  overflow: hidden;
  color: white;
}
.page-hero::before {
  /* Dark overlay improves text contrast over hero photography */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto auto -6rem -8rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  filter: blur(12px);
  z-index: 1;
}
.page-hero .container::after {
  content: "";
  position: absolute;
  inset: auto -2rem -8rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1), rgba(255,255,255,0));
  pointer-events: none;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  /* Make sure hero images always fully cover the hero area */
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero:not(.page-banner) .hero-media img {
  object-position: center 32%;
}
.team-page .page-banner .hero-media img {
  object-position: center 32%;
}
.hero-inner {
  /* Main two-column hero layout shared by the homepage and inner banners */
  position: relative;
  z-index: 2;
  min-height: min(82vh, 720px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 2.8rem 0 3rem;
}
.hero-copy {
  position: relative;
  max-width: 42rem;
  padding: 1.55rem 1.7rem 1.9rem;
  border-radius: 28px;
  background: rgba(24, 31, 28, 0.2);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(9px);
  box-shadow: 0 18px 36px rgba(18, 25, 22, 0.16);
}
.hero-copy::after {
  content: "";
  position: absolute;
  left: 1.7rem;
  bottom: 1.05rem;
  width: 6.5rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(220, 233, 224, 0.9), rgba(220, 233, 224, 0));
}
.hero-copy p { color: rgba(255,255,255,0.86); }
.hero-copy .btn-row {
  margin-top: 1.4rem;
}
.hero-rotator {
  /* Fixed-width word area prevents the heading from shifting during rotation */
  position: relative;
  display: inline-grid;
  width: var(--word-width, 11ch);
  min-height: 1.15em;
  vertical-align: bottom;
  color: #b9d0c1;
  font-size: 0.88em;
  letter-spacing: -0.01em;
}
.hero-word {
  /* Each rotating word sits in the same place and fades in/out */
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(0.22em);
  filter: blur(1px);
  transition: opacity 620ms ease, transform 620ms ease, filter 620ms ease;
  white-space: nowrap;
}
.hero-word.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
/* Right-side support stack in the home hero */
.hero-card-stack {
  display: grid;
  gap: 0.9rem;
  justify-self: end;
  width: min(100%, 24rem);
  align-self: start;
  margin-top: 1.2rem;
}
.hero-card-stack .btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.hero-card-stack .btn {
  width: 100%;
}
.hero-mini-image {
  /* Compact supporting image used in the homepage hero right column */
  position: relative;
  overflow: hidden;
  min-height: 270px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  box-shadow:
    0 22px 42px rgba(18, 25, 22, 0.2),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.hero-mini-image::after {
  /* Soft overlay helps the photo feel blended into the hero styling */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 31, 28, 0.02), rgba(24, 31, 28, 0.3)),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}
.hero-mini-image::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  z-index: 1;
  pointer-events: none;
}
.hero-mini-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.02);
}
/* Compact stat cards under the home hero copy */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-stat {
  /* Glass stat cards used below the home hero copy */
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
}
.hero-stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
  color: white;
}
.hero-stat span { color: rgba(255,255,255,0.74); font-size: 0.95rem; }

.page-banner {
  position: relative;
  overflow: hidden;
  color: white;
  border-radius: 0 0 42px 42px;
}
.page-banner .hero-inner {
  min-height: 28rem;
  grid-template-columns: 1fr;
  padding: 4.6rem 0 3.6rem;
  align-items: end;
}
.page-banner .hero-copy {
  max-width: 46rem;
  background: rgba(24, 31, 28, 0.22);
}

/* =========================================================
   Content Layouts
   ========================================================= */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.section-heading > div {
  max-width: 44rem;
}
.section-heading .lead,
.section-heading > p {
  max-width: 34rem;
  margin-bottom: 0;
}
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 6rem;
  height: 2px;
  background: linear-gradient(90deg, rgba(127, 155, 138, 0.9), rgba(127, 155, 138, 0));
  pointer-events: none;
}
.section-heading .btn {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  gap: 2rem;
  align-items: start;
}

.services-intro {
  position: sticky;
  top: calc(var(--header-height, 88px) + 1.5rem);
  display: block;
  align-self: start;
  margin-bottom: 0;
}

.services-intro > * + * {
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}
.grid-4 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}
.service-overview-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}
.service-link-button {
  position: relative;
  display: grid;
  gap: 0.18rem;
  min-width: min(100%, 23rem);
  padding: 1.15rem 1.4rem;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(127, 155, 138, 0.16), rgba(255,255,255,0.96));
  border: 1px solid rgba(127, 155, 138, 0.18);
  box-shadow: 0 18px 34px rgba(35, 38, 37, 0.08);
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}
.service-link-button::after {
  content: "\2192";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary-deep);
  font-size: 1.15rem;
  font-weight: 700;
}
.service-link-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(35, 38, 37, 0.12);
  border-color: rgba(127, 155, 138, 0.26);
  background: linear-gradient(135deg, rgba(127, 155, 138, 0.2), rgba(255,255,255,0.98));
}
.service-link-button-label {
  color: var(--color-heading);
  font-weight: 700;
  font-size: 1rem;
}
.service-link-button-copy {
  color: var(--color-text-soft);
  font-size: 0.92rem;
  padding-right: 2rem;
}
.card {
  padding: 1.55rem;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card h3 {
  margin-bottom: 0.7rem;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 42px rgba(35, 38, 37, 0.12);
  border-color: rgba(127, 155, 138, 0.18);
}
.card:focus-visible {
  outline: 3px solid rgba(127, 155, 138, 0.32);
  outline-offset: 3px;
}
.card-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(127, 155, 138, 0.12);
  color: var(--color-primary-deep);
  margin-bottom: 1rem;
}
.card-icon svg { width: 1.35rem; height: 1.35rem; }
.home-info-card {
  position: relative;
  overflow: hidden;
}
.home-info-card .card-hover-note {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(127, 155, 138, 0.16);
  box-shadow: 0 18px 30px rgba(35, 38, 37, 0.08);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  z-index: 3;
}
.home-info-card .card-hover-note strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--color-heading);
}
.home-info-card .card-hover-note p {
  margin-bottom: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}
.home-info-card .card-hover-note a {
  color: var(--color-primary-deep);
  text-decoration: none;
  font-weight: 600;
}
.home-info-card .card-hover-note a:hover {
  text-decoration: underline;
}
.home-info-card:hover .card-hover-note,
.home-info-card:focus-within .card-hover-note,
.home-info-card:focus-visible .card-hover-note {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.service-card,
.team-card {
  position: relative;
  overflow: hidden;
}
.service-card::before,
.team-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(127, 155, 138, 0.9), rgba(185, 171, 152, 0.45), transparent);
}
.service-card h3 {
  padding-top: 0.35rem;
}
.team-card h2 {
  margin-bottom: 0.55rem;
}
.service-card p, .team-card p { margin-bottom: 0.8rem; }

.feature-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 100%;
  transition: transform 500ms ease;
}
.feature-panel:hover img,
.image-card:hover img { transform: scale(1.04); }
.feature-copy { padding: 2rem; }
.feature-copy p:last-of-type {
  margin-bottom: 0;
}

.callout {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e7eee8, #f5efe7);
  border: 1px solid rgba(127, 155, 138, 0.14);
  transition: transform 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: hidden;
}
.callout h2 {
  max-width: 18ch;
}
.callout:hover { box-shadow: 0 24px 42px rgba(35, 38, 37, 0.1); }
.check-list {
  display: grid;
  gap: 0.9rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-mark {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.18rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.image-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  min-height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(35, 38, 37, 0.02), rgba(35, 38, 37, 0.28));
  pointer-events: none;
}
.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease;
}
.image-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.88);
  color: var(--color-heading);
  font-weight: 600;
  z-index: 1;
}

.info-showcase {
  position: relative;
  overflow: hidden;
  padding: 2.3rem;
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(248, 244, 238, 0.88)),
    radial-gradient(circle at top right, rgba(127, 155, 138, 0.18), transparent 28%);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 30px 60px rgba(35, 38, 37, 0.09);
  backdrop-filter: blur(18px);
}
.info-showcase h2 {
  max-width: 16ch;
}
.info-showcase::before {
  content: "";
  position: absolute;
  inset: -25% auto auto -10%;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 155, 138, 0.16), rgba(127, 155, 138, 0));
  pointer-events: none;
}
.info-showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
  margin-bottom: 1.6rem;
}
.info-showcase-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
.info-showcase-details {
  display: grid;
  gap: 1.1rem;
  align-content: start;
  max-width: none;
}
.info-showcase-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.55rem;
}
.info-showcase-actions .btn {
  min-width: 12rem;
}
.info-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.info-pill {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-height: 100%;
  padding: 1.25rem 1.2rem;
  border-radius: 28px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.52);
  box-shadow: 0 18px 30px rgba(35, 38, 37, 0.07);
  backdrop-filter: blur(16px);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.info-pill:hover { box-shadow: 0 24px 38px rgba(35, 38, 37, 0.1); }
.info-pill-link {
  color: inherit;
  text-decoration: none;
}
.info-pill-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 38px rgba(35, 38, 37, 0.1);
}
.info-pill-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(127, 155, 138, 0.18), rgba(255,255,255,0.82));
  color: var(--color-primary-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.info-pill-icon svg { width: 1.25rem; height: 1.25rem; }
.info-pill strong { display: block; color: var(--color-heading); margin-bottom: 0.1rem; font-size: 1.02rem; }
.info-pill span { color: var(--color-text-soft); font-size: 0.95rem; }

/* =========================================================
   Forms + Contact + Map
   ========================================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 1.4rem;
}
.contact-card,
.form-card,
.map-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow-soft);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.contact-card h2,
.form-card h2,
.map-card h2 {
  margin-bottom: 0.8rem;
}
.contact-list { display: grid; gap: 0.9rem; margin-top: 1.3rem; }
.contact-item strong { display: block; color: var(--color-heading); }
.hours-list { display: grid; gap: 0.65rem; margin-top: 1rem; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-field {
  display: grid;
  gap: 0.45rem;
}
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 600; color: var(--color-heading); }
input, textarea, select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(35, 38, 37, 0.12);
  background: #fffefb;
  color: var(--color-heading);
}
textarea { min-height: 10rem; resize: vertical; }
iframe {
  width: 100%;
  min-height: 21rem;
  border: 0;
  border-radius: calc(var(--radius-lg) - 4px);
}
.form-note {
  margin-top: 0.95rem;
  font-size: 0.92rem;
  color: var(--color-text-soft);
}

/* =========================================================
   Footer + Floating Utilities
   ========================================================= */
.footer {
  background: #212523;
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 1.6rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 1.4rem;
}
.footer h3, .footer h4 { color: white; }
.footer-links {
  display: grid;
  gap: 0.7rem;
}
.footer-links a {
  color: rgba(255,255,255,0.82);
  transition: color var(--transition), transform var(--transition);
}
.footer-links a:hover {
  color: white;
  transform: translateX(2px);
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 95;
  display: grid;
  gap: 0.85rem;
  justify-items: end;
}
.fab {
  position: relative;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 20px 36px rgba(33, 37, 35, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem) scale(0.94);
  transition: transform 320ms ease, opacity 320ms ease, visibility 320ms ease, box-shadow var(--transition), border-color var(--transition);
}
.fab::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), rgba(255,255,255,0.04));
  z-index: -2;
}
.fab::after {
  content: "";
  position: absolute;
  inset: -120% auto auto -28%;
  width: 58%;
  height: 300%;
  transform: rotate(20deg) translateX(-180%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transition: transform 620ms ease;
  z-index: -1;
}
.fab:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 24px 42px rgba(33, 37, 35, 0.22);
}
.fab:hover::after { transform: rotate(20deg) translateX(300%); }
.fab svg { width: 1.4rem; height: 1.4rem; }
.whatsapp-fab {
  background: radial-gradient(circle at 30% 30%, #54e08b, #25d366 55%, #169c4b 100%);
  color: white;
  box-shadow: 0 20px 38px rgba(37, 211, 102, 0.34);
}
.back-to-top {
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 1.2rem;
  background: linear-gradient(160deg, #9cbe87, #6f945d);
  color: #f8fbf5;
  border-color: rgba(88, 112, 75, 0.2);
  box-shadow:
    0 18px 30px rgba(33, 37, 35, 0.16),
    0 8px 18px rgba(111, 148, 93, 0.18);
  animation: backToTopGlow 3.2s ease-in-out infinite;
}
.back-to-top::before {
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}
.back-to-top svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
  filter: drop-shadow(0 6px 12px rgba(88, 112, 75, 0.2));
}
.back-to-top:hover {
  border-color: rgba(88, 112, 75, 0.46);
  color: #ffffff;
  box-shadow:
    0 24px 40px rgba(33, 37, 35, 0.2),
    0 10px 24px rgba(111, 148, 93, 0.22);
}
.fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@keyframes backToTopGlow {
  0%, 100% {
    box-shadow:
      0 20px 36px rgba(33, 37, 35, 0.16),
      0 8px 18px rgba(127, 155, 138, 0.12),
      inset 0 1px 0 rgba(255,255,255,0.98);
  }
  50% {
    box-shadow:
      0 22px 40px rgba(33, 37, 35, 0.18),
      0 10px 22px rgba(127, 155, 138, 0.18),
      0 0 0 6px rgba(127, 155, 138, 0.05),
      inset 0 1px 0 rgba(255,255,255,0.98);
  }
}

/* =========================================================
   WhatsApp Preview Panel
   Important functionality handled in main.js
   ========================================================= */
.whatsapp-panel {
  width: min(21rem, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(35, 38, 37, 0.08);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 22px 36px rgba(33, 37, 35, 0.16);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem) scale(0.98);
  transform-origin: bottom right;
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
}
.whatsapp-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.whatsapp-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.whatsapp-head strong { display: block; color: var(--color-heading); }
.whatsapp-head span { color: var(--color-text-soft); font-size: 0.92rem; }
.whatsapp-close {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: white;
}
.whatsapp-bubble {
  padding: 1rem;
  border-radius: 20px 20px 20px 8px;
  background: #f2f8f3;
  color: var(--color-heading);
  margin-bottom: 1rem;
}
.whatsapp-panel .btn {
  width: 100%;
}

/* =========================================================
   Reveal Animation States
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Responsive Layout
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner,
  .feature-panel,
  .contact-layout,
  .footer-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .info-strip {
    grid-template-columns: 1fr 1fr;
  }
  .page-banner .hero-inner,
  .hero-inner,
  .contact-layout,
  .footer-grid { gap: 1.2rem; }
  .hero-card-stack { justify-self: stretch; width: 100%; }
  .hero-card-stack .btn-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-mini-image { min-height: 240px; }
  .info-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links, .header-actions .btn { display: none; }
  .mobile-toggle { display: inline-grid; }
  .mobile-nav.is-open { display: block; }
  .hero-inner,
  .feature-panel,
  .contact-layout,
  .grid-4,
  .grid-3,
  .grid-2,
  .services-layout,
  .footer-grid,
  .info-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .services-intro {
    position: static;
    top: auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats { grid-template-columns: 1fr; }
  .section-heading {
    display: block;
  }
  .section-heading > * + * { margin-top: 1rem; }
  .page-banner .hero-copy {
    padding: 1.3rem 1.25rem 1.6rem;
  }
  .page-banner .hero-copy::after {
    left: 1.25rem;
  }
  .page-hero::after { width: 14rem; height: 14rem; }
  .page-banner { border-radius: 0 0 30px 30px; }
  .hero-card-stack {
    align-self: stretch;
    margin-top: 0;
  }
  .hero-card-stack .btn-row {
    grid-template-columns: 1fr;
  }
  .hero-mini-image { min-height: 220px; }
  .card,
  .image-card,
  .feature-panel,
  .callout,
  .info-pill,
  .contact-card,
  .form-card,
  .map-card {
    transform: none;
  }
  .info-showcase { padding: 1.5rem; }
}

@media (max-width: 560px) {
  .section { padding: 4.4rem 0; }
  .header-inner { min-height: 76px; }
  h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  h2 { font-size: clamp(1.85rem, 9vw, 2.45rem); }
  .hero-inner { min-height: auto; padding: 3rem 0 3rem; }
  .card,
  .contact-card,
  .form-card,
  .map-card,
  .callout,
  .feature-copy { padding: 1.25rem; }
  .floating-actions { right: 0.75rem; bottom: 0.75rem; }
  .fab {
    width: 3.7rem;
    height: 3.7rem;
  }
  .scroll-progress { height: 3px; }
  .back-to-top {
    width: 3.3rem;
    height: 3.3rem;
    border-radius: 1.05rem;
  }
  .back-to-top::before { border-radius: 1.05rem; }
}
