/* =========================================================
   Ritual Biohacking — main stylesheet
   Palette: charcoal #1a1a1a, off-white #f5f5f0, teal #3a8c8c,
            light-teal #e8f4f4, warm-cream #faf7f2
   Typography: Cormorant Garamond (headings), Jost (body)
   ========================================================= */

/* --- Reset & base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #faf7f2;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #3a8c8c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography ------------------------------------------ */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 0.75rem; }

/* --- Layout helpers -------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section-heading { text-align: center; margin-bottom: 3rem; }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none !important;
}
.btn--primary { background: #3a8c8c; color: #fff; border: 2px solid #3a8c8c; }
.btn--primary:hover { background: #2d6d6d; border-color: #2d6d6d; }
.btn--outline { background: transparent; color: #3a8c8c; border: 2px solid #3a8c8c; }
.btn--outline:hover { background: #3a8c8c; color: #fff; }

/* --- Header --------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #1a1a1a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.5rem;
}
.logo-link { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo { height: 48px; width: auto; }
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600;
  color: #fff; letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; }
.nav-links {
  list-style: none; display: flex; gap: 2rem;
}
.nav-links a {
  color: #e8f4f4; font-size: 0.9rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: #3a8c8c; }
.nav-toggle { display: none; }

/* --- Hero ------------------------------------------------ */
.hero {
  position: relative; min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg--default { background-color: #1a1a1a; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: #fff;
  padding: 2rem 1.5rem;
  max-width: 800px;
}
.hero-heading {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400; letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
}
.hero-subheading {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300; opacity: 0.9;
  margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- Hero extras ----------------------------------------- */
.hero-eyebrow {
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #e8f4f4; opacity: 0.85; margin-bottom: 0.75rem;
}
.hero-cta { margin-top: 0.5rem; }

/* --- Newsletter band ------------------------------------- */
.newsletter-band {
  background: #e8f4f4; padding: 5rem 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.newsletter-text h2 { color: #1a1a1a; margin-bottom: 1rem; }
.newsletter-text .richtext { color: #333; font-size: 1.05rem; }
.newsletter-form-wrap h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; color: #1a1a1a; margin-bottom: 0.5rem;
}
.newsletter-form-wrap > p { color: #555; margin-bottom: 1.5rem; }
.newsletter-field-row {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
}
.newsletter-field-row input[type=email] {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  border: 2px solid #3a8c8c; border-radius: 2px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  background: #fff; color: #1a1a1a;
}
.newsletter-field-row input[type=email]:focus {
  outline: none; border-color: #2d6d6d;
}
.newsletter-feedback {
  margin-top: 0.75rem; font-size: 0.9rem; min-height: 1.2em;
}
.newsletter-feedback.is-success { color: #2d6d6d; font-weight: 500; }
.newsletter-feedback.is-error { color: #b94a48; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --- Services CTA ---------------------------------------- */
.section-subheading {
  text-align: center; color: #666; font-size: 1rem;
  margin-top: -2rem; margin-bottom: 3rem;
}
.services-cta { text-align: center; margin-top: 3rem; }

/* --- Services -------------------------------------------- */
.services { padding: 6rem 0; background: #faf7f2; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.ritual-card {
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 4px; overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ritual-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.ritual-card-img img { width: 100%; height: 240px; object-fit: cover; }
.ritual-card-body { padding: 1.75rem; }
.ritual-card-body h3 { color: #3a8c8c; margin-bottom: 0.75rem; }

/* --- About ----------------------------------------------- */
.about { padding: 6rem 0; background: #1a1a1a; color: #f5f5f0; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.about-image img { border-radius: 4px; width: 100%; }
.about-text h2 { color: #e8f4f4; margin-bottom: 1.5rem; }
.about-text .richtext { opacity: 0.9; }

/* --- Testimonials ---------------------------------------- */
.testimonials { padding: 6rem 0; background: #f5f5f0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: #fff; padding: 2.5rem;
  border-left: 4px solid #3a8c8c;
  border-radius: 2px;
}
.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-style: italic;
  margin-bottom: 1.25rem; color: #1a1a1a;
}
.testimonial-author { font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: #3a8c8c; }

/* --- CTA band -------------------------------------------- */
.cta-band {
  padding: 5rem 0; background: #3a8c8c; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--primary { background: #fff; color: #3a8c8c; border-color: #fff; }
.cta-band .btn--primary:hover { background: #e8f4f4; border-color: #e8f4f4; }
.cta-band .btn--outline { border-color: #fff; color: #fff; }
.cta-band .btn--outline:hover { background: rgba(255,255,255,0.15); }

/* --- Inner banner ---------------------------------------- */
.inner-banner {
  position: relative; min-height: 300px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.inner-banner--plain { min-height: 160px; background: #1a1a1a; }
.inner-banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
}
.inner-banner-title {
  position: relative; z-index: 2;
  padding-bottom: 2.5rem;
}
.inner-banner-title h1 { color: #fff; }

/* --- Page body ------------------------------------------- */
.page-body { padding: 5rem 0; }
.richtext p { margin-bottom: 1.25rem; }
.richtext ul, .richtext ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.richtext li { margin-bottom: 0.4rem; }

/* --- Page footer CTA ------------------------------------- */
.page-footer-cta {
  padding: 3rem 0; background: #f5f5f0;
  display: flex; justify-content: center;
}
.page-footer-cta .container { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* --- Contact page ---------------------------------------- */
.contact-layout {
  display: grid; grid-template-columns: 2fr 1fr; gap: 4rem;
  padding: 5rem 0;
}
.contact-form-wrap .intro-text { margin-bottom: 2rem; }
.contact-form-wrap form p { margin-bottom: 1.25rem; }
.contact-form-wrap input, .contact-form-wrap textarea, .contact-form-wrap select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid #ccc; border-radius: 2px;
  font-family: 'Jost', sans-serif; font-size: 0.95rem;
  background: #fff;
}
.contact-form-wrap textarea { min-height: 160px; resize: vertical; }
.contact-details { padding-top: 1.5rem; }
.contact-details h2 { margin-bottom: 1.5rem; }
.contact-details p { margin-bottom: 0.75rem; }

/* --- Contact thank-you ----------------------------------- */
.contact-thank-you {
  padding: 5rem 0; display: flex; justify-content: center;
}
.thank-you-box {
  max-width: 540px; text-align: center;
  background: #fff; padding: 3rem 2.5rem;
  border: 1px solid #e8e8e0; border-radius: 4px;
}
.thank-you-box svg { margin-bottom: 1.5rem; display: block; margin-left: auto; margin-right: auto; }
.thank-you-box .richtext { margin-bottom: 2rem; font-size: 1.1rem; color: #333; }
.thank-you-box p { margin-bottom: 2rem; font-size: 1.1rem; color: #333; }

/* --- Footer --------------------------------------------- */
.site-footer {
  background: #1a1a1a; color: #ccc;
  padding: 4rem 0 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
}
.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem;
}
.footer-tagline { font-size: 0.9rem; opacity: 0.7; }
.footer-contact a, .footer-social a {
  color: #ccc; display: block; margin-bottom: 0.5rem;
}
.footer-contact a:hover, .footer-social a:hover { color: #3a8c8c; }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 1.25rem 1.5rem; text-align: center; font-size: 0.85rem; opacity: 0.6;
}
.footer-bottom a { color: inherit; }

/* --- Mobile --------------------------------------------- */
@media (max-width: 768px) {
  .about-inner, .contact-layout, .newsletter-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; transition: 0.2s; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #1a1a1a; flex-direction: column; gap: 0;
    padding: 1rem 1.5rem 1.5rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid #333; }
  .nav-links a { display: block; padding: 0.75rem 0; }
  .site-header { position: relative; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
}
