/* ============================================================
   Rent a Grandson - shared stylesheet
   Brand: Forest Green / Tan / Cream - Bitter + Source Sans 3
   ============================================================ */

:root {
  --rag-forest:   #2C4A33;
  --rag-pine:     #1A2E20;
  --rag-sage:     #8BA888;
  --rag-moss:     #6B7B4A;
  --rag-tan:      #D4C5A9;
  --rag-cream:    #F5F1E8;
  --rag-charcoal: #2E2A24;
  --rag-gray:     #6B6357;
  --rag-white:    #FFFFFF;

  --rag-forest-10: #EAEFEB;
  --rag-sage-15:   #E7EDE6;
  --rag-tan-30:    #F2ECE0;
  --rag-moss-15:   #ECEEE2;

  --border: #E2DCCF;

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 60px;

  --maxw: 1120px;
  --shadow-sm: 0 2px 8px rgba(26,46,32,0.06);
  --shadow-md: 0 8px 28px rgba(26,46,32,0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--rag-charcoal);
  background: var(--rag-cream);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: "Bitter", "Roboto Slab", Georgia, serif;
  color: var(--rag-pine);
  line-height: 1.18;
  margin: 0 0 var(--space-md);
}
h1 { font-size: clamp(2rem, 4.5vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 1.875rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 var(--space-md); max-width: 660px; }

a { color: var(--rag-moss); }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--rag-moss);
  margin: 0 0 6px;
}
.eyebrow.on-dark { color: var(--rag-sage); }

.lede { font-size: 1.125rem; color: var(--rag-gray); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--rag-forest); color: var(--rag-white); }
.btn-primary:hover { background: var(--rag-pine); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-secondary { background: var(--rag-tan); color: var(--rag-pine); }
.btn-secondary:hover { background: #C9B896; transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--rag-forest);
  border: 1.5px solid var(--rag-forest);
  padding: 11px 26px;
}
.btn-outline:hover { background: var(--rag-forest); color: var(--rag-white); }

.btn-outline-light {
  background: transparent;
  color: var(--rag-white);
  border: 1.5px solid rgba(255,255,255,0.6);
  padding: 11px 26px;
}
.btn-outline-light:hover { background: var(--rag-white); color: var(--rag-pine); border-color: var(--rag-white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  background: var(--rag-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 74px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: "Bitter", "Roboto Slab", Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rag-forest);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--rag-forest);
  line-height: 0;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--rag-charcoal);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover { background: var(--rag-forest-10); color: var(--rag-pine); }
.site-nav a.active { color: var(--rag-forest); background: var(--rag-forest-10); }
.site-nav .btn { margin-left: 8px; color: var(--rag-white); }
.site-nav .btn:hover { color: var(--rag-white); background: var(--rag-pine); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--rag-forest);
  color: var(--rag-white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/photos/hero-home.jpg");
  background-size: cover;
  background-position: center 55%;
  opacity: 0.45;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,46,32,0.92) 0%, rgba(44,74,51,0.78) 55%, rgba(44,74,51,0.55) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; }
.hero h1 { color: var(--rag-white); font-size: clamp(2.25rem, 6vw, 2.9rem); max-width: 15ch; }
.hero p { color: rgba(255,255,255,0.88); font-size: 1.125rem; max-width: 540px; }

/* Compact hero for interior pages */
.page-hero {
  background: var(--rag-forest);
  color: var(--rag-white);
  padding: 56px 0;
}
.page-hero h1 { color: var(--rag-white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.86); margin-bottom: 0; }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--rag-pine); color: rgba(255,255,255,0.92); }
.trust-bar ul {
  list-style: none;
  margin: 0;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 32px;
  font-size: 15px;
  font-weight: 600;
}
.trust-bar li { display: flex; align-items: center; gap: 8px; }
.trust-bar svg { width: 18px; height: 18px; flex: none; color: var(--rag-sage); }

