/* ==========================================================================
   QuickQuote Lawn Co. — InstantEstimate demo template
   ========================================================================== */

:root {
  --navy: #0F2A44;
  --teal: #17B6A7;
  --amber: #FFB648;
  --offwhite: #F5F8F8;
  --ink: #142B2B;
  --graytext: #6B7A7A;

  --font-head: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 12px 30px rgba(15, 42, 68, 0.12);
  --shadow-soft: 0 4px 14px rgba(15, 42, 68, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

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

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

p { margin: 0 0 1em; }

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

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

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.6em;
}

.eyebrow.center, .section-title.center { text-align: center; }

.section-title { font-size: 2rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover { background: #14a294; transform: translateY(-1px); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; width: 100%; }

@media (min-width: 560px) {
  .btn-lg { width: auto; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.is-editable .site-header { top: 44px; }

.header-inner {
  max-width: 1200px;
  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: inline-flex; }

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  white-space: nowrap;
}

.logo-accent { color: var(--teal); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav ul a {
  color: #DCE7E7;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
}

.phone-link svg { flex-shrink: 0; color: var(--teal); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero + Calculator ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #123A5C 100%);
  padding: 64px 0 90px;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.hero-copy { max-width: 700px; }

.hero-copy .eyebrow { justify-content: center; }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.4em;
}

.hero-sub {
  color: #C7D6D6;
  font-size: 1.08rem;
  margin: 0 auto;
}

.calculator-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 32px;
  width: 100%;
  max-width: 820px;
  text-align: left;
}

.calc-steps-label {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--graytext);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--offwhite);
}

.step-pill.active { color: var(--navy); }

.step-pill .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
}

.progress-track {
  height: 6px;
  background: var(--offwhite);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.calc-step { margin-bottom: 30px; }
.calc-step:last-child { margin-bottom: 0; }

.calc-step-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.calc-step-title .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--offwhite);
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-btn:hover { border-color: var(--teal); }

.pill-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

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

@media (min-width: 640px) {
  .checkbox-grid { grid-template-columns: repeat(3, 1fr); }
}

.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 0;
}

.check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}

.estimate-step {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 26px;
}

.estimate-display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 14px;
}

.estimate-amount {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  color: var(--amber);
  -webkit-text-stroke: 0.5px var(--navy);
  line-height: 1;
}

.estimate-caption {
  font-size: 0.85rem;
  color: var(--graytext);
  font-weight: 500;
}

.estimate-disclaimer {
  font-size: 0.82rem;
  color: var(--graytext);
  background: #fff;
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 18px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--offwhite);
  padding: 26px 0;
  border-bottom: 1px solid #E3EAEA;
}

.trust-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 44px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}

/* ---------- Services overview ---------- */
.services-overview { padding: 70px 0; background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}

@media (min-width: 780px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--offwhite);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3, .service-card p { padding: 0 20px; }
.service-card h3 { margin-top: 18px; }
.service-card p { padding-bottom: 20px; color: var(--graytext); font-size: 0.94rem; }

/* ---------- Gallery ---------- */
.gallery { padding: 0 0 70px; background: #fff; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 34px;
}

@media (min-width: 780px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Contact ---------- */
.contact { background: var(--navy); padding: 70px 0; }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 900px) {
  .contact-inner { grid-template-columns: 1.5fr 1fr; }
}

.contact-form-wrap .eyebrow { color: var(--amber); }
.contact-form-wrap .section-title { color: #fff; }
.contact-lead { color: #C7D6D6; }

#quote-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

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

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

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

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 11px 14px;
  border: 1.5px solid #DCE7E7;
  border-radius: var(--radius-sm);
  background: var(--offwhite);
  color: var(--ink);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group textarea { resize: vertical; }

.form-disclaimer { margin-bottom: 20px; }

.contact-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 24px;
  color: #DCE7E7;
}

.contact-info-card h3 {
  color: #fff;
  font-size: 1.1rem;
}

.contact-info-card p { margin-bottom: 10px; font-size: 0.92rem; }
.contact-info-card a { color: var(--teal); font-weight: 600; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  line-height: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0A1E33;
  color: #A9BABA;
  padding: 44px 0 20px;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand p { font-size: 0.88rem; margin-top: 10px; }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a { font-size: 0.9rem; }
.footer-links a:hover { color: var(--teal); }

.footer-contact p { font-size: 0.9rem; margin-bottom: 6px; }

.footer-bottom {
  text-align: center;
  font-size: 0.78rem;
  color: #6C7F7F;
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }

  .main-nav.open {
    max-height: 480px;
    padding: 20px 24px 28px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
  }

  .nav-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .logo-text { font-size: 1rem; }
}
