/*
Theme Name: Sand & Sage
Description: A simple, elegant theme for a custom treat business. Sandy tan with soft sage green accents. Includes a homepage, About template, and Order template with Google Form embed.
Version: 1.3
Author: Custom
Text Domain: sandsage
*/

:root {
  --cream: #faf6ef;
  --sand: #ebe0cc;
  --sand-deep: #d6c3a3;
  --tan: #b89f7a;
  --sage: #a3b18a;
  --sage-deep: #6b7f5e;
  --ink: #3d3a33;
  --ink-soft: #6e695c;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--sage-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1.1em; }

.container { width: min(1120px, 92%); margin: 0 auto; }
.narrow { width: min(780px, 92%); margin: 0 auto; }

.eyebrow {
  display: block;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .95em 2.2em;
  border-radius: 999px;
  background: var(--sage-deep);
  color: #fff;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1.5px solid var(--sage-deep);
  transition: all .25s ease;
}
.btn:hover { background: transparent; color: var(--sage-deep); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--tan); }
.btn.ghost:hover { background: var(--sand); }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 1rem;
}
.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.9rem;
  color: var(--ink);
  letter-spacing: .02em;
}
.site-title:hover { text-decoration: none; }
.custom-logo { max-height: 56px; width: auto; }

.main-nav ul { list-style: none; display: flex; gap: 2.2rem; margin: 0; padding: 0; }
.main-nav a {
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1.5px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item a,
.main-nav .current_page_item a { border-bottom-color: var(--sage); text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--sand) 0%, var(--cream) 100%);
  padding: clamp(3.5rem, 9vw, 7rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-art {
  aspect-ratio: 4/5;
  border-radius: 200px 200px var(--radius) var(--radius);
  background: var(--sage);
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 55%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art { position: relative; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art img.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-art img.slide.active { opacity: 1; }
.slide-dots {
  position: absolute;
  left: 0; right: 0; bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}
.slide-dots .dot {
  width: 10px; height: 10px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid #fff;
  background: transparent;
  cursor: pointer;
  opacity: .85;
}
.slide-dots .dot.active { background: #fff; }
@media (prefers-reduced-motion: reduce) {
  .hero-art img.slide { transition: none; }
}
.hero-art .placeholder {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: rgba(255,255,255,.9);
  font-size: 1.6rem;
  text-align: center;
  padding: 2rem;
}

/* Sections */
section.block { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section-head p { color: var(--ink-soft); }

/* Treat cards */
.treats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
}
.treat-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.treat-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(61,58,51,.35); }
.treat-dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
  background: var(--sand-deep);
}
.treat-card:nth-child(even) .treat-dot { background: var(--sage); }
.treat-card h3 { font-size: 1.35rem; margin-bottom: .4rem; }
.treat-card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* Steps */
.steps-wrap { background: var(--sand); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2.5rem; counter-reset: step; }
.step { text-align: center; counter-increment: step; }
.step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1.5px solid var(--sage-deep);
  color: var(--sage-deep);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
}
.step p { color: var(--ink-soft); margin: 0; }

/* CTA band */
.cta-band { background: var(--sage-deep); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); }
.cta-band .btn { background: var(--cream); color: var(--sage-deep); border-color: var(--cream); }
.cta-band .btn:hover { background: transparent; color: #fff; }

/* Inner pages */
.page-hero { background: var(--sand); text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; }
.page-hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero p { color: var(--ink-soft); margin: 1rem auto 0; max-width: 34em; }

.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3.5rem; align-items: start; }
.about-photo {
  border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--sage);
  aspect-ratio: 4/5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.entry-content > *:last-child { margin-bottom: 0; }
.entry-content ul { padding-left: 1.2em; }
.entry-content img { border-radius: var(--radius); }

.form-card {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: clamp(.8rem, 3vw, 2rem);
  margin-top: 2rem;
  box-shadow: 0 20px 40px -30px rgba(61,58,51,.4);
}
.form-card iframe { width: 100%; min-height: 1250px; border: 0; display: block; }
.form-note {
  text-align: center;
  color: var(--ink-soft);
  padding: 2rem 1rem;
  border: 1.5px dashed var(--sand-deep);
  border-radius: var(--radius);
}

/* Footer */
.site-footer { background: var(--ink); color: #d8d2c4; padding: 3.5rem 0 2rem; text-align: center; }
.site-footer .site-title { color: #fff; display: block; margin-bottom: .6rem; }
.site-footer a { color: var(--sage); }
.footer-links { display: flex; gap: 1.8rem; justify-content: center; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; }
.footer-links a { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
.copy { font-size: .8rem; color: #928b7a; margin: 0; }

/* Mobile */
@media (max-width: 820px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-art, .about-photo { width: 100%; max-width: 340px; margin: 0 auto; }
  .hero-art { min-height: 340px; }
  .nav-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 1rem; padding: 1rem 0 .5rem; }
}
