/* ===== CSS VARIABLES ===== */
:root {
  /* Dark Mode - Deep Forest + Charcoal Blend */
  --bg-dark: #1f2a1f;
  --bg-dark-rgb: 31, 42, 31;
  --bg-dark-alt: #121313;
  --bg-dark-alt-rgb: 18, 19, 19;
  --primary-dark: #162016;
  --primary-dark-rgb: 22, 32, 22;
  --secondary-dark: #324132;
  --secondary-dark-rgb: 50, 65, 50;
  --accent-dark: #d2ab80;
  --accent-dark-rgb: 210, 171, 128;
  --text-dark: #f0eadc;
  --text-dark-rgb: 240, 234, 220;
  --bg-dark-elevated: #1a221a;
  --bg-dark-elevated-rgb: 26, 34, 26;
  --shadow-dark: rgba(0, 0, 0, 0.65);
  --accent-brown: #c2956a;

  /* Light Mode - Matcha Palette */
  --bg-light: #f5f3f0;
  --bg-light-rgb: 245, 243, 240;
  --bg-light-secondary: #e5e0d8;
  --bg-light-secondary-rgb: 229, 224, 216;
  --primary-light: #809671;
  --primary-light-rgb: 128, 150, 113;
  --secondary-light: #b3b792;
  --secondary-light-rgb: 179, 183, 146;
  --accent-light: #d2ab80;
  --accent-light-rgb: 210, 171, 128;
  --accent-light-muted: #e5d2b8;
  --accent-light-muted-rgb: 229, 210, 184;
  --cta-green: #809671;
  --cta-green-rgb: 128, 150, 113;
  --text-light: #725c3a;
  --text-light-rgb: 114, 92, 58;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cormorant Garamond', serif;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 65px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 60px;
  }
}

html {
  scroll-behavior: smooth;
}

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

/* ===== SECTION STYLES ===== */
.section {
  padding: 5rem 0;
}

body.theme-dark .section {
  background: linear-gradient(145deg, rgba(var(--bg-dark-rgb), 0.95), rgba(var(--bg-dark-rgb), 0.9) 45%, rgba(var(--primary-dark-rgb), 0.9));
  border-top: 1px solid rgba(var(--accent-dark-rgb), 0.12);
  border-bottom: 1px solid rgba(var(--bg-dark-rgb), 0.65);
  box-shadow: 0 30px 80px rgba(var(--bg-dark-rgb), 0.55);
}

.section-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  font-weight: 400;
  position: relative;
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.section-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-dark), var(--accent-dark), transparent);
}

.theme-light .section-title::before {
  background: linear-gradient(to right, transparent, var(--accent-light), var(--accent-light), transparent);
}

.section-title::after {
  content: '◆';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--accent-dark);
}

.theme-dark .section-title {
  color: var(--text-dark);
}

.theme-light .section-title::after {
  color: var(--accent-light);
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: rgba(var(--text-light-rgb), 0.7);
}

.theme-dark .section-subtitle {
  color: rgba(var(--text-dark-rgb), 0.75);
}

/* ===== FACILITY CARDS ===== */
.facility-card {
  padding: 2.5rem;
  border-radius: 8px;
  transition: all 0.3s;
  text-align: center;
  height: 100%;
}

.facility-card:hover {
  transform: translateY(-10px);
}

.facility-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.facility-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ===== SERVICE CARDS ===== */
.service-card {
  padding: 2.5rem;
  border-radius: 8px;
  transition: all 0.3s;
  text-align: center;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* ===== GALLERY ===== */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== MAP ===== */
.map-container {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid;
  margin-top: 2rem;
}

/* ===== CONTACT CARDS ===== */
.contact-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
}

.contact-card p {
  position: relative;
  z-index: 2;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-card a {
  transition: color 0.3s;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  position: relative;
  z-index: 1;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 992px) {
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.2rem;
  }

  .contact-icon {
    font-size: 2.5rem;
  }

  .contact-title {
    font-size: 1.3rem;
  }

  .map-container {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 0.8rem;
  }

  .section-title::before {
    width: 60px;
    height: 2px;
  }

  .section-title::after {
    font-size: 0.85rem;
    top: -6px;
  }

  .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .contact-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .contact-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .map-container {
    height: 300px;
    margin-top: 1.5rem;
  }

  .facility-icon,
  .service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .facility-title,
  .service-title {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.75rem;
    padding-top: 1.2rem;
    padding-bottom: 0.6rem;
  }

  .section-title::before {
    width: 50px;
    height: 2px;
  }

  .section-title::after {
    font-size: 0.75rem;
    top: -5px;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .contact-card {
    padding: 1.2rem;
  }

  .contact-icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .contact-title {
    font-size: 1.1rem;
  }

  .map-container {
    height: 250px;
    margin-top: 1rem;
  }

  .facility-icon,
  .service-icon {
    font-size: 2rem;
  }

  .facility-title,
  .service-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}
