/*
Theme Name: Harlow Bakery
Theme URI: https://harlowbakery.com
Author: Studio Pinecone
Author URI: https://harlowbakery.com
Description: Custom WordPress theme for Harlow Bakery. Warm, unfussy, direct — built to the brand guide. Fully self-contained: no WooCommerce required, no plugins needed to look right out of the box.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: harlow
Tags: bakery, food, restaurant, custom-logo, editor-style, featured-images, translation-ready, responsive
*/

/* Design tokens */
:root {
  --cocoa:  #6B4423;
  --cream:  #FAF4EC;
  --crust:  #C99A5B;
  --butter: #E8B94D;
  --berry:  #B04A3E;
  --sage:   #8C9D77;
  --char:   #2B1D14;
  --flour:  #F3E9D8;
  --toast:  #8B6F47;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--char);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; }
p { margin: 0; }
a { color: var(--cocoa); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--crust); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* WordPress core alignment classes */
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.aligncenter { display: block; margin: 20px auto; }
.wp-caption-text { font-size: 13px; color: var(--toast); font-style: italic; text-align: center; margin-top: 8px; }
.screen-reader-text { position: absolute; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }

.container {
  width: 100%;
  max-width: 1360px;
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 12px; font-weight: 600; color: var(--crust);
  letter-spacing: 0.14em; text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  letter-spacing: 0.01em; text-align: center;
  white-space: nowrap;
  border: none;
}
.btn-primary { background: var(--cocoa); color: var(--cream); }
.btn-primary:hover { background: var(--char); color: var(--cream); }
.btn-secondary { background: transparent; color: var(--cocoa); border: 1.5px solid var(--cocoa); }
.btn-secondary:hover { background: var(--cocoa); color: var(--cream); }
.btn-butter { background: var(--butter); color: var(--char); font-weight: 700; }
.btn-butter:hover { background: var(--crust); color: var(--char); }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; background: rgba(107, 68, 35, 0.08);
  border-radius: 100px; font-size: 12px; font-weight: 600;
  color: var(--cocoa); letter-spacing: 0.08em; text-transform: uppercase;
}
.status-dot { width: 7px; height: 7px; background: var(--sage); border-radius: 50%; }

/* --- NAV --- */
.site-header {
  background: var(--cream);
  width: 100%;
  border-bottom: 1px solid rgba(107, 68, 35, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 20px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  color: var(--cocoa);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--cocoa); }
.nav-brand svg { flex-shrink: 0; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 14px; font-weight: 500;
  list-style: none; margin: 0; padding: 0;
  flex-shrink: 0;
}
.nav-links li,
.nav-links a { white-space: nowrap; }
.nav-links a.active { color: var(--crust); font-weight: 600; }
.nav-cta { padding: 12px 22px; font-size: 14px; white-space: nowrap; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
}

/* --- HERO --- */
.hero { padding: clamp(60px, 8vw, 100px) 0; background: var(--cream); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  color: var(--cocoa);
  letter-spacing: -0.02em;
  margin: 24px 0;
}
.hero-lead {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.55; color: var(--char);
  max-width: 500px; margin: 0 0 44px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 40px;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(107, 68, 35, 0.15);
  flex-wrap: wrap;
}
.hero-stat .n { font-family: var(--font-display); font-size: 32px; color: var(--cocoa); font-weight: 600; }
.hero-stat .n span { color: var(--crust); }
.hero-stat .l { font-size: 12px; color: var(--toast); margin-top: 4px; }
.hero-photo {
  height: 600px; position: relative;
  background: linear-gradient(135deg, var(--crust) 0%, var(--toast) 60%, var(--cocoa) 100%);
  overflow: hidden;
}
.hero-photo::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(232, 185, 77, 0.35), transparent 45%),
    radial-gradient(ellipse at 70% 75%, rgba(43, 29, 20, 0.4), transparent 50%);
}
.hero-photo-badge {
  position: absolute; top: 24px; right: 24px;
  padding: 8px 14px; background: rgba(250, 244, 236, 0.95);
  font-size: 10px; letter-spacing: 0.1em; color: var(--cocoa);
  font-weight: 600; text-transform: uppercase;
}
.hero-photo-caption { position: absolute; bottom: 32px; left: 32px; color: var(--cream); }
.hero-photo-caption .t { font-family: var(--font-display); font-size: 32px; font-weight: 600; }
.hero-photo-caption .s { font-size: 13px; opacity: 0.9; margin-top: 4px; }

