/* Sunflower Homeworks — style.css
   Static build: no framework, no build step. Drop the site/ folder on shared hosting as-is. */

:root {
  --yellow: #F2BE1B;
  --yellow-deep: #E0AB0C;
  --green: #1E3C27;
  --green-deep: #152E1E;
  --ink: #2E2B24;
  --muted: #6F6A5E;
  --paper: #FAF9F5;
  --tint: #F2F1E9;
  --card: #FFFFFF;
  --line: #E4E0D3;
  --card-grey: #F0F2EF;
  --font-head: "Playfair Display", Georgia, serif;
  --font-script: "Caveat", "Segoe Script", cursive;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }

.container {
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.icon { width: 20px; height: 20px; flex: none; }

section[id], footer[id] { scroll-margin-top: 84px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .95rem;
  padding: .85rem 1.5rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: #241F0E; }
.btn-primary:hover { background: var(--yellow-deep); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: rgba(30, 60, 39, .06); }
.btn-dark { background: var(--green); color: #F5F2E6; }
.btn-dark:hover { background: var(--green-deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FCFBF7;
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(30, 60, 39, .07); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  height: 76px;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.brand img { height: 54px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}
.nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: #4B473E;
  padding: .3rem 0;
  transition: color .15s;
}
.nav-link:hover { color: var(--green); }
.nav-link.is-active { color: #D9A90F; }

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--yellow);
  color: #241F0E;
  font-weight: 700;
  font-size: .9rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  white-space: nowrap;
}
.phone-pill .icon { width: 16px; height: 16px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--green);
  margin: 0 0 4.5px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:last-child { margin-bottom: 0; }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  min-height: clamp(560px, calc(100vh - 76px), 820px);
  background: var(--paper);
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  padding-right: clamp(2rem, 4vw, 3.5rem);
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  background: #F6EFD8;
  color: #3E5A3C;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  border-radius: 6px;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 1.4rem 0 0;
}
.hero h1 .script {
  display: block;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.1;
  color: #E0A80E;
  margin-top: .35rem;
}

.hero-copy {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 2.2rem 0 0;
  padding: 0;
}
.trust li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .92rem;
  color: #4B473E;
}
.trust li + li { border-left: 1px solid #D9D3C4; padding-left: 1.2rem; }

.hero-photo { position: relative; }
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- section headings ---------- */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--green);
  text-align: center;
}
.underline {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--yellow);
  margin: .8rem auto 0;
}

/* ---------- services ---------- */
.services { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 2.4rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.7rem 1.2rem;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: #CFC8B6;
  box-shadow: 0 10px 22px rgba(30, 60, 39, .07);
}
.icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #F1EEE5;
  display: grid;
  place-items: center;
}
.icon-circle img { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.02rem; font-weight: 700; }
.service-card p { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .85rem;
  color: var(--green);
}
.card-link .arrow::before { content: "\2192"; font-weight: 400; }
.card-link:hover { text-decoration: underline; }

/* ---------- about ---------- */
.about { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, .95fr);
  gap: 2.2rem;
  align-items: center;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: 14px;
}
.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.about-copy h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.15;
  color: var(--green);
  margin: 0 0 1.1rem;
}
.about-copy p { color: var(--muted); margin: 0 0 1.6rem; max-width: 30rem; }

