/* SAGE — Yoga & Pilates Studio Template */
/* Design: Calm, spacious, natural materials feel, generous whitespace */

:root {
    --bg: #faf9f6;
    --bg-alt: #f2efea;
    --bg-sand: #ede9e3;
    --text: #2a2521;
    --text-muted: #6e6560;
    --text-light: #a39e98;
    --accent: #7d8471;
    --accent-hover: #5d6355;
    --border: #e0dbd5;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Cormorant', serif;
    --space-sm: 16px;
    --space-md: 32px;
    --space-lg: 64px;
    --space-xl: 110px;
    --space-xxl: 150px;
    --max-width: 1060px;
    --transition: .4s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.8; font-weight: 300; font-size: 15px; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Header --- */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 20px 48px; transition: background var(--transition); }
.header.scrolled { background: rgba(250,249,246,.95); backdrop-filter: blur(8px); }
.header-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; letter-spacing: 3px; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a { font-size: .82rem; color: var(--text-muted); font-weight: 400; transition: color var(--transition); }
.nav a:hover { color: var(--text); }
.nav-cta { padding: 8px 20px !important; background: var(--accent) !important; color: #fff !important; }
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 16px; position: relative; }
.nav-toggle span { position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text); }
.nav-toggle span:first-child { top: 2px; }
.nav-toggle span:last-child { bottom: 2px; }

/* --- Hero --- */
.hero { padding-top: 100px; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--space-xl) 48px var(--space-lg); }
.hero-content { max-width: 600px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 300; line-height: 1.1; margin-bottom: var(--space-md); }
.hero-content > p { color: var(--text-muted); font-size: .95rem; line-height: 1.9; margin-bottom: var(--space-lg); max-width: 480px; }
.hero-image-full { width: 100%; height: 55vh; min-height: 350px; overflow: hidden; }
.hero-image-full img { width: 100%; height: 100%; object-fit: cover; }

.btn { display: inline-block; padding: 14px 28px; font-size: .82rem; font-weight: 400; letter-spacing: .5px; background: var(--accent); color: #fff; transition: background var(--transition); }
.btn:hover { background: var(--accent-hover); }

/* --- Practice / Classes --- */
.practice { padding: var(--space-xl) 48px; }
.practice-inner { max-width: var(--max-width); margin: 0 auto; }
.practice-header { margin-bottom: var(--space-lg); }
.practice-header h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; margin-bottom: 8px; }
.practice-header p { color: var(--text-muted); font-size: .9rem; max-width: 500px; }
.practice-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.practice-item { padding: var(--space-md); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: background var(--transition); }
.practice-item:nth-child(2n) { border-right: none; }
.practice-item:nth-last-child(-n+2) { border-bottom: none; }
.practice-item:hover { background: var(--bg-alt); }
.practice-item h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin-bottom: 4px; }
.practice-level { font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }
.practice-item p { color: var(--text-muted); font-size: .84rem; line-height: 1.7; }

/* --- Space --- */
.space { padding: var(--space-xl) 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-lg); max-width: calc(var(--max-width) + 96px); margin: 0 auto; align-items: center; }
.space-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.space-images img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.space-text h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 300; margin-bottom: var(--space-md); }
.space-text p { color: var(--text-muted); font-size: .9rem; line-height: 1.9; margin-bottom: var(--space-sm); }

/* --- Teachers --- */
.teachers { padding: var(--space-xl) 48px; background: var(--bg-alt); }
.teachers-inner { max-width: var(--max-width); margin: 0 auto; }
.teachers-inner > h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 300; margin-bottom: 8px; }
.teachers-sub { color: var(--text-muted); font-size: .88rem; margin-bottom: var(--space-lg); }
.teachers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.teacher img { width: 100%; aspect-ratio: 3/4; object-fit: cover; margin-bottom: 12px; filter: grayscale(.1); }
.teacher h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 4px; }
.teacher span { font-size: .78rem; color: var(--text-muted); }

/* --- New to SAGE --- */
.new { padding: var(--space-xxl) 48px; text-align: center; }
.new-inner { max-width: 520px; margin: 0 auto; }
.new h2 { font-family: var(--font-display); font-size: 2.5rem; font-weight: 300; margin-bottom: var(--space-sm); }
.new-inner > p { color: var(--text-muted); font-size: .9rem; line-height: 1.8; margin-bottom: var(--space-lg); }
.new-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; margin-bottom: var(--space-lg); }
.new-item { padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 4px; }
.new-item strong { font-size: .82rem; font-weight: 500; }
.new-item span { font-size: .82rem; color: var(--text-muted); }
.new-address { margin-top: var(--space-md); font-size: .78rem; color: var(--text-light); }

/* --- Footer --- */
.footer { padding: var(--space-md) 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer p { font-size: .72rem; color: var(--text-light); }

/* --- Reveal --- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 900px) {
    :root { --space-xl: 72px; --space-xxl: 100px; }
    .header { padding: 16px 24px; }
    .hero-inner { padding: var(--space-lg) 24px; }
    .practice, .space, .teachers, .new { padding-left: 24px; padding-right: 24px; }
    .practice-list { grid-template-columns: 1fr; }
    .practice-item { border-right: none; }
    .practice-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
    .practice-item:last-child { border-bottom: none; }
    .space { grid-template-columns: 1fr; }
    .teachers-grid { grid-template-columns: 1fr; }
    .new-details { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
    .nav { display: none; position: fixed; inset: 0; background: rgba(250,249,246,.98); flex-direction: column; align-items: center; justify-content: center; gap: 28px; z-index: 999; }
    .nav.open { display: flex; }
    .nav-toggle { display: block; z-index: 1001; }
    .hero h1 { font-size: 2.5rem; }
    .hero-image-full { height: 40vh; }
    .space-images { grid-template-columns: 1fr; }
}
