/* ==============================================
   GIMME SOME SUGAR COOKIES — stylesheet
   Scaffolded structure. Design pass TBD.
   ============================================== */

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

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---------- CSS VARIABLES (swap for your palette) ---------- */
:root {
  /* Placeholder palette — replace during design pass */
  --color-bg:         #fdfaf7;
  --color-text:       #1a1a1a;
  --color-text-muted: #666;
  --color-accent:     #c9734a;   /* warm terracotta — change me */
  --color-accent-2:   #f5e6d8;   /* soft blush */
  --color-border:     #e5ddd5;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;

  --max-width: 1200px;
  --section-padding: 5rem 1.5rem;
  --radius: 4px;
  --transition: 200ms ease;
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-padding); }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: .5rem;
}

.section__sub {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn--primary:hover { filter: brightness(1.1); }

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

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; }

.btn--nav {
  background: var(--color-accent);
  color: #fff;
  padding: .5rem 1.25rem;
  font-size: .85rem;
}

.btn--full { width: 100%; text-align: center; }

/* ---------- HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: center;
  gap: 2rem;
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: 2rem;
}

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

.hero__image-wrap {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-accent-2);  /* placeholder tint */
}

.hero__image { width: 100%; height: 100%; object-fit: cover; }

/* ---------- GALLERY ---------- */
.gallery { background: var(--color-accent-2); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 12px;
  margin-bottom: 2.5rem;
}

.gallery__item { overflow: hidden; border-radius: var(--radius); background: var(--color-border); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__instagram { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* ---------- FLAVORS ---------- */
.flavors__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.flavor-card {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.flavor-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.flavors__note {
  font-size: .9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ---------- ABOUT ---------- */
.about { background: #fff; }

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image-wrap {
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-accent-2);
}

.about__text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.about__text .section__title { margin-bottom: 1.25rem; }
.about__text .btn { margin-top: .5rem; }

/* ---------- ORDER ---------- */
.order { background: var(--color-accent-2); }

.order__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.order__info .section__title { margin-bottom: 1rem; }
.order__info p { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

.order__details {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}

.order__allergen {
  font-size: .85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

/* Form */
.order__form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form__note {
  font-size: .8rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-text);
  color: #fff;
  padding: 3rem 1.5rem;
}

.footer__layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 2rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: .25rem;
}

.footer__brand p:last-child { font-size: .85rem; opacity: .6; }

.footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .75;
}
.footer__links a:hover { opacity: 1; }

.footer__legal {
  grid-column: 1 / -1;
  font-size: .8rem;
  opacity: .4;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: .5rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__subtitle { margin: 0 auto 2rem; }
  .hero__cta { justify-content: center; }
  .hero__image-wrap { max-height: 380px; }

  .about__layout,
  .order__layout { grid-template-columns: 1fr; }
  .about__image-wrap { aspect-ratio: 16/9; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 1; }

  .footer__layout { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-content: center; }
}

@media (max-width: 600px) {
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  /* TODO: add mobile menu open/close logic in main.js */

  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--tall,
  .gallery__item--wide { grid-column: span 1; grid-row: span 1; }

  .order__form { padding: 1.5rem; }
}
