/* Reimagined Ever After - base styles */

/* Root palette */
:root {
  --bg: #F5F0E8;            /* cream      */
  --bg-alt: #FAF6F1;        /* pale beige */
  --text: #4d3a2a;
  --muted: #7f6a56;
  --accent: #a47a4b;
  --accent-soft: #f0d9b8;
  --border-soft: #e0d3c4;
  --white: #ffffff;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* Typography */

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 0.4em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 0.8em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* Layout helpers */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 239, 231, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 52px;
  width: auto;
  display: block;
}

.hero-logo {
  width: 160px;
  max-width: 70%;
  margin-bottom: 1.2rem;
  display: block;
}


/* Nav */

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.site-nav a:hover {
  text-decoration: none;
  color: var(--accent);
}

/* Mobile menu toggle */

.menu-toggle {
  background: none;
  border: 1px solid transparent;
  font-size: 1.3rem;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  display: none;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Hero */

.hero {
  padding: 64px 0 56px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero .tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 30rem;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-image img {
  width: 100%;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

/* Sections */

.section {
  padding: 56px 0;
}

/* .section.alt {
  background: var(--bg-alt);
}  */

.section-title {
  text-align: center;
  margin-bottom: 0.3em;
}

.lede {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.2rem;
  color: var(--muted);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.btn.primary:hover {
  background: #8e673e;
  border-color: #8e673e;
  text-decoration: none;
}

.btn.secondary {
  background: var(--white);
  color: var(--text);
  border-color: var(--border-soft);
}

.btn.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  text-decoration: none;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border-soft);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.product-card .card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product-card h3 {
  font-size: 1.1rem;
}

.product-card .price {
  font-weight: 600;
  font-size: 0.98rem;
}

.product-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.card-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Story two column */

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 1.2rem;
}

.two-col ul {
  margin: 0;
  padding-left: 1.1rem;
}

/* Process list */

.process {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0;
  list-style-position: inside;
  color: var(--muted);
}

.process li + li {
  margin-top: 0.6rem;
}

/* Contact form */

.contact-form {
  max-width: 32rem;
  margin: 0 auto;
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.65rem 0.9rem;
  font: inherit;
  background: var(--white);
  color: var(--text);
}

.contact-form textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 140px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Footer */

.site-footer {
  padding: 28px 0 32px;
  background: #efe1d2;
  border-top: 1px solid var(--border-soft);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.brandline {
  margin-bottom: 0.3rem;
}

.small {
  color: var(--muted);
}

.socials {
  list-style: none;
  display: flex;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.socials a {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
}

/* FAQ styles */
.faq .wrap {
  max-width: 700px;
  margin: 0 auto;
}

/* Each FAQ row */
.faq-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid #ddd;
}

/* Question line */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 0.4rem 0;
  text-align: left;
  cursor: pointer;

  font-size: 1rem;
  line-height: 1.3;
  font-weight: 600;
  color: #6f4e37; /* your standard brown */

  position: relative;
  padding-right: 1.5rem; /* space for + / - */
}

/* Remove default button outline on click, keep it clean */
.faq-question:focus {
  outline: none;
}

/* Plus / minus indicator on the right */
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

/* When item is open, show minus */
.faq-item.open .faq-question::after {
  content: '-';
}

/* Answer block */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
}

/* When open, allow enough height so nothing gets chopped */
.faq-item.open .faq-answer {
  max-height: 500px; /* bump this if you ever write huge answers */
}


/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 7, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  background: var(--bg);
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px 22px 22px;
}

.modal-body img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
}

.modal-info h3 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
}

/* Accessibility helper */

.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;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding-top: 40px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 72px;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 10px 20px 16px;
    gap: 0.4rem;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card img {
    height: 200px;
  }

  .modal-panel {
    padding-top: 26px;
  }
}

/* Automatic alternating section backgrounds */
main section:nth-of-type(odd) {
  background: var(--bg);
}

main section:nth-of-type(even) {
  background: var(--bg-alt);
}