/* --- Section --- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section-flour { background: var(--flour); }
.section-cream { background: var(--cream); }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 48px; flex-wrap: wrap; gap: 20px;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 56px); line-height: 1;
  color: var(--cocoa); letter-spacing: -0.01em;
}
.section-link {
  font-size: 15px; font-weight: 600; color: var(--cocoa);
  display: inline-flex; align-items: center; gap: 8px;
}

/* --- Cards --- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--cream); overflow: hidden; display: flex; flex-direction: column; }
.section-flour .card { background: var(--cream); }
.card-photo { height: 260px; position: relative; }
.card-badge {
  position: absolute; top: 16px; left: 16px;
  padding: 5px 11px; color: var(--cream);
  font-size: 10px; letter-spacing: 0.1em;
  font-weight: 600; text-transform: uppercase; z-index: 2;
}
.card-badge.sig { background: var(--cocoa); }
.card-badge.sold-early { background: var(--berry); }
.card-badge.weekend { background: var(--sage); }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 22px; color: var(--cocoa); }
.card-desc { font-size: 13px; color: var(--toast); line-height: 1.5; }
.card-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto; padding-top: 8px;
}
.card-price { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--cocoa); }
.card-add {
  padding: 9px 18px; background: transparent; color: var(--cocoa);
  border: 1px solid var(--crust); font-size: 13px; font-weight: 500;
}
.card-add:hover { background: var(--cocoa); color: var(--cream); border-color: var(--cocoa); }

.tint-sourdough { background: linear-gradient(135deg, var(--crust), var(--toast)); }
.tint-croissant { background: linear-gradient(135deg, var(--butter), var(--crust)); }
.tint-kouign    { background: linear-gradient(135deg, var(--cocoa), var(--char)); }
.tint-cinnamon  { background: linear-gradient(135deg, var(--crust), var(--cocoa)); }
.tint-cake      { background: linear-gradient(135deg, var(--crust), var(--cocoa)); }
.tint-cookie    { background: linear-gradient(135deg, var(--toast), var(--char)); }
.tint-apple     { background: linear-gradient(135deg, var(--butter), var(--berry)); }
.tint-multi     { background: linear-gradient(135deg, var(--butter), var(--crust)); }
.tint-focaccia  { background: linear-gradient(135deg, var(--crust), var(--cocoa)); }

/* --- Story --- */
.story-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 8vw, 100px); align-items: center;
}
.story-photo {
  height: 560px;
  background: linear-gradient(160deg, var(--cocoa) 0%, var(--char) 100%);
  position: relative; overflow: hidden;
}
.story-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(232, 185, 77, 0.22), transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(201, 154, 91, 0.18), transparent 40%);
}
.story-caption {
  position: absolute; bottom: 24px; left: 24px;
  color: var(--flour); font-size: 12px; font-style: italic;
  opacity: 0.75; z-index: 2;
}
.story h2 {
  font-size: clamp(36px, 5vw, 60px); line-height: 1.02;
  color: var(--cocoa); letter-spacing: -0.01em;
  margin-bottom: 28px; font-style: italic;
}
.story p { font-size: 17px; line-height: 1.7; color: var(--char); margin-bottom: 20px; }

