/* ============================================
   Delpuffo — Design System
   ============================================ */

:root {
  --color-primary: #cf4503;
  --color-primary-dark: #a13603;
  --color-primary-light: #f2823f;
  --color-cream: #fff8f0;
  --color-cream-deep: #fbead9;
  --color-ink: #2a1a10;
  --color-ink-soft: #5c4535;
  --color-white: #ffffff;
  --color-border: rgba(42, 26, 16, 0.1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(42, 26, 16, 0.08);
  --shadow-md: 0 12px 32px rgba(42, 26, 16, 0.14);

  --container-w: 1120px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--color-ink); }
p { margin: 0 0 1em; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-primary);
  margin-bottom: 0.9em;
}

.section {
  padding: clamp(56px, 8vw, 108px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--cream { background: var(--color-cream-deep); }
.section--dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--color-white); }

.section-head {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.section-head p { color: var(--color-ink-soft); font-size: 1.05rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn--on-dark {
  background: var(--color-white);
  color: var(--color-primary);
}
.btn--on-dark:hover { background: var(--color-cream-deep); }
.btn--on-dark-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--color-white);
}
.btn--on-dark-outline:hover { border-color: var(--color-white); background: rgba(255,255,255,0.1); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  max-width: var(--container-w);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.brand img { height: 40px; width: 40px; border-radius: 8px; }

.nav-desktop {
  display: none;
}
.nav-desktop ul { display: flex; gap: 30px; }
.nav-desktop a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color .15s ease;
}
.nav-desktop a:hover, .nav-desktop a[aria-current="page"] {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; font-size: 0.9rem; }
.header-actions > .btn { display: none; }
@media (min-width: 560px) {
  .header-actions > .btn { display: inline-flex; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 12px 6px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.nav-mobile .btn { margin-top: 12px; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: min(86vh, 780px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42,20,8,0.35) 0%, rgba(42,20,8,0.35) 40%, rgba(20,10,4,0.85) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 64px 24px 64px;
  max-width: var(--container-w);
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 15ch;
  margin-bottom: 0.3em;
}
.hero p.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 46ch;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.8em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-hero {
  padding: clamp(64px, 10vw, 96px) 0 clamp(40px, 6vw, 56px);
  background: var(--color-cream-deep);
  text-align: center;
}
.page-hero .eyebrow { }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); max-width: 20ch; margin: 0 auto 0.4em; }
.page-hero p { max-width: 56ch; margin: 0 auto; color: var(--color-ink-soft); font-size: 1.08rem; }

/* ---- Story / two column ---- */
.split {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--reverse { direction: rtl; }
  .split--reverse > * { direction: ltr; }
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.split .btn { margin-top: 8px; }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* ---- Pricing ---- */
.price-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card--featured {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}
.price-card--featured h3, .price-card--featured .price-card__price { color: var(--color-white); }
.price-card--featured .price-card__desc { color: rgba(255,255,255,0.88); }
.price-card__price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--color-primary);
}
.price-card__price span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; opacity: 0.75; }
.price-card ul { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; }
.price-card li svg { flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; }

.addon-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .addon-grid { grid-template-columns: repeat(3, 1fr); } }
.addon-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--color-border);
}
.addon-card__price { color: var(--color-primary); font-weight: 700; margin-top: 10px; }

.delivery-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.delivery-table th, .delivery-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.delivery-table th { background: var(--color-cream-deep); font-family: var(--font-display); font-weight: 600; }
.delivery-table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }

/* ---- FAQ ---- */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-left: 16px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding-bottom: 18px; color: var(--color-ink-soft); margin: 0; }

/* ---- Gallery ---- */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
  .gallery a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery a:nth-child(4) { grid-column: span 2; }
}
.gallery a {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100%;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1/1;
  transition: transform 0.35s ease;
}
@media (min-width: 700px) { .gallery img { aspect-ratio: auto; } }
.gallery a:hover img { transform: scale(1.06); }

/* ---- Forms ---- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}
.form-row { display: grid; gap: 20px; margin-bottom: 20px; }
@media (min-width: 600px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--color-primary); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
  color: var(--color-ink);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
}
.field textarea { resize: vertical; min-height: 110px; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-cream);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}
.checkbox-pill input { accent-color: var(--color-primary); width: 16px; height: 16px; }
.form-note { font-size: 0.85rem; color: var(--color-ink-soft); margin-top: 14px; text-align: center; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}
.form-status.is-success { display: block; background: #e7f5ea; color: #21603a; }
.form-status.is-error { display: block; background: #fbe9e5; color: #9c2b0f; }

/* ---- Contact strip ---- */
.contact-strip {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  text-align: center;
}
@media (min-width: 760px) { .contact-strip { grid-template-columns: repeat(3, 1fr); text-align: left; } }
.contact-strip .card { display: flex; flex-direction: column; gap: 6px; }
.contact-strip .card strong { font-family: var(--font-display); font-size: 1.1rem; }

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.cta-banner h2 { color: var(--color-white); }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 50ch; margin: 0 auto 26px; }
.cta-banner__actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.82);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 36px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.2rem; color: var(--color-white); margin-bottom: 10px; }
.footer-brand img { height: 34px; width: 34px; border-radius: 7px; }
.site-footer h4 { color: var(--color-white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.site-footer a:hover { color: var(--color-white); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
}
.social-icon:hover { border-color: var(--color-white); }
.social-icon svg { width: 18px; height: 18px; }

/* ---- Legal pages ---- */
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--color-ink-soft); }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
