/* =========================================================
   YardHero — bright, playful demo styles
   ========================================================= */

:root {
  --sun: #FFD23F;
  --grass: #2FB170;
  --sky: #4FB6E8;
  --coral: #FF6B4A;
  --ink: #1E2A22;
  --white: #FFFFFF;

  --font-head: 'Baloo 2', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 10px 24px rgba(30, 42, 34, 0.12);
  --shadow-pop: 0 6px 0 rgba(30, 42, 34, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--coral);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  text-align: center;
}

.section-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-pop);
}
.btn-coral:hover { box-shadow: 0 8px 0 rgba(30,42,34,0.18); }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 3px solid var(--ink);
}

.btn-lg { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--ink);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark { display: flex; }

.logo-text {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 6px 2px;
}

.main-nav a:hover { color: var(--coral); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}
.phone-link svg { color: var(--grass); flex-shrink: 0; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  margin: 0 auto;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, #FFF6DC 0%, #FFFFFF 100%);
  padding: 70px 0 40px;
  overflow: hidden;
}

.hero-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.blob { position: absolute; opacity: 0.55; }
.blob-sun { width: 340px; top: -80px; left: -100px; opacity: 0.6; }
.blob-sky { width: 300px; bottom: -60px; right: -80px; opacity: 0.45; }
.blob-grass { width: 220px; top: 40%; right: 10%; opacity: 0.3; }

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.4em;
}

.highlight {
  color: var(--coral);
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  max-width: 480px;
  opacity: 0.85;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 1.5rem;
}

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}

.hero-photo {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-lg);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
}

.hero-sticker {
  position: absolute;
  bottom: -20px;
  left: -20px;
  filter: drop-shadow(0 6px 10px rgba(30,42,34,0.25));
}

.hero-wave {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 80px;
  margin-top: 30px;
}

/* ---------- How It Works ---------- */
.how {
  background: var(--grass);
  color: var(--white);
  padding: 70px 0;
}
.how .section-sub { color: rgba(255,255,255,0.85); }

.how-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.how-step {
  background: rgba(255,255,255,0.1);
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  max-width: 260px;
  text-align: center;
}

.how-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 auto 16px;
  border: 3px solid var(--ink);
}
.how-badge-sun { background: var(--sun); }
.how-badge-coral { background: var(--coral); color: var(--white); }
.how-badge-sky { background: var(--sky); }

.how-step h3 { font-size: 1.2rem; }
.how-step p { font-size: 0.95rem; opacity: 0.9; margin-bottom: 0; }

.how-arrow { color: var(--white); flex-shrink: 0; margin-top: 40px; opacity: 0.8; }

/* ---------- Services ---------- */
.services {
  background: var(--white);
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-tile {
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-pop);
  transition: transform 0.15s ease;
}
.service-tile:hover { transform: translateY(-4px); }

.tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
}

.service-tile h3 { font-size: 1.25rem; }
.service-tile p { margin-bottom: 0; font-size: 0.95rem; }

.tile-sun { background: var(--sun); }
.tile-grass { background: var(--grass); color: var(--white); }
.tile-sky { background: var(--sky); }
.tile-coral { background: var(--coral); color: var(--white); }

/* ---------- Plans ---------- */
.plans {
  background: #FFF6DC;
  padding: 80px 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-pop);
}

.plan-featured {
  background: var(--coral);
  color: var(--white);
  transform: scale(1.04);
}

.plan-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sun);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  white-space: nowrap;
}

.plan-card h3 { font-size: 1.4rem; }
.plan-desc { font-size: 0.95rem; opacity: 0.9; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.plan-features li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px dashed rgba(30,42,34,0.2);
}
.plan-featured .plan-features li { border-top-color: rgba(255,255,255,0.3); }
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
  color: var(--grass);
}
.plan-featured .plan-features li::before { color: var(--sun); }

.plan-featured .btn-outline {
  background: var(--white);
  color: var(--coral);
  border-color: var(--white);
}

/* ---------- Gallery ---------- */
.gallery {
  background: var(--sky);
  padding: 80px 0;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 10px;
}

.gallery-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}
.gallery-item:hover { transform: scale(1.03) rotate(0deg) !important; }

.gallery-item img {
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 3px solid var(--ink);
}

.gallery-item figcaption {
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  padding-top: 10px;
  font-size: 0.95rem;
}

.rotate-left { transform: rotate(-3deg); }
.rotate-right { transform: rotate(3deg); }

.border-coral img { border-color: var(--coral); }
.border-sky img { border-color: var(--sky); }
.border-grass img { border-color: var(--grass); }
.border-sun img { border-color: var(--sun); }

/* ---------- Quote form ---------- */
.quote {
  background: var(--sun);
  padding: 80px 0;
}

.quote-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-pop);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label,
.checkbox-legend {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--ink);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 3px solid var(--sky);
  outline-offset: 1px;
}

.form-field textarea { resize: vertical; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFF6DC;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-pill input { accent-color: var(--coral); width: 16px; height: 16px; }

/* ---------- Find us / map ---------- */
.find-us {
  background: var(--white);
  padding: 70px 0;
}

.find-us-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: center;
}

.find-us-copy p { font-size: 1.05rem; }

.text-link {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-soft);
}

.map-wrap iframe { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-inner .logo-text { color: var(--white); }

.footer-tag { opacity: 0.75; margin-bottom: 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  margin: 10px 0;
}
.footer-nav a { font-weight: 600; opacity: 0.85; }
.footer-nav a:hover { color: var(--sun); opacity: 1; }

.footer-fine {
  opacity: 0.55;
  font-size: 0.85rem;
  margin-top: 10px;
  margin-bottom: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo-wrap { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .find-us-inner { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hamburger { display: flex; }

  .header-actions { gap: 10px; }

  /* Hide the phone number text on small screens, keep icon+link tappable */
  .phone-link span { display: none; }

  .btn.btn-coral[href="#quote"] {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--ink);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 18px;
  }

  .main-nav.nav-open {
    display: flex;
  }

  .site-header { position: sticky; }
  .header-inner { position: relative; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .how-steps { flex-direction: column; align-items: center; }
  .how-arrow { transform: rotate(90deg); margin-top: 0; }
  .hero { padding-top: 40px; }
  .quote-form { padding: 24px; }
  .logo-text { font-size: 1.25rem; }
}
