/* Good Time Charlie's Kitchen — brand system pulled from the Granola Bark label:
   cream/parchment ground, dark ink, gold accents, brush-script wordmark,
   slab-serif product type, dotted rules and a scalloped double-line frame. */

@import url('https://fonts.googleapis.com/css2?family=Lobster&family=Rye&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --paper: #f7edd3;
  --paper-panel: #efdfb7;
  --ink: #241a10;
  --gold: #9c6f28;
  --gold-deep: #7a5620;
  --gold-pale: #dcb96e;
  --black: #1d160e;
  --photo-dark: #14100a;

  /* aliases kept for backwards compatibility with existing markup */
  --cream: var(--paper);
  --cream-dim: #6b5738;
  --gold-light: var(--gold-deep);
  --brown: #d9c495;

  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', serif;
  line-height: 1.6;
}

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

a { color: inherit; }

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 237, 211, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--brown);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  font-family: 'Rye', serif;
  color: var(--gold-deep);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-deep);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  width: 40px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper-panel);
    border-bottom: 1px solid var(--brown);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { border-top: 1px solid var(--brown); }
  .nav-links a { display: block; padding: 0.9rem 1.5rem; }
}

/* ---------- Dotted / scalloped frame, echoing the label border ---------- */

.framed {
  border: 1px solid var(--gold);
  border-radius: 22px;
  padding: 2px;
}

.framed-inner {
  border: 1px dashed var(--gold);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dotted-rule {
  border: none;
  border-top: 3px dotted var(--gold);
  margin: 1.75rem auto;
  width: 100%;
  opacity: 0.8;
}

/* ---------- Ribbon banner ---------- */

.ribbon-frame {
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 14px rgba(29, 22, 14, 0.18));
}

.ribbon-tail {
  width: 30px;
  min-height: 100%;
  flex-shrink: 0;
  display: block;
}

.ribbon-tail-body {
  fill: var(--paper-panel);
  stroke: var(--black);
  stroke-width: 3;
  stroke-linejoin: round;
}

.ribbon-tail-fold {
  fill: var(--gold);
  stroke: var(--black);
  stroke-width: 2;
  stroke-linejoin: round;
}

.ribbon {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--paper-panel);
  color: var(--black);
  padding: 1.1rem 2.25rem;
  text-align: center;
  border-top: 3px solid var(--black);
  border-bottom: 3px solid var(--black);
  max-width: 100%;
}

.ribbon .script {
  font-family: 'Lobster', cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  display: block;
  line-height: 1.1;
}

.ribbon .sub {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 0.35rem;
  color: var(--cream-dim);
}

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

.hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background:
    radial-gradient(ellipse at top, rgba(156, 111, 40, 0.1), transparent 60%),
    var(--paper);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.7rem;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.hero p.tagline {
  max-width: 40em;
  margin: 1.25rem auto 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

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

.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.85rem 2.1rem;
  background: var(--gold);
  color: var(--paper);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: transparent;
  color: var(--gold-deep);
}

.btn-outline {
  background: transparent;
  color: var(--gold-deep);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--paper);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn[disabled]:hover {
  background: var(--gold);
  color: var(--paper);
}

/* ---------- Sections ---------- */

section { padding: 3.5rem 0; }

.section-title {
  font-family: 'Rye', serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--cream-dim);
  font-style: italic;
  font-family: 'Playfair Display', serif;
  margin-bottom: 2.5rem;
}

/* ---------- Product card ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--paper-panel);
  border: 1px solid var(--brown);
  border-radius: 14px;
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.product-glyph {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.product-card h3 {
  font-family: 'Rye', serif;
  letter-spacing: 0.04em;
  color: var(--gold-deep);
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.product-card .desc {
  color: var(--cream-dim);
  font-style: italic;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.badge {
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.price {
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.product-card.coming-soon {
  opacity: 0.75;
  justify-content: center;
}

/* ---------- Story / two-column ---------- */

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

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
}

.story-photo {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gold);
  border-radius: 16px;
  background:
    repeating-linear-gradient(135deg, rgba(220,185,110,0.08) 0 2px, transparent 2px 14px),
    var(--photo-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.story-photo .placeholder-label {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold-pale);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

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

.contact-form label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 0.35rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--paper-panel);
  border: 1px solid var(--brown);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-family: 'Lora', serif;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-info h3 {
  font-family: 'Rye', serif;
  color: var(--gold-deep);
  letter-spacing: 0.04em;
}

.contact-info p { color: var(--cream-dim); }

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

.site-footer {
  border-top: 1px solid var(--brown);
  background: var(--paper-panel);
  padding: 2.5rem 0;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.85rem;
}

.site-footer .brand {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.site-footer .fine-print {
  margin-top: 0.5rem;
  opacity: 0.7;
  font-size: 0.75rem;
}
