/* ==========================================================================
   Arlington Veterinary Clinic — bespoke theme
   Pixel-targeted to arlingtonvetclinic.net
   Palette: red #d9002f / button #cc0000 / hover #a00000, ink #1a1a1a, white.
   Type: Playball (script accent) · Lora (headings) · Inter (body).
   Theme CSS is UNLAYERED → always beats framework @layer rules. No !important.
   ========================================================================== */

:root {
  /* Override framework fallback tokens so any framework section uses our palette */
  --color-primary:   #d9002f;
  --color-accent:    #cc0000;
  --color-secondary: #1a1a1a;
  --color-dark:      #1a1a1a;
  --color-dark-grey: #1a1a1a;

  /* Theme tokens */
  --avc-red:       #d9002f;
  --avc-red-btn:   #cc0000;
  --avc-red-deep:  #a00000;
  --avc-brown:     #733e2e;   /* live-site band/header brown */
  --avc-ink:       #1f2226;
  --avc-muted:     #5f6671;
  --avc-line:      #ececec;
  --avc-soft:      #fbf5f3;   /* warm off-white section bg */
  --avc-cream:     #f6f1ee;
  --avc-white:     #ffffff;

  --font-body:    'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-script:  'Playball', cursive;

  --avc-radius:   14px;
  --avc-radius-lg: 22px;
  --avc-shadow:   0 12px 34px rgba(20,20,30,.10);
  --avc-shadow-sm:0 6px 18px rgba(20,20,30,.08);
  --avc-maxw:     1180px;
}

/* ---------- Base ---------- */
.avc-body {
  font-family: var(--font-body);
  color: var(--avc-ink);
  background: var(--avc-white);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.avc-body h1, .avc-body h2, .avc-body h3, .avc-body h4 {
  font-family: var(--font-heading);
  color: var(--avc-ink);
  line-height: 1.18;
  margin: 0 0 .5em;
  font-weight: 600;
}
.avc-body a { color: var(--avc-red); text-decoration: none; }
.avc-body img { max-width: 100%; display: block; }

.avc-container { width: 100%; max-width: var(--avc-maxw); margin: 0 auto; padding: 0 24px; }

.skip-to-content {
  position: absolute; left: -9999px; top: 0; background: var(--avc-red); color: #fff;
  padding: 10px 16px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-to-content:focus { left: 0; }

/* Eyebrow script accent */
.avc-eyebrow {
  font-family: var(--font-script);
  color: var(--avc-red);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1;
  margin: 0 0 .25em;
  font-weight: 400;
}

/* ---------- Buttons ---------- */
.avc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1; text-align: center;
}
.avc-btn__icon { width: 18px; height: 18px; fill: currentColor; }
/* `.avc-body a` (0-1-1) outranks a bare modifier class (0-1-0), so button
   color rules carry the `.avc-body` prefix to keep text readable on red. */
.avc-btn--primary, .avc-body .avc-btn--primary { background: var(--avc-red-btn); color: #fff; box-shadow: 0 8px 20px rgba(204,0,0,.28); }
.avc-btn--primary:hover, .avc-body .avc-btn--primary:hover { background: var(--avc-red-deep); transform: translateY(-2px); color: #fff; }
.avc-btn--outline, .avc-body .avc-btn--outline { background: transparent; color: var(--avc-ink); border-color: rgba(0,0,0,.18); }
.avc-btn--outline:hover, .avc-body .avc-btn--outline:hover { border-color: var(--avc-red); color: var(--avc-red); }
.avc-btn--white, .avc-body .avc-btn--white { background: #fff; color: var(--avc-red); }
.avc-btn--white:hover, .avc-body .avc-btn--white:hover { transform: translateY(-2px); color: var(--avc-red-deep); }
.avc-btn--block { width: 100%; }

/* ---------- Header (dark brown w/ faded pets, matches live site) ---------- */
.avc-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--avc-brown) url('/themes/arlingtonvet/assets/header-bg.png') center / cover no-repeat;
  transition: box-shadow .2s ease, padding .2s ease;
}
.avc-header.is-scrolled { box-shadow: 0 6px 22px rgba(0,0,0,.08); }
.avc-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.avc-header.is-scrolled .avc-header__inner { min-height: 70px; }
.avc-logo { display: inline-flex; align-items: center; }
.avc-logo img { height: clamp(46px, 6vw, 62px); width: auto; transition: height .2s ease; }
.avc-header.is-scrolled .avc-logo img { height: clamp(40px, 5vw, 52px); }

.avc-nav { margin-left: auto; }
.avc-nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.avc-nav__menu > li { position: relative; }
.avc-nav__menu > li > a, .avc-body .avc-nav__menu > li > a {
  display: inline-flex; align-items: center; gap: .3em; padding: 10px 16px; border-radius: 8px;
  color: #fff; font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: color .15s ease, background .15s ease;
}
.avc-nav__menu > li > a:hover, .avc-body .avc-nav__menu > li > a:hover { color: #fff; background: rgba(255,255,255,.16); }
.avc-caret { font-size: .7em; opacity: .7; }

.avc-nav__submenu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--avc-line); border-radius: 12px;
  box-shadow: var(--avc-shadow); padding: 8px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; z-index: 50;
}
.avc-nav__menu > li.has-children:hover .avc-nav__submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.avc-nav__submenu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--avc-ink); font-size: .94rem; font-weight: 500; }
.avc-nav__submenu a:hover { background: var(--avc-soft); color: var(--avc-red); }

