/* ==========================================================================
   Bruno Landscaping — main stylesheet

   Colour tokens, fonts, header and hero are in the <style> block in
   index.html so the first screen paints without waiting for this file.
   Everything below the fold is here.

   Measured contrast (WCAG 2.1) for every pair used in this file:
     ink on white / linen / mint ..... 14.90 / 13.34 / 12.94
     muted on white / linen .......... 7.12 / 6.37
     green on white / linen / mint ... 5.64 / 5.05 / 4.90
     white on green .................. 5.64
     deep on white / linen / mint .... 10.41 / 9.32 / 9.04
     white on deep / leaf on deep .... 10.41 / 5.10
     white on pumpkin ................ 5.70
   ========================================================================== */

a { color: var(--green); text-underline-offset: .2em; }
a:hover { color: var(--deep); }

.section { padding: 3.5rem 0; }
.section h2 { font-size: clamp(1.9rem, 1.35rem + 2.4vw, 3rem); }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 46ch; }
.kicker {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
}
.btn-block { width: 100%; }

/* ------------------------------------------------------------ services */

.svc-grid {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.svc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  padding: 1.1rem 1rem 1.15rem;
  background: var(--white);
  border: 2px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
}
.svc h3 { margin: 0; font-size: 1.2rem; }
.svc p { margin: 0; color: var(--muted); font-size: 1rem; }
.svc p a { font-weight: 700; display: inline-flex; align-items: center; min-height: 48px; }
.svc-ico {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 1.25rem;
}
.svc-more { background: var(--mint); border-color: var(--mint); border-top-color: var(--deep); }
.svc-more .svc-ico { background: var(--white); }

/* ------------------------------------------------------------- seasons */

.seasons { background: var(--linen); }
.season-grid {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.season {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.season-photo img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--mint); }
.season-body { padding: 1.1rem 1.15rem 1.3rem; }
.season h3 { margin: 0; font-size: 1.6rem; }
.months { margin: .1rem 0 .7rem; color: var(--muted); font-weight: 700; font-size: .95rem; }
.season-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.season-list li { display: flex; gap: .5rem; align-items: center; font-weight: 700; color: var(--ink); }
.season-list li::before {
  content: "";
  width: .55rem;
  height: .55rem;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

/* The current season, marked by main.js. */
.now-tag {
  display: inline-block;
  margin: 0 0 .55rem;
  padding: .25rem .7rem;
  border-radius: var(--pill);
  background: var(--pumpkin);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.now-tag[hidden] { display: none; }
.season.is-now { border-color: var(--green); box-shadow: 0 0 0 3px var(--green); }
.season.is-now .season-body { background: var(--mint); flex: 1; }
/* Phones and tablets: the list starts at the current season and rolls
   forward through the year. --ahead is set per season by main.js. */
.season { order: var(--ahead, 0); }

/* ---------------------------------------------------------------- area */

.area-inner { display: grid; gap: 1.5rem; align-items: center; }
.towns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.towns li {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 52px;
  padding: .5rem .85rem;
  background: var(--mint);
  border-radius: var(--pill);
  font-weight: 700;
  color: var(--deep);
}
.towns .ico { color: var(--green); }

/* ------------------------------------------------------------ estimate */

.estimate { background: var(--linen); }
.estimate-grid { display: grid; gap: 2rem; align-items: start; }
.estimate-badge-sm { font-size: .95rem; }

/* The two phone lines, each with a call and a text button. */
.lines { display: grid; gap: 1rem; }
.line {
  background: var(--white);
  border: 2px solid var(--line);
  border-top: 6px solid var(--green);
  border-radius: var(--radius);
  padding: 1.25rem 1.15rem 1.35rem;
}
.line-main { border-color: var(--green); }
.line-label {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
.line-num { margin: .1rem 0 .9rem; }
.line-num a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem);
  white-space: nowrap;
  color: var(--deep);
  text-decoration: none;
}
.line-num a:hover { color: var(--green); }
.line-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--deep); color: var(--white); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.footer-logo { display: block; width: 180px; padding: .6rem .8rem; background: var(--white); border-radius: var(--radius); }
.footer-logo img { display: block; width: 100%; height: auto; }
.site-footer p { margin: 0; }
.site-footer .footer-tag { margin-top: .5rem; font-weight: 700; color: var(--leaf); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.site-footer h2 { font-size: 1.1rem; color: var(--white); margin-bottom: .25rem; letter-spacing: 0; }
.site-footer a { color: var(--white); display: inline-flex; align-items: center; min-height: 48px; }
.site-footer a:hover { color: var(--leaf); }
.footer-phone { font-family: var(--display); font-weight: 800; font-size: 1.45rem; }
.site-footer .footer-text { margin-left: .5rem; padding: 0 1rem; border: 2px solid var(--leaf); border-radius: var(--pill); font-weight: 700; text-decoration: none; }
.site-footer .footer-text:hover { background: var(--leaf); color: var(--deep); }
.site-footer .footer-subhead { margin-top: 1.25rem; }
.footer-address { font-style: normal; }
.site-footer .footer-address a { display: inline-block; padding: .5rem 0; line-height: 1.5; }
.site-footer .footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .95rem; }

/* --------------------------------------------- deferred photos (no JS)
   With JavaScript off the data-src images never get a source; hide them
   and let their <noscript> copies show instead.                          */
.no-js img[data-src] { display: none; }
.season-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------------------------------------------------------- breakpoints */

@media (min-width: 640px) {
  .svc-grid { grid-template-columns: repeat(4, 1fr); }
  .season-grid { grid-template-columns: 1fr 1fr; }
  .towns { grid-template-columns: repeat(3, 1fr); }
  .lines { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .section { padding: 5.5rem 0; }
  .area-inner { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
  .estimate-grid { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; align-items: center; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr; }
}

/* Wide screens: four seasons side by side in calendar order. The current
   one stays highlighted but keeps its place, so the year reads in order. */
@media (min-width: 1000px) {
  .season-grid { grid-template-columns: repeat(4, 1fr); }
  .season { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none !important; }
}
