/* ========================================
   Greendale Breathwork — Main Styles
   ======================================== */

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2D2D2D;
  background: #FAFAF8;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: #7BA69E; text-decoration: none; transition: color 0.2s; }
a:hover { color: #5e8a82; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

.section-title {
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #666;
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-subtitle.text-center {
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-muted { color: #999; }

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
}

.section {
  padding: 6rem 0;
}

.section:nth-child(even) {
  background: linear-gradient(180deg, #F4F4F0 0%, #FAFAF8 100%);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #7BA69E;
  color: #fff;
  border-color: #7BA69E;
}

.btn-primary:hover {
  background: #5e8a82;
  border-color: #5e8a82;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123, 166, 158, 0.3);
}

.btn-outline {
  background: transparent;
  color: #7BA69E;
  border-color: #7BA69E;
}

.btn-outline:hover {
  background: #7BA69E;
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.breathing-pulse {
  animation: breathe-btn 6s ease-in-out infinite;
}

@keyframes breathe-btn {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.3s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #2D2D2D;
}

.site-logo:hover { color: #7BA69E; }

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: #2D2D2D;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7BA69E;
  transition: width 0.3s;
}

.nav-link:hover { color: #7BA69E; }
.nav-link:hover::after { width: 100%; }

/* Featured nav link (Breathing Test) */
.nav-link--feature {
  color: #5e8a82;
  font-weight: 600;
}
.nav-link--feature::after { background: #5e8a82; }

/* Login button in nav */
.nav-login {
  align-self: center;
}

/* Nav dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-family: 'Inter', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.dropdown-arrow {
  transition: transform 0.2s;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9375rem;
  color: #2D2D2D;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background: rgba(123, 166, 158, 0.08);
  color: #7BA69E;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2D2D2D;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #FAFAF8 0%, #F0F0EC 100%);
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.breathing-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2.5rem;
}

.breathing-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #7BA69E;
  opacity: 0.4;
  animation: breathe-ring 6s ease-in-out infinite;
}

.breathing-ring--inner {
  inset: 25%;
  opacity: 0.6;
  animation-delay: -0.5s;
}

@keyframes breathe-ring {
  0%, 100% { transform: scale(0.85); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: #2D2D2D;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.image-placeholder {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #E8E8E4, #D8D8D4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 1.125rem;
}

.about-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-page-photo {
  margin: 0 auto 2.5rem;
  max-width: 320px;
}

.about-page-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text .btn {
  margin-top: 1rem;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.service-icon {
  color: #7BA69E;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  flex: 1;
  color: #555;
  margin-bottom: 1.5rem;
}

/* --- Benefits --- */
.benefits-header {
  text-align: center;
  margin-bottom: 1rem;
}

.benefits-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7BA69E;
  border: 1px solid rgba(123, 166, 158, 0.3);
  border-radius: 50px;
  padding: 0.375rem 1.25rem;
  margin-bottom: 1.25rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.benefit-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #7BA69E;
}

.benefit-experience {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: #2D2D2D;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.benefit-card p {
  color: #555;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.benefits-cta {
  text-align: center;
  margin-top: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Landscape --- */
.landscape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.landscape-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.landscape-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.landscape-card h3 {
  margin-bottom: 0.5rem;
  color: #7BA69E;
}

.landscape-card p {
  color: #555;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 500;
  font-size: 0.9375rem;
}

.landscape-experience {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: #7BA69E;
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.landscape-page .landscape-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto 4rem;
}

.landscape-page .landscape-card {
  padding: 2.5rem;
}

.landscape-subpages {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 3rem;
  max-width: 760px;
  margin: 0 auto;
}

.landscape-subpage {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.landscape-subpage h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.landscape-subpage h2 a { color: #2D2D2D; }
.landscape-subpage h2 a:hover { color: #7BA69E; }

.landscape-subpage p {
  color: #555;
  margin-bottom: 0.75rem;
}

/* Partners */
.partners {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 3rem;
}

.partners-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.partners-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.partner-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
  text-align: center;
}

.partner-card h4 { margin-bottom: 0.25rem; }
.partner-specialty {
  color: #7BA69E;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* --- Blog Preview --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.blog-card-body { flex: 1; }

.blog-date {
  display: block;
  font-size: 0.8125rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.blog-card h3 a {
  color: #2D2D2D;
}

.blog-card h3 a:hover {
  color: #7BA69E;
}

.blog-card p {
  color: #555;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* --- Blog List & Single --- */
.page-single, .page-list {
  padding: 7rem 0 5rem;
}

.page-header {
  margin-bottom: 3rem;
}

.page-header h1 {
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: #666;
}

.page-content {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.page-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content p {
  margin-bottom: 1.25rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 3rem 0;
}

.page-content strong {
  font-weight: 600;
}

.page-content em {
  color: #666;
}

.page-content blockquote {
  border-left: 3px solid #7BA69E;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: #555;
  font-style: italic;
}

.post-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Blog list items */
.list-item, .blog-list-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.list-item:first-child, .blog-list-item:first-child {
  padding-top: 0;
}

.list-item h2, .blog-list-item h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.list-item h2 a, .blog-list-item h2 a {
  color: #2D2D2D;
}

.list-item h2 a:hover, .blog-list-item h2 a:hover {
  color: #7BA69E;
}

.list-item p, .blog-list-item p {
  color: #555;
  margin-bottom: 0.75rem;
}

/* --- Footer --- */
.site-footer {
  background: #2D2D2D;
  color: #ccc;
  padding: 4rem 0 2rem;
}

.footer-newsletter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-newsletter__intro {
  max-width: 420px;
}

.footer-newsletter__intro h3 {
  margin-bottom: 0.5rem;
}

.footer-newsletter__intro p {
  color: #aaa;
  margin: 0;
}

.newsletter-embed {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.newsletter-embed iframe {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
}

/* Hero variant: centered under the CTAs, lifted off the background */
.newsletter-embed--hero {
  margin: 2.5rem auto 0;
  width: 100%;
}

.newsletter-embed--hero iframe {
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.site-footer h3, .site-footer h4 {
  color: #fff;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #aaa;
}

.site-footer a:hover {
  color: #7BA69E;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact p {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: #888;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: rgba(250, 250, 248, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 1rem;
    min-width: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.2s, max-height 0.3s;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    max-height: 200px;
    pointer-events: all;
    transform: none;
  }

  .dropdown-item {
    padding: 0.375rem 0;
  }

  .dropdown-item:hover {
    background: none;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .services-grid,
  .benefits-grid,
  .landscape-grid,
  .blog-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-embed {
    width: 100%;
    max-width: none;
  }

  .section {
    padding: 4rem 0;
  }

  .breathing-circle {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 480px) {
  html { font-size: 15px; }

  .hero-title {
    font-size: 1.75rem;
  }

  .service-card, .benefit-card, .landscape-card, .blog-card {
    padding: 1.5rem;
  }
}
