/* ═══════════════════════════════════════════════
   EDEN HOUSE CARE FACILITY — Shared Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
  --sage:        #B8654A;
  --sage-light:  #D99B84;
  --sage-pale:   #FBF0EA;
  --forest:      #26344A;
  --sand:        #D7C49F;
  --warm-white:  #F7F4EC;
  --stone:       #E8E4DC;
  --text:        #303734;
  --text-muted:  #6B6F76;
  --gold:        #C4A96B;
  --gold-light:  #E8D5A3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 112.5%; } /* 18px root — larger, easier-to-read type for an older-adult audience */
body { font-family: 'Inter', sans-serif; background: var(--warm-white); color: var(--text); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 72px;
  background: rgba(250,250,247,0.96); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stone); transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(38,52,74,0.1); }

.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  font-weight: 600; color: var(--forest); text-decoration: none; line-height: 1.2;
}
.nav-logo span { display: block; font-size: 0.68rem; font-family: 'Inter', sans-serif; font-weight: 300; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 20px; list-style: none; }
.nav-links a { font-size: 0.66rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); text-decoration: none; transition: color 0.2s; padding: 4px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--forest); border-bottom-color: var(--sage); }
.nav-links .btn-contact { background: var(--forest); color: #fff !important; padding: 9px 18px; border-radius: 40px; font-size: 0.64rem; border-bottom: none !important; white-space: nowrap; }
.nav-links .btn-contact:hover { background: var(--sage); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: 0.3s; display: block; }

.mobile-menu { position: fixed; top: 72px; left: 0; right: 0; background: var(--warm-white); padding: 20px 32px 28px; display: none; flex-direction: column; gap: 18px; z-index: 999; border-bottom: 1px solid var(--stone); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.92rem; color: var(--text); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 1px solid var(--stone); }
.mobile-menu a:last-child { border-bottom: none; }

/* ── PAGE HEADER BANNER ── */
.page-hero {
  padding-top: 72px;
  background: var(--forest);
  color: #fff;
  padding-left: 80px; padding-right: 80px;
  padding-bottom: 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--warm-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero.dark-bg::after { background: var(--forest); }
.page-hero.stone-bg::after { background: var(--stone); }
.page-hero.sage-bg::after { background: var(--sage-pale); }
.breadcrumb { font-size: 0.72rem; color: rgba(255,255,255,0.5); letter-spacing: 0.08em; margin-bottom: 24px; padding-top: 48px; }
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.3); margin: 0 8px; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 300; line-height: 1.08; margin-bottom: 20px; }
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.7); max-width: 580px; line-height: 1.75; }

/* ── GENERIC SECTIONS ── */
.section { padding: 88px 80px; }
.section-eyebrow { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 300; color: var(--forest); line-height: 1.15; margin-bottom: 22px; }
.section-title em { font-style: italic; }
.section-lead { font-size: 1.05rem; line-height: 1.8; color: var(--text-muted); max-width: 620px; }

/* ── BUTTONS ── */
.btn-primary { background: var(--forest); color: #fff; padding: 13px 30px; border-radius: 40px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-decoration: none; display: inline-block; transition: background 0.25s, transform 0.2s; }
.btn-primary:hover { background: var(--sage); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--sage); color: var(--forest); padding: 13px 30px; border-radius: 40px; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.05em; text-decoration: none; display: inline-block; transition: background 0.25s; }
.btn-outline:hover { background: var(--sage-pale); }
.btn-white { background: #fff; color: var(--forest); padding: 15px 38px; border-radius: 40px; font-size: 0.84rem; font-weight: 600; text-decoration: none; display: inline-block; transition: transform 0.2s, box-shadow 0.2s; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
.btn-gold { background: var(--gold); color: var(--forest); padding: 13px 30px; border-radius: 40px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-decoration: none; display: inline-block; transition: opacity 0.2s, transform 0.2s; }
.btn-gold:hover { opacity: 0.88; transform: translateY(-1px); }

/* ── CARDS ── */
.card { background: #fff; border: 1px solid rgba(184,101,74,0.18); border-radius: 18px; padding: 36px; box-shadow: 0 2px 20px rgba(38,52,74,0.05); transition: box-shadow 0.3s, transform 0.25s; }
.card:hover { box-shadow: 0 12px 40px rgba(38,52,74,0.12); transform: translateY(-3px); }
.card-icon { font-size: 2rem; margin-bottom: 18px; }
.card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: var(--forest); margin-bottom: 10px; }
.card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.7; }

/* ── PILL BADGES ── */
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--sage-pale); border: 1px solid var(--sage-light); padding: 7px 16px; border-radius: 40px; font-size: 0.74rem; color: var(--forest); font-weight: 500; }

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

/* ── FEATURE LIST ── */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }
.feature-list li::before { content: ''; width: 20px; height: 20px; min-width: 20px; border-radius: 50%; background: var(--sage-pale); border: 1.5px solid var(--sage-light); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.feature-list.check li::before { content: '✓'; background: var(--forest); border-color: var(--forest); color: #fff; font-size: 0.6rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; margin: 36px 0; }
.stat-item { display: flex; flex-direction: column; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--forest); line-height: 1; }
.stat-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 5px; }

