/* ==========================================================================
   Lawlor Pharmasave — design system
   Palette: Pharmasave red, deep pharmacy navy, warm paper white, ink
   Type: Fraunces (display) / Public Sans (body) / IBM Plex Mono (labels)
   Signature device: the "script label" — a dashed-edge prescription-label
   tag used for eyebrows, service tags and the hours card.
   ========================================================================== */

:root{
  color-scheme: light;

  /* ---- palette ---- */
  --red: #DA291C;
  --red-dark: #A81F15;
  --red-tint: #FBEAE7;
  --navy: #0C2340;
  --navy-2: #123A63;
  --navy-tint: #E8EEF6;
  --paper: #FBF9F5;
  --white: #FFFFFF;
  --ink: #1C1D1F;
  --ink-soft: #52565C;
  --line: #E3DFD6;

  /* ---- type ---- */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-label: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* ---- scale ---- */
  --gap: clamp(1.25rem, 2vw, 2rem);
  /* Softer, friendlier corners throughout: a comfortable rounded base for
     cards/images/inputs, a smaller one for compact tags and chips, a
     larger one for big feature surfaces like popups, and a full pill for
     buttons so calls-to-action feel warm and inviting rather than sharp
     and corporate. */
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow: 0 12px 32px -16px rgba(12, 35, 64, 0.28);
  --container: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

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

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; color: var(--navy); }
p{ margin: 0; }
button{ font: inherit; cursor: pointer; }

