@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');

/* === TOKENS === */
:root {
  --bg: #000;
  --primary: #faf8f5;
  --primary-dark: #1e4442;
  --accent: #c4956a;
  --brand-accent: #ffa515;
  --price: #ffa515;
  --text: #2e2e2e;
  --text-muted: #6b6460;
  --radius: 10px;
}

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

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--primary-dark);
}

/* === BASE ELEMENTS === */
body {
  font-family: 'Oswald', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

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

/* === TYPOGRAPHY === */
h1,
.content > h2:not(.visually-hidden) {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.25rem;
  line-height: 1.2;
  font-weight: 500;
  text-align: center;
  text-transform: uppercase;
}

.brand-name {
  color: var(--brand-accent);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 2.5rem;
  color: var(--primary);
}

.price-range-word {
  font-size: 0.7em;
}

p {
  color: var(--text-muted);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-dark);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* === NAV === */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: transparent;
}

.nav-logo-button {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-logo-button:focus-visible {
  outline-offset: 4px;
}

.nav-logo {
  height: 6rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 3rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  color: var(--accent);
}

.nav-btn {
  display: flex;
  align-items: center;
  min-height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: underline;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

.nav-btn:hover {
  color: var(--accent);
}

/* === SCROLL BACKGROUND LAYERS === */
.bg-layer {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
}
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.bg-layer.active {
  opacity: 1;
}

.bg-layer[data-section="welcome"] {
  background-image: url('img/bg_welcome.webp');
}

.bg-layer[data-section="features"] {
  background-image: url('img/bg_features.webp');
}

.bg-layer[data-section="chiropractic"] {
  background-image: url('img/bg_pricing.webp');
}

.bg-layer[data-section="massage"] {
  background-image: url('img/bg_pricing.webp');
}

.bg-layer[data-section="team"] {
  background-image: url('img/bg_team.webp');
}

.bg-layer[data-section="testimonials"] {
  background-image: url('img/bg_testimonials.webp');
}

.bg-layer[data-section="contact"] {
  background-image: url('img/bg_contact.webp');
}

.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  padding: 2rem;
}

/* === PAGE-SPECIFIC SECTIONS === */
#features,
#chiropractic,
#massage,
#testimonials,
#contact {
  gap: 2rem;
}

#chiropractic > h2 {
  color: #fff;
  font-size: 4rem;
}

#massage > h2 {
  color: #fff;
  font-size: 4rem;
}

#chiropractic .feature-boxes,
#testimonials .feature-boxes {
  width: 100%;
  margin-inline: 4rem;
}

#massage .feature-boxes {
  width: 100%;
  margin-inline: 4rem;
}

#chiropractic .feature-boxes {
  gap: 2rem;
}

#massage .feature-boxes {
  gap: 2rem;
}

#chiropractic .feature-box,
#testimonials .feature-box,
#team .feature-box {
  background: #fff;
  color: var(--text);
  text-shadow: none;
}

#massage .feature-box {
  background: #fff;
  color: var(--text);
  text-shadow: none;
}

#chiropractic .feature-box {
  padding-bottom: 3rem;
}

#massage .feature-box {
  padding-bottom: 3rem;
}

#massage .feature-box.is-unavailable {
  background: #fff8f1;
  border: 2px solid var(--accent);
}

#massage .feature-box .availability-status {
  width: auto;
  margin: 0.75rem 0 0.5rem;
  padding: 0.25rem 0.75rem;
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.availability-status {
  margin-top: 2rem !important;
}

#massage .feature-box .availability-note {
  max-width: 20rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

#chiropractic .feature-box h3 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0;
}

#massage .feature-box h3 {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0;
}

#chiropractic .feature-box .price {
  color: var(--price);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

#massage .feature-box .price {
  color: var(--price);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

#testimonials .feature-boxes {
  gap: 3rem;
}

#testimonials p {
  color: #eaeaea;
  font-size: 1.15rem;
  font-style: italic;
}

#testimonials .feature-box {
  padding: 2rem 3rem 3rem;
}

#testimonials .feature-box h3 {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: auto;
  margin-left: auto;
  margin-bottom: 0;
  margin-right: 1em;
}

#testimonials .feature-box .testimonial-location {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0 0 0 auto;
}

#massage .feature-box p,
#chiropractic .feature-box p,
#testimonials .feature-box p {
  color: var(--text-muted);
}

/* === CONTACT === */
.contact-card {
  display: flex;
  width: auto;
  min-height: 22rem;
  margin-inline: 4rem;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  text-shadow: none;
}

.contact-map {
  flex: 1.3;
  min-width: 30vw;
  border: 0;
}

.contact-details {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem;
  min-width: 20em;
}

.contact-details h3 {
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 2rem;
  font-weight: 400;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.contact-item:has(address) {
  align-items: flex-start;
}

.contact-icon {
  flex: 0 0 1.25rem;
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1.5;
  text-align: center;
}

.contact-details address {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-style: normal;
  line-height: 1.5;
}

.contact-details address a:hover,
.contact-phone:hover {
  color: var(--text-muted);
  text-decoration: underline;
}

.contact-phone,
.contact-details .btn-primary {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  font-size: 1.2rem;
  min-height: 44px;
  padding: 0;
  text-decoration: underline;
}

.contact-details .btn-primary:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}

.contact-phone {
  font-weight: 300;
}

.contact-item:has(.contact-phone) {
  margin-bottom: 1.5rem;
}

.feature-box .pricing-note {
  font-size: 0.95em;
  margin-top: auto;
}

.feature-box .pricing-comment {
  font-size: 0.75em;
}

/* === DOCTOR PROFILE === */
#team {
  gap: 1.5rem;
}

#team > p {
  max-width: 42rem;
  text-align: center;
  font-size: 1.25rem;
  color: #ebebeb;
}

#team .feature-boxes {
  width: min(100%, 24rem);
}

#team .feature-box {
  min-height: 0;
  overflow: hidden;
  padding: 0 0 2rem;
}

#team .feature-box h3 {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1rem;
  padding-inline: 1rem;
}

.doctor-profile-photo {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
}

/* === FEATURE BOXES === */
.feature-boxes {
  display: flex;
  width: 100%;
  gap: 1rem;
  justify-content: center;
}

.feature-box {
  display: flex;
  flex: 1 1 25rem;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  max-width: 25rem;
  min-height: 15rem;
  padding: 1rem;
  text-align: center;
}

.feature-box h3 {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-weight: 400;  
  margin-bottom: 1rem;
}

#features .feature-box h3 {
  font-size: 2rem;
}

.feature-box p {
  color: #fff;
  font-size: 1.25rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 100;
  width: min(100%, 25rem);
  margin-bottom: 0.5rem;
}

.feature-icon {
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
}

#features .feature-icon {
  color: var(--brand-accent);
}



/* === RESPONSIVE === */
@media (max-width: 768px) {
  .top-nav {
    padding: 0.75rem 1rem;
  }

  .nav-logo {
    height: 4.5rem;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: min(16rem, calc(100vw - 2rem));
    margin: 0;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.25);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-btn {
    width: 100%;
    padding: 0.65rem 0.75rem;
    text-align: left;
  }

  .contact-card {
    flex-direction: column;
    min-height: 0;
  }

  .contact-map {
    flex: none;
    min-height: 18rem;
  }

  .contact-details {
    align-items: center;
    padding: 2rem;
    text-align: center;
  }

  .feature-boxes {
    flex-wrap: wrap;
  }

  .feature-box {
    flex-basis: 14rem;
  }

  #chiropractic > h2 {
    font-size: 2.75rem;
  }

  #massage > h2 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