/* ── FOOTER ── */
footer { background: var(--text); color: rgba(255,255,255,0.55); padding: 60px 80px 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 52px; }
.footer-brand { }
.footer-brand .nav-logo { color: #fff; margin-bottom: 14px; display: inline-block; }
.footer-brand p { font-size: 0.8rem; line-height: 1.72; max-width: 260px; margin-top: 10px; }
footer h4 { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.88); margin-bottom: 16px; font-weight: 600; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a { font-size: 0.8rem; color: rgba(255,255,255,0.48); text-decoration: none; transition: color 0.2s; }
footer ul li a:hover { color: #fff; }
.footer-contact p { font-size: 0.8rem; color: rgba(255,255,255,0.48); line-height: 1.65; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.48); text-decoration: none; transition: color 0.2s; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { background: var(--text); padding: 18px 80px; border-top: 1px solid rgba(255,255,255,0.07); display: flex; justify-content: space-between; align-items: center; font-size: 0.73rem; color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }

/* ── 3D CALENDAR SLIDER ── */
.slider-scene { perspective: 1600px; max-width: 960px; margin: 0 auto; position: relative; height: 540px; }
.cal-full { max-width: 1100px; margin: 0 auto; }
.cal-full-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(38,52,74,0.14); border: 1px solid var(--stone); background: #fff; cursor: zoom-in; }
.cal-full-frame img { width: 100%; height: auto; display: block; }
.cal-full-actions { display: flex; justify-content: center; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.cal-lightbox { position: fixed; inset: 0; background: rgba(20,30,20,0.92); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 24px; cursor: zoom-out; }
.cal-lightbox.open { display: flex; }
.cal-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.cal-lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 2rem; cursor: pointer; line-height: 1; }
.newsletter-pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1100px; margin: 0 auto; }
.newsletter-spread { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.newsletter-page-frame { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 28px rgba(38,52,74,0.12); border: 1px solid var(--stone); cursor: zoom-in; background: #fff; transition: transform 0.2s; }
.newsletter-page-frame:hover { transform: translateY(-4px); }
.newsletter-page-frame img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) {
  .newsletter-spread { grid-template-columns: 1fr; }
}
.newsletter-section-divider { text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; color: var(--forest); margin: 56px 0 28px; }
.newsletter-cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1100px; margin: 0 auto; }
.newsletter-cal-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--forest); text-align: center; margin-bottom: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .newsletter-pages { grid-template-columns: repeat(2, 1fr); }
  .newsletter-cal-grid { grid-template-columns: 1fr; }
}
.slider-track { display: flex; align-items: center; justify-content: center; height: 100%; position: relative; }
.slide { position: absolute; width: 320px; height: 470px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(38,52,74,0.22); transition: transform 0.65s cubic-bezier(0.4,0,0.2,1), opacity 0.55s, filter 0.55s; cursor: pointer; background: #fff; will-change: transform; }
.slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.slide-label { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(38,52,74,0.9)); color: #fff; padding: 28px 18px 18px; font-size: 0.76rem; letter-spacing: 0.06em; font-weight: 500; }
.slide[data-pos="-2"] { transform: translateX(-500px) translateZ(-220px) rotateY(24deg); opacity: 0.18; z-index: 1; filter: brightness(0.65); }
.slide[data-pos="-1"] { transform: translateX(-270px) translateZ(-90px) rotateY(15deg); opacity: 0.62; z-index: 2; filter: brightness(0.85); }
.slide[data-pos="0"]  { transform: translateX(0) translateZ(0) rotateY(0deg); opacity: 1; z-index: 5; filter: brightness(1); }
.slide[data-pos="1"]  { transform: translateX(270px) translateZ(-90px) rotateY(-15deg); opacity: 0.62; z-index: 2; filter: brightness(0.85); }
.slide[data-pos="2"]  { transform: translateX(500px) translateZ(-220px) rotateY(-24deg); opacity: 0.18; z-index: 1; filter: brightness(0.65); }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 44px; }
.slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--sage); background: #fff; color: var(--forest); font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.slider-btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-light); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.slider-dot.active { background: var(--forest); transform: scale(1.35); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .page-hero, .section, footer { padding-left: 48px; padding-right: 48px; }
  .footer-bottom { padding-left: 48px; padding-right: 48px; }
  footer { grid-template-columns: 1fr 1fr; }
  nav { padding: 0 32px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 768px) {
  .page-hero, .section { padding-left: 28px; padding-right: 28px; padding-top: 48px; padding-bottom: 60px; }
  footer { grid-template-columns: 1fr 1fr; gap: 36px; padding: 48px 28px 28px; }
  .footer-bottom { padding: 16px 28px; flex-direction: column; align-items: flex-start; }
  .slider-scene { height: 440px; }
  .slide { width: 260px; height: 390px; }
  .slide[data-pos="-1"] { transform: translateX(-200px) translateZ(-70px) rotateY(15deg); }
  .slide[data-pos="1"]  { transform: translateX(200px) translateZ(-70px) rotateY(-15deg); }
  .slide[data-pos="-2"] { transform: translateX(-380px) translateZ(-170px) rotateY(24deg); }
  .slide[data-pos="2"]  { transform: translateX(380px) translateZ(-170px) rotateY(-24deg); }
}
@media (max-width: 560px) {
  nav { padding: 0 18px; }
  .page-hero, .section { padding-left: 18px; padding-right: 18px; }
  footer { grid-template-columns: 1fr; padding: 40px 18px 24px; }
  .footer-bottom { padding: 14px 18px; }
  .stats-row { gap: 28px; }
  .slider-scene { height: 380px; }
  .slide { width: 220px; height: 330px; }
  .slide[data-pos="-1"] { transform: translateX(-160px) translateZ(-60px) rotateY(15deg); }
  .slide[data-pos="1"]  { transform: translateX(160px) translateZ(-60px) rotateY(-15deg); }
  .slide[data-pos="-2"] { transform: translateX(-310px) translateZ(-140px) rotateY(24deg); }
  .slide[data-pos="2"]  { transform: translateX(310px) translateZ(-140px) rotateY(-24deg); }
}
