/* ============================================================
   Cotherstone House - Main Stylesheet
   Reflexology · Sauna · Wellness

   Design tokens, layout, and component styles for the
   Cotherstone House wellness practice website.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS (CSS Custom Properties)
   All brand colors, fonts, and spacing defined in one place.
   ------------------------------------------------------------ */
:root {
  /* Brand colors — derived from the Cotherstone House spaces */
  --sage-green: #6B7F5E;        /* Primary: headings, accents, nav */
  --warm-white: #F7F5F0;        /* Page backgrounds */
  --charcoal: #2D2D2D;          /* Body text */
  --warm-taupe: #A89885;        /* Secondary accents, borders */
  --olive-accent: #808C6C;      /* Hover states, links */
  --soft-gold: #C4A265;         /* CTA buttons */
  --soft-gold-hover: #B08F50;   /* CTA hover state */

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --border-radius: 4px;
}

/* ------------------------------------------------------------
   2. RESET & BASE STYLES
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background-color: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--olive-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--sage-green);
}

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--sage-green);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-sm);
}

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}

/* Alternating background for visual rhythm */
.section--alt {
  background-color: #fff;
}

.text-center {
  text-align: center;
}

/* Two-column layout for content + image sections */
.grid-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

@media (min-width: 768px) {
  .grid-two {
    grid-template-columns: 1fr 1fr;
  }
}

/* ------------------------------------------------------------
   5. HEADER & NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--warm-taupe);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Text-only logo in nav per PRD guidance */
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--sage-green);
  font-weight: 700;
  text-decoration: none;
}

.site-logo:hover {
  color: var(--olive-accent);
}

/* Desktop navigation links */
.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sage-green);
}

/* Hamburger menu button for mobile */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Show nav links on desktop, hide hamburger */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--charcoal);
  transition: transform 0.3s ease;
}

/* Mobile menu open state */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--warm-taupe);
  padding: var(--space-sm) var(--space-md);
  gap: var(--space-sm);
}

/* ------------------------------------------------------------
   6. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Full-bleed background image with overlay */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(45, 45, 45, 0.3),
    rgba(45, 45, 45, 0.5)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  padding: var(--space-md);
  max-width: 700px;
}

.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: var(--space-xs);
}

.hero-content p {
  font-size: 1.2rem;
  opacity: 0.95;
  margin-bottom: var(--space-md);
}

/* ------------------------------------------------------------
   7. CTA BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Primary CTA — warm gold for "Get in Touch" */
.btn--primary {
  background-color: var(--soft-gold);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--soft-gold-hover);
  color: #fff;
}

/* Secondary CTA — outlined sage green */
.btn--secondary {
  background-color: transparent;
  color: var(--sage-green);
  border: 2px solid var(--sage-green);
}

.btn--secondary:hover {
  background-color: var(--sage-green);
  color: #fff;
}

/* ------------------------------------------------------------
   8. SERVICE CARDS
   Used on the homepage to preview Reflexology and Sauna.
   ------------------------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background: #fff;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid rgba(168, 152, 133, 0.2);
  transition: box-shadow 0.2s ease;
}

.service-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-md);
}

.service-card-body h3 {
  margin-bottom: var(--space-xs);
}

.service-card-body p {
  color: #666;
  margin-bottom: var(--space-sm);
}

/* ------------------------------------------------------------
   9. TESTIMONIAL BLOCK
   Styled as a distinct quote block, one per page.
   ------------------------------------------------------------ */
.testimonial {
  background-color: #fff;
  border-left: 4px solid var(--sage-green);
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Testimonial text: use body font at medium weight for readability.
   Avoids thin italic serif which is hard to read at this size. */
.testimonial blockquote {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: var(--space-xs);
}

.testimonial cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  color: var(--sage-green);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   10. PRICING TABLE
   ------------------------------------------------------------ */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
}

.pricing-table th {
  background-color: var(--sage-green);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  padding: var(--space-sm);
  text-align: left;
}

.pricing-table td {
  padding: var(--space-sm);
  border-bottom: 1px solid rgba(168, 152, 133, 0.3);
}

/* Highlight the introductory offer row */
.pricing-table tr.intro-offer td {
  background-color: rgba(107, 127, 94, 0.08);
}

