/* =====================================================
   BAKER'S CORNER — style.css
   Professional one-page bakery website stylesheet
   ===================================================== */


/* -----------------------------------------------------
   1. DESIGN TOKENS (CSS Variables)
   ----------------------------------------------------- */
:root {
  /* Colours */
  --ink:          #1a110a;   /* near-black for headings        */
  --ink-soft:     #4a3728;   /* medium brown for body text     */
  --cream:        #fdf7f0;   /* warm page background           */
  --cream-dark:   #f3e9da;   /* slightly deeper cream          */
  --white:        #ffffff;
  --rust:         #b85c2a;   /* primary accent — warm rust     */
  --rust-dark:    #8f4420;   /* hover state for rust           */
  --rust-light:   #f4e0d4;   /* pale rust tint for backgrounds */
  --gold:         #d4970a;   /* secondary accent — golden      */
  --forest:       #2d6a4f;   /* success / confirmation green   */
  --border:       #e8d9c8;   /* subtle divider colour          */
  --shadow:       rgba(26,17,10,.08);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --section-gap:  7rem;
  --container:    1120px;
  --radius:       14px;
  --radius-sm:    8px;
}


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

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

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--ink-soft);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }


/* -----------------------------------------------------
   3. TYPOGRAPHY SCALE
   ----------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);   font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1rem;    font-weight: 600; }

h2 em, h1 em {
  font-style: italic;
  color: var(--rust);
}

p { line-height: 1.8; }


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

section { padding: var(--section-gap) 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.section-header.light h2,
.section-header.light .eyebrow { color: var(--white); }
.section-header.light p { color: rgba(255,255,255,.75); }

/* Small uppercase label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  background: var(--rust-light);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-header.light .eyebrow {
  background: rgba(255,255,255,.15);
  color: #ffd6b8;
}


/* -----------------------------------------------------
   5. BUTTONS
   ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 0.78rem 1.8rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease,
              border-color 0.22s ease, transform 0.15s ease,
              box-shadow 0.22s ease;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0);    }

/* Primary — filled rust */
.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(184,92,42,.30);
}
.btn-primary:hover {
  background: var(--rust-dark);
  box-shadow: 0 6px 22px rgba(184,92,42,.40);
}

/* Ghost — outline only */
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
}

/* Nav CTA */
.btn-nav {
  background: var(--rust);
  color: var(--white) !important;
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(184,92,42,.25);
}
.btn-nav:hover { background: var(--rust-dark); }

/* Card button */
.btn-card {
  background: transparent;
  color: var(--rust);
  border-color: var(--rust);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  margin-top: 1rem;
  align-self: flex-start;
}
.btn-card:hover {
  background: var(--rust);
  color: var(--white);
}

/* Full-width */
.btn-full { width: 100%; }


/* -----------------------------------------------------
   6. NAVIGATION
   ----------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(253,247,240,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-icon { font-size: 1.5rem; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--rust);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover { color: var(--rust); }
.nav-links a:hover::after { width: 100%; }


/* -----------------------------------------------------
   7. HERO SECTION
   ----------------------------------------------------- */
#hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(184,92,42,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212,151,10,.10) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 70px; /* nav height */
}

/* Large decorative background text */
.hero-bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 700;
  color: rgba(255,255,255,.03);
  letter-spacing: -0.05em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 3rem 1.75rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212,151,10,.12);
  border: 1px solid rgba(212,151,10,.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
}

#hero h1 {
  color: var(--white);
  margin-bottom: 1.4rem;
  letter-spacing: -0.02em;
}

#hero h1 em {
  color: var(--rust);
  font-style: italic;
}

.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 2.4rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Three quick stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem;
}

.hstat {
  text-align: center;
  padding: 0 2.5rem;
}

.hstat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hstat span {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.hstat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.15);
}

/* Scroll hint at bottom */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.35);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1);   }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}


/* -----------------------------------------------------
   8. ABOUT SECTION
   ----------------------------------------------------- */
#about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}

/* Left visual block */
.about-visual { position: relative; }

.about-img-block {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--rust-light) 100%);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(26,17,10,.12);
}

.about-img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-emoji-scene {
  position: relative;
  width: 200px;
  height: 200px;
}

.scene-item {
  position: absolute;
  font-size: 3.5rem;
  animation: floatItem 4s ease-in-out infinite;
}

