/* =====================================================================
   SYCAMORE HILLS PHARMACY - shared site stylesheet
   Built from the approved Sycamore Hills website design.
   Fonts: Playfair Display (headings) / DM Sans (body) / Space Grotesk (eyebrows)
   ===================================================================== */

:root {
  --sv-purple: #153B63;
  --sv-orange: #3FA0E3;
  --sv-ink: #07182A;
  --sv-rose: #1D78B8;
  --sv-cream: #F7FAFD;
  --sv-surface: #EEF6FD;
  --sv-ink-soft: #334E68;
  --sv-muted: #61758A;
  --sv-orange-light: #55B7F0;
  --sv-purple-light: #A9D8F5;
  --sv-line: #DCEAF6;
  --sv-hairline: #C7D9E8;
  --sv-white: #FFFFFF;

  --sv-grad-brand: linear-gradient(135deg, #07182A 0%, #1D78B8 58%, #3FA0E3 115%);
  --sv-grad-purple-rose: linear-gradient(135deg, #153B63 0%, #1D78B8 100%);
  --sv-grad-stat-a: linear-gradient(120deg, #153B63 0%, #1D78B8 48%, #3FA0E3 100%);
  --sv-grad-stat-b: linear-gradient(120deg, #3FA0E3 0%, #1D78B8 55%, #153B63 100%);

  --sv-shadow-card: 0 0 10px rgba(0, 0, 0, 0.07);
  --sv-shadow-soft: 0 0 10px rgba(0, 0, 0, 0.12);
  --sv-radius: 10px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 27px;
  font-weight: 400;
  color: var(--sv-ink);
  background: var(--sv-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sv-purple); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--sv-orange); }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: "Playfair Display", serif;
  color: var(--sv-ink);
  margin: 0 0 18px;
}
h1 { font-size: clamp(40px, 4vw, 56px); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.15; font-weight: 600; }
h3 { font-size: 28px; line-height: 1.2;  font-weight: 600; }
h4 { font-size: 22px; line-height: 1.3;  font-weight: 600; }
h5, h6 { font-family: "Space Grotesk", sans-serif; font-weight: 600; margin: 0 0 14px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

h1 em, h2 em, h3 em, h4 em, .hl {
  font-style: italic;
  color: var(--sv-purple);
}

.wrap { max-width: 1380px; margin: 0 auto; padding: 0 24px; }

/* eyebrow labels */
.eyebrow {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sv-purple);
  margin: 0 0 14px;
}
.eyebrow--orange { color: var(--sv-orange-light); }
.eyebrow--cream  { color: var(--sv-cream); }

/* gradient utilities */
.sv-grad-brand       { background: var(--sv-grad-brand) !important; }
.sv-grad-purple-rose { background: var(--sv-grad-purple-rose) !important; }
.sv-grad-text {
  background: var(--sv-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 14px 32px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--grad { background: var(--sv-grad-brand); color: var(--sv-cream); }
.btn--grad:hover { background: var(--sv-orange); color: var(--sv-cream); }
.btn--outline {
  background: transparent;
  color: var(--sv-ink);
  border: 1px solid var(--sv-ink);
}
.btn--outline:hover { background: var(--sv-orange); border-color: var(--sv-orange); color: #fff; transform: translateY(-2px); }
.btn--outline-light {
  background: transparent;
  color: var(--sv-cream);
  border: 1px solid var(--sv-cream);
}
.btn--outline-light:hover { background: var(--sv-cream); color: var(--sv-purple); }
.btn--block { display: block; width: 100%; }

/* orange “Learn more →” link */
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--sv-orange);
}
.learn-more:hover { color: var(--sv-purple); }

/* ---------- header ---------- */
.topbar {
  background: var(--sv-purple);
  color: var(--sv-cream);
  padding: 10px 0;
  font-size: 16px;
  line-height: 27px;
}
.topbar__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 9px; }
.topbar__item i { color: var(--sv-orange); font-size: 15px; }
.topbar__item a { color: var(--sv-cream); }
.topbar__item a:hover { color: #fff; text-decoration: underline; }
.topbar__item--mobile { display: none; font-size: 13px; }

.site-header {
  background: var(--sv-white);
  border-bottom: 0;
  position: relative;
  z-index: 50;
  backdrop-filter: none;
}
.site-header__wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1380px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 25px;
  padding-bottom: 25px;
}
.site-brand { flex: 0 0 auto; margin-right: auto; }
.site-brand img { width: 260px; height: auto; }

.site-nav { flex: 1 1 auto; }
.site-nav > ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px;
  font-weight: 500;
  font-size: 16px;
  color: var(--sv-ink);
}
.site-nav > ul > li > a:hover { color: var(--sv-purple); }
.site-nav .caret { font-size: 11px; color: var(--sv-purple); transition: transform .2s ease; }
.site-nav li:hover .caret { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--sv-white);
  border: 1px solid var(--sv-line);
  border-radius: 12px;
  box-shadow: var(--sv-shadow-soft);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.site-nav li:hover > .submenu,
.site-nav li:focus-within > .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sv-ink);
}
.submenu a:hover { background: var(--sv-surface); color: var(--sv-purple); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.site-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 14px 27px;
  border: 0;
  border-radius: 999px;
  background: var(--sv-grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 59, 99, .18);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.site-header__button:hover { color: #fff; transform: translateY(-1px); }

/* active nav item */
.site-nav > ul > li > a.active { color: var(--sv-purple); }

/* ---------- mega menu (Our Services / Pharmacy Features) ---------- */
.has-mega { position: static !important; }
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 8px 24px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.site-nav li:hover > .mega,
.site-nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__panel {
  max-width: 1332px;
  margin: 0 auto;
  background: var(--sv-white);
  border: 1px solid var(--sv-line);
  border-radius: 16px;
  box-shadow: var(--sv-shadow-soft);
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  padding: 28px 32px;
}
.mega__eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sv-purple);
  margin: 0 0 14px;
}
.mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.mega__link { display: block; padding: 10px 12px; border-radius: 10px; transition: background .16s ease; }
.mega__link strong { display: block; font-weight: 600; font-size: 16px; line-height: 22px; color: var(--sv-ink); }
.mega__link small { display: block; font-size: 13.5px; line-height: 19px; color: var(--sv-muted); margin-top: 2px; }
.mega__link:hover { background: var(--sv-surface); }
.mega__link:hover strong { color: var(--sv-purple); }
.mega__feature { display: grid; gap: 12px; align-content: start; }
.mega__card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: var(--sv-grad-brand);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mega__card--dark   { background: linear-gradient(135deg, #07182A 0%, #153B63 120%); }
.mega__card--accent { background: linear-gradient(135deg, #3FA0E3 0%, #1D78B8 120%); }
.mega__card:hover { transform: translateY(-2px); box-shadow: var(--sv-shadow-soft); color: #fff; }
.mega__card-tag {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .85;
}
.mega__card-title { font-family: "Playfair Display", serif; font-size: 18px; line-height: 1.25; margin-top: 4px; }

.nav-toggle {
  display: none;
  background: var(--sv-ink);
  color: var(--sv-purple);
  border: none;
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- sections ---------- */
.sec { padding: 70px 0; }
.sec--tight { padding: 40px 0; }
.sec--lav   { background: var(--sv-surface); }
.sec--cream { background: var(--sv-cream); }
.sec--white { background: var(--sv-white); }
.sec--ink   { background: var(--sv-ink); }
.sec--purple{ background: var(--sv-purple); }

.sec-head { max-width: 760px; margin-bottom: 44px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin-bottom: 12px; }
.sec-head p { color: var(--sv-ink); }

/* split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--tight { gap: 30px; }

/* grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---------- cards ---------- */
.card {
  background: var(--sv-white);
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow-card);
  padding: 28px;
}
.card--cream { background: var(--sv-cream); }
.card--purple { background: var(--sv-purple); color: var(--sv-cream); }
.card--purple h2, .card--purple h3, .card--purple h4 { color: #fff; }
.card--purple p { color: var(--sv-cream); }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--sv-surface);
  color: var(--sv-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 18px;
}
.service-card h4 { margin-bottom: 10px; }
.service-card p { font-size: 15px; line-height: 24px; margin-bottom: 14px; }

/* chip labels (FOR PATIENTS / FOR PROVIDERS) */
.chip {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  background: var(--sv-surface);
  color: var(--sv-purple);
  margin-bottom: 18px;
}
.chip--light { background: var(--sv-cream); }

/* stats */
.stat { text-align: center; padding-bottom: 20px; }
.stat--line { border-bottom: 1px solid var(--sv-hairline); }
.stat__num {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 50px;
  color: var(--sv-orange);
  margin-bottom: 4px;
}
.stat__label { color: var(--sv-muted); font-size: 15px; line-height: 22px; }

/* icon feature lists (orange dot / icon bullets) */
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sv-orange);
}
.ticks--light li { color: var(--sv-cream); }

.icon-row { display: inline-flex; align-items: center; gap: 10px; }
.icon-row i { color: var(--sv-orange); }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--sv-ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--sv-ink);
  background: var(--sv-white);
  border: 1px solid var(--sv-hairline);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--sv-purple);
  box-shadow: 0 0 0 3px rgba(21, 59, 99, .12);
}
.check-list label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.check-list input { width: auto; }

