/* =============================================================
   Pup Trucks — stylesheet
   Brand: outdoorsy & natural with a warm, playful edge
   ============================================================= */

/* ---------- Design tokens ---------- */
:root {
  --green: #2E5E3A;
  --green-dark: #234a2d;
  --amber: #F4A23A;
  --amber-dark: #e08e22;
  --cream: #F7F3E8;
  --cream-deep: #efe8d6;
  --brown: #6B4F3A;
  --charcoal: #2A2A26;
  --white: #ffffff;
  --muted: #6f6a60;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(42, 42, 38, 0.08);
  --shadow: 0 12px 32px rgba(42, 42, 38, 0.12);
  --shadow-lg: 0 24px 60px rgba(42, 42, 38, 0.18);

  --font-head: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1160px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; color: var(--charcoal); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--cream-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--amber); color: var(--charcoal); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--amber-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.16); color: var(--white); border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.28); }
.btn-lg { padding: 15px 34px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: #25D366; color: #ffffff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Icons ---------- */
.icon { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.16em; }
.icon--solid { fill: currentColor; stroke: none; }
.btn .icon { margin-right: 8px; vertical-align: -0.16em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 243, 232, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42,42,38,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 40px; height: 40px; }
.logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--green); }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-weight: 700; color: var(--charcoal); transition: color .15s; }
.nav-menu a:hover { color: var(--green); }
.nav-phone a { color: var(--green); }
.nav-phone .icon { margin-right: 5px; }
.nav-cta { color: var(--charcoal) !important; }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  background: url('../assets/img/hero.jpg') center/cover no-repeat, linear-gradient(135deg, var(--green), var(--brown));
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,74,45,.45) 0%, rgba(35,74,45,.78) 100%); }
.hero-content { position: relative; z-index: 2; padding: clamp(80px, 14vw, 150px) 24px clamp(110px, 16vw, 180px); max-width: 760px; }
.eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem; margin-bottom: .6rem; color: var(--amber); }
.eyebrow-dark { color: var(--green); }
.hero h1 { color: var(--white); text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 600px; margin-bottom: 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 2rem; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-weight: 700; font-size: .98rem; }
.trust-badges li { display: inline-flex; align-items: center; gap: 7px; }
.trust-badges .icon { color: var(--amber); width: 1.15em; height: 1.15em; }
.hill-divider { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 2; }
.hill-divider svg { width: 100%; height: clamp(60px, 8vw, 120px); display: block; }
.hill-divider path { fill: var(--cream); }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 32px 24px; box-shadow: var(--shadow-sm); text-align: center; position: relative; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--amber); color: var(--charcoal); font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Cards (services & reviews) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow-sm); text-align: center; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(46, 94, 58, 0.10); color: var(--green); margin: 0 auto 16px; }
.service-icon .icon { width: 36px; height: 36px; stroke-width: 1.8; }
.service-card p { color: var(--muted); }
.price { font-family: var(--font-head); font-weight: 700; color: var(--green); font-size: 1.6rem; margin: 6px 0 18px; line-height: 1.2; }
.price-unit { display: block; font-family: var(--font-body); font-weight: 600; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.service-card .btn { margin-top: auto; }
.services-note { text-align: center; margin-top: 28px; color: var(--muted); }
.services-note .icon { color: var(--green); margin-right: 4px; }

.follow-cta { text-align: center; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item--video { position: relative; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: rgba(46, 94, 58, 0.82); border-radius: 50%; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; }
.play-badge svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }
.gallery-item--video:hover .play-badge { transform: scale(1.08); background: var(--green); }

/* ---------- Service areas ---------- */
.area-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.area-badges li { background: var(--white); border: 2px solid var(--cream-deep); border-radius: 999px; padding: 10px 22px; font-weight: 700; font-family: var(--font-head); color: var(--green); box-shadow: var(--shadow-sm); }

/* ---------- Booking ---------- */
.book-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.book-copy h2 { margin-bottom: .5em; }
.book-points { list-style: none; padding: 0; margin: 18px 0 0; font-weight: 700; }
.book-points li { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.book-points .icon { color: var(--green); width: 1.2em; height: 1.2em; }
.book-alt { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--cream-deep); }
.book-alt-note { margin: 0; color: var(--muted); font-size: .95rem; }
.book-alt-note a { color: var(--green); font-weight: 700; text-decoration: underline; }
.book-form { background: var(--white); padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--cream-deep); border-radius: 12px;
  font-family: var(--font-body); font-size: 1rem; background: var(--cream); color: var(--charcoal); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); background: var(--white); }
.field textarea { resize: vertical; }
.form-status { margin: 14px 0 0; font-weight: 700; text-align: center; }
.form-status.success { color: var(--green); }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: #e8eee9; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr 1fr; gap: 32px; padding: 56px 24px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { color: #b9c9bd; margin-top: 6px; }
.footer-col h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col .icon { color: var(--amber); margin-right: 8px; vertical-align: -0.16em; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: .9rem; color: #b9c9bd; }
.footer-bottom p { margin: 0; text-align: center; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,14,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img, .lightbox video { max-width: 92vw; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
#lightbox-video { display: none; background: #000; }
.lightbox-close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: var(--white); font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .book-inner { grid-template-columns: 1fr; gap: 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; z-index: 110; }
  .nav-toggle span { display: block; width: 26px; height: 3px; background: var(--charcoal); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); padding: 12px 24px 24px;
    box-shadow: var(--shadow); border-bottom: 1px solid rgba(42,42,38,.08);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(42,42,38,.06); }
  .nav-cta { display: inline-block; margin-top: 10px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .book-form { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
