/* ============================================================
   Stress Relief Website — Global Styles
   ============================================================ */

:root {
  --primary:        #3A7CA5;
  --primary-dark:   #2C5F82;
  --primary-light:  #6BAED4;
  --secondary:      #52A488;
  --secondary-dark: #3A8068;
  --accent:         #8E72B0;
  --warm:           #D08C6A;
  --danger:         #C0505A;
  --bg-page:        #EEF2F7;
  --bg-card:        #FFFFFF;
  --nav-bg:         #162D3F;
  --nav-text:       #C9DDE8;
  --text-dark:      #1A2B3C;
  --text-medium:    #445566;
  --text-light:     #7A8FA0;
  --border:         #D4E0EB;
  --shadow-sm:      0 2px 8px rgba(20,50,80,.08);
  --shadow-md:      0 4px 20px rgba(20,50,80,.13);
  --shadow-lg:      0 8px 40px rgba(20,50,80,.18);
  --r-sm:  8px;
  --r-md:  16px;
  --r-lg:  28px;
  --r-full: 9999px;
  --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.65;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--text-medium); margin-bottom: .9em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
strong { color: var(--text-dark); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: .4em; color: var(--text-medium); }

/* ── Navigation ── */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFF;
  white-space: nowrap;
  letter-spacing: -.3px;
}
.nav-logo span { color: var(--primary-light); }
.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0 auto;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--nav-text);
  padding: .45rem .85rem;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #FFF;
}

/* ── Page Hero ── */
.hero {
  background: linear-gradient(135deg, var(--nav-bg) 0%, #1F4A6A 60%, #2A6A88 100%);
  color: #fff;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(58,124,165,.35) 0%, transparent 70%);
}
.hero-inner { max-width: 740px; margin: 0 auto; position: relative; }
.hero h1   { color: #fff; margin-bottom: .6rem; }
.hero-sub  { font-size: 1.15rem; color: rgba(255,255,255,.82); margin-bottom: 2rem; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: .4rem 1rem;
  border-radius: var(--r-full);
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.5rem;
}

/* ── Section wrappers ── */
.section {
  padding: 4rem 1.5rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 { margin-bottom: .5rem; }
.section-title p  { font-size: 1.05rem; color: var(--text-light); max-width: 560px; margin: 0 auto; }
.section-alt { background: #fff; }

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--bg-card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }

/* color variants */
.card-icon.blue   { background: #EAF3FB; }
.card-icon.green  { background: #E8F6F2; }
.card-icon.purple { background: #F2EDF8; }
.card-icon.warm   { background: #FBF3ED; }
.card-icon.teal   { background: #E5F4F1; }
.card-icon.red    { background: #FDEEEF; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(58,124,165,.4); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.25); color: #fff; }
.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }

/* ── Info blocks ── */
.info-block {
  background: linear-gradient(135deg, #EAF3FB, #E8F6F2);
  border-left: 4px solid var(--primary);
  border-radius: var(--r-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.5rem 0;
}
.info-block.green  { background: linear-gradient(135deg,#E8F6F2,#EDF7F4); border-color: var(--secondary); }
.info-block.purple { background: linear-gradient(135deg,#F2EDF8,#EFE8F8); border-color: var(--accent); }
.info-block.warm   { background: linear-gradient(135deg,#FBF3ED,#FAF0E9); border-color: var(--warm); }

/* ── Tags ── */
.tag {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: var(--r-full);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.tag-blue   { background: #EAF3FB; color: var(--primary-dark); }
.tag-green  { background: #E8F6F2; color: var(--secondary-dark); }
.tag-purple { background: #F2EDF8; color: #6B4F9A; }
.tag-warm   { background: #FBF3ED; color: #A05A30; }

/* ── Two-column layouts ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 700px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ── Stat strip ── */
.stat-strip {
  background: var(--nav-bg);
  color: #fff;
  padding: 2.5rem 1.5rem;
}
.stat-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat-item .num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
}
.stat-item .label {
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  margin-top: .3rem;
}

/* ── Accordion ── */
.accordion { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item:last-child { border-bottom: none; }
.accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  transition: var(--transition);
}
.accordion-header:hover { background: var(--bg-page); }
.accordion-chevron {
  width: 20px;
  height: 20px;
  transition: transform .3s ease;
  flex-shrink: 0;
  color: var(--text-light);
}
.accordion-item.open .accordion-chevron { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.accordion-body-inner { padding: 0 1.4rem 1.2rem; }

/* ── Steps list ── */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step);
  background: var(--primary);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── Hero canvas animations ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: block;
}
/* index.html water is interactive — clicks pass through hero-inner buttons */
.hero-canvas.interactive {
  pointer-events: none; /* parent element captures events instead */
}

/* ── Standalone Zen Sand panel ── */
.zen-sand-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  height: 280px;
}
.zen-sand-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.zen-sand-label {
  position: absolute;
  bottom: 1rem;
  right: 1.2rem;
  font-size: .75rem;
  color: rgba(0,0,0,.35);
  font-style: italic;
}

/* ── Footer ── */
.site-footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: .88rem;
}
.site-footer a { color: var(--primary-light); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .section { padding: 2.5rem 1rem; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .nav-links { gap: .1rem; }
  .nav-links a { padding: .4rem .6rem; font-size: .82rem; }
}
