/* ============================================================
   HOPEBRIDGE WELLNESS CENTER — BASE.CSS
   Shared variables, reset, typography, utilities, animations
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── CSS VARIABLES ── */
:root {
  /* Brand colors */
  --jungle:       #1B5E3B;
  --jungle-light: #2E7D52;
  --jungle-pale:  #EAF4EE;
  --navy:         #0D1F3C;
  --navy-mid:     #1A3460;
  --navy-light:   #EEF1F7;
  --white:        #FFFFFF;
  --cream:        #FAFAF8;
  --gold:         #C9A84C;
  --gold-light:   #E2C97A;
  --gold-dark:    #A8883A;

  /* Text */
  --text-dark:    #111827;
  --text-mid:     #4B5563;
  --text-light:   #9CA3AF;

  /* Borders */
  --border:       rgba(27,94,59,0.15);
  --border-light: rgba(0,0,0,0.07);

  /* Shadows */
  --shadow-sm:    0 2px 12px rgba(13,31,60,0.07);
  --shadow-md:    0 8px 32px rgba(13,31,60,0.11);
  --shadow-lg:    0 20px 60px rgba(13,31,60,0.16);
  --shadow-xl:    0 32px 80px rgba(13,31,60,0.22);

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.35s var(--ease);
  --transition-slow: 0.6s var(--ease);

  /* Layout */
  --nav-height:   80px;
  --announce-height: 44px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* Skip to main content for accessibility */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 10000;
  background: var(--jungle); color: var(--white);
  padding: 8px 16px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--jungle); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.12;
  color: var(--navy);
}
p { line-height: 1.75; }

/* ── PAGE LOADER ── */
#page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 600;
  color: var(--white); letter-spacing: 3px;
  margin-bottom: 6px;
}
.loader-logo span { color: var(--gold); }
.loader-tagline {
  font-size: 0.72rem; letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 32px;
}
.loader-bar { width: 180px; height: 2px; background: rgba(255,255,255,0.12); margin: 0 auto; }
.loader-bar-fill {
  height: 100%; width: 0; background: linear-gradient(90deg, var(--jungle-light), var(--gold));
  animation: loaderFill 2s var(--ease) forwards;
}
@keyframes loaderFill { to { width: 100%; } }

/* ── SECTION SHARED ── */
.section { padding: 100px 0; }

.container {
  width: 100%;
  padding: 0 60px;
}

/* ── SECTION LABELS & TITLES ── */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--label-color, var(--jungle));
  font-size: 0.72rem; letter-spacing: 3.5px;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 14px;
}
.section-label::before {
  content: ''; width: 36px; height: 2px;
  background: var(--label-color, var(--jungle)); flex-shrink: 0;
}
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-label::after {
  content: ''; width: 36px; height: 2px;
  background: var(--label-color, var(--jungle)); flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600; color: var(--navy); line-height: 1.12;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--jungle); }

.section-desc {
  font-size: 1.05rem; color: var(--text-mid);
  max-width: 620px; font-weight: 300; line-height: 1.82;
}
.text-center .section-desc { margin: 0 auto; }

/* ── LINK ARROW ── */
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--jungle); font-size: 0.9rem; font-weight: 600;
  margin-top: 28px;
  transition: gap var(--transition), color var(--transition);
  letter-spacing: 0.3px;
}
.link-arrow i { transition: transform var(--transition); }
.link-arrow:hover { gap: 16px; }
.link-arrow:hover i { transform: translateX(4px); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px;
  background: linear-gradient(135deg, var(--jungle), var(--jungle-light));
  color: var(--white); font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(27,94,59,0.4);
  letter-spacing: 0.3px;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(27,94,59,0.5);
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0; transform: translateX(-40px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0; transform: translateX(40px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── ANIMATIONS ── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── RESPONSIVE BASE ── */
@media (max-width: 1024px) {
  .container { padding: 0 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
}
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
}