.stoneview-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.stoneview-form-message {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: var(--sv-radius);
  font-weight: 700;
  line-height: 1.45;
}

.stoneview-form-message--success {
  border: 1px solid rgba(21, 59, 99, .2);
  background: var(--sv-surface);
  color: var(--sv-purple);
}

.stoneview-form-message--error {
  border: 1px solid rgba(63, 160, 227, .28);
  background: #EAF5FF;
  color: var(--sv-orange);
}

/* ---------- accordion ---------- */
.acc {
  background: var(--sv-white);
  border: 1px solid var(--sv-line);
  border-radius: var(--sv-radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 17px;
  color: var(--sv-ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--sv-purple);
  transition: transform .2s ease;
}
.acc[open] summary::after { transform: rotate(45deg); }
.acc .acc__body { padding: 0 22px 20px; font-size: 15.5px; line-height: 25px; }

/* ---------- testimonials ---------- */
.t-card {
  background: var(--sv-white);
  border-radius: var(--sv-radius);
  box-shadow: var(--sv-shadow-card);
  padding: 28px;
}
.t-card .stars { color: var(--sv-orange); letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; }
.t-card blockquote { margin: 0 0 18px; font-size: 16px; line-height: 26px; }
.t-card .t-name { font-weight: 700; }
.t-card .t-loc { color: var(--sv-muted); font-size: 14px; }

/* ---------- CTA panel ---------- */
.cta-panel {
  background: var(--sv-purple);
  border-radius: 24px;
  text-align: center;
  padding: 64px 40px;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: var(--sv-cream); max-width: 640px; margin: 0 auto 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--sv-purple);
  color: var(--sv-cream);
  margin-top: 50px;
  padding: 0;
}
.site-footer__main { padding: 60px 0 40px; }
.site-footer__wrap {
  display: grid;
  grid-template-columns: 38fr 22fr 22fr 36fr;
  gap: 14px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-logo {
  display: inline-block;
  background: var(--sv-cream);
  border-radius: 6px;
  padding: 11px;
  width: 55%;
  margin-bottom: 18px;
}
.footer-tagline { color: var(--sv-cream); font-size: 16px; line-height: 26px; max-width: 340px; }
.site-footer h6 { color: var(--sv-orange-light); margin-bottom: 16px; }
.footer-list li { margin-bottom: 10px; }
.footer-list a, .footer-list span {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--sv-cream);
  font-size: 16px;
  line-height: 24px;
}
.footer-list i { color: var(--sv-orange); font-size: 14px; margin-top: 5px; }
.footer-list a:hover { color: var(--sv-orange-light); }
.footer-list span a { color: var(--sv-cream); }
.footer-list span a:hover { color: var(--sv-orange-light); }
.site-footer__bottom {
  background: var(--sv-ink);
  border-top: 1px solid rgba(138, 117, 150, .5);
  padding: 12px 0;
}
.site-footer__bottom-wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--sv-cream);
  font-size: 14px;
}
.site-footer__bottom a { color: var(--sv-cream); }
.site-footer__bottom a:hover { color: var(--sv-orange-light); }