/* --- CTA band --- */
.cta-band { padding: clamp(60px, 8vw, 100px) 0; background: var(--cocoa); color: var(--cream); }
.cta-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center; }
.cta-band h2 {
  font-size: clamp(36px, 5.5vw, 64px); line-height: 1;
  color: var(--cream); letter-spacing: -0.01em;
}
.cta-band .eyebrow { color: var(--butter); }
.cta-band-lead { font-size: 17px; line-height: 1.6; color: var(--flour); margin-top: 26px; max-width: 520px; }
.cta-buttons { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.cta-buttons .btn-butter { padding: 22px 44px; font-size: 17px; }
.cta-callus { font-size: 13px; color: var(--flour); opacity: 0.85; }

/* --- Footer --- */
.site-footer { padding: 80px 0 40px; background: var(--char); color: var(--flour); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-tagline { font-size: 14px; line-height: 1.65; color: var(--crust); max-width: 320px; margin: 22px 0 0; }
.site-footer h4 {
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  color: var(--crust); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-list a { color: var(--flour); }
.footer-list a:hover { color: var(--crust); }
.footer-list .muted { color: var(--crust); }
.footer-bottom {
  border-top: 1px solid rgba(250, 244, 236, 0.12); padding-top: 26px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--toast);
  flex-wrap: wrap; gap: 12px;
}

/* --- Menu page --- */
.menu-header { padding: 80px 0 48px; }
.menu-header-row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; }
.menu-header h1 {
  font-size: clamp(48px, 8vw, 88px); line-height: 0.95;
  color: var(--cocoa); letter-spacing: -0.02em; margin-top: 16px;
}
.menu-header h1 em { font-style: italic; color: var(--crust); font-weight: 600; }
.menu-pickup { text-align: right; }
.menu-pickup .l { font-size: 13px; color: var(--toast); margin-bottom: 6px; }
.menu-pickup .t { font-family: var(--font-display); font-size: 26px; color: var(--cocoa); font-weight: 600; }
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 60px; }
.menu-card { background: var(--flour); overflow: hidden; position: relative; }
.menu-card .card-photo { height: 220px; }
.menu-card .card-body { padding: 22px; }
.menu-card .card-topline { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.menu-card h3 { font-size: 22px; color: var(--cocoa); }
.menu-card .card-price { font-size: 20px; }
.menu-card .card-desc { margin-bottom: 16px; }
.card-add-full {
  width: 100%; padding: 11px; background: var(--cocoa); color: var(--cream);
  border: none; font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.card-add-full:hover { background: var(--char); }
.info-band {
  padding: 40px 44px; background: var(--flour);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.info-band .eyebrow { margin-bottom: 12px; }
.info-band p { font-size: 14px; color: var(--char); line-height: 1.6; }

/* --- About page --- */
.about-hero { padding: 120px 0 80px; }
.about-hero h1 {
  font-size: clamp(48px, 8vw, 96px); line-height: 0.98;
  color: var(--cocoa); letter-spacing: -0.02em;
  margin-bottom: 40px; margin-top: 24px; max-width: 900px;
}
.about-hero h1 em { font-style: italic; color: var(--crust); font-weight: 600; }
.about-hero p { font-size: 22px; line-height: 1.5; color: var(--char); max-width: 720px; }
.about-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: 100px; align-items: start; }
.about-story h2 {
  font-size: clamp(28px, 4vw, 44px); line-height: 1.05;
  color: var(--cocoa); letter-spacing: -0.01em; margin: 22px 0 28px;
}
.about-story p { font-size: 17px; line-height: 1.75; color: var(--char); margin-bottom: 20px; }
.about-story-photo {
  height: 620px;
  background: linear-gradient(160deg, var(--cocoa) 0%, var(--char) 100%);
  position: relative; overflow: hidden;
}
.about-story-photo::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 40% 30%, rgba(232, 185, 77, 0.22), transparent 45%),
    radial-gradient(ellipse at 70% 70%, rgba(201, 154, 91, 0.18), transparent 40%);
}
.quote-wrap { max-width: 1000px; margin: 0 auto; text-align: center; }
.quote {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px);
  line-height: 1.25; color: var(--cocoa); font-style: italic;
  margin: 24px 0 28px; letter-spacing: -0.01em;
}
.quote-attr { font-size: 13px; color: var(--toast); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card { padding: 40px; background: var(--flour); }
.value-num {
  width: 48px; height: 48px; background: var(--cocoa); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; font-family: var(--font-display); font-size: 20px; font-weight: 600;
}
.value-card h3 { font-size: 26px; color: var(--cocoa); margin-bottom: 16px; }
.value-card p { font-size: 15px; line-height: 1.65; color: var(--char); }

/* --- Blog --- */
.blog-hero { padding: 80px 0 40px; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 64px); color: var(--cocoa); letter-spacing: -0.01em; }
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 80px; }
.post-card { background: var(--flour); overflow: hidden; }
.post-card .card-photo { height: 220px; }
.post-card .card-body { padding: 26px; }
.post-card h3 { font-size: 22px; color: var(--cocoa); margin-bottom: 10px; line-height: 1.2; }
.post-card .meta { font-size: 12px; color: var(--toast); letter-spacing: 0.05em; margin-bottom: 12px; }
.post-card .excerpt { font-size: 14px; color: var(--char); line-height: 1.55; }

.single-post-wrap { max-width: 760px; margin: 0 auto; padding: 80px 0; }
.single-post-wrap h1 {
  font-size: clamp(36px, 5vw, 52px); line-height: 1.1;
  color: var(--cocoa); letter-spacing: -0.01em; margin-bottom: 20px;
}
.single-post-wrap .meta { font-size: 13px; color: var(--toast); letter-spacing: 0.05em; margin-bottom: 40px; }
.single-post-wrap .post-content { font-size: 17px; line-height: 1.75; color: var(--char); }
.single-post-wrap .post-content p { margin-bottom: 20px; }
.single-post-wrap .post-content h2 { font-size: 28px; color: var(--cocoa); margin: 40px 0 16px; }
.single-post-wrap .post-content a { text-decoration: underline; }
.single-post-wrap .post-content blockquote {
  border-left: 3px solid var(--crust);
  padding-left: 24px; margin: 30px 0;
  font-style: italic; color: var(--cocoa);
  font-family: var(--font-display); font-size: 22px; line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--cream);
    padding: 20px 24px 28px; gap: 18px;
    border-top: 1px solid rgba(107, 68, 35, 0.1);
    box-shadow: 0 8px 24px rgba(43, 29, 20, 0.08);
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { align-self: stretch; text-align: center; }
  .hero-grid, .story-grid, .about-story, .cta-grid, .footer-grid {
    grid-template-columns: 1fr; gap: 40px;
  }
  .cta-buttons { align-items: stretch; }
  .cta-buttons .btn-butter { width: 100%; }
  .hero-photo { height: 340px; }
  .story-photo, .about-story-photo { height: 380px; }
  .card-grid, .menu-grid, .post-list { grid-template-columns: 1fr; }
  .info-band { grid-template-columns: 1fr; padding: 32px; }
  .values-grid { grid-template-columns: 1fr; }
  .menu-pickup { text-align: left; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 52px; }
  .hero-stats { gap: 24px; }
  .hero-photo { height: 280px; }
}
