/* =========================
   ROOT COLOR SYSTEM
========================= */
:root {
  /* Base Palette */
  --color-deep-teal: #254E4B;
  --color-muted-teal: #3E6F6A;
  --color-warm-gold: #C8AF73;
  --color-soft-gold: #D8C48A;
  --color-cream: #F4EAD3;
  --color-off-white: #FAF6ED;
  --color-sage: #7FAF9F;
  --color-soft-green: #A9C7B8;
  --color-text-dark: #1F2E2C;
  --color-text-light: #FFFFFF;

  /* Semantic Mapping */
  --bg-primary: var(--color-deep-teal);
  --bg-secondary: var(--color-cream);
  --bg-soft: var(--color-off-white);

  --text-primary: var(--color-text-dark);
  --text-secondary: var(--color-muted-teal);
  --text-inverse: var(--color-text-light);

  --accent-primary: var(--color-warm-gold);
  --accent-secondary: var(--color-sage);

  --border-soft: rgba(0, 0, 0, 0.08);
}

/* =========================
   GLOBAL STYLES
========================= */
* {
  box-sizing: border-box;
  transition: background 0.2s ease, color 0.2s ease;
}

body {
  margin: 0;
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text-primary);
  background: var(--bg-soft);
  line-height: 1.6;
  font-size: 17px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-deep-teal);
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-muted-teal);
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-deep-teal) transparent;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
}

h1 {
  font-size: 2.75rem;
  color: var(--color-deep-teal);
}

h2 {
  font-size: 2.2rem;
  color: var(--color-muted-teal);
}

h3 {
  font-size: 1.55rem;
}

p {
  margin: 0 0 16px;
}

.text-accent {
  color: var(--accent-primary);
}

/* =========================
   LINKS
========================= */
a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   BUTTONS
========================= */
.btn-primary {
  background: var(--accent-primary);
  color: var(--color-text-dark);
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--color-soft-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--bg-primary);
  border: 2px solid var(--bg-primary);
  padding: 12px 24px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-primary);
  color: var(--text-inverse);
}

