/* Public site of the platform: landing page and order form. */
:root {
  --brand: #c8553d;
  --brand-dark: #a8432e;
  --ink: #1f1a17;
  --soft: #f7f4f0;
  --line: #e7e1d9;
  --radius: 14px;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
a { color: var(--brand); }

.btn-primary-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; border-radius: 999px; padding-inline: 1.4rem; }
.btn-primary-brand:hover, .btn-primary-brand:focus { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-secondary { border-radius: 999px; }
.btn-icon { border: 0; background: transparent; color: #8a817a; padding: .35rem .5rem; }
.btn-icon:hover { color: #c0392b; }

/* Navigation */
.platform-nav { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.platform-nav .navbar-brand { font-weight: 700; font-size: 1.3rem; }
.platform-nav .navbar-brand i { color: var(--brand); }
.platform-nav .nav-link { color: #4a433e; font-weight: 500; }
.platform-nav .navbar-toggler { border: 0; font-size: 1.6rem; }

/* Landing */
.landing-hero { padding: 5rem 0 4rem; }
.kicker { color: var(--brand); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; }
.display-title { font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1rem; }
.landing-section { padding: 4.5rem 0; }
.bg-soft { background: var(--soft); }
.section-heading { font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 1rem; }

.step-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; height: 100%; }
.step-card h3 { font-size: 1.15rem; font-weight: 600; margin: .75rem 0 .5rem; }
.step-card p { color: #6b625c; margin: 0; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.mock-browser { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(31, 26, 23, .12); }
.mock-bar { display: flex; gap: 6px; padding: .6rem .8rem; background: #f1ede8; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d8d0c7; }
.mock-hero { background: linear-gradient(135deg, #2b2420, #1f1a17); color: #fff; padding: 3rem 1.5rem; text-align: center; }
.mock-title { font-family: Georgia, serif; font-size: 1.9rem; font-weight: 700; }
.mock-sub { opacity: .75; margin-top: .25rem; }
.mock-btn { width: 120px; height: 34px; border-radius: 999px; background: var(--brand); margin: 1.25rem auto 0; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; padding: 1rem; background: #fbf9f6; }
.mock-cards div { height: 80px; border-radius: 10px; background: #efe7dd; }

.theme-sample, .theme-option { text-align: center; }
.theme-swatch {
  display: flex; gap: 6px; justify-content: center; align-items: center;
  border-radius: 12px; padding: 1.1rem .5rem; border: 2px solid transparent;
}
.theme-swatch span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); }
.theme-name { font-weight: 600; font-size: .9rem; margin-top: .4rem; }

/* Business type cards */
.business-card {
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem;
  color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
a.business-card:hover { border-color: var(--brand); box-shadow: 0 12px 30px rgba(31, 26, 23, .08); transform: translateY(-2px); color: var(--ink); }
.business-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #fbeee9; color: var(--brand);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: .5rem;
}
.business-name { font-weight: 700; font-size: 1.25rem; }
.business-desc { color: #6b625c; flex: 1; }
.business-go { color: var(--brand); font-weight: 600; margin-top: .5rem; }
.business-card.is-soon { border-style: dashed; background: transparent; }
.business-card.is-soon .business-icon { background: var(--soft); color: #8a817a; }

/* Template gallery: a scaled-down live demo in each card */
.template-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; background: #fff; }
.template-thumb { display: block; position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft); border-bottom: 1px solid var(--line); }
.template-thumb iframe {
  position: absolute; top: 0; left: 0; border: 0; pointer-events: none;
  width: 1280px; height: 880px; transform: scale(.3); transform-origin: 0 0;
}
.template-body { padding: 1.25rem 1.5rem 1.5rem; }
.template-body .btn { white-space: nowrap; }

.chosen-template {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem;
  background: var(--soft); border-radius: 999px; padding: .45rem 1rem; margin-bottom: 1rem; font-size: .92rem;
}
.chosen-template > i { color: var(--brand); }

/* Order form */
.page-intro { padding: 3rem 0 1.5rem; }
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; background: #fff; }
.form-section h2 { font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.section-num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--brand);
  display: inline-grid; place-items: center; font-size: .9rem;
}
.section-help { color: #6b625c; margin-bottom: 1.25rem; }
.subsection { font-size: 1rem; font-weight: 600; margin: 1.75rem 0 .75rem; }
.form-label { font-weight: 500; font-size: .92rem; }
.req { color: var(--brand); margin-left: .2rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(200, 85, 61, .2); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
/* The summary div is always rendered; hide it until there are errors. */
.validation-summary-valid { display: none; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.theme-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.theme-option { cursor: pointer; }
.theme-option input:checked + .theme-swatch { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200, 85, 61, .25); }
.theme-option input:focus-visible + .theme-swatch { outline: 2px solid var(--brand); outline-offset: 2px; }

.upload-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  text-align: center; min-height: 150px; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 1rem; cursor: pointer; color: #6b625c; font-size: .85rem;
  background-size: cover; background-position: center; position: relative; overflow: hidden;
}
.upload-box i { font-size: 1.6rem; color: var(--brand); }
.upload-box strong { color: var(--ink); font-size: .95rem; }
.upload-box:hover { border-color: var(--brand); }
.upload-box.has-file { border-style: solid; border-color: var(--brand); color: #fff; }
.upload-box.has-file::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.upload-box.has-file > * { position: relative; color: #fff; }
.upload-box:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

.category-block { background: var(--soft); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.category-name { font-weight: 600; }
.dish-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .85rem; margin-bottom: .75rem; }
.file-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .8rem; cursor: pointer;
  max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-chip:hover, .file-chip:focus-within { border-color: var(--brand); color: var(--brand); }
.file-chip.has-file { background: #fbeee9; border-color: var(--brand); color: var(--brand-dark); }

.thanks-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #e6f1e7; color: #2f6b38;
  display: grid; place-items: center; font-size: 2rem; margin: 0 auto 1rem;
}
.order-number { font-size: 1.8rem; font-weight: 700; letter-spacing: .06em; color: var(--brand); }

/* Sign-in page */
.auth-card { max-width: 420px; margin: 4rem auto; }

.platform-footer { border-top: 1px solid var(--line); padding: 1.5rem 0; color: #6b625c; }
.footer-link { color: #6b625c; text-decoration: none; }
.footer-link:hover { color: var(--brand); }
