/* PonyPals Party Rides
   Flat, print-inspired palette: paper, ink, barn red, pasture green.
   No gradients, no emoji icons, minimal shadows. */

:root {
  --paper: #f6f1e7;
  --paper-2: #ece4d3;
  --card: #fffdf8;
  --ink: #2b2420;
  --ink-soft: #5e544b;
  --ink-faint: #8a7f74;
  --line: #d8cdb9;
  --line-strong: #bfb29b;

  --barn: #9b3b26;
  --barn-dark: #7b2c1b;
  --barn-tint: #f3e2da;
  --pasture: #3e5a3b;
  --pasture-dark: #2f462d;
  --hay: #e2c88e;

  --radius: 4px;
  --radius-lg: 6px;

  --serif: 'Young Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Legacy tokens still referenced by the admin page */
  --border-color: var(--line);
  --radius-sm: var(--radius);
  --radius-md: var(--radius-lg);
  --shadow-sm: 0 1px 2px rgba(43, 36, 32, 0.06);
  --shadow-md: 0 2px 6px rgba(43, 36, 32, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { color: var(--ink-soft); }

a { color: var(--barn); text-underline-offset: 3px; }
a:hover { color: var(--barn-dark); }

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

:focus-visible {
  outline: 2px solid var(--barn);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--paper-2); }

.section-intro {
  max-width: 620px;
  margin-bottom: 44px;
}

.section-intro h2 { margin-bottom: 12px; }
.section-intro p { font-size: 1.05rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--barn);
  color: #fff;
}
.btn-primary:hover { background: var(--barn-dark); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }

.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

.btn[disabled] { opacity: 0.6; cursor: wait; }

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

/* ---------- Top strip & header ---------- */

.top-strip {
  background: var(--pasture);
  color: #f1ead9;
  font-size: 0.88rem;
  padding: 8px 0;
  text-align: center;
}
.top-strip a { color: #fff; font-weight: 700; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { color: var(--ink); }

.logo-mark { color: var(--barn); flex-shrink: 0; }
.logo-mark .hole { fill: var(--paper); }

.logo-custom {
  display: none;
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-custom.loaded { display: block; }

.logo-name {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.logo-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 3px;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--barn); }

/* ---------- Hero ---------- */

.hero { padding: 72px 0 88px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }

.hero-lede {
  font-size: 1.15rem;
  max-width: 34em;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  list-style: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.hero-facts li:not(:last-child)::after {
  content: "·";
  margin: 0 12px;
  color: var(--line-strong);
}

.hero-facts strong { color: var(--ink); }

/* ---------- Photo frames (real photos drop in at /images/*.jpg) ---------- */

.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--coat, var(--pasture));
  aspect-ratio: 4 / 3;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px 22px;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
}

.photo-fallback.dark { color: rgba(43, 36, 32, 0.55); }

.hero-photo { aspect-ratio: 5 / 6; --coat: var(--pasture); }

.hero-photo .photo-fallback {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  padding: 32px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--hay);
}

.hero-photo .photo-fallback small {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #c9d3bf;
  margin-top: 14px;
}

.photo-caption {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* ---------- How it works ---------- */

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.split > header h2 { margin-bottom: 12px; }

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.1;
  color: var(--barn);
}

.steps h3 { font-size: 1.2rem; margin-bottom: 4px; }

/* ---------- Ponies ---------- */

.pony-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 40px;
}

.pony h3 { margin: 18px 0 4px; font-size: 1.6rem; }

.pony-meta {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.pony p:not(.pony-meta) { margin-bottom: 12px; }

/* ---------- Prices ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table thead th {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper);
}

.price-table tbody tr:last-child td,
.price-table tbody tr:last-child th { border-bottom: none; }

.price-table .pkg-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  display: block;
}

.price-table .pkg-desc {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 28em;
  margin-top: 2px;
}

.price-table .pkg-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--pasture);
}

.price-table .price {
  font-family: var(--serif);
  font-size: 1.5rem;
  white-space: nowrap;
}

.price-table td:last-child { text-align: right; }

.prices-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 48px;
}

.prices-extra h3 { margin-bottom: 14px; }

.included-list {
  list-style: none;
  columns: 1;
}

.included-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--ink-soft);
}

.included-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--pasture);
}

/* Menu-style add-on list with dotted leaders */
.menu-list { list-style: none; }

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 0;
}

.menu-list .item { color: var(--ink); }
.menu-list .item small { display: block; color: var(--ink-faint); font-size: 0.85rem; }

.menu-list .leader {
  flex: 1;
  border-bottom: 1.5px dotted var(--line-strong);
  transform: translateY(-4px);
  min-width: 20px;
}

.menu-list .cost { font-weight: 700; white-space: nowrap; }

/* ---------- Booking ---------- */

.booking {
  background: var(--paper);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 56px;
  align-items: start;
}

.booking-aside {
  position: sticky;
  top: 104px;
}

.booking-aside h2 { margin-bottom: 14px; }
.booking-aside p { margin-bottom: 14px; }

.aside-note {
  margin-top: 26px;
  padding: 16px 18px;
  border-left: 3px solid var(--hay);
  background: rgba(255, 253, 248, 0.6);
  font-size: 0.95rem;
}

.aside-phone {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-top: 4px;
}

.booking-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.booking-form { padding: 36px 40px; }

.booking-form fieldset {
  border: none;
  padding: 0 0 30px;
  margin: 0 0 30px;
  border-bottom: 1px solid var(--line);
}

.booking-form legend {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 16px;
  padding: 0;
}

