/* ============================================================
   ECLECTIC RITUALS — Main Stylesheet
   Brand Colors: Cream #E2D6C4 | Rust #9A4522 | Sage #8C957E | Slate #798991
   ============================================================ */

:root {
  --cream:      #E2D6C4;
  --cream-dark: #D4C6B0;
  --rust:       #9A4522;
  --rust-dark:  #7E3719;
  --sage:       #8C957E;
  --slate:      #798991;
  --dark:       #2C2420;
  --mid:        #5A4A42;
  --white:      #FAFAF8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --header-h: 72px;
  --radius: 4px;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn-primary {
  background: var(--rust);
  color: var(--white);
  border: 1.5px solid var(--rust);
}
.btn-primary:hover {
  background: var(--rust-dark);
  border-color: var(--rust-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--rust);
  border: 1.5px solid var(--rust);
}
.btn-ghost:hover {
  background: var(--rust);
  color: var(--white);
}

/* ============================================================
   HEADER
   ============================================================ */

#header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 1px solid rgba(154, 69, 34, 0.12);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}

#header.scrolled {
  box-shadow: 0 2px 20px rgba(44, 36, 32, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.menu-toggle {
  color: var(--dark);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.menu-toggle:hover { color: var(--rust); }

.site-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.logo-eye {
  width: 52px;
  height: 52px;
  transition: transform var(--transition);
}
.site-logo:hover .logo-eye { transform: scale(1.06); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  color: var(--dark);
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.icon-btn:hover { color: var(--rust); }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--dark);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--cream);
  padding: 0.5rem;
  display: flex;
  transition: color var(--transition);
}
.menu-close:hover { color: var(--rust); }

.overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.overlay-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}
.overlay-nav a:hover { color: var(--rust); }

.overlay-social {
  display: flex;
  gap: 1.5rem;
}
.overlay-social a {
  color: var(--cream);
  opacity: 0.6;
  transition: opacity var(--transition), color var(--transition);
}
.overlay-social a:hover { opacity: 1; color: var(--rust); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: calc(85vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--dark);
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--rust);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-emblem svg {
  width: min(360px, 100%);
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(154, 69, 34, 0.25));
}

/* ============================================================
   SECTION SHARED
   ============================================================ */

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark);
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--rust);
  margin: 0.9rem auto 0;
  border-radius: 2px;
}

/* ============================================================
   SERVICES / PRODUCTS GRID
   ============================================================ */

.services {
  background: var(--cream);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.product-img-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--card-bg), var(--card-bg2));
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-img-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(44, 36, 32, 0.16);
}

.product-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  color: rgba(226, 214, 196, 0.9);
  /* Subtle texture via repeating pattern */
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.08) 0%, transparent 50%);
}

.card-eye {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
}

.card-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  line-height: 1.35;
  color: rgba(226, 214, 196, 0.95);
  letter-spacing: 0.01em;
}

.product-info {
  padding: 0 0.125rem;
}

.product-title {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--rust);
  line-height: 1.4;
  margin-bottom: 0.3rem;
}
.product-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-price {
  font-size: 0.85rem;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.product-form { margin: 0; }

.btn-buy {
  width: 100%;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
}

.btn-buy[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background: var(--cream-dark);
}

.about-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 5rem;
  align-items: start;
}

.about-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.photo-wrap {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(154, 69, 34, 0.2);
}

.photo-wrap picture,
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-social {
  display: flex;
  gap: 1.25rem;
}
.about-social a {
  color: var(--mid);
  transition: color var(--transition);
}
.about-social a:hover { color: var(--rust); }

.about-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.about-name {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.about-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--rust);
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--mid);
  margin-bottom: 1.1rem;
  font-size: 0.975rem;
  line-height: 1.8;
}

.about-text blockquote {
  border-left: 3px solid var(--rust);
  padding: 0.75rem 1.25rem;
  margin: 1.75rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--dark);
  background: rgba(154, 69, 34, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

/* ============================================================
   CONTACT
   ============================================================ */

.contact-section { background: var(--cream); }

.contact-inner { max-width: 680px; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--mid);
}
.form-group label span { color: var(--rust); }

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--rust); }

.form-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.875rem;
  color: var(--sage);
}
.form-status.error { color: var(--rust); }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--dark);
  color: var(--cream);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1;
  grid-row: 1;
}

.footer-eye {
  width: 36px;
  height: 36px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  grid-column: 2;
  grid-row: 1;
  justify-content: center;
}
.footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 214, 196, 0.6);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--cream); }