/* ---------- Sections ---------- */
.section { padding: var(--space-2xl) 0; }
.section-tan { background: var(--rag-tan-30); }
.section-white { background: var(--rag-white); }
.section-head { margin-bottom: var(--space-xl); }
.section-head p { color: var(--rag-gray); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-featured { border-top: 4px solid var(--rag-moss); }

.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--rag-forest-10);
  color: var(--rag-forest);
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }

.price {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--rag-pine);
  background: var(--rag-sage-15);
  border-radius: 20px;
  padding: 4px 12px;
  margin-top: 4px;
}

/* Numbered steps */
.step-num {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rag-forest);
  color: var(--rag-white);
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--space-md); padding: 0; list-style: none; }
.pills li {
  font-size: 14px;
  font-weight: 600;
  color: var(--rag-pine);
  background: var(--rag-cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
}

/* Callouts */
.callout {
  border-left: 4px solid var(--rag-forest);
  background: var(--rag-forest-10);
  color: var(--rag-charcoal);
  padding: 18px 20px;
  border-radius: 0 8px 8px 0;
  margin: 0 0 var(--space-lg);
}
.callout-tan { border-left-color: var(--rag-moss); background: var(--rag-tan-30); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--rag-pine); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--rag-moss);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.quote-card blockquote {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--rag-charcoal);
}
.quote-attrib { margin-top: auto; font-size: 14px; color: var(--rag-gray); }
.quote-attrib strong { display: block; color: var(--rag-pine); font-size: 15px; }
.stars { color: var(--rag-moss); letter-spacing: 2px; margin-bottom: 12px; font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--rag-forest);
  color: var(--rag-white);
  padding: var(--space-2xl) 0;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/photos/cta-band.jpg");
  background-size: cover;
  background-position: center 45%;
  opacity: 0.42;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(26,46,32,0.93) 0%, rgba(44,74,51,0.82) 55%, rgba(44,74,51,0.62) 100%);
}
.cta-band > .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--rag-white); }
.cta-band p { color: rgba(255,255,255,0.90); }
.cta-inner { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: center; justify-content: space-between; }
.cta-inner > div { flex: 1 1 380px; }
.cta-inner p:last-child { margin-bottom: 0; }

/* ---------- Photos ---------- */

/* Full-bleed photo at the top of a card. The card loses its padding and
   an inner .card-body carries it instead, so the image meets the edges. */
.card.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.has-photo .card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card.has-photo .card-body > *:last-child { margin-bottom: 0; }
.card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Same treatment for the tip cards */
.tip.has-photo { padding: 0; overflow: hidden; }
.tip.has-photo .tip-body { padding: 26px; }
.tip-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Content image sitting beside a block of text */
.split-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

/* Wide banner above a section */
.banner-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .banner-photo { aspect-ratio: 16 / 9; }
}

/* ---------- Forms ---------- */
.form-card {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: var(--rag-pine);
  margin-bottom: 6px;
}
.field .hint { font-size: 13px; font-weight: 400; color: var(--rag-gray); }
.req { color: #A6462F; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--rag-charcoal);
  background: var(--rag-white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--rag-forest);
  box-shadow: 0 0 0 3px rgba(44,74,51,0.12);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: #A6462F;
}
.field-error { display: none; color: #A6462F; font-size: 13.5px; font-weight: 600; margin-top: 5px; }
.field-error.show { display: block; }

/* Side-by-side fields within a section */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row .field { flex: 1; min-width: 160px; }
.row .field.narrow-sm { max-width: 120px; }
.row .field.narrow-md { max-width: 140px; }

/* Form sections (Contact / Location / The Job / Photos) */
.form-section {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--rag-moss);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}
.form-section h2 { font-size: 1.4rem; font-weight: 600; margin: 0 0 4px; }
.form-section .sub { font-size: 14px; color: var(--rag-gray); margin: 0 0 20px; }
.form-section .field:last-child { margin-bottom: 0; }

