/* SOMA Club — Shared Stylesheet (Nordic Edition) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Scandi light palette */
  --bg:          #F5F1E8;          /* warm cream */
  --bg-alt:      #EDE9DC;          /* deeper cream */
  --card-light:  #E2DDD0;          /* card surface */
  --ink:         #1A1A18;          /* near-black text */
  --green:       #3D5A30;          /* forest green accent */
  --green-light: #5C7A4A;          /* medium green */
  --wood:        #B8874A;          /* warm oak */
  --muted:       #8A8A7A;          /* mid-grey */
  --border:      rgba(61,90,48,0.15);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  /* Legacy aliases — inner-page inline styles reference these names */
  --black:      var(--bg);
  --dark:       var(--bg-alt);
  --card:       var(--card-light);
  --gold:       var(--green);
  --gold-light: var(--green-light);
  --white:      var(--ink);
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAVIGATION */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 80px;
  background: rgba(245,241,232,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-logo { text-decoration: none; }
.nav-logo img { height: 32px; }
.logo-text {
  font-family: 'Jost', var(--sans);
  font-size: 1.05rem; font-weight: 300; letter-spacing: 0.2em;
  color: var(--ink); text-transform: uppercase; text-decoration: none;
}
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; color: rgba(26,26,24,0.6); transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  text-decoration: none; color: var(--green); border: 1px solid var(--green);
  padding: 0.6rem 1.4rem; transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--green); color: #F5F1E8; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--ink); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: #1A1A18;
  z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: #F5F1E8; }
.mobile-menu a:hover { color: var(--green); }
.mobile-close { position: absolute; top: 2rem; right: 2rem; background: none; border: none; color: #F5F1E8; font-size: 1.5rem; cursor: pointer; }

/* PAGE HERO — stays dark (dramatic gym photo) */
.page-hero {
  height: 55vh; min-height: 380px; position: relative;
  display: flex; align-items: flex-end; padding: 0 4rem 4rem;
  margin-top: 0; overflow: hidden;
  color: #F5F1E8;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.04); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.3) 100%);
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero-label { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--wood); display: block; margin-bottom: 0.8rem; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 300; line-height: 1.0; color: #F5F1E8; }
.page-hero h1 em { font-style: italic; color: var(--wood); }

/* LAYOUT */
section { padding: 6rem 4rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--green); margin-bottom: 1rem; display: block; }
.section-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 300; line-height: 1.1; margin-bottom: 1.5rem; color: var(--ink); }
.section-title em { font-style: italic; color: var(--green); }
.divider { width: 60px; height: 1px; background: var(--green); margin: 2rem 0; }
.divider.center { margin: 2rem auto; }

/* BUTTONS */
.btn-primary {
  display: inline-block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: #F5F1E8;
  background: var(--green); padding: 1rem 2.4rem; transition: background 0.25s, transform 0.2s; border: 1px solid var(--green);
}
.btn-primary:hover { background: var(--green-light); border-color: var(--green-light); transform: translateY(-1px); }
.btn-outline {
  display: inline-block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border: 1px solid rgba(26,26,24,0.3); padding: 1rem 2.4rem; transition: border-color 0.25s, color 0.25s;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* FOOTER — kept dark for premium anchor */
footer { background: #1A1A18; border-top: 1px solid rgba(61,90,48,0.2); padding: 5rem 4rem 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.footer-brand img { height: 30px; margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.8rem; color: #7A7A72; max-width: 260px; line-height: 1.8; }
.footer-col h4 { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--wood); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul li a { font-size: 0.8rem; color: #7A7A72; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #F5F1E8; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid rgba(61,90,48,0.2); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.7rem; color: #7A7A72; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: #7A7A72; text-decoration: none; transition: color 0.2s; }
.social-links a:hover { color: var(--wood); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  section { padding: 5rem 2rem; }
  .page-hero { padding: 0 2rem 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; height: 64px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  section { padding: 3.5rem 1.25rem; }
  .page-hero { height: 45vh; min-height: 280px; padding: 0 1.25rem 2rem; }
  .page-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  footer { padding: 3.5rem 1.25rem 2rem; }
  .btn-primary, .btn-outline { padding: 0.9rem 1.8rem; font-size: 0.6rem; }
  /* Profile pages */
  .profile-img img { height: 320px !important; }
  .profile-img::before { display: none; }
  /* Mobile menu logo */
  .mobile-menu img { width: 90px; }
}