.avc-header__cta { display: flex; align-items: center; gap: 12px; }
.avc-burger { display: none; background: none; border: none; cursor: pointer; color: #fff; width: 42px; height: 42px; }
.avc-burger svg { width: 26px; height: 26px; }

/* ---------- Mobile drawer ---------- */
.avc-mobile-overlay {
  position: fixed; inset: 0; background: rgba(15,15,20,.5); opacity: 0; visibility: hidden;
  transition: opacity .25s ease; z-index: 1200;
}
.avc-mobile {
  position: fixed; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: #fff; z-index: 1300; transform: translateX(100%); transition: transform .28s ease;
  display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.18);
}
.avc-nav-open .avc-mobile-overlay { opacity: 1; visibility: visible; }
.avc-nav-open .avc-mobile { transform: translateX(0); }
.avc-mobile__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--avc-line); }
.avc-mobile__brand { font-family: var(--font-heading); font-weight: 600; font-size: 1.1rem; }
.avc-mobile__close { background: none; border: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--avc-ink); }
.avc-mobile__list { list-style: none; margin: 0; padding: 10px 0; flex: 1; overflow-y: auto; }
.avc-mobile__list a { display: block; padding: 14px 22px; font-weight: 600; color: var(--avc-ink); font-size: 1.05rem; }
.avc-mobile__list a:hover { background: var(--avc-soft); color: var(--avc-red); }
.avc-mobile__cta { padding: 16px 20px; border-top: 1px solid var(--avc-line); }

/* ---------- Notification ---------- */
.avc-notification { background: var(--avc-red); color: #fff; text-align: center; padding: 9px 16px; font-size: .92rem; }
.avc-notification a { color: #fff; text-decoration: underline; }

/* ---------- Section scaffolding ---------- */
.avc-section { padding: clamp(56px, 8vw, 96px) 0; }
.avc-section--soft { background: var(--avc-soft); }
.avc-section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); }
.avc-section__title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.avc-section__title em { color: var(--avc-red); font-style: normal; }
.avc-section__lead { color: var(--avc-muted); font-size: 1.08rem; }

/* ---------- Hero (full-bleed banner + hours panel, matches live site) ---------- */
.avc-hero { position: relative; background: #231a14; }
.avc-hero__bg img {
  width: 100%; height: clamp(420px, 40vw, 480px);
  object-fit: cover; object-position: top right; display: block;
}
.avc-hero__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: 40%;
  background: rgba(240, 240, 240, .97);
  display: grid; align-items: center; justify-items: center;
  padding: 28px clamp(20px, 3vw, 48px); text-align: center;
}
.avc-hero__panel-inner { width: 100%; max-width: 400px; }
.avc-hero__heading { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-bottom: .55em; }
.avc-hero__rule { border: none; border-top: 2px solid var(--avc-red-btn); margin: 0 0 1.2em; }
.avc-hero__subheading { font-size: clamp(1.2rem, 1.9vw, 1.5rem); margin-bottom: .7em; }
.avc-hours {
  margin: 0 0 1.6em; display: grid; grid-template-columns: max-content max-content;
  justify-content: center; column-gap: 28px; row-gap: 7px; text-align: left;
}
.avc-hours__row { display: contents; }
.avc-hours__row dt { font-weight: 600; color: var(--avc-ink); margin: 0; }
.avc-hours__row dd { color: var(--avc-muted); margin: 0; white-space: nowrap; }
.avc-hero__phone { font-size: 1.12rem; padding: .85em 1.9em; }

