/* Perfect Pies — site styles
   Palette: yellow #F4C842, near-black #0E0E0E, caramel #A0742A
   Headings: Fraunces 700 (self-hosted via Google Fonts CDN for now)
   Body:     system sans
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,800&display=swap');

:root {
  --yellow: #F4C842;
  --yellow-light: #F8DA75;
  --black: #0E0E0E;
  --caramel: #A0742A;
  --cream: #FFFBEC;
  --white: #FFFFFF;
  --gray: #6B6B6B;
  --shadow: 0 6px 24px rgba(14, 14, 14, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em 0;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }

a { color: var(--black); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--caramel); }

/* ---------- Layout ---------- */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: 760px;
}

section { padding: 64px 0; }
section.tight { padding: 32px 0; }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(14,14,14,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--black);
}
.brand .by { font-weight: 400; font-style: italic; color: var(--caramel); }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--caramel); }

@media (max-width: 640px) {
  .nav { gap: 16px; font-size: 0.95rem; }
  .nav a:nth-child(4) { display: none; } /* drop About on mobile */
}

/* ---------- Hero ---------- */

.hero {
  background: var(--yellow);
  text-align: center;
  padding: 80px 0 96px 0;
}
.hero h1 {
  margin-bottom: 4px;
}
.hero .tagline {
  font-style: italic;
  font-size: 1.05rem;
  color: var(--black);
  margin-bottom: 36px;
}
.hero-image-wrap {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: -36px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  padding: 0 16px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--white { background: var(--white); color: var(--black); box-shadow: var(--shadow); }
.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { color: var(--yellow); background: #1f1f1f; }
.btn--white:hover { color: var(--caramel); }

/* ---------- About + Taste blocks ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

.taste-card {
  background: var(--yellow);
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.taste-card .pillar {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.taste-card .pillar:last-child { margin-bottom: 0; }
.taste-card .pillar .num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.taste-card h3 { margin-bottom: 4px; }
.taste-card p { margin: 0; font-size: 0.95rem; }

.accent { color: var(--caramel); }

/* ---------- Community / testimonials ---------- */

.community {
  background: var(--white);
  text-align: center;
}
.community h2 { margin-bottom: 48px; }
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  align-items: start;
}
@media (max-width: 720px) {
  .community-grid { grid-template-columns: 1fr; gap: 36px; }
}
.testimonial {
  text-align: center;
}
.testimonial img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px auto;
  box-shadow: var(--shadow);
}
.testimonial h4 { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.testimonial p { font-size: 0.9rem; color: var(--gray); }

/* ---------- Menu page ---------- */

.menu-section {
  background: var(--yellow);
  border-radius: 18px;
  padding: 48px 36px;
  margin-bottom: 36px;
}
.menu-section--white { background: var(--white); border: 1px solid rgba(14,14,14,0.08); }
.menu-section h2 { margin-bottom: 24px; }
.menu-section .lead { margin-bottom: 32px; max-width: 600px; }

.pie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.pie-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.pie-card .img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}
.pie-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pie-card .img-wrap.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow-light);
  color: var(--caramel);
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.pie-card .body {
  padding: 16px 18px 20px 18px;
  flex-grow: 1;
  display: flex; flex-direction: column;
}
.pie-card h3 { margin-bottom: 6px; }
.pie-card .desc { font-size: 0.9rem; color: var(--gray); margin-bottom: 12px; flex-grow: 1; }
.pie-card .meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.pie-card .price { font-weight: 700; font-size: 1rem; color: var(--black); }
.pie-card .badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--black);
  color: var(--yellow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pie-card .badge--seasonal { background: var(--caramel); color: var(--white); }
.pie-card .badge--bestseller { background: var(--yellow); color: var(--black); border: 1px solid var(--black); }

/* ---------- Catering page ---------- */

.catering-hero {
  background: var(--yellow);
  padding: 64px 0;
}
.catering-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .catering-options { grid-template-columns: 1fr; }
}
.option-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.option-card .img-wrap { aspect-ratio: 4 / 3; }
.option-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.option-card .body { padding: 20px 24px 24px 24px; }
.option-card h3 { margin-bottom: 8px; }
.option-card p { font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--yellow);
  padding: 80px 0;
  text-align: center;
}
.site-footer h2 { margin-bottom: 48px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 640px) {
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}
.footer-cols h4 {
  font-family: "Fraunces", serif;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.1rem;
}
.footer-cols p { margin: 0; font-size: 0.95rem; }

/* ---------- Misc utilities ---------- */

.text-center { text-align: center; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.lead { font-size: 1.05rem; }

/* Skip-to-content link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  background: var(--black); color: var(--yellow);
  padding: 8px 12px; border-radius: 6px; z-index: 100;
}
