/* ===================================
   CSS Variables
   =================================== */
:root {
  --bg: #E8F3EF;
  --text: #061f18;
  --muted: rgba(1, 67, 54, .72);
  --border: rgba(1, 67, 54, .14);
  --shadow: 0 14px 34px rgba(1, 67, 54, .18);

  --brand: #014336;
  --accent: #d4982e;
  --white: #ffffff;

  --softGold: rgba(212, 152, 46, .10);
  --softGreen: rgba(1, 67, 54, .06);

  --container: 1160px;
}

/* ===================================
   Base Reset & Typography
   =================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--brand);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  letter-spacing: -0.03em;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
}

/* Screen reader only (SEO) */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  user-select: none;
  text-decoration: none !important;
  font-weight: 900;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #231704;
  border-color: rgba(212, 152, 46, .75);
  box-shadow: 0 16px 34px rgba(212, 152, 46, .35);
}

.btn--primary:hover {
  box-shadow: 0 20px 42px rgba(212, 152, 46, .45);
}

.iconbtn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  color: var(--brand);
}

.iconbtn:hover {
  background: #fff;
}

.iconbtn--close {
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
}

/* ===================================
   Header
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(255, 255, 255, .90);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all .3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, .95);
  padding: 4px 0;
  box-shadow: 0 4px 20px rgba(1, 67, 54, .1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  transition: padding .3s ease;
}

.header.scrolled .header__inner {
  padding: 8px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.brand__logo {
  height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(1, 67, 54, .22));
}

.brand__logo--footer {
  height: 96px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .22));
}

.brand__name {
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
  white-space: nowrap;
}

.brand__name--footer {
  color: #ecfdf5;
}

/* ===================================
   Hero Slider
   =================================== */
.hero {
  padding: 22px 0 10px;
  background:
    radial-gradient(1000px 320px at 18% 0%, rgba(212, 152, 46, .22), transparent 62%),
    radial-gradient(900px 320px at 82% 10%, rgba(1, 67, 54, .18), transparent 60%),
    linear-gradient(to bottom, rgba(1, 67, 54, .06), transparent 50%);
}

.hero__inner {
  position: relative;
}

.slider {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
  will-change: transform;
}

.slide__media {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .88);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 26px;
  z-index: 2;
  color: var(--brand);
}

.slider__btn:hover {
  background: #fff;
}

.slider__btn--prev {
  left: 12px;
}

.slider__btn--next {
  right: 12px;
}

.slider__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(1, 67, 54, .25);
  border: 1px solid rgba(255, 255, 255, .85);
  cursor: pointer;
}

.dot.is-active {
  background: var(--accent);
}

/* ===================================
   Section Headings
   =================================== */
.sectionhead {
  margin-bottom: 14px;
}

.sectionhead h2 {
  margin: 0 0 6px;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.sectionhead p {
  margin: 0;
}

/* ===================================
   Panels
   =================================== */
.panel {
  padding: 36px 0;
}

.panel--soft {
  background: linear-gradient(to bottom, rgba(212, 152, 46, .08), rgba(1, 67, 54, .05));
}

/* ===================================
   Need Selector
   =================================== */
.need {
  padding: 38px 0;
}

.need__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.needcard {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  text-align: left;
  display: grid;
  gap: 8px;
  transition: transform .08s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}

.needcard span {
  font-size: 18px;
}

.needcard strong {
  font-size: 14px;
  color: var(--brand);
}

.needcard:hover {
  box-shadow: 0 14px 30px rgba(1, 67, 54, .10);
}

.needcard.is-active {
  border-color: rgba(212, 152, 46, .85);
  box-shadow: 0 0 0 4px rgba(212, 152, 46, .18), 0 14px 30px rgba(1, 67, 54, .10);
}

/* Tooltip for need cards */
.needcard::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(0.95);
  padding: 10px 14px;
  background: var(--brand);
  color: #ecfdf5;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  white-space: normal;
  width: max-content;
  max-width: 260px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 28px rgba(1, 67, 54, .30);
  z-index: 10;
  line-height: 1.4;
}

.needcard::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10;
}

.needcard:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.needcard:hover::before {
  opacity: 1;
}

/* ===================================
   Trust Section
   =================================== */
.trust {
  padding: 46px 0;
  background:
    radial-gradient(900px 260px at 20% 0%, rgba(212, 152, 46, .18), transparent 58%),
    radial-gradient(900px 260px at 80% 0%, rgba(1, 67, 54, .12), transparent 58%);
}

.trust__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}