.field-help {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin: -8px 0 14px;
}

.row { display: grid; gap: 16px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.row .field { margin-bottom: 0; }
.row + .field, .row + .row { margin-top: 16px; }

.field label,
.field .label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.field .optional {
  font-weight: 400;
  color: var(--ink-faint);
}

.input {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.input:hover { border-color: var(--ink-faint); }
.input:focus { outline: none; border-color: var(--barn); box-shadow: 0 0 0 3px var(--barn-tint); }
.input::placeholder { color: #a99e91; }
.input[aria-invalid="true"] { border-color: var(--barn); background: #fdf6f2; }
.confirmation:focus { outline: none; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235e544b' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}

/* Package choice rows */
.choice-list { display: flex; flex-direction: column; gap: 10px; }

.choice {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.choice:hover { border-color: var(--line-strong); }

.choice:has(input:checked) {
  border-color: var(--barn);
  background: #fdf6f2;
}

.choice input {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--barn);
}

.choice-title { font-weight: 700; display: block; }
.choice-desc { font-size: 0.9rem; color: var(--ink-soft); }
.choice-price { font-weight: 700; white-space: nowrap; }

/* Simple checkbox rows (ponies) */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}

.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--barn);
}

.check small { color: var(--ink-faint); }

/* The main "tell us about your party" box */
.request-box {
  min-height: 160px;
  resize: vertical;
  line-height: 1.55;
}

.form-error {
  display: none;
  margin-bottom: 20px;
  padding: 12px 16px;
  border: 1.5px solid #c9826f;
  border-radius: var(--radius);
  background: var(--barn-tint);
  color: var(--barn-dark);
  font-size: 0.95rem;
}

.form-error.visible { display: block; }

.form-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.total-label {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.total-amount {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.1;
}

.total-detail { font-size: 0.9rem; color: var(--ink-soft); }

.submit-col { text-align: right; }
.submit-col .btn { padding: 15px 30px; }
.submit-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 8px; }

/* Confirmation */
.confirmation {
  display: none;
  padding: 48px 40px;
}

.confirmation.active { display: block; }

.confirmation h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.confirmation .ref {
  display: inline-block;
  margin: 8px 0 26px;
  padding: 6px 12px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--ink);
}

.recap {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 24px;
  padding: 22px 0;
  margin-bottom: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recap dt { color: var(--ink-faint); font-size: 0.92rem; }
.recap dd { color: var(--ink); }
.recap .notes { white-space: pre-line; font-style: italic; color: var(--ink-soft); }

/* ---------- Care / safety ---------- */

.care-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.care-cols h3 { margin-bottom: 10px; }
.care-cols p + p { margin-top: 12px; }

/* ---------- Reviews ---------- */

.reviews {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

.reviews-side { display: flex; flex-direction: column; gap: 32px; }

.quote blockquote p {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote.big blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  line-height: 1.35;
}

.quote figcaption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--ink-faint);
}

.quote figcaption strong { color: var(--ink); font-weight: 700; }

.quote:not(.big) {
  padding-left: 20px;
  border-left: 3px solid var(--line-strong);
}

/* ---------- FAQ ---------- */

.faq-list details {
  border-top: 1px solid var(--line);
}
.faq-list details:last-child { border-bottom: 1px solid var(--line); }

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--barn);
}

.faq-list details[open] summary::after { content: "\2212"; }

.faq-list details p { padding: 0 36px 20px 0; }

/* ---------- Special events / social ---------- */

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

.social-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s;
}

.social-card:hover {
  border-color: var(--barn);
  color: var(--ink);
}

.social-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.social-handle {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.social-cta {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--barn);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- Photo gallery (/photos) ---------- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item .photo {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 48px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--ink-soft);
}

.gallery-empty h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #cfc6b8;
  padding: 64px 0 28px;
  font-size: 0.95rem;
}

.site-footer a { color: #f1ead9; }
.site-footer a:hover { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #463d37;
}

.site-footer .logo { color: #f1ead9; margin-bottom: 14px; }
.site-footer .logo-mark { color: var(--hay); }
.site-footer .logo-mark .hole { fill: var(--ink); }
.site-footer .logo-sub { color: #9d9285; }
.site-footer p { color: #b5ab9d; }

.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9d9285;
  margin-bottom: 12px;
}

.footer-links { list-style: none; }
.footer-links li { padding: 3px 0; }
.footer-links a { text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #8f8579;
}

.footer-bottom a { color: #8f8579; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid,
  .split,
  .booking-grid,
  .reviews,
  .prices-extra,
  .care-cols { grid-template-columns: 1fr; gap: 40px; }

  .booking-aside { position: static; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .social-grid { grid-template-columns: 1fr; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .main-nav { display: none; }
  .site-header .container { height: 64px; }
  .pony-grid,
  .photo-gallery { grid-template-columns: 1fr; gap: 24px; }
  .row-2, .row-3, .check-grid { grid-template-columns: 1fr; }
  .booking-form, .confirmation { padding: 26px 20px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .submit-col { text-align: left; }
  .submit-col .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Stack the price table into rows */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td, .price-table th { display: block; width: 100%; }
  .price-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .price-table tbody tr:last-child { border-bottom: none; }
  .price-table th, .price-table td { border: none; padding: 6px 18px; }
  .price-table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--ink-faint);
    font-size: 0.88rem;
  }
  .price-table td:last-child { text-align: left; padding-bottom: 14px; }
}

@media print {
  .site-header, .top-strip, .site-footer, .booking-aside { display: none; }
}
