/* ===================================================================
   Rowan Caldwell - Pressure Washing & Weed Pulling
   Brand palette: garden green + water blue, warm friendly accents
   =================================================================== */

:root {
  --green: #1f9d55;
  --green-bright: #39c172;
  --green-dark: #14723d;
  --blue: #2c8fd6;
  --blue-bright: #4db6ec;
  --blue-dark: #1d6fab;
  --soil: #7a4b2b;
  --soil-dark: #5d3920;
  --ink: #1c2b22;
  --muted: #5d6b63;
  --cream: #f6faf4;
  --white: #ffffff;
  --line: #e3ece4;
  --shadow-sm: 0 2px 8px rgba(20, 60, 40, 0.08);
  --shadow-md: 0 12px 32px rgba(20, 60, 40, 0.12);
  --shadow-lg: 0 24px 60px rgba(20, 60, 40, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --maxw: 1140px;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .4em; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }

a { color: var(--green-dark); text-decoration: none; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .6rem;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: .72rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--green-bright), var(--green)); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--green-dark); border-color: rgba(31,157,85,.35); box-shadow: none; }
.btn-ghost:hover { background: #fff; }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); box-shadow: none; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 250, 244, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand-mark { display: grid; place-items: center; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.15rem; line-height: 1; }
.brand-text small { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 1.6rem; }
.main-nav a { color: var(--ink); font-weight: 700; }
.main-nav a:not(.btn):hover { color: var(--green); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .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); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: .5rem;
  padding: 0 20px 16px;
}
.mobile-nav a { padding: .6rem .2rem; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { border: 2px solid transparent; text-align: center; margin-top: .5rem; }
.mobile-nav.open { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(77,182,236,.28), transparent 60%),
    radial-gradient(120% 90% at 0% 0%, rgba(57,193,114,.30), transparent 55%),
    linear-gradient(180deg, #eaf7ed 0%, var(--cream) 100%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 5.5rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { animation: rise .7s ease both; }
.hl-green { color: var(--green); }
.hl-blue { color: var(--blue); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1.4rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; list-style: none; padding: 0; margin: 0; }
.hero-badges li { position: relative; padding-left: 1.4rem; font-weight: 700; font-size: .9rem; color: var(--ink); }
.hero-badges li::before { content: "\2714"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 70px; }
.hero-wave path { fill: var(--cream); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Game ---------- */
.game {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem;
  animation: rise .8s .1s ease both;
}
.game-hud { display: flex; gap: .6rem; margin-bottom: .9rem; }
.game-stat {
  flex: 1;
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: .5rem .7rem;
  text-align: center;
  border: 1px solid var(--line);
}
.game-stat-label { display: block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.game-stat-value { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--green-dark); line-height: 1.1; }
#timer { color: var(--blue-dark); }

.garden {
  position: relative;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, #bfe8fb 0%, #d9f3e0 38%, #b98a5f 38%, #8a5c34 100%);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
/* sky clouds */
.garden::before {
  content: "";
  position: absolute; inset: 0 0 62% 0;
  background:
    radial-gradient(40px 18px at 20% 40%, #fff, transparent),
    radial-gradient(60px 24px at 30% 55%, #fff, transparent),
    radial-gradient(46px 20px at 75% 30%, #fff, transparent),
    radial-gradient(70px 26px at 85% 48%, #fff, transparent);
  opacity: .85;
  pointer-events: none;
}
/* soil top line */
.garden::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 38%;
  height: 10px;
  background: linear-gradient(180deg, #4ea35f, #2f7d3f);
  box-shadow: 0 4px 0 rgba(0,0,0,.06);
  pointer-events: none;
}

/* weed */
.weed {
  position: absolute;
  width: 46px;   /* hit box; overridden per-type inline by game.js */
  height: 56px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 0;
  transform-origin: bottom center;
  transform: translate(-50%, 0) scale(0);
  animation: sprout .35s cubic-bezier(.34,1.56,.64,1) forwards;
  cursor: pointer;
  z-index: 2;
}
.weed:hover { filter: brightness(1.06); }
.weed:active { transform: translate(-50%, 0) scale(.94); }
.weed.pulled { animation: pulled .45s ease forwards; pointer-events: none; }
.weed-flower {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .22));
  pointer-events: none;
}
.weed.golden .weed-flower {
  filter: drop-shadow(0 0 9px rgba(255, 206, 58, .9)) drop-shadow(0 4px 3px rgba(0, 0, 0, .2));
}

/* Rowan the runner */
.runner {
  position: absolute;
  left: 50%;
  top: 94%;
  width: 96px;
  transform: translate(-50%, -100%);
  transition: left .3s cubic-bezier(.45, .05, .3, 1), top .3s cubic-bezier(.45, .05, .3, 1);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
}
.runner.active { opacity: 1; visibility: visible; }
.runner.flip { transform: translate(-50%, -100%) scaleX(-1); }
.runner-img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .3));
  -webkit-user-select: none;
  user-select: none;
}
.runner.run .runner-img { animation: runbob .26s linear infinite; }
.runner.pulling .runner-img { animation: pullSquash .3s ease; }
@keyframes runbob {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}
@keyframes pullSquash {
  0% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(3px) scale(1.08, .9); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes sprout { to { transform: translate(-50%, 0) scale(1); } }
@keyframes pulled {
  30% { transform: translate(-50%, -6px) scale(1.05); }
  100% { transform: translate(-50%, -90px) scale(.6) rotate(12deg); opacity: 0; }
}

/* particles */
.dirt {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--soil);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  animation: dirtFly .6s ease-out forwards;
}
@keyframes dirtFly {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; }
}

.score-pop {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
  pointer-events: none;
  z-index: 4;
  animation: scorePop .7s ease-out forwards;
}
@keyframes scorePop { 0% { transform: translate(-50%,0); opacity: 1; } 100% { transform: translate(-50%,-46px); opacity: 0; } }

/* overlay */
.game-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(20, 50, 30, .45);
  backdrop-filter: blur(2px);
  z-index: 10;
  transition: opacity .3s ease;
}
.game-overlay.hidden { opacity: 0; pointer-events: none; }
.game-overlay-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  max-width: 280px;
  box-shadow: var(--shadow-md);
  animation: rise .35s ease both;
}
.game-overlay-card h3 { color: var(--green-dark); }
.game-overlay-card p { color: var(--muted); font-size: .95rem; margin-bottom: 1.1rem; }