/* Photo upload */
.drop {
  border: 2px dashed var(--rag-sage);
  border-radius: 10px;
  background: var(--rag-forest-10);
  padding: 26px;
  text-align: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.drop:hover, .drop.dragover { background: #E3EBE2; border-color: var(--rag-moss); }
.drop strong { color: var(--rag-forest); display: block; }
.drop span { display: block; font-size: 13px; color: var(--rag-gray); margin-top: 4px; }
.drop:focus-visible { outline: 3px solid var(--rag-forest); outline-offset: 2px; }

.file-input { display: none; }

.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumbs:empty { margin-top: 0; }
.thumb {
  position: relative;
  width: 84px; height: 84px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px;
  border: none; border-radius: 50%;
  background: rgba(26,46,32,0.85);
  color: var(--rag-white);
  cursor: pointer;
  font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.thumb button:hover { background: var(--rag-pine); }

/* Office use only */
.office {
  background: var(--rag-tan-30);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 18px;
  margin-bottom: 20px;
}
.office summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rag-gray);
  list-style: none;
}
.office summary::-webkit-details-marker { display: none; }
.office summary::before { content: "\25B8 "; color: var(--rag-moss); }
.office[open] summary::before { content: "\25BE "; }
.office[open] { padding-bottom: 18px; }

/* Success panel replaces the form once the request is in */
.success-panel {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--rag-forest);
  border-radius: 12px;
  text-align: center;
  padding: 44px 24px;
}
.success-panel .tick {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--rag-forest-10);
  color: var(--rag-forest);
  display: grid; place-items: center;
}
.success-panel .tick svg { width: 30px; height: 30px; }
.success-panel h2 { color: var(--rag-forest); margin-bottom: 10px; }
.success-panel p { margin: 0 auto 16px; max-width: 460px; color: var(--rag-charcoal); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 8px; padding: 16px 18px; margin-bottom: var(--space-lg); font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.success { background: var(--rag-forest-10); border-left: 4px solid var(--rag-forest); color: var(--rag-pine); }
.form-status.error   { background: #FBEDE9; border-left: 4px solid #A6462F; color: #7A3323; }
.form-status p { margin: 0; font-weight: 400; color: inherit; }
.form-status strong { display: block; margin-bottom: 4px; }

.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Sidebar layout ---------- */
.with-aside { display: grid; gap: var(--space-xl); grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
.aside-card {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--rag-moss);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 98px;
}
.aside-card h3 { font-size: 1.15rem; }
.aside-card ul { margin: 0 0 var(--space-md); padding-left: 20px; }
.aside-card li { margin-bottom: 6px; }
.aside-card p:last-child, .aside-card ul:last-child { margin-bottom: 0; }

/* ---------- Tips ---------- */
.tip-list { display: grid; gap: var(--space-lg); }
.tip {
  background: var(--rag-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
}
.tip h3 { margin-bottom: 6px; }
.tip .season {
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rag-moss); margin: 0 0 8px;
}
.tip ul { margin: 0; padding-left: 20px; }
.tip li { margin-bottom: 8px; }
.tip li:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--rag-pine);
  color: rgba(255,255,255,0.78);
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: 15px;
}
.footer-grid { display: grid; gap: var(--space-xl); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer img { height: 46px; width: auto; margin-bottom: 12px; }
.site-footer h4 {
  font-family: "Source Sans 3", sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--rag-sage); margin: 0 0 12px;
}
.site-footer p { max-width: 320px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--rag-white); text-decoration: none; }
.site-footer a:hover { color: var(--rag-sage); text-decoration: underline; }
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 14px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--rag-white); color: var(--rag-pine);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .with-aside { grid-template-columns: 1fr; }
  .aside-card { position: static; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--rag-white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 20px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav .btn { margin: 8px 0 0; text-align: center; }
  .hero .container { padding-top: 60px; padding-bottom: 60px; }
  .section { padding: var(--space-xl) 0; }
  .form-card { padding: 24px 20px; }
  .form-section { padding: 22px 18px; }
}

@media (max-width: 560px) {
  .row { gap: 0; }
  .row .field,
  .row .field.narrow-sm,
  .row .field.narrow-md { flex: 1 1 100%; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { background: #fff; }
}