.help-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  background: var(--card-grey);
  border-radius: 16px;
  padding: 2rem 1.5rem;
}
.help-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: .8rem;
}
.help-icon img { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.help-title { font-weight: 700; margin: 0; }
.help-sub { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.help-phone { font-weight: 800; font-size: 1.15rem; color: var(--green); letter-spacing: .02em; }

/* ---------- service area ---------- */
.area {
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.area-sub { text-align: center; color: var(--muted); margin: 1.4rem 0 1.6rem; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  padding: 0;
  margin: 0;
}
.chips li {
  background: #FFFFFF;
  border: 1px solid #DFD9C8;
  color: #3F4A38;
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 999px;
}

/* ---------- quote ---------- */
.quote { padding: clamp(3.5rem, 6vw, 5.5rem) 0; }
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}
.quote-photo img {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  object-fit: cover;
  object-position: 75% center;
  border-radius: 14px;
}
.quote-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  color: var(--green);
  margin: 0 0 .6rem;
}
.quote-sub { color: var(--muted); margin: 0 0 1.6rem; max-width: 34rem; }

.field { margin-bottom: 1.05rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .4rem;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .7rem .8rem;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid #D9D4C6;
  border-radius: 9px;
  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(30, 60, 39, .12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-status { font-size: .85rem; color: var(--green); margin: .9rem 0 0; min-height: 1.2em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--yellow);
  padding: clamp(2.8rem, 5vw, 4rem) 0;
  overflow: hidden;
}
.cta-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: clamp(240px, 30vw, 400px);
}
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.cta-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-right: calc(clamp(240px, 30vw, 400px) + 2.5rem);
}
.cta-copy { display: flex; align-items: center; gap: 1.1rem; margin-right: auto; }
.cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}
.cta-icon img { width: 26px; height: 26px; }
.cta-text h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  color: var(--green);
}
.cta-text p { color: rgba(30, 60, 39, .8); margin: .3rem 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #F9F8F4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.2rem 0 2.6rem;
}
.footer-logo { height: 64px; width: auto; margin-bottom: 1rem; }
.footer-tagline { color: var(--muted); font-size: .92rem; max-width: 20rem; margin: 0 0 1.2rem; }
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 0;
  margin: 0 0 1.4rem;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .92rem;
  color: #4B473E;
}
.footer-contact li a:hover { color: var(--green); }
.footer-contact .icon { width: 17px; height: 17px; }
.socials { display: flex; gap: .7rem; }
.social {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  transition: background-color .15s ease;
}
.social:hover { background: #14291B; }
.social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--green); margin: 0 0 1rem; }
.footer-col a {
  display: block;
  font-size: .9rem;
  color: #5D594E;
  padding: .28rem 0;
}
.footer-col a:hover { color: var(--green); text-decoration: underline; }

.footer-strip {
  background: var(--green);
  color: #EAE7D8;
  text-align: center;
  font-size: .85rem;
  padding: .95rem 0;
}
.footer-strip p { margin: 0; }

/* ---------- reveal on scroll (only when JS is on) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .service-card.reveal:nth-child(2) { transition-delay: .07s; }
.js .service-card.reveal:nth-child(3) { transition-delay: .14s; }
.js .service-card.reveal:nth-child(4) { transition-delay: .21s; }

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

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: #F2E7C4; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-photo { grid-column: 1 / -1; order: -1; }
  .about-photo img { aspect-ratio: 16 / 7; }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .15rem;
    background: #FCFBF7;
    border-bottom: 1px solid var(--line);
    padding: .8rem 1.5rem 1.2rem;
    box-shadow: 0 18px 30px rgba(30, 60, 39, .1);
  }
  .site-header.is-open .main-nav { display: flex; }
  .nav-link { padding: .55rem 0; }
  .phone-pill { display: none; }
  .nav-toggle { display: block; margin-left: auto; }

  .hero { display: block; }
  .hero-text { padding: 3.2rem 1.5rem 2rem; }
.hero-photo { height: 340px; }
  .about-grid { grid-template-columns: 1fr; }

  .quote-grid { grid-template-columns: 1fr; gap: 2rem; }
  .quote-photo { max-width: 520px; }
  .quote-photo img { aspect-ratio: 16 / 9; object-position: 60% center; }

  .cta-photo { display: none; }
  .cta-inner { padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) and (min-width: 641px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust { gap: .8rem 1.2rem; }
  .trust li + li { border-left: 0; padding-left: 0; }
  .hero h1 { font-size: 2.3rem; }
  .hero h1 .script { font-size: 1.9rem; }
  .badge { font-size: .68rem; }
  .footer-strip { padding: .95rem 1rem; }
}