/* ---------- About / intro ---------- */
.avc-about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.avc-about__media img { border-radius: var(--avc-radius-lg); box-shadow: var(--avc-shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.avc-about__title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.avc-about__text { color: var(--avc-muted); font-size: 1.06rem; }
.avc-about__text p { margin: 0 0 1em; }
.avc-about__actions { margin-top: 1.4em; }

/* ---------- Veterinarians ---------- */
.avc-vets__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; max-width: 760px; margin: 0 auto; }
.avc-vet {
  background: #fff; border: 1px solid var(--avc-line); border-radius: var(--avc-radius-lg);
  overflow: hidden; box-shadow: var(--avc-shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.avc-vet:hover { transform: translateY(-6px); box-shadow: var(--avc-shadow); }
.avc-vet__photo { aspect-ratio: 1/1; background: var(--avc-cream); }
.avc-vet__photo img { width: 100%; height: 100%; object-fit: cover; }
.avc-vet__body { padding: 22px 24px 26px; text-align: center; }
.avc-vet__name { font-size: 1.35rem; margin-bottom: .15em; }
.avc-vet__role { color: var(--avc-red); font-weight: 600; font-size: .95rem; }
.avc-vet__meta { color: var(--avc-muted); font-size: .9rem; margin-top: .3em; }
.avc-vet__link { display: inline-block; margin-top: .8em; color: var(--avc-red); font-weight: 600; font-size: .95rem; }
.avc-vet__link:hover { color: var(--avc-red-deep); text-decoration: underline; }

/* ---------- Staff directory (/staff) ---------- */
.avc-staff-dir__grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.avc-staffcard {
  width: 250px; background: #fff; border: 1px solid var(--avc-line); border-radius: var(--avc-radius);
  overflow: hidden; box-shadow: var(--avc-shadow-sm); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.avc-staffcard:hover { transform: translateY(-5px); box-shadow: var(--avc-shadow); }
.avc-staffcard__photo { aspect-ratio: 1/1; background: var(--avc-cream); }
.avc-staffcard__photo img { width: 100%; height: 100%; object-fit: cover; }
.avc-staffcard__body { padding: 18px 16px 22px; }
.avc-staffcard__name { font-size: 1.2rem; margin-bottom: .25em; }
.avc-staffcard__meta { color: var(--avc-muted); font-size: .88rem; margin: 0; line-height: 1.5; }

/* ---------- Services grid ---------- */
/* Flex (not grid) so an orphan card on the last row centers instead of hugging the left */
.avc-services__grid { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.avc-service {
  flex: 1 1 280px; max-width: 350px;
  background: #fff; border: 1px solid var(--avc-line); border-radius: var(--avc-radius);
  padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.avc-service:hover { transform: translateY(-5px); box-shadow: var(--avc-shadow); border-color: transparent; }
.avc-service__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--avc-soft); color: var(--avc-red); margin-bottom: 16px;
}
.avc-service__icon svg { width: 28px; height: 28px; fill: currentColor; }
.avc-service__name { font-size: 1.18rem; margin-bottom: .35em; }
.avc-service__desc { color: var(--avc-muted); font-size: .96rem; margin: 0; }
.avc-services__foot { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
.avc-services__note { font-family: var(--font-heading); font-weight: 600; font-size: 1.3rem; margin: 0 0 1em; }

/* ---------- CTA banner ---------- */
.avc-cta { background: var(--avc-red); color: #fff; text-align: center; }
.avc-cta .avc-container { padding-top: clamp(54px, 7vw, 86px); padding-bottom: clamp(54px, 7vw, 86px); }
.avc-cta__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: .35em; }
.avc-cta__text { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.6em; }
.avc-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.avc-footer { background: var(--avc-ink); color: rgba(255,255,255,.78); padding: clamp(48px, 6vw, 72px) 0 28px; }
.avc-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.avc-footer__brand img { height: 64px; width: auto; margin-bottom: 16px; }
.avc-footer__brand p { font-size: .96rem; color: rgba(255,255,255,.65); max-width: 320px; }
.avc-footer__col h4 { color: #fff; font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 16px; }
.avc-footer__col ul { list-style: none; margin: 0; padding: 0; }
.avc-footer__col ul li { margin-bottom: 10px; }
.avc-footer__col a { color: rgba(255,255,255,.78); font-size: .96rem; }
.avc-footer__col a:hover { color: #fff; }
.avc-footer__hours li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.avc-footer__hours span:first-child { color: rgba(255,255,255,.6); }
.avc-footer__contact { display: flex; flex-direction: column; gap: 12px; }
.avc-footer__contact a, .avc-footer__addr { display: inline-flex; align-items: flex-start; gap: .6em; color: rgba(255,255,255,.82); font-size: .96rem; }
.avc-footer__contact svg { width: 18px; height: 18px; fill: var(--avc-red); flex-shrink: 0; margin-top: 2px; }
.avc-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .88rem; color: rgba(255,255,255,.55); }
.avc-footer__bottom a { color: rgba(255,255,255,.8); text-decoration: underline; }

/* ---------- Reveal ---------- */
.avc-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.avc-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .avc-nav, .avc-header__cta .avc-btn__label { display: none; }
  .avc-burger { display: inline-flex; }
  .avc-about__inner { grid-template-columns: 1fr; }
  .avc-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .avc-hero__bg img { height: 220px; object-position: top center; }
  .avc-hero__panel { position: relative; width: 100%; padding: 32px 20px; }
}
@media (max-width: 640px) {
  .avc-container { padding: 0 18px; }
  .avc-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ==========================================================================
   Inner pages (Pages Mendol — show.blade.php uses framework chrome classes)
   ========================================================================== */
.inner-page-wrapper { background: #fff; }
.inner-hero { position: relative; min-height: 340px; display: grid; }
.inner-hero-banner { position: absolute; inset: 0; }
.inner-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.inner-hero-overlay {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 340px; padding: 40px 0;
  background: linear-gradient(180deg, rgba(26,26,30,.45), rgba(160,0,0,.55));
  color: #fff;
}
.inner-hero-overlay h1 { color: #fff; font-family: var(--font-heading); font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin: 0; }
.inner-hero-overlay p { color: rgba(255,255,255,.92); }

.inner-content { max-width: 860px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; }
.page-content { color: var(--avc-ink); font-size: 1.06rem; line-height: 1.75; }
.page-content h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 1.4em 0 .5em; }
.page-content h3 { font-family: var(--font-heading); font-size: 1.35rem; margin: 1.2em 0 .4em; }
.page-content h4 { font-size: 1.1rem; margin: 1em 0 .35em; }
.page-content p { margin: 0 0 1.1em; color: var(--avc-muted); }
.page-content a { color: var(--avc-red); font-weight: 600; }
.page-content ul, .page-content ol { margin: 0 0 1.2em; padding-left: 1.3em; color: var(--avc-muted); }
.page-content li { margin-bottom: .5em; }
.page-content img { border-radius: var(--avc-radius); margin: 1em 0; }

/* Info card used in Contact page content */
.avc-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin: 8px 0 4px; }
.avc-info__card { background: var(--avc-soft); border-radius: var(--avc-radius); padding: 22px 24px; }
.avc-info__card h3 { margin: 0 0 .4em; font-size: 1.15rem; }
.avc-info__card p, .avc-info__card a { color: var(--avc-muted); margin: 0; }
.avc-info__card a { color: var(--avc-red); font-weight: 600; }
.avc-hours-list { list-style: none; margin: 0; padding: 0; }
.avc-hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; color: var(--avc-muted); }
