/* Totes My Goat Rentals — global styles
   Palette sampled from the logo. */
:root {
  --spruce: #22403f;      /* logo outline + "RENTALS" ink */
  --spruce-2: #2c5552;
  --tote: #58a84f;        /* tote body green */
  --tote-deep: #2c6655;   /* tote rim / shadow green */
  --tote-ink: #2f7a35;    /* green dark enough for text on white */
  --cream: #efe7c8;       /* goat coat */
  --horn: #c3a981;        /* horns */
  --paper: #fcfcf9;
  --tint: #f1f5ec;        /* pale green wash */
  --line: #d9e2d3;

  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(2rem, 4vw, 2.75rem);
  --step-4: clamp(2.75rem, 7.5vw, 5.5rem);

  --wrap: 72rem;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--spruce);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tote-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--tote); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--spruce); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1;
  padding: 0.8em 1.3em 0.75em;
  border-radius: 999px;
  border: 2px solid var(--spruce);
  background: var(--spruce);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { color: #fff; background: var(--spruce-2); transform: translateY(-1px); }
.btn-small { font-size: 1.05rem; padding: .6em 1.05em .55em; }
.btn-cream { background: var(--cream); border-color: var(--cream); color: var(--spruce); }
.btn-cream:hover { background: #fff; color: var(--spruce); }
.btn-green { background: var(--tote); border-color: var(--tote); color: var(--spruce); }
.btn-green:hover { background: #6cbd62; color: var(--spruce); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .6rem; }
.brand img { width: 200px; }
.nav { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 1.4rem; }
.nav a { color: var(--spruce); text-decoration: none; font-weight: 700; font-size: .98rem; }
.nav a:hover { color: var(--tote-ink); text-decoration: underline; }
.header-inner > .btn { margin-left: auto; }
@media (min-width: 60rem) {
  .nav { display: flex; }
  .header-inner > .btn { margin-left: 0; }
  .brand img { width: 230px; }
}
@media (max-width: 26rem) { .brand img { width: 160px; } .header-inner > .btn { font-size: .95rem; } }

/* HERO — the big tote */
.hero { padding-top: clamp(5.5rem, 12vw, 9rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.tote { position: relative; }
.tote-rim {
  position: relative;
  height: clamp(2.6rem, 5vw, 3.6rem);
  background: var(--tote-deep);
  border: 4px solid var(--spruce);
  border-radius: 14px;
  z-index: 2;
}
.tote-handle {
  position: absolute; left: 50%; top: 50%;
  width: clamp(5rem, 14vw, 9rem); height: 52%;
  transform: translate(-50%, -50%);
  background: var(--tote);
  border: 4px solid var(--spruce);
  border-radius: 9px;
}
.goat-peek {
  position: absolute;
  right: clamp(.5rem, 6vw, 4rem);
  bottom: calc(100% - 6px);
  width: clamp(150px, 26vw, 300px);
  animation: peek .9s cubic-bezier(.2,.9,.3,1.2) .25s both;
}
@keyframes peek { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .goat-peek { animation: none; } }

.tote-body {
  position: relative;
  margin-inline: clamp(.6rem, 2.5vw, 1.6rem);
  margin-top: -4px;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.4rem, 8vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
  background-color: var(--tote);
  /* molded ribs, like the logo tote */
  background-image:
    linear-gradient(90deg, transparent 0 4.5%, var(--spruce) 4.5% calc(4.5% + 4px), transparent 0),
    linear-gradient(90deg, transparent 0 calc(95.5% - 4px), var(--spruce) calc(95.5% - 4px) 95.5%, transparent 0),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.06));
  border: 4px solid var(--spruce);
  border-top: 0;
  border-radius: 0 0 26px 26px;
  clip-path: polygon(0 0, 100% 0, 97.5% 100%, 2.5% 100%);
  color: var(--spruce);
}
/* border is clipped on the slanted sides, so redraw them */
.tote-body::before, .tote-body::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--spruce);
}
.tote-body::before { left: 0; transform-origin: top; transform: skewX(-1.4deg); left: calc(2.5% * 0); }
.tote-body::after { right: 0; transform-origin: top; transform: skewX(1.4deg); }

.hero-kicker { font-weight: 700; font-size: var(--step-0); margin-bottom: .9rem; position: relative; }
.hero h1 {
  position: relative;
  font-size: var(--step-4);
  font-weight: 800;
  color: var(--paper);
  max-width: 13ch;
  text-shadow: 0 3px 0 var(--tote-deep);
  margin-bottom: 1.2rem;
}
.hero-lede { position: relative; font-size: var(--step-1); max-width: 44ch; color: #10302d; }
.hero-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.hero-link { color: var(--spruce); font-weight: 700; }
.hero-link:hover { color: #fff; }
@media (max-width: 40rem) {
  .tote-body { background-image: linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.06)); }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-dark { background: var(--spruce); color: var(--cream); }
.section-title { font-size: var(--step-3); font-weight: 800; margin-bottom: 2rem; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.section-head .section-title { margin-bottom: 0; }
.section-sub { margin: 0; font-weight: 700; color: var(--spruce-2); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 2.5rem; counter-reset: step; }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; border-top: 4px solid var(--spruce); padding-top: 1rem; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--tote);
  margin-bottom: .4rem;
}
.steps h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.steps p { margin: 0; }

/* Packages table */
.packages { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--spruce); border-radius: 14px; overflow: hidden; }
.packages th, .packages td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.packages thead th { font-size: var(--step--1); font-weight: 700; color: var(--spruce-2); background: var(--tint); border-bottom: 2px solid var(--spruce); }
.packages tbody tr:last-child th, .packages tbody tr:last-child td { border-bottom: 0; }
.packages tbody th { font-family: var(--display); font-size: var(--step-2); font-weight: 700; white-space: nowrap; }
.packages .count { font-family: var(--display); font-weight: 700; font-size: var(--step-2); color: var(--tote-ink); }
.packages .col-price { text-align: right; font-family: var(--display); font-weight: 800; font-size: var(--step-2); white-space: nowrap; }
.packages .extra-week { display: block; font-family: var(--body); font-size: var(--step--1); font-weight: 400; color: var(--spruce-2); }
.quote-row th, .quote-row .count { color: var(--spruce-2); }
.quote-note { font-size: var(--step--1); color: var(--spruce-2); }
.quote-row .col-price a { font-size: var(--step-1); }
.col-stack { width: 50%; }
.packages thead th.col-price { font-family: var(--body); font-size: var(--step--1); font-weight: 700; }
@media (max-width: 44rem) {
  .col-stack { display: none; }
  .packages th, .packages td { padding: .85rem .8rem; }
  .packages tbody th { font-size: var(--step-1); white-space: normal; }
}