:focus-visible{
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

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

/* ---------------------------------------------------------------------- */
/* Signature device: the label tag                                        */
/* ---------------------------------------------------------------------- */
.label-tag{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px dashed var(--red);
  border-radius: var(--radius-sm);
  padding: 0.4em 0.75em;
  background: var(--red-tint);
  line-height: 1;
}
.label-tag.is-navy{
  color: var(--navy-2);
  border-color: var(--navy-2);
  background: var(--navy-tint);
}
.label-tag.is-plain{
  color: var(--ink-soft);
  border-color: var(--line);
  background: transparent;
}

.eyebrow{
  display: block;
  margin-bottom: 0.9rem;
}

/* ---------------------------------------------------------------------- */
/* Buttons                                                                 */
/* ---------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9em 1.6em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover{ background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline:hover{ background: rgba(255,255,255,0.12); }
.btn-navy{ background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover{ background: var(--navy-2); border-color: var(--navy-2); }
.btn-ghost{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover{ background: var(--navy); color: var(--white); }
.btn-block{ width: 100%; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.brand img{ height: 42px; width: auto; }

.nav-desktop{ display: none; flex-shrink: 0; }
.nav-desktop > ul{ display: flex; align-items: center; gap: clamp(1.1rem, 1.6vw, 1.75rem); flex-wrap: nowrap; }
.nav-desktop > ul > li{ flex-shrink: 0; }
.nav-desktop a,
.dropdown-toggle{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
  padding: 0.3rem 0;
  white-space: nowrap;
}
.nav-desktop a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--red);
  transition: right 0.2s ease;
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after,
.dropdown-toggle.is-current::after{ right: 0; }
.nav-desktop a[aria-current="page"]{ color: var(--red); }

/* Services dropdown — "Services" is a direct link to the All Services page;
   the small caret button beside it opens the quick-links submenu. */
.has-dropdown{ position: relative; display: inline-flex; align-items: center; gap: 0.15rem; }
.dropdown-caret{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.3rem;
  margin: -0.3rem -0.3rem -0.3rem -0.1rem;
  color: var(--navy);
}
.dropdown-caret .chevron{ width: 12px; height: 12px; transition: transform 0.18s ease; }
.has-dropdown:hover .dropdown-caret .chevron,
.has-dropdown:focus-within .dropdown-caret .chevron,
.has-dropdown.is-open .dropdown-caret .chevron{ transform: rotate(180deg); }
.dropdown-toggle.is-current{ color: var(--red); }
.dropdown-toggle.is-current ~ .dropdown-caret{ color: var(--red); }

.dropdown-menu{
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(280px, calc(100vw - 2rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 110;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.is-open .dropdown-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.dropdown-menu li + li{ margin-top: 0.15rem; }
.dropdown-menu a{
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--navy);
}
.dropdown-menu a::after{ display: none; }
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible{ background: var(--red-tint); color: var(--red); }
.dropdown-menu a[aria-current="page"]{ background: var(--red-tint); color: var(--red); }

.header-actions{ display: flex; align-items: center; gap: clamp(0.6rem, 1.2vw, 1.1rem); flex-shrink: 0; }
.header-actions .btn{ padding: 0.7em 1.3em; font-size: 0.85rem; white-space: nowrap; }
.phone-chip{
  display: none;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  white-space: nowrap;
  padding: 0.5em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.phone-chip svg{ width: 16px; height: 16px; flex-shrink: 0; color: var(--red); }
.phone-chip:hover{ color: var(--red); border-color: var(--red); }

.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
}
.nav-toggle svg{ width: 22px; height: 22px; }
.nav-toggle .icon-close{ display: none; }
.nav-open .nav-toggle .icon-open{ display: none; }
.nav-open .nav-toggle .icon-close{ display: block; }

.nav-mobile{
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--navy);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 90;
  overflow-y: auto;
}
.nav-open .nav-mobile{ transform: translateX(0); }
.nav-mobile .container{ padding-top: 2rem; padding-bottom: 2rem; }
.nav-mobile ul{ display: flex; flex-direction: column; }
.nav-mobile a{
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
}
.nav-mobile a[aria-current="page"]{ color: var(--red); }

.mobile-services details{ border-bottom: 1px solid rgba(255,255,255,0.12); }
.mobile-services summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.7rem;
  padding: 0.6rem 0;
  color: var(--white);
}
.mobile-services summary::-webkit-details-marker{ display: none; }
.mobile-services summary .chevron{ width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; color: rgba(255,255,255,0.6); }
.mobile-services details[open] summary .chevron{ transform: rotate(180deg); }
.mobile-services details > ul{ padding-bottom: 0.75rem; }
.mobile-services details > ul a{
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.55rem 0 0.55rem 0.25rem;
  border-bottom: 1px dashed rgba(255,255,255,0.14);
}
.mobile-services details > ul li:last-child a{ border-bottom: none; }

.nav-mobile .mobile-contact{
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.nav-mobile .mobile-contact a{ border: none; font-family: var(--font-label); font-size: 1rem; padding: 0; color: var(--white); }

body.nav-open{ overflow: hidden; }

@media (min-width: 1180px){
  .nav-desktop{ display: block; }
  .nav-toggle{ display: none; }
  .nav-mobile{ display: none; }
  .phone-chip{ display: inline-flex; }
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */
.hero{
  position: relative;
  color: var(--white);
  overflow: hidden;
  min-height: 78svh;
  display: flex;
  align-items: flex-end;
}
.hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,35,64,0.55) 0%, rgba(12,35,64,0.35) 35%, rgba(12,35,64,0.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 8vw, 5rem);
  width: 100%;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
}
.hero .lede{
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 46ch;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}
.hero-ctas{ display: flex; flex-wrap: wrap; gap: 0.9rem; }

.page-hero{
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(4.5rem, 12vw, 6.5rem) clamp(3rem, 8vw, 4rem);
}
.page-hero h1{ color: var(--white); font-size: clamp(2.1rem, 5vw, 3.2rem); max-width: 20ch; }
.page-hero .lede{ max-width: 56ch; color: rgba(255,255,255,0.85); margin-top: 1rem; font-size: 1.1rem; }

/* Page-hero variant with a background photo (e.g. Prescriptions). Scoped to
   .page-hero-photo so the plain navy page-hero used on other pages is
   untouched. Mirrors the home page's .hero-media pattern: a full-bleed
   photo with a navy gradient overlay so the white heading stays readable. */
.page-hero.page-hero-photo{
  position: relative;
  overflow: hidden;
}
.page-hero.page-hero-photo .hero-media{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero.page-hero-photo .hero-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero.page-hero-photo .hero-media::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,35,64,0.55) 0%, rgba(12,35,64,0.35) 35%, rgba(12,35,64,0.92) 100%);
}
.page-hero.page-hero-photo .container{
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------- */
/* Sections                                                                */
/* ---------------------------------------------------------------------- */
section{ padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head{ max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2{ font-size: clamp(1.9rem, 4vw, 2.6rem); }
.section-head p{ margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }
.section-alt{ background: var(--white); border-block: 1px solid var(--line); }
.section-navy{ background: var(--navy); color: var(--white); }
.section-navy h2{ color: var(--white); }
.section-navy .section-head p{ color: rgba(255,255,255,0.78); }

/* ---------------------------------------------------------------------- */
/* Service cards                                                          */
/* ---------------------------------------------------------------------- */
.service-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px){
  .service-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px){
  .service-grid{ grid-template-columns: repeat(3, 1fr); }
  /* .cols-2 keeps a 4-card grid (e.g. GLP-1 "How We Help") at a clean 2x2
     instead of an awkward 3-then-1 row at wider widths. */
  .service-grid.cols-2{ grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
}

.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card h3{ font-size: 1.3rem; }
.service-card p{ color: var(--ink-soft); flex-grow: 1; }
.service-card .card-link{
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.service-card .card-link svg{ width: 14px; height: 14px; transition: transform 0.15s ease; }
.service-card:hover .card-link svg{ transform: translateX(3px); }

/* ---------------------------------------------------------------------- */
/* Split / feature blocks                                                 */
/* ---------------------------------------------------------------------- */
.split{
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 860px){
  .split{ grid-template-columns: 1fr 1fr; }
  .split.reverse .split-media{ order: 2; }
}
.split-media img{
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.split-copy h2{ font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }
.split-copy p{ color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 1rem; }
.split-copy p + p{ margin-top: -0.4rem; }
.split-copy .btn{ margin-top: 0.6rem; }

/* ---------------------------------------------------------------------- */
/* Hours / contact card (label motif)                                     */
/* ---------------------------------------------------------------------- */
.hours-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  position: relative;
}
.hours-card::before{
  content: "";
  position: absolute;
  top: 0; left: 1.75rem; right: 1.75rem;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.hours-list{ display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.2rem; }
.hours-row{
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-label);
  font-size: 0.95rem;
  padding-block: 0.35rem;
  border-bottom: 1px dashed var(--line);
}
.hours-row:last-child{ border-bottom: none; }
.hours-row span:first-child{ color: var(--ink-soft); }
.hours-row span:last-child{ font-weight: 600; color: var(--navy); }

.contact-block{ margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.55rem; }
.contact-block a{ font-weight: 600; color: var(--navy); }
.contact-block a:hover{ color: var(--red); }

/* ---------------------------------------------------------------------- */
/* Team grid                                                              */
/* ---------------------------------------------------------------------- */
.team-photo-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.team-photo-grid img{
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.team-photo-grid .tall{ grid-row: span 2; aspect-ratio: 3/4; }
.team-photo-grid .wide{ aspect-ratio: 4/3; }

/* ---------------------------------------------------------------------- */
/* CTA banner                                                             */
/* ---------------------------------------------------------------------- */
.cta-banner{
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.25rem, 6vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-banner h2{ color: var(--white); font-size: clamp(1.6rem, 4vw, 2.2rem); max-width: 24ch; }
.cta-banner .btn-outline{ border-color: var(--white); }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer{
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  padding-block: clamp(3rem, 6vw, 4rem) 1.75rem;
}
.footer-grid{
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
@media (min-width: 760px){
  .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand img{ height: 40px; margin-bottom: 1rem; }
.footer-brand p{ max-width: 34ch; color: rgba(255,255,255,0.68); }
.footer-col h4{
  color: var(--white);
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul{ display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col a:hover{ color: var(--white); }
.footer-bottom{
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

/* ---------------------------------------------------------------------- */
/* Sticky mobile action bar                                               */
/* ---------------------------------------------------------------------- */
.mobile-bar{
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(12,35,64,0.25);
}
.mobile-bar a{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95rem 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.mobile-bar a:first-child{ color: var(--navy); border-right: 1px solid var(--line); }
.mobile-bar a:last-child{ background: var(--red); color: var(--white); }
.mobile-bar svg{ width: 18px; height: 18px; }
@media (min-width: 1180px){ .mobile-bar{ display: none; } }
body{ padding-bottom: 62px; }
@media (min-width: 1180px){ body{ padding-bottom: 0; } }

/* ---------------------------------------------------------------------- */
/* Utility list styling (capability lists etc.)                           */
/* ---------------------------------------------------------------------- */
.check-list{ display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li{ display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-soft); }
.check-list svg{ flex-shrink: 0; width: 20px; height: 20px; color: var(--red); margin-top: 0.15rem; }

.map-embed{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-embed iframe{ width: 100%; height: 100%; min-height: 320px; display: block; border: 0; }

/* reveal-on-scroll */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------------- */
/* Contact form                                                              */
/* ------------------------------------------------------------------------- */
.contact-form{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row{ display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label{
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.form-row .optional{ text-transform: none; letter-spacing: normal; }
.form-row input,
.form-row textarea{
  font: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus{
  outline: 3px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}
.form-row input:disabled,
.form-row textarea:disabled{
  background: var(--line);
  color: var(--ink-soft);
  cursor: not-allowed;
}
.contact-form .btn{ align-self: flex-start; margin-top: 0.4rem; }

.form-banner{
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  max-width: 640px;
}
.form-banner.success{
  background: var(--navy-tint);
  color: var(--navy-2);
  border: 1px solid var(--navy-2);
}
.form-banner.error{
  background: var(--red-tint);
  color: var(--red-dark);
  border: 1px solid var(--red);
}
.form-banner a{ text-decoration: underline; }

/* Select fields share the input/textarea look */
.form-row select{
  font: inherit;
  font-size: 1rem;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352565C' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9em center;
  background-size: 14px;
  padding-right: 2.4em;
}
.form-row select:focus{
  outline: 3px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

/* Two-column layout for longer forms (refill / transfer) */
.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 640px){
  .form-grid{ grid-template-columns: 1fr; }
}
.form-grid .form-row.span-2{ grid-column: 1 / -1; }

/* Consent / checkbox rows */
.form-row.checkbox-row{
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}
.form-row.checkbox-row input[type="checkbox"]{
  margin-top: 0.2em;
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
  accent-color: var(--red);
}
.form-row.checkbox-row label{
  text-transform: none;
  letter-spacing: normal;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
}

.form-note{
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin-top: -0.4rem;
}
.form-note.form-note-top{ margin-top: 0; margin-bottom: -0.2rem; }

/* ------------------------------------------------------------------------- */
/* GLP-1 page: comparison table, steps, FAQ                                  */
/* ------------------------------------------------------------------------- */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}
.compare-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}
.compare-table th,
.compare-table td{
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare-table thead th{
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
}
.compare-table tbody tr:last-child td{ border-bottom: none; }
.compare-table .tag{
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2em 0.6em;
  border-radius: var(--radius-sm);
  background: var(--navy-tint);
  color: var(--navy-2);
}

.note{
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.steps{
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 760px){
  .steps{ grid-template-columns: repeat(4, 1fr); }
}
.step{ display: flex; flex-direction: column; gap: 0.6rem; }
.step .num{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.step h3{ font-size: 1.1rem; }
.step p{ color: var(--ink-soft); font-size: 0.95rem; }

.faq-item{
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-item summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary .chevron{
  width: 18px; height: 18px; flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--ink-soft);
}
.faq-item[open] summary .chevron{ transform: rotate(180deg); }
.faq-item .faq-a{ padding: 0 0 1.25rem; color: var(--ink-soft); max-width: 68ch; }

/* Form-as-popup pattern: a trigger card that opens a native <dialog> */
.form-trigger-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.form-trigger-card p{
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0.6rem auto 1.5rem;
}

dialog.form-modal{
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(680px, 92vw);
  max-height: min(88vh, 900px);
  box-shadow: var(--shadow);
  background: var(--white);
}
dialog.form-modal::backdrop{
  background: rgba(12, 35, 64, 0.55);
}
dialog.form-modal[open]{
  animation: form-modal-in 0.22s ease-out;
}
@keyframes form-modal-in{
  from{ opacity: 0; transform: translateY(12px) scale(0.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
.form-modal-inner{
  position: relative;
  padding: 2rem;
  overflow-y: auto;
  max-height: min(88vh, 900px);
}
@media (max-width: 600px){
  .form-modal-inner{ padding: 1.5rem 1.25rem; }
}
.form-modal-close{
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.form-modal-close:hover{
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

/* Prescriptions page: 3-across trigger cards for the New Prescription,
   Transfer and Refill popups (collapses to a single column on mobile). */
.form-trigger-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.form-trigger-grid .form-trigger-card{
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 900px){
  .form-trigger-grid{
    grid-template-columns: 1fr;
  }
}

/* Video popup (e.g. the "Watch the Video" trigger on Pet Medications).
   Reuses the same native <dialog> pattern as the form modals, sized wider
   and edge-to-edge for video instead of padded form content. */
dialog.video-modal{
  position: relative;
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(820px, 92vw);
  background: #000;
  box-shadow: var(--shadow);
}
dialog.video-modal::backdrop{
  background: rgba(12, 35, 64, 0.72);
}
dialog.video-modal[open]{
  animation: form-modal-in 0.22s ease-out;
}
dialog.video-modal video{
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}
dialog.video-modal .form-modal-close{
  top: -2.75rem;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
dialog.video-modal .form-modal-close:hover{
  background: var(--red);
  border-color: var(--red);
}
@media (max-width: 600px){
  dialog.video-modal .form-modal-close{ top: -2.5rem; }
}
