/* =========================================================
   Tideline Reformer Studio — Shared Stylesheet
   ========================================================= */

/* ----- Reset & Base ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sand:    #f5f1eb;
  --sand-dk: #ede8df;
  --stone:   #c9bfb0;
  --slate:   #4a5568;
  --slate-dk:#2d3748;
  --teal:    #2d7d7d;
  --teal-lt: #3a9a9a;
  --teal-dk: #1f5c5c;
  --white:   #ffffff;
  --text:    #2d3748;
  --text-lt: #718096;
  --radius:  6px;
  --max:     1100px;
  --nav-h:   68px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

/* ----- Typography --------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: normal;
  line-height: 1.25;
  color: var(--slate-dk);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; color: var(--teal); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--teal-dk); }

strong { font-weight: bold; }

ul, ol { padding-left: 1.4em; margin-bottom: 1rem; }
li { margin-bottom: .35rem; }

/* ----- Layout ------------------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
section:nth-child(even) { background: var(--sand); }

.section-label {
  font-family: 'Georgia', serif;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .6rem;
}

.section-heading { margin-bottom: 1.25rem; }
.section-intro { color: var(--slate); max-width: 640px; margin-bottom: 2.5rem; }

/* ----- Navigation --------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--sand-dk);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-family: 'Georgia', serif;
  color: var(--teal-dk);
  letter-spacing: .02em;
  text-decoration: none;
  font-weight: normal;
}
.nav-logo span { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }

.nav-links { display: flex; align-items: center; gap: 1.8rem; list-style: none; }
.nav-links a { font-size: .9rem; letter-spacing: .03em; color: var(--slate); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--teal-dk) !important; text-decoration: none !important; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--slate-dk); margin: 4px 0; border-radius: 2px; transition: .3s; }

/* ----- Hero --------------------------------------------- */
.hero {
  background: var(--sand);
  padding: 7rem 0 6rem;
  text-align: center;
}
.hero-eyebrow { color: var(--teal); letter-spacing: .1em; font-size: .85rem; text-transform: uppercase; margin-bottom: .75rem; }
.hero h1 { margin-bottom: 1.25rem; color: var(--slate-dk); }
.hero-lead { font-size: 1.15rem; color: var(--slate); max-width: 560px; margin: 0 auto 2.5rem; }

/* ----- Buttons ------------------------------------------ */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: background .2s, color .2s;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dk); border-color: var(--teal-dk); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); text-decoration: none; }
.btn-white { background: var(--white); color: var(--teal-dk); border-color: var(--white); }
.btn-white:hover { background: var(--sand); text-decoration: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ----- Cards -------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--sand-dk);
  border-radius: 10px;
  padding: 2rem;
}
.card h3 { margin-bottom: .5rem; }
.card .card-meta { font-size: .85rem; color: var(--text-lt); margin-bottom: .75rem; }

/* ----- Pricing cards ------------------------------------ */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.price-card {
  background: var(--white);
  border: 2px solid var(--sand-dk);
  border-radius: 10px;
  padding: 2rem;
  position: relative;
}
.price-card.featured { border-color: var(--teal); }
.price-card .badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  font-size: .75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .85rem;
  border-radius: 20px;
}
.price-card .price { font-size: 2.25rem; color: var(--teal-dk); margin: .5rem 0 .25rem; line-height: 1; }
.price-card .price sup { font-size: 1.1rem; vertical-align: super; }
.price-card .price-freq { font-size: .85rem; color: var(--text-lt); margin-bottom: 1.25rem; }
.price-card ul { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.price-card ul li { padding: .35rem 0; border-bottom: 1px solid var(--sand-dk); font-size: .95rem; }
.price-card ul li:last-child { border-bottom: none; }
.price-card ul li::before { content: "✓ "; color: var(--teal); font-weight: bold; }

/* ----- Table -------------------------------------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
thead { background: var(--teal); color: var(--white); }
th { padding: .75rem 1rem; text-align: left; font-weight: normal; letter-spacing: .04em; }
td { padding: .7rem 1rem; border-bottom: 1px solid var(--sand-dk); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--sand); }

/* ----- Schedule table specific -------------------------- */
.schedule-table th:first-child, .schedule-table td:first-child { font-weight: bold; white-space: nowrap; }
.class-foundations { background: #e8f5e9; border-radius: 3px; padding: 1px 4px; font-size: .82rem; }
.class-flow        { background: #e3f2fd; border-radius: 3px; padding: 1px 4px; font-size: .82rem; }
.class-strength    { background: #fce4ec; border-radius: 3px; padding: 1px 4px; font-size: .82rem; }
.class-restore     { background: #fff8e1; border-radius: 3px; padding: 1px 4px; font-size: .82rem; }
.class-express     { background: #f3e5f5; border-radius: 3px; padding: 1px 4px; font-size: .82rem; }

/* ----- CTA Banner --------------------------------------- */
.cta-banner {
  background: var(--teal-dk);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: .75rem; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 500px; margin: 0 auto 2rem; }

/* ----- Two-col layout ----------------------------------- */
.two-col { display: grid; gap: 3rem; grid-template-columns: 1fr 1fr; align-items: start; }
.two-col-3-2 { display: grid; gap: 3rem; grid-template-columns: 3fr 2fr; align-items: start; }

/* ----- Info box ----------------------------------------- */
.info-box {
  background: var(--sand);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.info-box h4 { margin-bottom: .5rem; }

/* ----- Accordion / FAQ ---------------------------------- */
.faq-item { border-bottom: 1px solid var(--sand-dk); }
.faq-question {
  width: 100%; background: none; border: none; text-align: left;
  padding: 1.1rem 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Georgia', serif; font-size: 1rem; color: var(--slate-dk);
}
.faq-question:hover { color: var(--teal); }
.faq-icon { font-size: 1.3rem; color: var(--teal); transition: transform .25s; flex-shrink: 0; margin-left: 1rem; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-answer-inner { padding-bottom: 1rem; color: var(--slate); font-size: .95rem; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 600px; }

/* ----- Contact form ------------------------------------- */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-size: .9rem; margin-bottom: .4rem; color: var(--slate); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1px solid var(--stone); border-radius: var(--radius);
  font-family: 'Georgia', serif; font-size: .95rem; color: var(--text);
  background: var(--white); transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: .5rem; }

/* ----- Placeholder page --------------------------------- */
.placeholder-hero {
  background: var(--sand);
  padding: 6rem 0 5rem;
  text-align: center;
}
.placeholder-hero .eyebrow { color: var(--teal); letter-spacing: .1em; font-size: .85rem; text-transform: uppercase; margin-bottom: .6rem; }
.placeholder-hero h1 { margin-bottom: 1rem; }
.placeholder-hero p { color: var(--slate); max-width: 520px; margin: 0 auto 2rem; }
.placeholder-note {
  background: #fff3cd; border: 1px solid #ffc107;
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: .85rem; color: #856404; max-width: 480px; margin: 0 auto 1.5rem;
  text-align: center;
}

/* ----- Footer ------------------------------------------- */
.site-footer {
  background: var(--slate-dk);
  color: rgba(255,255,255,.7);
  padding: 3.5rem 0 2rem;
  font-size: .9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { color: var(--white); font-size: 1.05rem; margin-bottom: .5rem; }
.footer-tagline { font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .8rem; color: rgba(255,255,255,.4); }

/* ----- Responsive --------------------------------------- */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--sand-dk); padding: 1rem 1.5rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .two-col, .two-col-3-2, .footer-inner { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
}