.pricing-table .price {
  font-weight: 700;
  color: var(--sage-green);
  font-size: 1.1rem;
}

/* Responsive pricing: stack on mobile */
@media (max-width: 600px) {
  .pricing-table thead {
    display: none;
  }

  .pricing-table tr {
    display: block;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(168, 152, 133, 0.3);
    border-radius: var(--border-radius);
    padding: var(--space-sm);
  }

  .pricing-table td {
    display: block;
    border: none;
    padding: 0.25rem 0;
  }

  .pricing-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--sage-green);
    display: block;
    font-size: 0.85rem;
  }
}

/* ------------------------------------------------------------
   11. ABOUT / CREDENTIALS
   ------------------------------------------------------------ */
.credentials-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.credentials-list li {
  padding: var(--space-xs) 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(168, 152, 133, 0.2);
}

/* Sage green check mark before each credential */
.credentials-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--sage-green);
  font-weight: bold;
}

/* ------------------------------------------------------------
   12. WHAT TO EXPECT (Step-by-step guide)
   ------------------------------------------------------------ */
.steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step-counter;
  padding: var(--space-sm) 0 var(--space-sm) 3rem;
  position: relative;
  border-bottom: 1px solid rgba(168, 152, 133, 0.15);
}

/* Numbered circle for each step */
.steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: var(--space-sm);
  width: 2rem;
  height: 2rem;
  background-color: var(--sage-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps li h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ------------------------------------------------------------
   13. CONTACT SECTION & FLOATING CONTACT BAR
   ------------------------------------------------------------ */

/* Contact info block used within pages */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.contact-info-item {
  flex: 1;
  min-width: 200px;
}

.contact-info-item h3 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--sage-green);
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

/* Transport directions list */
.transport-list {
  list-style: none;
  padding: 0;
}

.transport-list li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(168, 152, 133, 0.15);
}

.transport-list strong {
  color: var(--sage-green);
}

/* Floating contact bar — visible on all pages */
.contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--sage-green);
  color: #fff;
  padding: 0.75rem var(--space-md);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  z-index: 99;
  font-size: 0.9rem;
}

.contact-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.contact-bar a:hover {
  color: var(--soft-gold);
}

/* Add bottom padding to body to prevent content being hidden behind contact bar */
body {
  padding-bottom: 3.5rem;
}

/* ------------------------------------------------------------
   14. FOOTER
   ------------------------------------------------------------ */
.site-footer {
  background-color: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-lg) 0 calc(var(--space-lg) + 2rem) 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--soft-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-bottom {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------
   15. PAGE HERO (Interior pages — shorter than homepage)
   ------------------------------------------------------------ */
.page-hero {
  background-color: var(--sage-green);
  color: #fff;
  padding: var(--space-lg) 0 var(--space-md) 0;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: var(--space-xs);
}

.page-hero p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ------------------------------------------------------------
   16. REFER-A-FRIEND CALLOUT
   ------------------------------------------------------------ */
.referral-box {
  background-color: rgba(107, 127, 94, 0.08);
  border: 1px solid rgba(107, 127, 94, 0.2);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.referral-box h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* ------------------------------------------------------------
   17. CTA BANNER (Bottom of page, before footer)
   ------------------------------------------------------------ */
.cta-banner {
  background-color: var(--sage-green);
  color: #fff;
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: var(--space-xs);
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn--primary {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
}

/* ------------------------------------------------------------
   18. IMAGE GALLERY / DETAIL SHOTS
   ------------------------------------------------------------ */
.image-feature {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Full-width image section */
.full-width-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .full-width-image {
    height: 450px;
  }
}

/* ------------------------------------------------------------
   19. SAUNA-SPECIFIC STYLES
   ------------------------------------------------------------ */
.sauna-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

@media (min-width: 600px) {
  .sauna-details {
    grid-template-columns: 1fr 1fr;
  }
}

.sauna-detail-card {
  background: #fff;
  padding: var(--space-md);
  border-radius: var(--border-radius);
  border: 1px solid rgba(168, 152, 133, 0.2);
}

.sauna-detail-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

/* ------------------------------------------------------------
   20. ACCESSIBILITY
   ------------------------------------------------------------ */

/* Visible focus states for keyboard navigation */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--soft-gold);
  outline-offset: 2px;
}

/* Screen-reader-only class */
.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;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
