/* =====================================================
   TILDACARE FOUNDATION — Shared Stylesheet
   ===================================================== */

:root {
  --green: #2D6A4F;
  --green-light: #40916C;
  --green-pale: #D8F3DC;
  --orange: #E07B39;
  --orange-light: #F4A261;
  --yellow: #F5C842;
  --red: #C1292E;
  --blue: #2176AE;
  --cream: #FDF8F2;
  --brown: #3D2B1F;
  --gray: #6B7280;
  --white: #FFFFFF;
  --shadow: 0 4px 32px rgba(45,106,79,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--brown); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* =====================================================
   NAVIGATION
   ===================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253,248,242,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,106,79,0.1);
  padding: 0 5%; display: flex; align-items: center;
  justify-content: space-between; height: 72px; transition: all 0.3s;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 44px; height: 44px; flex-shrink: 0; }
.nav-logo-img { width: 44px; height: 44px; object-fit: contain; }
.nav-logo-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--green); letter-spacing: -0.3px; }
.nav-logo-text span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { text-decoration: none; color: var(--brown); font-size: 0.88rem; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta { background: var(--green) !important; color: var(--white) !important; padding: 10px 22px; border-radius: 50px; font-weight: 600 !important; transition: background 0.2s, transform 0.2s !important; }
.nav-cta:hover { background: var(--green-light) !important; transform: translateY(-1px); }
.nav-toggle { display: none; cursor: pointer; flex-direction: column; gap: 5px; background: none; border: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown); transition: 0.3s; }

/* =====================================================
   SECTION COMMONS
   ===================================================== */
section { padding: 100px 5%; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--green); background: var(--green-pale); padding: 6px 16px; border-radius: 50px; margin-bottom: 16px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.section-title span { color: var(--orange); font-style: italic; }
.section-lead { color: var(--gray); font-size: 1.05rem; line-height: 1.8; max-width: 640px; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary { background: var(--green); color: #fff; padding: 14px 34px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px; transition: all 0.3s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--green-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(45,106,79,0.3); }
.btn-primary.orange { background: var(--orange); }
.btn-primary.orange:hover { background: var(--orange-light); box-shadow: 0 8px 24px rgba(224,123,57,0.4); }
.btn-ghost { background: transparent; color: var(--green); padding: 14px 34px; border-radius: 50px; text-decoration: none; font-weight: 600; font-size: 0.95rem; border: 2px solid var(--green); transition: all 0.3s; display: inline-block; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-ghost.white { color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost.white:hover { border-color: #fff; background: rgba(255,255,255,0.12); }
.btn-white { background: #fff; color: var(--orange); padding: 14px 34px; border-radius: 50px; text-decoration: none; font-weight: 700; font-size: 0.95rem; transition: all 0.3s; display: inline-block; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); }

/* =====================================================
   PAGE HERO (inner pages)
   ===================================================== */
.page-hero {
  min-height: 420px; display: flex; align-items: flex-end; position: relative; overflow: hidden;
  padding: 120px 5% 72px; background: linear-gradient(135deg, #1B4332 0%, #2D6A4F 100%);
}
.page-hero-bg { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: 0.25; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,67,50,0.9) 0%, rgba(27,67,50,0.4) 100%); }
.page-hero-content { position: relative; z-index: 2; max-width: 760px; }
.page-hero-content .section-tag { background: rgba(255,255,255,0.15); color: var(--yellow); }
.page-hero-content h1 { font-family: 'Playfair Display', serif; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.page-hero-content h1 em { font-style: italic; color: var(--yellow); }
.page-hero-content p { font-size: 1.05rem; color: rgba(255,255,255,0.8); line-height: 1.75; max-width: 560px; font-weight: 300; }

/* =====================================================
   FOOTER
   ===================================================== */
footer { background: var(--brown); color: rgba(255,255,255,0.7); padding: 64px 5% 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo-text { color: #fff; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 16px; color: rgba(255,255,255,0.5); }
.footer-col h4 { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; color: rgba(255,255,255,0.5); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange-light); }
.footer-rc { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 14px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: all 0.2s; }
.footer-social a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; font-size: 0.82rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 12px; }

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  nav .nav-links { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--cream); padding: 24px 5% 32px; border-bottom: 1px solid rgba(0,0,0,0.06); gap: 1rem; box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
  nav .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 72px 5%; }
  .page-hero { min-height: 320px; padding: 100px 5% 48px; }
}