/* ---------- helpers ---------- */
.img-round { border-radius: 16px; overflow: hidden; }
.img-round img { width: 100%; height: 100%; object-fit: cover; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  h1 { font-size: 42px; line-height: 48px; }
  h2 { font-size: 34px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .site-brand img { width: 220px; }
  .site-nav > ul > li > a { padding: 10px 6px; font-size: 15px; }
}

@media (max-width: 860px) {
  .split, .split--tight { grid-template-columns: 1fr; gap: 34px; }
  .site-footer__wrap { grid-template-columns: 1fr 1fr; gap: 30px; }
  .topbar__item--desktop { display: none; }
  .topbar__item--mobile { display: inline-flex; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--sv-white);
    border-top: 1px solid var(--sv-line);
    box-shadow: var(--sv-shadow-soft);
    display: none;
    padding: 12px 20px 20px;
  }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li > a { width: 100%; padding: 12px 4px; justify-content: space-between; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--sv-line);
    border-radius: 0;
    padding: 0 0 0 14px;
    margin: 0 0 8px;
    display: none;
  }
  .site-nav li.open > .submenu { display: block; }
  .mega {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
    display: none;
  }
  .site-nav li.open > .mega { display: block; }
  .mega__panel {
    grid-template-columns: 1fr;
    gap: 8px;
    border: none;
    box-shadow: none;
    border-radius: 0;
    border-left: 2px solid var(--sv-line);
    padding: 0 0 10px 14px;
    background: transparent;
  }
  .mega__grid { grid-template-columns: 1fr; gap: 2px; }
  .mega__link { padding: 8px 4px; }
  .mega__eyebrow, .mega__feature { display: none; }
  .site-header__button { padding: 12px 20px; font-size: 14px; }
  .site-header__button--hide-sm { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; line-height: 26px; }
  h1 { font-size: 32px; line-height: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  .sec { padding: 50px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .site-footer__wrap { grid-template-columns: 1fr; }
  .site-footer__bottom-wrap { flex-direction: column; text-align: center; }
  .cta-panel { padding: 44px 22px; }
}
