/* Layout follows the familiar OpenTable private dining page (details left, contact card right),
   with Amelia's own logo and colors. */
:root {
  --ink: #2d333f;
  --muted: #6f737b;
  --line: #d8d9db;
  --soft: #f7f7f7;
  --red: #b3263a;
  --red-dark: #8a1c2c;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Header */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 24px; border-bottom: 1px solid #ebebec; background: #fff;
}
.logo { height: 44px; width: auto; }
.topbar nav { display: flex; gap: 6px; }
.topbar nav a { text-decoration: none; font-size: .9rem; padding: 6px 10px; border-radius: 8px; }
.topbar nav a:hover { background: #ebebec; }

/* Two-column page */
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding: 40px 24px 64px;
}
.kicker { margin: 0; color: var(--muted); font-size: 1.05rem; }
h1 { margin: 2px 0 12px; font-size: 2.4rem; line-height: 1.1; }
.facts { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink); }
.facts li::before { content: "•"; color: var(--red); margin-right: 8px; }
.hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

.about { padding: 32px 0; border-bottom: 1px solid var(--line); }
.about h2, .spaces h2 { font-size: 1.6rem; margin: 0 0 12px; }
.about p { margin: 0; color: var(--ink); font-size: 1.05rem; }

.spaces { padding-top: 32px; }
.space { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.space img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.space h3 { margin: 0 0 2px; font-size: 1.3rem; }
.space .meta { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.space p { margin: 0; }

/* Contact card (sticky, like OpenTable's) */
.form-card {
  position: sticky; top: 24px; align-self: start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06); background: #fff;
}
.form-card h2 { margin: 0 0 8px; font-size: 1.3rem; text-align: center; }
.mobile-title { display: none; margin: 0 0 12px; font-size: 1.6rem; font-weight: 700; text-align: center; line-height: 1.2; }
.form-sub { margin: 0 0 24px; color: var(--ink); font-size: .95rem; }

form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 6px; font-size: .9rem; color: var(--ink); }
.opt { color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: 14px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: var(--red); }
::placeholder { color: #8d9096; }
/* iPhone Safari gives date fields a fixed width that spills into the next column */
.row > * { min-width: 0; }
input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; min-height: 50px; background: #fff;
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
select { min-height: 50px; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232d333f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
select:invalid, select:has(option[value=""]:checked) { color: #8d9096; }
.phone { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.phone .flag { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line); white-space: nowrap; font-size: .95rem; }
.phone input { border: 0; border-radius: 0; }
.phone:focus-within { outline: 2px solid var(--red); outline-offset: -1px; }
.phone input:focus { outline: none; }
.fine { margin: 16px 0 0; font-size: .85rem; color: var(--muted); }
.check { display: flex; align-items: center; gap: 10px; }
.check input { width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }

.btn {
  display: inline-flex; justify-content: center; align-items: center; width: 100%;
  background: var(--red); color: #fff; border: 0; border-radius: 4px; padding: 16px;
  font-family: inherit; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--red-dark); }

.footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 24px 16px 40px; border-top: 1px solid #ebebec; }

/* Thank-you page */
.thanks { min-height: calc(100vh - 65px); display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.thanks > div { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.thanks h1 { font-size: clamp(1.8rem, 4vw, 2.2rem); margin: 0 0 8px; }
.thanks p { max-width: 460px; margin: 0 auto 24px; }
.thanks .btn { width: auto; padding: 14px 28px; }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 32px; padding: 24px 16px 48px; }
  .form-card { position: static; order: -1; padding: 24px; }
  .mobile-title { display: block; }
  .content { order: 1; }
  .content .hero-img, .content .kicker, .content h1, .content .facts { display: none; }
  .space { grid-template-columns: 1fr; gap: 12px; }
  .topbar nav { display: none; }
}
