/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  /* Colors */
  --bg: #f4f6f1;
  --bg-soft: #fafbf8;
  --brand: #638768;
  --brand-deep: #274635;
  --brand-soft: #dfe9dc;
  --accent: #dbc7a0;
  --accent-soft: #efe4cd;
  --text: #162a20;
  --muted: #667a6f;

  /* Glass Effects */
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .8);
  --glass-line: rgba(255, 255, 255, .72);
  --panel-line: rgba(39, 86, 62, .08);

  /* Elevation */
  --shadow-xs: 0 8px 18px rgba(24, 42, 32, .05);
  --shadow: 0 24px 60px rgba(24, 42, 32, .10);
  --shadow-lg: 0 36px 90px rgba(24, 42, 32, .14);

  /* Radius & Layout */
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --radius-pill: 999px;
  --container: 1280px;
  --section-pad: clamp(4rem, 8vw, 7rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: 0.25s ease; }

/* ==========================================================================
   2. CORE TYPOGRAPHY & COMPONENTS
   ========================================================================== */
.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section { padding: var(--section-pad) 0; position: relative; }
.soft-section { background: var(--bg); }

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3.2rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); margin-bottom: 0.5rem; }

p { color: var(--muted); font-size: 1.05rem; }

/* Labels & Decorations */
:is(.eyebrow, .section-tag, .panel-label, .program-kicker) {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-deep);
  margin-bottom: 1rem;
}

:is(.eyebrow, .section-tag, .panel-label, .program-kicker)::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.section-head.center {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 3.5rem;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.header-shell {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.main-header.scrolled { padding: 0.6rem 0; }
.main-header.scrolled .header-shell { background: var(--glass-strong); box-shadow: var(--shadow-lg); }

.logo-wrap {
  width: 100%;
  padding: 1.5rem; /* Slightly more padding for the larger logo */
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
}

/* Logo updated to 150x150 */
.main-logo { 
  width: 150px; 
  height: 150px; 
  object-fit: contain; 
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
}

.main-nav a {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.main-nav a:is(:hover, .active) {
  color: var(--brand-deep);
  background: var(--brand-soft);
}

.nav-cta {
  background: var(--brand-deep) !important;
  color: white !important;
}

/* Mobile Toggle - Top adjusted for 150px logo */
.header-toggle {
  display: none;
  position: absolute;
  right: 1.5rem;
  top: 4.8rem; /* Adjusted to center vertically against the taller logo area */
  width: 44px;
  height: 44px;
  border: 0;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.header-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand-deep);
  margin: 5px auto;
  transition: 0.3s;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero { padding: 4rem 0 var(--section-pad); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0.5rem 0 1.2rem;
}

.hero-body {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-badge-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.5rem; }
.hero-badge {
  background: white;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--brand-soft);
  box-shadow: var(--shadow-xs);
}

.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--brand-deep);
  color: white;
  box-shadow: 0 10px 20px rgba(39, 70, 53, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(39, 70, 53, 0.3);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--brand-soft);
  color: var(--brand-deep);
}

.quick-points {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

/* Hero Cards */
.hero-card { display: flex; flex-direction: column; gap: 1rem; }

.promise-card {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.promise-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promise-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 42, 32, 0.8) 0%, transparent 60%);
}

.promise-card-content { position: relative; z-index: 2; color: white; }
.promise-card-content h2 { color: white; font-size: 2.2rem; }
.promise-card .panel-label { color: var(--accent-soft); }

.panel-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.panel-bottom > div {
  background: white;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid var(--panel-line);
}

.stat { display: block; font-weight: 800; font-size: 1.1rem; color: var(--brand-deep); margin-bottom: 0.2rem; }

/* ==========================================================================
   5. GRID SYSTEMS & CARDS
   ========================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.chip-grid, .program-grid, .testimonial-grid, .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

:is(.info-chip, .program-card, .testimonial-card, .resource-chip, .luxury-gallery-card, .cta-box, .glass-widget) {
  background: white;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

:is(.info-chip, .program-card, .resource-chip):hover {
  transform: translateY(-8px);
  border-color: var(--brand);
}

.wide-card { grid-column: span 2; }

/* Gallery */
.luxury-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.luxury-gallery-frame {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.luxury-gallery-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Contact Widgets */
.contact-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-links, .social-links { display: grid; gap: 1rem; margin-top: 1.5rem; }

.contact-link, .social-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  background: var(--bg-soft);
  border-radius: 20px;
  border: 1px solid transparent;
}

.contact-link:hover, .social-link:hover {
  background: white;
  border-color: var(--brand);
  transform: translateX(5px);
}

.contact-icon, .social-icon { font-size: 1.5rem; }

/* ==========================================================================
   6. FOOTER REVISIONS (Credit to Stemn Enterprise)
   ========================================================================== */
.site-footer {
  padding: 4rem 0;
  border-top: 1px solid var(--panel-line);
  background: white;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  color: var(--brand-deep);
}

.footer-credits {
  text-align: right;
}

.designer-link {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.8;
}

.designer-link a {
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.designer-link a:hover {
  color: var(--brand-deep);
  text-decoration-color: var(--accent);
}

/* ==========================================================================
   7. ANIMATIONS & RESPONSIVE
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid, .split-layout, .luxury-gallery-grid, .contact-social-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .wide-card { grid-column: auto; }
}

@media (max-width: 860px) {
  .header-toggle { display: block; }
  
  .main-nav {
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    border-top: 1px solid var(--panel-line);
  }
  
  .main-nav.open { display: flex; }
  
  /* Hamburger Animation */
  .header-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header-toggle.is-open span:nth-child(2) { opacity: 0; }
  .header-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .cta-box { text-align: center; }
  .cta-actions { justify-content: center; }

  /* Mobile footer adjustment */
  .footer-wrap, .footer-credits {
    text-align: center;
    justify-content: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .panel-bottom { grid-template-columns: 1fr; }
  .promise-card { height: 320px; padding: 1.5rem; }
  .hero h1 { font-size: 3rem; }
}

