/* Camp Ready Rentals — shared styles */
:root {
  --pine: #1e4533;
  --pine-deep: #142e22;
  --birch: #f4f6f2;
  --sand: #e8e2d4;
  --ink: #17211b;
  --muted: #4d5a52;
  --lantern: #f0a53a;
  --lake: #2f6f8f;
  --rule: #cfd6cd;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--lake); text-underline-offset: 0.15em; }
a:hover { color: var(--pine); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 62ch; }

:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.8em 1.4em;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--lantern); color: var(--ink); }
.btn-primary:hover { background: #f5b556; color: var(--ink); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }

/* Header */
.site-header { background: var(--birch); border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.9rem;
}
.brand {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.02em; color: var(--pine); text-decoration: none;
}
.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  color: var(--ink); text-decoration: none;
}
.site-nav a:hover { color: var(--lake); }
.site-nav .nav-call {
  background: var(--pine); color: #fff; padding: 0.5em 1em; border-radius: 6px; white-space: nowrap;
}
@media (max-width: 480px) {
  .brand { font-size: 1.1rem; }
  .site-nav .nav-call { font-size: 0.92rem; padding: 0.45em 0.8em; }
}
.site-nav .nav-call:hover { background: var(--pine-deep); color: #fff; }
@media (max-width: 820px) {
  .site-nav .nav-link { display: none; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 5fr 7fr; background: var(--pine); color: var(--birch); }
.hero-text {
  padding-block: clamp(2.5rem, 7vw, 5rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding-right: clamp(1.5rem, 4vw, 3.5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-text p { color: #dfe8e1; font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.5rem 0 1.4rem; }
.hero-phone { font-size: 1rem; margin: 0; color: #cdd9d0; }
.hero-phone a { color: #fff; }
.hero-photo { min-height: 34rem; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-text { padding-inline: var(--gutter); }
}

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-sand { background: var(--sand); }
.section-pine { background: var(--pine); color: var(--birch); }
.section-pine p { color: #dfe8e1; }
.lede { font-size: 1.2rem; color: var(--muted); }

/* Trailer */
.trailer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); margin-bottom: 2.5rem; }
@media (max-width: 820px) { .trailer-grid { grid-template-columns: 1fr; } }

.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 2px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
.specs dt { font-family: var(--font-display); font-weight: 700; padding-right: 1.5rem; }

.gallery { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 6px; overflow: hidden;
}
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.4; }
.gallery figure { margin: 0; }

.inside { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2.5rem; }
.inside li { break-inside: avoid; padding: 0.6rem 0; border-top: 1px solid var(--rule); }
@media (max-width: 640px) { .inside { columns: 1; } }

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(10, 20, 14, 0.85); }
dialog.lightbox img { max-height: 90vh; width: auto; margin-inline: auto; border-radius: 6px; }
dialog.lightbox form { position: absolute; top: -2.6rem; right: 0; margin: 0; }
.lightbox-close {
  font-family: var(--font-display); font-weight: 700; background: var(--birch); color: var(--ink);
  border: 0; border-radius: 6px; padding: 0.4em 0.9em; cursor: pointer;
}

/* Rates */
.rates { width: 100%; max-width: 640px; border-collapse: collapse; margin-bottom: 1.2rem; }
.rates th, .rates td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.rates th { font-family: var(--font-display); font-weight: 700; }
.rates td { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.rates caption { text-align: left; font-family: var(--font-display); font-weight: 700; padding-bottom: 0.5rem; }
.note { color: var(--muted); font-size: 1rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; border-top: 3px solid var(--pine); padding-top: 0.8rem; }
.steps li::before {
  content: counter(step); display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--pine); line-height: 1; margin-bottom: 0.4rem;
}
.steps p { font-size: 1rem; margin: 0; }

/* Areas */
.areas { list-style: none; margin: 1.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.areas li {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border: 1.5px solid #8fb09d; border-radius: 999px; padding: 0.35em 1em; color: var(--birch);
}

/* FAQ */
.faq { max-width: 760px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2.5rem 1rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.3rem; top: 0.8rem; font-size: 1.5rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1rem; margin: 0; }

/* Form */
.contact-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1.5px solid #9aa79e; border-radius: 6px; padding: 0.65em 0.8em;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--lantern); outline-offset: 1px; border-color: var(--ink); }
textarea { min-height: 7rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.contact-card { background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 1.5rem; }
.contact-card p { margin-bottom: 0.5rem; }
.contact-card .name { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin-bottom: 0.1rem; }

/* Footer */
.site-footer { background: var(--pine-deep); color: #cdd9d0; padding-block: 2rem; font-size: 0.98rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; max-width: none; }

/* Legal / simple pages */
.page { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page .wrap { max-width: 780px; }
.page h2 { font-size: 1.5rem; margin-top: 2rem; }
.draft-banner { background: #fff3cd; border: 1.5px dashed #b58900; padding: 0.8rem 1rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 1rem; }

/* Placeholders to replace before publishing */
.todo { background: #ffe066; color: #000; outline: 1.5px dashed #b58900; padding: 0 0.25em; border-radius: 3px; font-style: normal; }