/* =========================
   CARDS
========================= */
.card {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.card-dark {
  background: var(--bg-primary);
  color: var(--text-inverse);
}

/* =========================
   GRADIENTS
========================= */
.gradient-hero {
  background: linear-gradient(
    135deg,
    var(--color-deep-teal),
    var(--color-muted-teal)
  );
}

.gradient-accent {
  background: linear-gradient(
    135deg,
    var(--color-warm-gold),
    var(--color-soft-gold)
  );
}

.gradient-soft {
  background: linear-gradient(
    180deg,
    var(--color-off-white),
    var(--color-cream)
  );
}

/* =========================
   LAYOUT
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.section {
  padding: 80px 0;
}

.rounded-xl {
  border-radius: 24px;
}

.shadow-soft {
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* =========================
   DIVIDERS
========================= */
.divider {
  height: 1px;
  background: var(--border-soft);
  margin: 24px 0;
}

/* =========================
   NAVIGATION BAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: transparent;
  color: var(--text-inverse);
  padding: 16px 0;
  box-shadow: none;
  z-index: 100;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(37, 78, 75, 0.95);
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-links a {
  color: var(--text-light);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-warm-gold);
}

.navbar.scrolled .nav-btn {
  background: var(--color-warm-gold) !important;
  color: var(--text-primary) !important;
}

.navbar.scrolled .nav-btn:hover {
  background: var(--color-soft-gold) !important;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-text {
  font-size: 1.65rem;
  margin: 0;
  color: var(--text-inverse);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--color-deep-teal);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--color-muted-teal);
}

.nav-btn {
  padding: 10px 20px !important;
  font-size: 0.9rem !important;
  background: var(--color-deep-teal) !important;
  color: var(--text-inverse) !important;
  border: none !important;
}

.nav-btn:hover {
  background: var(--color-muted-teal) !important;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(37, 78, 75, 0.85),
    rgba(62, 111, 106, 0.85)
  ),
  url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23f4ead3;stop-opacity:0.15" /><stop offset="100%" style="stop-color:%23c8af73;stop-opacity:0.1" /></linearGradient></defs><rect width="1200" height="600" fill="url(%23grad)"/><circle cx="200" cy="50" r="80" fill="%237FAF9F" opacity="0.1"/><circle cx="1000" cy="500" r="120" fill="%23A9C7B8" opacity="0.1"/></svg>');
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--text-inverse);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
  text-align: left;
  background: none;
}

.hero-left {
  background: linear-gradient(135deg, rgba(37, 78, 75, 0.95), rgba(62, 111, 106, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 100vh;
}

.hero-right {
  background: var(--color-soft-green);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  min-height: 100vh;
}

.hero-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-logo-section {
  max-width: 75%;
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.hero-logo-image {
  width: 300px;
  height: 300px;
  object-fit: contain;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 3rem;
  color: var(--text-inverse);
  margin: 0;
  font-weight: 300;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-weight: 400;
  margin: 0;
}

.hero-overlay {
  display: none;
}

.hero-content {
  display: none;
}

.btn-large {
  padding: 16px 40px !important;
  font-size: 1.1rem !important;
  margin-top: 20px;
}

/* =========================
   SECTION STYLES
========================= */
.section {
  padding: 100px 0;
}

.section-light {
  background: var(--bg-soft);
}

.section-title {
  font-size: 2.5rem;
  color: var(--bg-primary);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 500;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 60px;
  font-style: italic;
}

/* =========================
   ABOUT SECTION
========================= */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* =========================
   STAFF SECTION
========================= */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.staff-card {
  background: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.staff-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.staff-image {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.staff-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.staff-info {
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
}

.staff-name {
  font-size: 1.55rem;
  color: var(--bg-primary);
  margin: 0 0 8px 0;
  font-weight: 700;
}

.staff-title {
  color: var(--accent-primary);
  font-weight: 700;
  margin: 0 0 16px 0;
  font-size: 1.05rem;
}

.staff-bio {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-height: 3.2em;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.bio-container {
  display: flex;
  flex-direction: column;
}

.bio-container.expanded .staff-bio {
  max-height: none;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  font-size: 1rem;
  transition: color 0.3s ease;
  text-align: left;
  margin-top: 12px;
}

.expand-btn:hover {
  color: var(--color-warm-gold);
}

.arrow {
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
  font-size: 0.8em;
}

/* =========================
   BIO MODAL
========================= */
.bio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.bio-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.modal-content {
  position: relative;
  z-index: 1001;
  background: var(--bg-secondary);
  border-radius: 24px;
  max-width: 800px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: sticky;
  top: 20px;
  right: 20px;
  float: right;
  background: var(--bg-primary);
  color: var(--text-inverse);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.modal-close:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
  transform: scale(1.1);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}

.modal-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
  max-height: 500px;
}

.modal-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.modal-text h2 {
  color: var(--bg-primary);
  font-size: 2rem;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.modal-title {
  color: var(--accent-primary);
  font-weight: 600;
  margin: 0 0 24px 0;
  font-size: 1.1rem;
}

.modal-bio {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* =========================
   RESPONSIVE MODAL
========================= */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .modal-image {
    max-height: 300px;
  }

  .modal-text h2 {
    font-size: 1.5rem;
  }

  .modal-bio {
    font-size: 1rem;
  }
}

/* =========================
   SERVICES SECTION
========================= */
#services {
  background-color: var(--color-sage) !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.service-card {
  text-align: center;
  padding: 40px 30px !important;
  border-radius: 16px !important;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1) !important;
}

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

.service-card h3 {
  color: var(--bg-primary);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

#services section-title {
  color: var(--color-warm-gold);
}

.service-card p {
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  color: var(--accent-primary);
  font-weight: 700;
  transition: color 0.3s ease;
  text-decoration: none;
}

.service-link:hover {
  color: var(--color-warm-gold);
  text-decoration: underline;
}

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  background: var(--bg-primary);
  color: var(--text-inverse);
  text-align: center;
}

.contact-section .section-title {
  color: var(--text-inverse);
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: rgba(31, 46, 44, 0.95);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer p {
  margin: 0;
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
  .navbar {
    position: static;
    background: rgba(37, 78, 75, 0.95);
    padding: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .navbar .nav-links a {
    color: var(--text-light);
  }

  .navbar .nav-links a:hover {
    color: var(--color-warm-gold);
  }

  .navbar .nav-btn {
    background: var(--color-warm-gold) !important;
    color: var(--text-primary) !important;
  }

  .navbar .nav-btn:hover {
    background: var(--color-soft-gold) !important;
  }

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

  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-left,
  .hero-right {
    min-height: auto;
    padding: 40px 24px;
  }

  .hero-logo-section {
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .staff-grid,
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section {
    padding: 60px 0;
  }

  .nav-container {
    flex-direction: column;
    gap: 20px;
  }
}