.footer-social {
  display: flex;
  gap: 1.25rem;
  grid-column: 3;
  grid-row: 1;
  align-items: center;
}
.footer-social a {
  color: rgba(226, 214, 196, 0.5);
  transition: color var(--transition);
}
.footer-social a:hover { color: var(--rust); }

.footer-copy {
  grid-column: 1 / -1;
  grid-row: 2;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(226, 214, 196, 0.35);
  letter-spacing: 0.04em;
}

/* ============================================================
   HEADER NAV (desktop text links + Get Started)
   ============================================================ */

.header-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.header-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
}
.header-nav-link:hover {
  color: var(--rust);
  text-decoration-color: var(--rust);
}

.header-cta {
  padding: 0.55rem 1.4rem;
  font-size: 0.8rem;
}

/* Hide hamburger on desktop */
.menu-toggle { display: none; }

.overlay-cta {
  font-size: 1rem;
  padding: 0.75rem 2.5rem;
}

/* ============================================================
   CATEGORY FILTERS
   ============================================================ */

.category-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--mid);
  padding: 0.4rem 1rem;
  border: 1px solid transparent;
  border-radius: 2rem;
  background: none;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  color: var(--rust);
  border-color: rgba(154, 69, 34, 0.3);
}
.filter-btn.active {
  color: var(--rust);
  border-color: var(--rust);
  background: rgba(154, 69, 34, 0.06);
  font-weight: 500;
}

/* Hidden product cards when filtered */
.product-card.hidden {
  display: none;
}

/* ============================================================
   FOOTER NEWSLETTER + PAYMENTS
   ============================================================ */

.footer-newsletter {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(226, 214, 196, 0.1);
  border-bottom: 1px solid rgba(226, 214, 196, 0.1);
}

.footer-newsletter-label {
  font-size: 0.85rem;
  color: rgba(226, 214, 196, 0.6);
  letter-spacing: 0.04em;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 420px;
}

.newsletter-form input {
  flex: 1;
  background: rgba(226, 214, 196, 0.08);
  border: 1px solid rgba(226, 214, 196, 0.2);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--cream);
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input::placeholder { color: rgba(226, 214, 196, 0.35); }
.newsletter-form input:focus { border-color: rgba(154, 69, 34, 0.6); }
.newsletter-form .btn { padding: 0.6rem 1.25rem; font-size: 0.8rem; flex-shrink: 0; }

.footer-payments {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding-top: 1.25rem;
}

.payment-label {
  font-size: 0.75rem;
  color: rgba(226, 214, 196, 0.35);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.payment-icons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.payment-icons svg {
  width: 42px;
  height: 28px;
  border-radius: 3px;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.payment-icons svg:hover { opacity: 1; }

/* Adjust footer rows now that newsletter/payments added */
.footer-nav  { grid-row: 1; }
.footer-logo { grid-row: 1; }
.footer-social { grid-row: 1; }
.footer-copy { grid-row: 4; }

.footer-copy a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--cream); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger product cards */
.product-card:nth-child(2) { transition-delay: 0.07s; }
.product-card:nth-child(3) { transition-delay: 0.14s; }
.product-card:nth-child(4) { transition-delay: 0.21s; }
.product-card:nth-child(5) { transition-delay: 0.28s; }
.product-card:nth-child(6) { transition-delay: 0.35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero {
    gap: 2.5rem;
    padding: 4rem 2rem;
  }
}

@media (max-width: 768px) {
  /* Header: hide desktop nav/cta, show hamburger */
  .header-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
    text-align: center;
  }
  .hero-sub { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-emblem { display: none; }

  .category-filters { gap: 0.4rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.35rem 0.8rem; }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .about-photo { align-items: center; }
  .about-text blockquote { text-align: left; }
  .about-text .btn { display: block; text-align: center; }

  .footer-inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    text-align: center;
  }
  .footer-logo   { grid-column: 1; grid-row: 1; justify-content: center; }
  .footer-nav    { grid-column: 1; grid-row: 2; flex-wrap: wrap; justify-content: center; gap: 1.25rem; }
  .footer-social { grid-column: 1; grid-row: 3; justify-content: center; }
  .footer-newsletter { grid-row: 4; }
  .footer-payments   { grid-row: 5; }
  .footer-copy       { grid-row: 6; }

  .newsletter-form { flex-direction: column; }

  .section-inner { padding: 4rem 1.5rem; }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .header-inner { padding: 0 1.25rem; }
}
