/* ─── SHARED SECTION-PAD (matches index.css) ─── */
.section-pad {
  padding: 7rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* ─── PAGE HEADER ─── */
.page-header {
  padding: 8rem 3rem 2.5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.page-header .section-label {
  font-family: 'Cutive', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 500;
}

.page-header h1 {
  font-family: 'Cutive', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--dark-teal);
  margin-bottom: 1.25rem;
}

.page-header h1 .accent {
  position: relative;
  display: inline-block;
}

.page-header h1 .accent::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 8px;
  background: var(--gold);
  opacity: 0.3;
  border-radius: 4px;
  z-index: -1;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--teal);
  line-height: 1.65;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

/* ─── GALLERY STRIP ─── */
.gallery-strip {
  padding: 2.5rem 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 0 3rem;
  width: max-content;
  margin: 0 auto;
}

.gallery-track img {
  width: 240px;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  flex-shrink: 0;
}

/* ─── BUILDER SETUP ─── */
.builder-setup {
  padding: 3.5rem 3rem 0;
}

.builder-setup-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: white;
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(26, 65, 70, 0.06);
}

.builder-setup label {
  display: block;
  font-family: 'Cutive', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 1rem;
}

.builder-setup input {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--dark-teal);
  text-align: center;
  width: 140px;
  padding: 0.6rem 1rem;
  border: 2px solid var(--teal);
  border-radius: 12px;
  background: var(--light-cream);
}

.builder-setup input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.builder-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 300;
}

/* ─── MENU ─── */
.menu-section .section-pad {
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}

.menu-section .section-label {
  font-family: 'Cutive', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 500;
}

.menu-section h2 {
  font-family: 'Cutive', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-teal);
  margin-bottom: 2rem;
}

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

.menu-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.menu-card-wide {
  grid-column: 1 / -1;
}

.menu-card {
  background: white;
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(26, 65, 70, 0.06);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.menu-card.selected {
  border-color: var(--teal);
}

.menu-card h3 {
  font-family: 'Cutive', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 0.6rem;
}

.menu-card-desc {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--dark-teal);
  font-weight: 300;
  margin-bottom: 0.9rem;
}

.menu-card-meta {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.add-btn {
  margin-top: auto;
  align-self: flex-start;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal);
  background: transparent;
  border: 1.5px solid var(--teal);
  border-radius: 100px;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.add-btn:hover {
  background: rgba(41, 114, 114, 0.08);
}

.menu-card.selected .add-btn {
  background: var(--teal);
  color: var(--off-white);
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  text-align: center;
}

.how-it-works .section-label {
  font-family: 'Cutive', serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 1rem;
  font-weight: 500;
}

.how-it-works h2 {
  font-family: 'Cutive', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.step-num {
  font-family: 'Cutive', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--off-white);
  background: var(--teal);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step h3 {
  font-family: 'Cutive', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 0.6rem;
}

.step p {
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 300;
  color: var(--dark-teal);
}

/* ─── CTA ─── */
.cta-section {
  background: var(--dark-teal);
  color: var(--cream);
  text-align: center;
  position: relative;
}

.cta-section .section-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.cta-section .section-label {
  color: var(--gold);
}

.cta-section h2 {
  font-family: 'Cutive', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--cream);
}

.cta-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--cream);
  color: var(--dark-teal);
  padding: 1.1rem 2.5rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* ─── STICKY QUOTE BAR ─── */
.quote-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--dark-teal);
  color: var(--cream);
  box-shadow: 0 -6px 30px rgba(26, 65, 70, 0.25);
}

.quote-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.9rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.quote-bar-info {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}

#quoteBarSummary {
  font-size: 0.9rem;
  opacity: 0.8;
}

.quote-bar-total-label {
  font-size: 1rem;
}

#quoteBarTotal {
  font-family: 'Cutive', serif;
  font-size: 1.2rem;
  color: var(--gold);
}

.quote-bar-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-teal);
  background: var(--cream);
  border: none;
  border-radius: 100px;
  padding: 0.8rem 2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quote-bar-btn:hover {
  background: white;
  transform: translateY(-1px);
}

/* Keep the footer reachable above the fixed bar */
body.quote-bar-visible {
  padding-bottom: 76px;
}

/* ─── QUOTE OVERLAY ─── */
.quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 65, 70, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.quote-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.quote-panel {
  position: relative;
  background: var(--light-cream);
  border-radius: 24px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
}

.quote-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--dark-teal);
  cursor: pointer;
  padding: 0.25rem;
}

.quote-panel h2 {
  font-family: 'Cutive', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark-teal);
  margin-bottom: 1.5rem;
}

.quote-lines {
  list-style: none;
  margin-bottom: 1.25rem;
}

.quote-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(26, 65, 70, 0.12);
  font-size: 0.95rem;
}

.quote-lines .line-name {
  font-weight: 500;
}

.quote-lines .line-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 300;
}

.quote-lines .line-amount {
  white-space: nowrap;
  font-weight: 600;
}

.quote-total {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.quote-total strong {
  font-family: 'Cutive', serif;
  font-size: 1.3rem;
  color: var(--dark-teal);
}

.quote-custom-note {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

#quoteForm {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.quote-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-field:nth-child(1),
.quote-field:nth-child(5) {
  grid-column: 1 / -1;
}

.quote-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-teal);
}

.quote-field input {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--dark-teal);
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(26, 65, 70, 0.25);
  border-radius: 10px;
  background: white;
}

.quote-field input:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.quote-error {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--amber);
}

.quote-submit {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  background: var(--teal);
  border: none;
  border-radius: 100px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.quote-submit:hover {
  background: var(--dark-teal);
}

.quote-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.quote-disclaimer {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 300;
  text-align: center;
}

.quote-success {
  text-align: center;
  padding: 2rem 0;
}

.quote-success h3 {
  font-family: 'Cutive', serif;
  font-size: 1.5rem;
  color: var(--dark-teal);
  margin-bottom: 0.75rem;
}

.quote-success p {
  color: var(--teal);
  line-height: 1.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .menu-grid,
  .menu-grid-three {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-pad {
    padding: 4rem 1.5rem;
  }

  .menu-section .section-pad {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
  }

  .builder-setup {
    padding: 2.5rem 1.5rem 0;
  }

  .gallery-track {
    padding: 0 1.5rem;
  }

  .quote-bar-inner {
    padding: 0.75rem 1.25rem;
  }

  #quoteForm {
    grid-template-columns: 1fr;
  }

  .quote-panel {
    padding: 2rem 1.5rem;
  }

  .cta-section .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  body.quote-bar-visible {
    padding-bottom: 110px;
  }
}
