/* ============================================
   WAUPACA WOODS PHARMACY — STYLESHEET
   ============================================ */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lato', 'Segoe UI', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #2c2c2c;
  background-color: #fdfbf7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, dl {
  list-style: none;
}

/* ---------- UTILITY ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-weight: 600;
  line-height: 1.2;
  color: #1a2744;
}

.section-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c8a45a;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #555;
  max-width: 600px;
  line-height: 1.75;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--gold {
  background: #c8a45a;
  color: #1a2744;
}

.btn--gold:hover {
  background: #b8933f;
  box-shadow: 0 4px 16px rgba(200, 164, 90, 0.35);
}

.btn--outline-light {
  background: transparent;
  color: #f5f0e8;
  border: 1.5px solid rgba(245, 240, 232, 0.5);
}

.btn--outline-light:hover {
  background: rgba(245, 240, 232, 0.1);
  border-color: #f5f0e8;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ---------- HEADER / NAVIGATION ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(26, 39, 68, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a2744;
}

.nav-brand__tag {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8a45a;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #1a2744;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(26, 39, 68, 0.05);
  color: #c8a45a;
}

.nav-link--cta {
  background: #1a2744;
  color: #f5f0e8 !important;
  margin-left: 0.5rem;
}

.nav-link--cta:hover {
  background: #2a3d64;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a2744;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #1a2744;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26, 39, 68, 0.97) 0%, rgba(26, 39, 68, 0.88) 50%, rgba(26, 39, 68, 0.75) 100%),
    url('https://images.pexels.com/photos/139398/thermometer-headache-pain-pills-139398.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1600&h=900') center/cover no-repeat;
  z-index: 0;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8a45a;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title--accent {
  color: #c8a45a;
  font-style: italic;
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.78);
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-trust__item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(245, 240, 232, 0.65);
  letter-spacing: 0.03em;
}

/* Hero image */
.hero-image {
  position: relative;
}

.hero-image__wrap {
  position: relative;
}

.hero-image__img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.hero-image__badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  background: #c8a45a;
  color: #1a2744;
  padding: 1.25rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-image__badge-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-image__badge-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(245, 240, 232, 0.4);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1;
}

/* ---------- SERVICES ---------- */
.services {
  padding: 6rem 0;
  background: #fdfbf7;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(26, 39, 68, 0.07);
  border-radius: 8px;
  padding: 2rem;
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 36px rgba(26, 39, 68, 0.08);
  transform: translateY(-3px);
  border-color: rgba(200, 164, 90, 0.3);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 39, 68, 0.05);
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
  padding: 6rem 0;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-group {
  position: relative;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

.about-image--main {
  box-shadow: 0 16px 40px rgba(26, 39, 68, 0.1);
}

.about-image--main img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-image--secondary {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 60%;
  box-shadow: 0 12px 32px rgba(26, 39, 68, 0.12);
  border: 4px solid #fff;
}

.about-image--secondary img {
  width: 100%;
  height: auto;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: 6px;
}

.about-accent {
  position: absolute;
  top: -1.5rem;
  right: -1rem;
  opacity: 0.2;
}

.about-eyebrow {
  margin-bottom: 0.75rem;
}

.about-title {
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 39, 68, 0.08);
}

.about-stat {
  text-align: center;
  flex: 1;
}

.about-stat__number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a2744;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.about-stat__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.about-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(26, 39, 68, 0.1);
}

/* ---------- INSURANCE ---------- */
.insurance {
  padding: 6rem 0;
  background: #1a2744;
}

.insurance-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.insurance-eyebrow {
  color: #c8a45a;
  margin-bottom: 0.75rem;
}

.insurance-title {
  color: #f5f0e8;
  margin-bottom: 1rem;
}

.insurance-text {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.7);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.insurance-list {
  display: grid;
  gap: 0.75rem;
}

.insurance-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(245, 240, 232, 0.85);
}

.insurance-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.insurance-visual__circle {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px solid rgba(200, 164, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.insurance-visual__circle::before {
  content: '';
  position: absolute;
  inset: 1.5rem;
  border-radius: 50%;
  border: 1px solid rgba(200, 164, 90, 0.12);
}

.insurance-visual svg {
  opacity: 0.6;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 6rem 0;
  background: #fdfbf7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(26, 39, 68, 0.06);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 8px 28px rgba(26, 39, 68, 0.07);
}

.testimonial-card__quote {
  margin-bottom: 1rem;
  opacity: 0.85;
}

.testimonial-card__text {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-card__author {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a2744;
  letter-spacing: 0.02em;
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 6rem 0;
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-title {
  margin-bottom: 1rem;
}

.contact-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-detail__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a2744;
  margin-bottom: 0.35rem;
}

.contact-detail__value {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.7;
}

.contact-detail__value a {
  color: #1a2744;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-detail__value a:hover {
  color: #c8a45a;
}

/* Contact form */
.contact-form-wrap {
  background: #fdfbf7;
  border: 1px solid rgba(26, 39, 68, 0.07);
  border-radius: 8px;
  padding: 2.25rem;
}

.contact-form__title {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.contact-form__subtitle {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2744;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #2c2c2c;
  background: #fff;
  border: 1.5px solid rgba(26, 39, 68, 0.15);
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c8a45a;
  box-shadow: 0 0 0 3px rgba(200, 164, 90, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(26, 107, 60, 0.06);
  border: 1px solid rgba(26, 107, 60, 0.15);
  border-radius: 6px;
  margin-top: 1rem;
}

.form-success p {
  font-size: 0.88rem;
  color: #1a6b3c;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #151f35;
  color: rgba(245, 240, 232, 0.6);
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(245, 240, 232, 0.07);
}

.footer-brand__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.footer-brand__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f5f0e8;
}

.footer-brand__tagline {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  font-size: 0.88rem;
  color: rgba(245, 240, 232, 0.55);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #c8a45a;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-contact a {
  color: #c8a45a;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #dbb865;
}

.footer-bottom {
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.3);
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-image {
    max-width: 480px;
    margin: 0 auto;
  }

  .hero-image__badge {
    left: 50%;
    transform: translateX(-50%);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image-group {
    max-width: 520px;
  }

  .insurance-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .insurance-visual {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(26, 39, 68, 0.08);
    padding: 1rem 1.5rem 1.25rem;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
  }

  .nav-link--cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 4rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-image__badge {
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .about-image--secondary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    margin-top: 1rem;
  }

  .about-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .about-stat-divider {
    width: 40px;
    height: 1px;
  }
}
