/* ============================================
   Root Variables & Base Styles
   ============================================ */
:root {
  --color-bg: #faf9f7;
  --color-bg-alt: #f3f1ed;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-heading: #2c3e2d;
  --color-accent: #7a9e7e;
  --color-accent-dark: #5a7e5e;
  --color-accent-light: #c8dbc9;
  --color-gold: #c4a96a;
  --color-white: #ffffff;
  --color-border: #e0ddd8;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.2rem; }

a {
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

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

.logo-icon {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-body);
  color: var(--color-text-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 11.5px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 400;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-heading);
}

.mobile-home-link {
  display: none;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-heading);
  transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  overflow: hidden;
}

.hero > .container {
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(250, 249, 247, 0.72) 0%,
    rgba(250, 249, 247, 0.45) 50%,
    rgba(250, 249, 247, 0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  padding: 4rem 0;
  text-align: center;
}

.hero-logo-block {
  text-align: center;
  margin-bottom: 1.8rem;
}

.hero-logo-block img {
  display: block;
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent-dark);
  margin-bottom: 1.5rem;
  font-weight: 800;
  text-align: center;
  display: block;
  width: 100%;
  padding-left: 0.25em;
}

.hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  color: #1a2410;
}

.hero p {
  font-size: 1.15rem;
  color: #2c3a2d;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.hero-tagline {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(122, 158, 126, 0.3);
}

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

.btn-outline:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ============================================
   Section Styles
   ============================================ */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin: 1rem auto;
}

.section-header p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ============================================
   Philosophy / Intro Section
   ============================================ */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.philosophy-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.philosophy-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center bottom;
  filter: brightness(1.6) saturate(0.65) contrast(0.82);
}

.philosophy-image::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  border: 2px solid var(--color-accent-light);
  z-index: -1;
}

.philosophy-text h2 {
  margin-bottom: 1.5rem;
}

.philosophy-text p {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
}

.philosophy-text blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-heading);
}

/* ============================================
   Services Overview (Homepage)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--color-white);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================
   CTA Banner
   ============================================ */
.cta-banner {
  position: relative;
  padding: 5rem 0;
  text-align: center;
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80');
  background-size: 130%;
  background-position: 100% 0%;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(250, 249, 247, 0.55);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #1a2410;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #2c3a2d;
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

/* ============================================
   Page Hero (image-based, matching home aesthetic)
   ============================================ */
.page-hero {
  position: relative;
  margin-top: 80px;
  padding: 7rem 0 6rem;
  text-align: center;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(250, 249, 247, 0.62) 0%,
    rgba(250, 249, 247, 0.52) 50%,
    rgba(250, 249, 247, 0.42) 100%
  );
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
  color: #1a2410;
}

.page-hero p {
  color: #2c3a2d;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

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

.about-image img {
  width: 100%;
  height: 550px;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
}

.credentials {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
}

.credentials h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.credentials ul {
  list-style: none;
  padding: 0;
}

.credentials li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-light);
}

.credentials li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-light);
  transform: translateY(-50%);
}

/* ============================================
   Values Section
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.value-item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.value-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ============================================
   Services Page
   ============================================ */
.services-detail {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.service-detail-card:nth-child(even) {
  direction: rtl;
}

.service-detail-card:nth-child(even) > * {
  direction: ltr;
}

.service-detail-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-detail-text h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.service-detail-text p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.service-detail-text ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.service-detail-text li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.service-detail-text li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

/* ============================================
   FAQ Page
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 3rem 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-heading);
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '\2212';
}

.faq-question:hover {
  color: var(--color-accent-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-detail p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--color-white);
  padding: 3rem;
  border: 1px solid var(--color-border);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-heading);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

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

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* ============================================
   Content Page Prose Styles
   ============================================ */
.prose {
  max-width: 800px;
  margin: 0 auto;
}

.prose h2 {
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.prose h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: var(--color-text-light);
  line-height: 1.85;
}

.prose blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-heading);
  line-height: 1.5;
}

.prose ul, .prose ol {
  padding-left: 0;
  list-style: none;
  margin-bottom: 1.5rem;
}

.prose li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--color-text-light);
  line-height: 1.7;
}

.prose li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
}

.prose .highlight-box {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent);
  padding: 2rem;
  margin: 2rem 0;
}

.prose .highlight-box h3 {
  margin-top: 0;
}

.prose .callout {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-heading);
  line-height: 1.6;
}

.prose .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
  margin: 2.5rem 0;
}

.clinic-gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.clinic-gallery figure {
  margin: 0;
}

.clinic-gallery figcaption {
  font-size: 0.78rem;
  color: var(--color-text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 0.6rem;
}

@media (max-width: 768px) {
  .prose .two-col {
    grid-template-columns: 1fr;
  }
  .clinic-gallery {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #f0f4f8;
  color: var(--color-text-light);
  padding: 4rem 0 2rem;
  border-top: 1px solid #dce4ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about .logo-text {
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.footer-about .logo-text span {
  color: var(--color-text-light);
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.footer-links h4,
.footer-hours h4 {
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-accent-dark);
}

.footer-hours p {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-bottom {
  border-top: 1px solid #dce4ec;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #8a9bb0;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
  h1 { font-size: 2.5rem; }
  .hero h1 { font-size: 2.8rem; }

  .philosophy-grid,
  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .service-detail-card {
    grid-template-columns: 1fr;
  }

  .service-detail-card:nth-child(even) {
    direction: ltr;
  }

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

  .philosophy-image {
    order: -1;
  }

  .philosophy-image::after {
    display: none;
  }
}

@media (max-width: 1024px) {
  .page-hero {
    height: 320px;
    min-height: unset;
    padding: 2rem 0;
  }

  .page-hero-bg {
    background-position: top center !important;
  }


  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

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

  .mobile-toggle {
    display: flex;
  }

  .mobile-home-link {
    display: block;
  }


  .hero {
    min-height: 70vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }


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

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

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

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 820px) {
  .about-profile-grid .about-image,
  .about-profile-grid .credentials {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 1.25rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }

  .service-detail-card {
    padding: 2rem 1.5rem;
  }
}
