/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
  --accent-color: #0d9488;
  --accent-hover: color-mix(in srgb, var(--accent-color) 85%, black);
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --border-color: #e5e7eb;
}

/* ==========================================================================
   2. Reset / Base Styles
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
}

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

a {
  color: inherit;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
}

.page-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 32px 0;
}

/* ==========================================================================
   5. Navbar
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent-color);
  height: 60px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links {
  display: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 16px;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-links a.active {
  border-bottom: 2px solid #fff;
  padding-bottom: 6px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
}

/* Mobile nav dropdown */
.nav-open .nav-links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--accent-color);
  padding: 16px 0;
  z-index: 99;
}

.nav-open .nav-links a {
  padding: 12px 16px;
  line-height: 48px;
}

/* ==========================================================================
   6. Footer
   ========================================================================== */

.footer {
  background: var(--bg-secondary);
  border-top: 3px solid var(--accent-color);
  padding: 48px 0;
}

.footer-container {
  text-align: center;
}

.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-address,
.footer-phone {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-nav {
  margin-top: 24px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-copyright {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 24px;
  text-align: center;
}

/* ==========================================================================
   7. Components
   ========================================================================== */

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 24px;
  border-top: 3px solid var(--accent-color);
}

.card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.card-description {
  font-size: 16px;
  color: var(--text-secondary);
}

.testimonial-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stars {
  color: var(--accent-color);
  font-size: 16px;
}

.testimonial-text {
  font-style: italic;
  margin: 12px 0;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ==========================================================================
   8. Page-Specific Sections
   ========================================================================== */

/* --- Home: Hero --- */

.page-home .hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.hero-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  max-width: 800px;
  line-height: 1.2;
}

.hero-text {
  font-size: 16px;
  color: #fff;
  max-width: 600px;
  margin-top: 16px;
  line-height: 1.6;
}

.hero .btn-primary {
  margin-top: 24px;
}

/* --- Home: Services & Testimonials --- */

.services-section,
.testimonials-section {
  padding: 32px 0;
}

.testimonials-section {
  background: var(--bg-secondary);
}

.services-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* --- About --- */

.page-about .about-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about .about-content p {
  margin-bottom: 24px;
}

/* --- Gallery --- */

.page-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumb:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

/* --- Contact --- */

.page-contact .contact-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-info-item {
  margin-bottom: 16px;
}

.contact-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 16px;
  color: var(--text-primary);
}

.contact-value a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.hours-display {
  white-space: pre-line;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--accent-color);
  color: #fff;
}

.social-link svg {
  flex-shrink: 0;
}

/* ==========================================================================
   8a. Services Variant: Menu Layout
   ========================================================================== */

.menu-group {
  margin-bottom: 32px;
}

.menu-group-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 8px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.menu-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-color);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.menu-item-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   8b. Services Variant: List/Treatment Layout
   ========================================================================== */

.treatment-list {
  max-width: 700px;
  margin: 0 auto;
}

.treatment-item {
  padding: 24px 0;
  padding-left: 16px;
  border-bottom: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-color);
}

.treatment-item:last-child {
  border-bottom: none;
}

.treatment-name {
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.treatment-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   8c. Services Variant: Compact Layout
   ========================================================================== */

.compact-accent-rule {
  border: none;
  border-top: 3px solid var(--accent-color);
  margin-bottom: 24px;
}

.compact-item {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.compact-item:last-child {
  border-bottom: none;
}

.compact-name {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.compact-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ==========================================================================
   8d. Home Page Section Compositor
   ========================================================================== */

.services-preview-section {
  padding: 32px 0;
}

.testimonials-section {
  background: var(--bg-secondary);
}

/* ==========================================================================
   8e. Section: Gallery Preview
   ========================================================================== */

.gallery-preview-section {
  padding: 32px 0;
}

.gallery-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.gallery-preview-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* ==========================================================================
   8f. Section: Location Map (Home)
   ========================================================================== */

.location-map-section {
  background: var(--bg-secondary);
  padding: 32px 0;
}

.location-map-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.location-address {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 16px;
  font-size: 16px;
}

/* ==========================================================================
   8g. Section: About Summary
   ========================================================================== */

.about-summary-section {
  padding: 32px 0;
}

.about-summary-text {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

/* ==========================================================================
   8h. Section: Special Offer
   ========================================================================== */

.special-offer-section {
  background: var(--bg-secondary);
  padding: 32px 0;
}

.special-offer-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 32px;
  border-left: 4px solid var(--accent-color);
  max-width: 600px;
  margin: 0 auto;
}

.special-offer-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.special-offer-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   8i. Section: Social Proof Badge
   ========================================================================== */

.social-proof-section {
  padding: 32px 0;
}

.social-proof-container {
  text-align: center;
}

.social-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 48px;
  background: var(--accent-color);
  color: #fff;
}

.social-proof-rating {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.social-proof-separator {
  opacity: 0.5;
}

.social-proof-count {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  opacity: 0.9;
}

/* ==========================================================================
   8k. Section: Review Showcase
   ========================================================================== */

.review-showcase-section {
  background: var(--bg-secondary);
  padding: 32px 0;
}

.review-showcase-header {
  text-align: center;
  margin-bottom: 16px;
}

.review-showcase-aggregate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
}

.review-showcase-aggregate:hover {
  color: var(--accent-color);
}

.review-showcase-stars {
  color: var(--accent-color);
  font-size: 20px;
}

.review-showcase-rating {
  font-size: 20px;
  font-weight: 600;
}

.review-showcase-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.review-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.review-card-stars {
  color: var(--accent-color);
  font-size: 16px;
  margin-bottom: 12px;
}

.review-card-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.review-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-card-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.review-card-source {
  flex-shrink: 0;
  opacity: 0.7;
}

.review-card-source:hover {
  opacity: 1;
}

/* ==========================================================================
   8j. btn-secondary Component
   ========================================================================== */

.section-cta {
  text-align: center;
  margin-top: 24px;
}

.btn-secondary {
  color: var(--accent-color);
  background: transparent;
  border: 2px solid var(--accent-color);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-color);
  color: #fff;
}

/* ==========================================================================
   9. Lightbox
   ========================================================================== */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active {
  display: flex;
}

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-prev {
  left: 16px;
}

.lb-next {
  right: 16px;
}

.lb-prev:hover,
.lb-next:hover {
  color: var(--accent-color);
}

/* ==========================================================================
   10. Media Queries (mobile-first, min-width)
   ========================================================================== */

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
  }

  section {
    padding: 48px 0;
  }

  .page-heading {
    font-size: 36px;
  }

  .hero-tagline {
    font-size: 36px;
  }

  .section-heading {
    font-size: 24px;
  }

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

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

  .page-gallery .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-contact .contact-layout {
    flex-direction: row;
  }

  .page-contact .contact-info {
    flex: 1;
  }

  .page-contact .map-container {
    flex: 1;
  }

  .footer-container {
    display: flex;
    justify-content: space-between;
    text-align: left;
  }

  .footer-nav {
    margin-top: 0;
  }

  .menu-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .menu-item-desc {
    text-align: right;
    margin-top: 0;
    flex-shrink: 1;
  }

  .compact-item {
    flex-direction: row;
    align-items: baseline;
  }

  .compact-name {
    min-width: 200px;
    flex-shrink: 0;
  }

  .compact-desc {
    flex: 1;
    margin-top: 0;
  }

  .gallery-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  section {
    padding: 64px 0;
  }

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

  .review-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-gallery .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