.s1 { top: 0;    left: 50%; transform: translateX(-50%); animation-delay: 0s;    }
.s2 { top: 30%;  left: 0;                                  animation-delay: 0.5s;  }
.s3 { top: 30%;  right: 0;                                 animation-delay: 1s;    }
.s4 { bottom: 0; left: 20%;                                animation-delay: 1.5s;  }
.s5 { bottom: 0; right: 20%;                               animation-delay: 2s;    }

@keyframes floatItem {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Small tag under the visual */
.about-tag {
  position: absolute;
  bottom: -1rem; right: -1rem;
  background: var(--rust);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(184,92,42,.35);
  white-space: nowrap;
}

/* Right text block */
.about-text .eyebrow { color: var(--rust); background: var(--rust-light); }

.about-text h2 { margin: 0.5rem 0 1.2rem; }

/* Three pillars */
.about-pillars {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.2rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--rust);
  transition: transform 0.2s;
}

.pillar:hover { transform: translateX(4px); }

.pillar-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }

.pillar strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.pillar p { margin: 0; font-size: 0.9rem; }


/* -----------------------------------------------------
   9. SERVICES / MENU SECTION
   ----------------------------------------------------- */
#services {
  background: var(--cream);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26,17,10,.1);
}

/* Featured card gets a rust tint */
.menu-card.featured {
  background: linear-gradient(145deg, #fff8f4 0%, var(--white) 100%);
  border-color: var(--rust-light);
  border-width: 2px;
}

.menu-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.menu-emoji { font-size: 2.2rem; }

.menu-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  background: var(--rust);
  color: var(--white);
}

.menu-badge.new {
  background: var(--gold);
}

.menu-card h3 { margin-bottom: 0.6rem; }

.menu-card > p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.menu-list {
  margin-bottom: 0.5rem;
}

.menu-list li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-list li::before {
  content: '·';
  color: var(--rust);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 0;
}

.menu-list li:last-child { border-bottom: none; }


/* -----------------------------------------------------
   10. WHY US SECTION
   ----------------------------------------------------- */
#why-us {
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(184,92,42,.15) 0%, transparent 70%);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  padding: 2.2rem 1.8rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}

.why-card:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(184,92,42,.5);
  transform: translateY(-4px);
}

.why-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(184,92,42,.35);
  line-height: 1;
  margin-bottom: 1rem;
}

.why-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.why-card p {
  color: rgba(255,255,255,.55);
  font-size: 0.92rem;
  line-height: 1.75;
  margin: 0;
}


/* -----------------------------------------------------
   11. CONTACT SECTION
   ----------------------------------------------------- */
#contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
  color: var(--ink);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.ci-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rust-light);
  border-radius: var(--radius-sm);
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

.contact-item a:hover { color: var(--rust); }

.contact-note {
  margin-top: 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.contact-note a { color: var(--rust); font-weight: 600; }
.contact-note a:hover { text-decoration: underline; }

/* Form */
.contact-form {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(184,92,42,.12);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  opacity: 0.7;
  margin: 0;
}


/* -----------------------------------------------------
   12. FOOTER
   ----------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding-top: 5rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.75rem 4rem;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.9rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  max-width: 280px;
  margin-bottom: 1.4rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.footer-socials a:hover {
  background: var(--rust);
  border-color: var(--rust);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col ul li,
.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.55);
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--white); }

.footer-contact-list li { line-height: 1.5; }

.footer-contact-list a {
  color: rgba(255,255,255,.55);
}

.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding: 1.4rem 1.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,.3);
}


/* -----------------------------------------------------
   13. SCROLL FADE-IN ANIMATION
   ----------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* -----------------------------------------------------
   14. RESPONSIVE — Tablet (max 960px)
   ----------------------------------------------------- */
@media (max-width: 960px) {
  :root { --section-gap: 5rem; }

  .about-grid  { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { max-width: 400px; margin: 0 auto; }

  .menu-grid   { grid-template-columns: repeat(2, 1fr); }
  .why-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: 1 / -1; }
}


/* -----------------------------------------------------
   15. RESPONSIVE — Mobile (max 640px)
   ----------------------------------------------------- */
@media (max-width: 640px) {
  :root { --section-gap: 4rem; }

  /* Nav: hide links, show brand + CTA only */
  .nav-links  { display: none; }
  .nav-inner  { padding: 0 1.25rem; }

  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hstat-divider { display: none; }
  .hstat { padding: 0.8rem 1.5rem; }

  .menu-grid    { grid-template-columns: 1fr; }
  .why-grid     { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row     { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }

  .about-tag    { position: static; margin-top: 1rem; display: inline-block; }
}