.game-caption { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem 0 .2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 1rem; }
.service-icon-green { background: rgba(57,193,114,.15); color: var(--green); }
.service-icon-blue { background: rgba(77,182,236,.18); color: var(--blue); }
.service-card p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .45rem; }
.checklist li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.checklist li::before { content: "\2714"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.service-area { text-align: center; margin-top: 2rem; font-weight: 700; color: var(--blue-dark); }

/* ---------- Portfolio ---------- */
.portfolio { background: linear-gradient(180deg, var(--cream), #eef6ed); overflow: hidden; }
.portfolio-swiper { padding: 1.5rem 0 3.2rem; overflow: visible; }
.portfolio-swiper .swiper-slide {
  width: 340px;
  max-width: 80vw;
  transition: transform .3s ease;
}
.pf-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.pf-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfeadf; }
.pf-media img { width: 100%; height: 100%; object-fit: cover; }
.pf-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(31,157,85,.92);
  color: #fff; font-weight: 800; font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
}
.pf-tag.before { background: rgba(122,75,43,.92); }
.pf-body { padding: 1rem 1.2rem 1.3rem; }
.pf-body h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.pf-body p { color: var(--muted); font-size: .92rem; margin: 0; }

.swiper-pagination-bullet-active { background: var(--green); }
.swiper-button-next, .swiper-button-prev { color: var(--green-dark); }
.swiper-button-next::after, .swiper-button-prev::after { font-size: 1.5rem; font-weight: 900; }

/* ---------- Founder ---------- */
.founder {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.founder-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-copy p { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }
.contact-info p { color: var(--muted); font-size: 1.05rem; }
.contact-methods { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-methods li { display: flex; align-items: center; gap: .9rem; font-weight: 700; }
.contact-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: rgba(44,143,214,.14); color: var(--blue-dark); font-size: 1.2rem; }
.contact-methods a { color: var(--ink); }
.contact-methods em { color: var(--muted); font-weight: 600; font-size: .85rem; }

.contact-form {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57,193,114,.18);
}
.field input.invalid, .field select.invalid { border-color: #e05555; box-shadow: 0 0 0 3px rgba(224,85,85,.15); }
textarea { resize: vertical; }

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

.form-status { margin: 1rem 0 0; font-weight: 700; text-align: center; min-height: 1.2em; }
.form-status.success { color: var(--green-dark); }
.form-status.error { color: #c0392b; }

.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Payments ---------- */
.payments { background: linear-gradient(180deg, #eef6ed, var(--cream)); }
.payments-grid {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 2rem;
  align-items: stretch;
  max-width: 880px;
  margin-inline: auto;
}
.pay-venmo, .pay-other {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
}
.pay-venmo { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pay-venmo h3 { color: var(--blue-dark); }
.pay-venmo > p { color: var(--muted); margin-top: 0; font-size: .95rem; }
.pay-qr {
  width: 240px;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin: .4rem 0 1.2rem;
}
.pay-qr img { width: 100%; height: auto; }

.pay-other h3 { color: var(--green-dark); }
.pay-other > p { color: var(--muted); margin-top: 0; }
.pay-methods {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .6rem .8rem;
  font-weight: 700;
}
.pay-method svg { border-radius: 6px; flex: none; display: block; }
.pay-card-img {
  width: 56px;
  height: auto;
  flex: none;
  display: block;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(20, 60, 40, .18);
}
.pay-method span:last-child { font-size: .95rem; }

@media (max-width: 760px) {
  .payments-grid { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .pay-methods { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe0d4; padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.3rem; }
.footer-brand p { margin: .4rem 0 0; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a, .footer-contact a { color: #cfe0d4; font-weight: 600; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--green-bright); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-copy { text-align: center; margin: 2.5rem 0 0; font-size: .85rem; color: #8ba593; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.service-grid .service-card:nth-of-type(2) { transition-delay: .12s; }
.payments-grid .pay-other { transition-delay: .1s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .game { max-width: 520px; margin-inline: auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .founder { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { max-width: 240px; margin: 0 auto; }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; scroll-behavior: auto; }
}