.trust__images {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.trust__img {
  width: 100%;
  height: 200px;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  object-fit: cover;
  object-position: center;
}

.trust__cards {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  grid-template-columns: 1fr;
}

.trustcard {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 26px rgba(1, 67, 54, .08);
}

.trustcard h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.trustcard ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* ===================================
   Treatment Pills
   =================================== */
.pillgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pill {
  position: relative;
  padding: 12px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .92);
  font-weight: 900;
  text-align: center;
  color: var(--brand);
  cursor: pointer;
  transition: all .2s ease;
}

.pill:hover {
  background: #fff;
  text-decoration: none;
  border-color: rgba(212, 152, 46, .50);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(1, 67, 54, .12);
}

/* Tooltip for treatment pills */
.pill::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) scale(0.95);
  padding: 10px 14px;
  background: var(--brand);
  color: #ecfdf5;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: 0 12px 28px rgba(1, 67, 54, .30);
  z-index: 10;
  line-height: 1.4;
}

.pill::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--brand);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 10;
}

.pill:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.pill:hover::before {
  opacity: 1;
}

/* ===================================
   Treatment Modal
   =================================== */
.treatment-modal[hidden] {
  display: none !important;
}

.treatment-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fadeIn .3s ease;
}

.treatment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 67, 54, .65);
  backdrop-filter: blur(4px);
}

.treatment-modal__panel {
  position: relative;
  width: min(600px, 100%);
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(1, 67, 54, .25);
  padding: 0;
  overflow: hidden;
  animation: slideUp .3s ease;
}

.treatment-modal__panel .iconbtn--close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 1;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 12px rgba(1, 67, 54, .15);
}

.treatment-modal__content {
  padding: 28px 24px;
  display: grid;
  gap: 14px;
}

.treatment-modal__content h3 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--brand);
  padding-right: 40px;
}

.treatment-modal__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.treatment-modal__content .btn {
  margin-top: 8px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===================================
   Cards & Grids
   =================================== */
.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 28px rgba(1, 67, 54, .08);
}

.mini {
  padding: 14px;
}

.grid3 {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.docstrip {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.doc {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.doc__img {
  width: 100%;
  height: 250px;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
  object-position: center top;
}

.doc__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

/* ===================================
   FAQ
   =================================== */
.faq {
  display: grid;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  text-align: left;
  padding: 14px;
  border: 0;
  background: transparent;
  font-weight: 1000;
  cursor: pointer;
  position: relative;
  color: var(--brand);
}

.faq__q::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 12px;
  font-size: 18px;
  opacity: .7;
  color: var(--accent);
}

.faq__q[aria-expanded="true"]::after {
  content: "−";
}

.faq__a {
  padding: 0 14px 14px;
  color: var(--muted);
}

/* ===================================
   Footer
   =================================== */
.footer {
  padding: 34px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: var(--brand);
  color: #ecfdf5;
}

.footer a {
  color: #ecfdf5;
}

.footer__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.footer__phone a {
  font-weight: 1000;
  font-size: 18px;
}

.footer__address {
  margin-top: 12px;
  opacity: .9;
}

.footer__muted {
  color: rgba(236, 253, 245, .82);
}

.footer__map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}

.footer__map iframe {
  display: block;
  width: 100%;
}

.footer__bottom {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(236, 253, 245, .16);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===================================
   Mobile Sticky Navigation
   =================================== */
.sticky {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 75;
}

.sticky__btn {
  border-radius: 16px;
  border: 1px solid rgba(1, 67, 54, .18);
  background: rgba(255, 255, 255, .95);
  padding: 12px 10px;
  font-weight: 1000;
  text-align: center;
  cursor: pointer;
  color: var(--brand);
}

.sticky__btn:hover {
  text-decoration: none;
  background: #fff;
}

/* ===================================
   Responsive - Desktop
   =================================== */
@media (min-width: 900px) {
  /* Brand */
  .brand__logo {
    height: 88px;
  }
  
  .brand__name {
    font-size: 20px;
  }

  /* Slider */
  .slide__media {
    max-height: 550px;
    min-height: 420px;
  }

  /* Grids */
  .need__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pillgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .docstrip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Trust section */
  .trust__grid {
    grid-template-columns: 1fr;
  }

  .trust__images {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust__img {
    height: 240px;
  }

  .trust__cards {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 16px;
  }

  /* Hide mobile sticky on desktop */
  .sticky {
    display: none;
  }
}

/* ===================================
   Accessibility - Reduced Motion
   =================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
