/* ========================================
   Huffys Bakery N Pastries — Stylesheet
   Palette: Emerald green + cream
   ======================================== */

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

:root {
  --emerald-950: #042f23;
  --emerald-900: #064E3B;
  --emerald-800: #065F46;
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --emerald-100: #D1FAE5;
  --emerald-50:  #ECFDF5;
  --cream-50:    #FDF8F0;
  --cream-100:   #FAF3E8;
  --cream-200:   #F5EDE0;
  --cream-300:   #EDE3D0;
  --text-dark:    #1a1a1a;
  --text-mid:     #3d3d3d;
  --text-light:   #6b6b6b;
  --white:        #ffffff;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'DM Sans', system-ui, sans-serif;
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream-50);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-700);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--emerald-500);
  border-radius: 2px;
}
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--emerald-900);
  margin-bottom: 20px;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.7;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-desc { margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald-800);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(6,78,59,.3);
}
.btn-primary:hover {
  background: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,78,59,.35);
}
.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: 0.88rem; }
.btn-full { width: 100%; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253,248,240,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6,78,59,.08);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(253,248,240,.95);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--emerald-900);
}
.logo-icon { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-600);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--emerald-700); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--emerald-800) !important;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--emerald-700) !important; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--emerald-900);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-900) 50%, #0a3d2e 100%);
  padding-top: 72px;
}
.hero-bg-oval {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70vw;
  height: 140vh;
  background: radial-gradient(ellipse, rgba(16,185,129,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { color: var(--white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--emerald-100);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-headline em {
  font-style: italic;
  color: var(--emerald-100);
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
}
.meta-dot { color: rgba(255,255,255,.25); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-img-stack { position: relative; height: 600px; }
.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img--main {
  width: 85%;
  height: 520px;
  margin-left: auto;
}
.hero-img--float {
  position: absolute;
  border: 4px solid var(--emerald-900);
  z-index: 2;
}
.hero-img--top {
  width: 220px;
  height: 165px;
  top: 20px;
  right: 0;
}
.hero-img--bottom {
  width: 190px;
  height: 135px;
  bottom: 40px;
  left: -30px;
}
.hero-float-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald-900);
  z-index: 3;
  white-space: nowrap;
}
.hero-float--sweet { bottom: 200px; right: -10px; }
.hero-float--fresh { top: 160px; left: -20px; }
.float-emoji { font-size: 1.1rem; }

/* --- Section base --- */
.section { padding: 100px 0; }

/* --- About --- */
.about { background: var(--cream-50); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual { position: relative; }
.about-img-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img-main img { width: 100%; height: 400px; object-fit: cover; }
.about-img-accent {
  position: absolute;
  bottom: -40px;
  right: -30px;
  width: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid var(--cream-50);
  box-shadow: var(--shadow-md);
}
.about-img-accent img { width: 100%; height: 165px; object-fit: cover; }
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
}
.stat { text-align: left; }
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--emerald-800);
  margin-bottom: 2px;
}
.stat span { font-size: 0.85rem; color: var(--text-light); }
.about-text p {
  color: var(--text-mid);
  margin-bottom: 16px;
  line-height: 1.8;
}
.about-text p em { color: var(--emerald-700); font-style: italic; }
.about-text .btn { margin-top: 24px; }

/* --- Divider --- */
.divider {
  padding: 40px 0;
  background: var(--cream-100);
  display: flex;
  justify-content: center;
}
.divider-icon { color: var(--emerald-600); opacity: .4; }

/* --- Menu --- */
.menu { background: var(--white); }
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 56px;
}
.menu-card {
  background: var(--cream-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(6,78,59,.06);
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.menu-card-img { overflow: hidden; height: 220px; }
.menu-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.menu-card:hover .menu-card-img img { transform: scale(1.05); }
.menu-card-body { padding: 28px; }
.menu-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--emerald-900);
  margin-bottom: 10px;
}
.menu-card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.menu-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.menu-cta p { color: var(--text-light); font-size: 1rem; }

/* --- Gallery --- */
.gallery { background: var(--cream-50); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }

/* --- Testimonials --- */
.testimonials { background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-950) 100%); }
.testimonials .section-eyebrow { color: var(--emerald-100); }
.testimonials .section-eyebrow::before { background: var(--emerald-500); }
.testimonials .section-heading { color: var(--white); }
.testimonials .section-desc { color: rgba(255,255,255,.6); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-4px);
}
.testimonial-quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--emerald-500);
  margin-bottom: 8px;
}
.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.testimonial-location { font-size: 0.82rem; color: rgba(255,255,255,.45); }

/* --- Visit --- */
.visit { background: var(--cream-100); }
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.visit-info .section-heading { margin-bottom: 32px; }
.visit-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 32px; }
.visit-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.visit-detail-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
}
.visit-detail strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-800);
  margin-bottom: 4px;
}
.visit-detail span,
.visit-detail a {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.visit-detail a:hover { color: var(--emerald-700); text-decoration: underline; }
.visit-map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }

/* Form */
.visit-form-wrap {}
.visit-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(6,78,59,.06);
}
.visit-form-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--emerald-900);
  margin-bottom: 8px;
}
.form-desc { font-size: 0.9rem; color: var(--text-light); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.optional { font-weight: 400; color: var(--text-light); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--cream-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--emerald-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); opacity: .6; }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  text-align: center;
  padding: 32px 20px;
}
.form-success svg { margin: 0 auto 16px; }
.form-success strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--emerald-800);
  margin-bottom: 8px;
}
.form-success p { font-size: 0.9rem; color: var(--text-light); }

/* --- Footer --- */
.footer {
  background: var(--emerald-950);
  color: var(--white);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand .logo-icon path[fill] { fill: var(--emerald-100) !important; opacity: .3; }
.footer-brand .logo-icon path[stroke] { stroke: var(--emerald-100); }
.footer-links,
.footer-contact { display: flex; flex-direction: column; gap: 16px; }
.footer-links strong,
.footer-contact strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-500);
  margin-bottom: 4px;
}
.footer-links ul,
.footer-contact ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a,
.footer-contact a,
.footer-contact li {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,.35);
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Scroll reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,248,240,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 32px 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(6,78,59,.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-toggle { display: flex; }
  
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-img-stack { height: 420px; margin: 0 auto; max-width: 480px; }
  .hero-img--main { width: 100%; height: 380px; margin: 0; }
  .hero-img--float { display: none; }
  .hero-float-badge { display: none; }
  
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-accent { right: 0; }
  .menu-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-item--wide { grid-column: span 2; }
  .gallery-item--tall { grid-row: span 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero-inner { padding: 40px 20px; }
  .hero-img-stack { height: 340px; }
  .hero-img--main { height: 300px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery-item--wide { grid-column: span 1; }
  .visit-form-card { padding: 28px 20px; }
  .about-stats { flex-direction: column; gap: 20px; }
}
