/* Darellouz — bakery landing page */

:root {
  --cream: #faf4ea;
  --paper: #fffdf8;
  --ink: #2a1f19;
  --muted: #6b5a4e;
  --crust: #c1663a;
  --crust-dark: #9c4e2a;
  --sage: #7a8b6f;
  --line: rgba(42, 31, 25, 0.14);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); line-height: 1.02; }
h1 em { font-style: italic; color: var(--crust); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.18rem; line-height: 1.3; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crust-dark);
  font-weight: 500;
  margin: 0 0 18px;
}

.lede { font-size: 1.06rem; color: var(--muted); max-width: 34ch; margin: 26px 0 0; }
.body { color: var(--muted); max-width: 40ch; margin: 22px 0 0; }
.note { font-size: 0.82rem; color: var(--muted); opacity: 0.85; margin-top: 22px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  font-weight: 400;
  transition: background 0.25s ease, transform 0.25s ease;
}
.btn:hover { background: var(--crust-dark); transform: translateY(-1px); }

.btn-small { padding: 10px 20px; font-size: 0.78rem; }

.link-arrow {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.link-arrow:hover { border-color: var(--crust); color: var(--crust-dark); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 244, 234, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 74px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo-dot { color: var(--crust); }

.nav { display: flex; gap: 30px; font-size: 0.86rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 7vw, 92px) 0 clamp(52px, 7vw, 96px); }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 40px;
  margin: 46px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-meta dt {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.02rem; }

.hero-figure,
.bake-figure,
.visit-figure { margin: 0; }

/* ---------- illustrated panels ---------- */

.art-panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
}

.art-panel svg {
  width: 58%;
  height: auto;
  opacity: 0.9;
}

/* real photo fills the panel; the illustration below stays as a fallback */
.art-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.art-panel.has-photo svg,
.art-panel.has-photo::before { display: none; }

.art-panel.has-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  background: linear-gradient(to top, rgba(28, 18, 12, 0.62), rgba(28, 18, 12, 0));
  pointer-events: none;
}

.art-panel.has-photo .art-label {
  z-index: 2;
  color: rgba(255, 250, 242, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.art-panel::before {
  content: "";
  position: absolute;
  inset: 12% 12% auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.art-label {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(42, 31, 25, 0.55);
}

.art-wheat {
  aspect-ratio: 4 / 5;
  border-radius: 240px 240px 6px 6px;
  background: linear-gradient(165deg, #f6e7d4 0%, #eed6ba 55%, #e6c9a7 100%);
}

.art-loaf {
  aspect-ratio: 4 / 5;
  border-radius: 6px 6px 200px 200px;
  background: linear-gradient(165deg, #efe8db 0%, #e4d9c6 60%, #d9cbb4 100%);
}

.art-coffee {
  aspect-ratio: 1 / 1;
  border-radius: 200px 200px 6px 6px;
  background: linear-gradient(165deg, #eeeadb 0%, #e3e3cf 55%, #d6d8be 100%);
}

.art-coffee svg { width: 52%; }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--paper);
}

.marquee-track {
  display: flex;
  gap: 26px;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  animation: slide 42s linear infinite;
  width: max-content;
}
.marquee-track span:nth-child(even) { color: var(--crust); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 8vw, 112px) 0; }

.section-tint {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bake-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.price-list {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.price-list li span:first-child { font-family: var(--serif); font-size: 1.06rem; }
.price-list li span:last-child { color: var(--crust-dark); font-variant-numeric: tabular-nums; }
.dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-4px);
}

/* story */

.story-head { max-width: 34ch; margin-bottom: clamp(40px, 5vw, 64px); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px 34px;
}
.card-num {
  font-family: var(--serif);
  font-size: 0.86rem;
  color: var(--crust);
  letter-spacing: 0.1em;
}
.card h3 { margin: 14px 0 12px; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

/* visit */

.visit-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 32px;
  margin-top: 42px;
}
.visit-grid h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crust-dark);
  font-weight: 500;
  margin-bottom: 10px;
}
.visit-grid p { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.75; }
.visit-grid a { border-bottom: 1px solid var(--line); }
.visit-grid a:hover { color: var(--ink); border-color: var(--crust); }

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--cream);
  padding: 54px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 32px;
}
.footer-logo { font-family: var(--serif); font-size: 1.4rem; margin: 0; }
.footer-note { margin: 0; color: rgba(250, 244, 234, 0.66); font-size: 0.9rem; }
.footer-copy {
  margin: 0 0 0 auto;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 244, 234, 0.5);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-inner,
  .bake-inner,
  .visit-inner { grid-template-columns: 1fr; }

  .hero-copy { order: 2; }
  .hero-figure { order: 1; }
  .art-wheat { aspect-ratio: 4 / 3; border-radius: 160px 160px 6px 6px; }
  .art-loaf,
  .art-coffee { max-width: 440px; }

  .story-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav, .header-inner .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 28px 18px;
    font-size: 1rem;
  }
  .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open a:last-child { border-bottom: 0; }

  .hero { padding-top: 34px; }
  .hero-meta { gap: 28px; }
  .visit-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