/* Tote glyph: 1 glyph = 5 totes */
.stack {
  --g: 22px;
  display: inline-block;
  width: calc(var(--n) * var(--g));
  max-width: 100%;
  height: 20px;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 20'%3E%3Crect x='1' y='2' width='18' height='4' rx='1.5' fill='%232c6655' stroke='%2322403f' stroke-width='1.5'/%3E%3Cpath d='M2.5 6h15l-1.3 12H3.8z' fill='%2358a84f' stroke='%2322403f' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") left center / var(--g) 20px repeat-x;
}
.stack-key { font-size: var(--step--1); margin-top: .8rem; display: flex; align-items: center; gap: .5rem; }
@media (max-width: 44rem) { .stack-key { display: none; } }

.included { margin-top: 2.5rem; display: grid; gap: .5rem 3rem; }
@media (min-width: 52rem) { .included { grid-template-columns: 16rem 1fr; } .included-note { grid-column: 2; } }
.included h3 { font-size: var(--step-2); }
.included ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.included li::marker { color: var(--tote); }
.included-note { margin-top: 1rem; color: var(--spruce-2); }

/* Why */
.why-list { margin: 0; display: grid; gap: 1.8rem 3rem; }
@media (min-width: 44rem) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-list dt { font-family: var(--display); font-weight: 700; font-size: var(--step-2); margin-bottom: .3rem; }
.why-list dd { margin: 0; max-width: 46ch; }

/* Tote guide */
.guide { display: grid; gap: 2rem 4rem; align-items: start; }
@media (min-width: 56rem) { .guide { grid-template-columns: 1fr 1fr; } }
.guide p { font-size: var(--step-1); }
.guide-calc { background: #fff; border: 2px solid var(--spruce); border-radius: 14px; padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1rem; }
.guide-extras { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.guide-extras legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
.guide-calc .guide-result { font-size: var(--step-0); margin: 0; padding: .9rem 1rem; background: var(--tint); border-radius: 8px; }
.guide-calc .btn { justify-self: start; }

/* About */
.about { display: grid; gap: 2rem 4rem; align-items: center; }
@media (min-width: 52rem) { .about { grid-template-columns: 1fr 18rem; } }
.about-hero .section-title { font-size: var(--step-4); max-width: 14ch; }
.about-lede { font-size: var(--step-1); }
.about-goat { width: min(18rem, 70%); }

/* Area */
.area h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 700; margin-bottom: .8rem; color: var(--spruce-2); }

/* FAQ */
.faq details, .faq .section-title { max-width: 50rem; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 700; font-size: var(--step-2);
  padding: 1rem 2.5rem 1rem 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
  font-size: 2rem; color: var(--tote-ink); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 1rem; }

/* Booking */
.book { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .book { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
.book-intro p { font-size: var(--step-1); }
.book-direct { font-size: var(--step-0) !important; }
.book-form { background: #fff; border: 2px solid var(--spruce); border-radius: 14px; padding: clamp(1.2rem, 4vw, 2rem); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 36rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: inherit; width: 100%;
  padding: .7rem .8rem; border: 2px solid #b9c7b4; border-radius: 8px; background: var(--paper);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tote-deep); outline: none; box-shadow: 0 0 0 3px rgba(88,168,79,.35); }
.field.check { grid-template-columns: auto 1fr; align-items: center; gap: .6rem; }
.field.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--tote-deep); }
.field.check label { font-weight: 400; }
.book-form .btn { justify-self: start; }
.form-help { font-size: var(--step--1); color: var(--spruce-2); margin: 0; }

/* Footer */
.site-footer { background: var(--spruce); color: var(--cream); padding-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--cream); }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; gap: 1rem; align-items: center; }
.footer-brand img { width: 72px; flex: none; }
.footer-h { font-size: var(--step-1); color: #fff; margin-bottom: .5rem; }
.footer-legal { margin-top: 2rem; padding-block: 1.2rem; font-size: var(--step--1); }
.footer-legal p { border-top: 1px solid rgba(239,231,200,.2); padding-top: 1.2rem; }
.footer-legal p { margin: 0; max-width: none; }

/* Booking form result message */
.form-status { margin: 0; font-weight: 700; min-height: 1.5em; }
.form-status.is-ok { color: var(--tote-ink); }
.form-status.is-error { color: #a1321f; }
.form-status a { color: inherit; }
.book-form .btn:disabled { opacity: .7; cursor: default; transform: none; }
.form-reason { display: block; font-weight: 400; font-size: var(--step--1); margin-top: .3rem; color: var(--spruce-2); }
