/* ============================================================
   The Calm Mama Co — Components
   ============================================================ */

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn--gold {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.product-card .btn--gold {
  background: #B89552;
  color: #FAF6F2;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 14px 32px;
  border: none;
  width: 100%;
  text-align: center;
  transition: background 0.3s ease;
}
.product-card .btn--gold:hover {
  background: #9A7B3E;
}

.btn--outline {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline:hover {
  background-color: var(--gold);
  color: var(--white);
}

.btn--outline-dark {
  background-color: transparent;
  color: var(--text);
  border-color: var(--text);
}
.btn--outline-dark:hover {
  background-color: var(--text);
  color: var(--white);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--text);
}

.btn--text {
  background: none;
  border: none;
  color: var(--gold);
  padding: 0;
  letter-spacing: 0.1em;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background-color: var(--bg);
}

.page-hero--dark {
  background-color: var(--text);
  color: var(--white);
}
.page-hero--dark h1,
.page-hero--dark h2,
.page-hero--dark p {
  color: var(--white);
}
.page-hero--dark .overline {
  color: var(--peony);
}

.page-hero--ice {
  background-color: var(--ice);
}

.page-hero--peony {
  background-color: var(--peony);
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-top: var(--space-md);
  max-width: 540px;
}

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

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--border);
}

.product-card__img {
  /* img-placeholder fills this */
}

.product-card__body {
  padding: 12px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: none;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-card__desc {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 8px;
}

.product-card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.product-card__price--free {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 4-product shop grid (2×2) */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   PRODUCT DETAIL (guide.html, cards.html)
   ============================================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.product-detail__price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--gold);
  margin: var(--space-md) 0;
  letter-spacing: 0.01em;
}

.product-includes {
  margin: var(--space-lg) 0;
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
}

.product-includes__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.product-includes__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.6;
}

.product-includes__item::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background-color: var(--gold);
  margin-top: 0.7em;
  flex-shrink: 0;
}

/* Upsell */
.upsell {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  background-color: var(--bg);
}

.upsell__label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-sm);
}

.upsell__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.upsell__price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: var(--space-lg);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.testimonial-card__attr {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

/* Full page testimonials */
.testimonials-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ============================================================
   VALUE CARDS (about.html)
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.value-card {
  padding: var(--space-lg);
  border: 1px solid var(--border);
  background-color: var(--white);
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.value-card__line {
  width: 28px;
  height: 1px;
  background-color: var(--gold);
  margin-bottom: var(--space-md);
}

.value-card__text {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ============================================================
   BLOG (blog.html, index.html preview)
   ============================================================ */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  background-color: var(--white);
  margin-bottom: var(--space-2xl);
}

.blog-featured__img {
  /* img-placeholder fills this, full height */
}

.blog-featured__body {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.blog-featured__date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
}

.blog-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.25;
}

.blog-featured__excerpt {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.blog-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.blog-card__img {
  /* img-placeholder fills this */
}

.blog-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.blog-card__date {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: var(--space-sm);
  flex: 1;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.blog-card__author {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.4;
  gap: var(--space-md);
  user-select: none;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--gold);
  transition: transform var(--transition), opacity var(--transition);
}

.faq-icon::before {
  width: 14px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 1px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer__inner {
  padding-bottom: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--text-light);
  line-height: 1.8;
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
}

/* ============================================================
   EMAIL CAPTURE
   ============================================================ */
.email-capture {
  background-color: var(--text);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.email-capture h2 {
  color: var(--white);
}

.email-capture p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.email-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.email-form--stacked {
  flex-direction: column;
  gap: var(--space-sm);
}

.email-form input[type="text"],
.email-form input[type="email"] {
  flex: 1;
  padding: 0.875rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  color: var(--white);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.email-form input[type="text"]::placeholder,
.email-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.email-form input[type="text"]:focus,
.email-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

.email-form--stacked input[type="text"],
.email-form--stacked input[type="email"] {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.email-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: var(--space-sm);
  letter-spacing: 0.04em;
}

/* ============================================================
   FORMS (contact.html)
   ============================================================ */
.form-field {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
  border-radius: var(--radius);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-light);
  opacity: 0.7;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--bg);
  color: var(--text);
  padding: var(--space-2xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: 0.03em;
  margin-bottom: 0;
  line-height: 1;
}

.footer-brand__tagline {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -24px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-light);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer-bottom a {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: 0.03em;
}

.footer-bottom a:hover {
  color: var(--text);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* ============================================================
   LANDING PAGE (landing.html)
   ============================================================ */
.landing-header {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.landing-header a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.landing-header__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.landing-header__tagline {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
}

.landing-hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  text-align: center;
  background-color: var(--bg);
}

.landing-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.landing-trust span {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ============================================================
   LETTER PAGE (letter.html)
   ============================================================ */
.letter-page {
  background: var(--bg);
  padding: 4rem 2rem;
}

.letter {
  max-width: 680px;
  margin: 0 auto;
  background: #FFFDF9;
  padding: 5rem 5rem 4rem;
  box-shadow: 0 2px 40px rgba(44, 36, 23, 0.08), 0 0 0 1px rgba(184, 151, 90, 0.1);
  border-top: 3px solid var(--gold);
  position: relative;
}

.letter__salutation {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 5vw, 34px);
  color: var(--text);
  margin-bottom: 2.5rem;
}

.letter p {
  font-family: var(--font-body);
  font-size: clamp(16px, 3.5vw, 20px);
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1.8rem;
  letter-spacing: 0.01em;
}

.letter__verse {
  border-left: 2px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  background: rgba(184, 151, 90, 0.04);
}

.letter__verse p {
  font-style: italic;
  margin-bottom: 0.5rem;
}

.letter__verse cite {
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.letter__signoff {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

/* ============================================================
   CONTACT INFO
   ============================================================ */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-info__value {
  font-size: 1rem;
  color: var(--text);
}

/* ============================================================
   RESPONSIVE LAYOUT UTILITIES
   ============================================================ */
.grid-sidebar {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: start;
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.values-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .products-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid,
  .testimonials-full {
    grid-template-columns: 1fr 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Buttons — touch-friendly sizing */
  .btn {
    min-height: 44px;
    padding: 0.875rem 1.5rem;
  }

  /* Layout grids — stack on mobile */
  .product-detail {
    grid-template-columns: 1fr;
  }
  .grid-sidebar,
  .grid-split {
    grid-template-columns: 1fr;
  }
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured__img .img-placeholder--tall {
    aspect-ratio: 16 / 9;
  }
  .values-grid,
  .values-grid--2col {
    grid-template-columns: 1fr;
  }
  .products-grid,
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid,
  .testimonials-full {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .landing-trust {
    flex-direction: column;
    gap: var(--space-md);
  }
  .email-form {
    flex-direction: column;
  }
  .email-form input[type="text"],
  .email-form input[type="email"] {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Component spacing — tighten for mobile */
  .blog-featured__body {
    padding: var(--space-lg);
  }

  /* Letter page — mobile: PDF-style reading layout */
  .letter-page {
    padding: 0;
    background: #FFFDF9;
  }
  .letter {
    max-width: 100%;
    padding: 2rem 16px 1.5rem;
    box-shadow: none;
    border-top: none;
    background: #FFFDF9;
  }
  .letter__salutation {
    margin-bottom: 1.5rem;
  }
  .letter p {
    margin-bottom: 1.25rem;
  }
  .letter__verse {
    padding: 1rem 1rem;
    margin: 1.5rem 0;
  }
  .letter__signoff {
    margin-top: 2rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .products-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }
}
