/* =========================================================================
   Yearound Yard Care — site styles
   All colors live in the variables below. Light mode first, then dark mode.
   ========================================================================= */

/* Montserrat (headings), hosted with the site so no visitor data goes to a font service. License: fonts/OFL.txt */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-800.woff2") format("woff2"); }

:root {
  --bg: #F7F5F0;            /* page background */
  --surface: #FFFFFF;       /* cards, header */
  --surface-alt: #EFEBE3;   /* tinted sections */
  --text: #2B2F2D;
  --muted: #5B625E;
  --border: #E2DED5;
  --green: #2E7D32;         /* brand green: buttons, links, accents */
  --green-strong: #1E5626;  /* hover / pressed */
  --on-green: #FFFFFF;      /* text on green buttons */
  --accent-soft: #E3EFE2;   /* icon circles, tags */
  --footer-bg: #18201B;
  --footer-text: #D9D6CF;
  --shadow: 0 1px 2px rgba(20, 30, 22, .06), 0 4px 16px rgba(20, 30, 22, .06);

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --max: 1160px;
  --header-h: 76px;
  color-scheme: light;
}

/* Dark mode: follows the device setting unless the visitor picked light with the toggle… */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121614;
    --surface: #1A201C;
    --surface-alt: #161C18;
    --text: #E9E6DF;
    --muted: #A7AFAA;
    --border: #2B332E;
    --green: #74C277;
    --green-strong: #8FD192;
    --on-green: #0E1A10;
    --accent-soft: #223325;
    --footer-bg: #0D110E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
/* …or picked dark with the toggle. Keep these values identical to the block above. */
:root[data-theme="dark"] {
  --bg: #121614;
  --surface: #1A201C;
  --surface-alt: #161C18;
  --text: #E9E6DF;
  --muted: #A7AFAA;
  --border: #2B332E;
  --green: #74C277;
  --green-strong: #8FD192;
  --on-green: #0E1A10;
  --accent-soft: #223325;
  --footer-bg: #0D110E;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

/* Logo swap: the light logo shows by default, the dark-mode logo in dark mode. */
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a[href^="tel:"] { white-space: nowrap; }  /* keep phone numbers on one line */
a:hover { color: var(--green-strong); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-strong); margin-bottom: 10px;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-strong); color: var(--on-green); }
.btn-outline { border-color: currentColor; color: var(--text); background: transparent; }
.btn-outline:hover { color: var(--green); }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: #1E2A21; }
.btn-sm { padding: 9px 14px; font-size: .88rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 62px; width: auto; }
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .97rem; }
.main-nav a:hover { color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--green); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { color: var(--green); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: block; }
.theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.menu-toggle { display: none; }

/* Mobile header: logo, Schedule button, menu button. Links open in a drop-down panel. */
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand img { height: 44px; }
  .menu-toggle { display: inline-flex; }
  .header-phone, .header-actions .theme-toggle { display: none; }
  .header-actions { margin-left: auto; gap: 10px; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 20px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav .nav-extra { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }
}
@media (min-width: 961px) { .main-nav .nav-extra { display: none; } }
@media (max-width: 420px) {
  .brand img { height: 38px; }
  .header-actions .btn { padding: 8px 11px; font-size: .82rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12, 20, 14, .82) 0%, rgba(12, 20, 14, .6) 45%, rgba(12, 20, 14, .15) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 72px; width: 100%; }
.hero-content { max-width: 640px; }
.hero .eyebrow { color: #A9DDAB; }
.hero p.lead { font-size: 1.2rem; color: #EDEBE6; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .95rem; color: #D5D9D3; }
@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 20, 14, .55) 0%, rgba(12, 20, 14, .85) 100%); }
  .hero .container { padding-top: 96px; padding-bottom: 56px; }
}

/* ---------- services ---------- */
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1000px) { .seasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .seasons { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.season { padding: 26px 24px; }
.season-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.season-head h3 { margin: 0; font-size: 1.3rem; }
.icon-circle {
  width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--green); flex-shrink: 0;
}
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.service-list strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.service-list span { color: var(--muted); font-size: .95rem; }
.projects-card { margin-top: 20px; padding: 26px 28px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.projects-card .text { flex: 1 1 380px; }
.projects-card h3 { margin-bottom: 4px; font-size: 1.3rem; }
.projects-card p { margin: 0; color: var(--muted); }

/* ---------- our work (before / after) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { overflow: hidden; margin: 0; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--border); }
.ba-item { position: relative; }
.ba-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-tag {
  position: absolute; left: 10px; top: 10px; font: 700 .72rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 9px; border-radius: 6px; background: rgba(20, 24, 21, .78); color: #fff;
}
.ba-item.after .ba-tag { background: #2E7D32; }
.work-card figcaption { padding: 18px 20px 20px; }
.work-card figcaption h3 { margin-bottom: 4px; }
.work-card figcaption p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- about / why ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-img img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.why-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 520px) { .why-list { grid-template-columns: 1fr; } }
.why-list li { display: flex; gap: 14px; align-items: flex-start; }
.why-list .icon-circle { width: 42px; height: 42px; }
.why-list .icon-circle svg { width: 20px; height: 20px; }
.why-list strong { display: block; font-family: var(--font-head); margin-bottom: 2px; }
.why-list span { color: var(--muted); font-size: .95rem; }

/* ---------- contact / area ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { padding: 26px 24px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card h3 svg { color: var(--green); }
.info-card p { margin: 0 0 .4em; color: var(--muted); }
.info-card a { font-weight: 700; text-decoration: none; }
.hours { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.hours li span:last-child { color: var(--text); font-weight: 600; }

/* ---------- call-to-action band ---------- */
.cta-band { background: #1E5626; color: #fff; padding: 64px 0; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; color: #D6E8D6; font-size: 1.08rem; }
.cta-band .btn-primary { background: #fff; color: #1E5626; }
.cta-band .btn-primary:hover { background: #E3EFE2; color: #1E5626; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 28px; font-size: .96rem; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { height: 58px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #9AA29C; font-size: .88rem; }

/* ---------- schedule page ---------- */
.page-hero { background: var(--surface-alt); padding: 56px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.schedule-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .schedule-grid { grid-template-columns: 1fr; } }
.form-card { padding: 28px; }
@media (min-width: 901px) { .form-card { min-height: 420px; } }
@media (max-width: 600px) { .form-card { padding: 8px; } }   /* Jobber's form has its own padding; give its fields the room on phones */
.form-placeholder {
  border: 2px dashed var(--border); border-radius: 10px; padding: 32px 24px; text-align: center; color: var(--muted);
}
.form-placeholder strong { display: block; color: var(--text); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 6px; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: flex; gap: 14px; }
.steps li::before {
  content: counter(step); flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--green); font: 800 .95rem var(--font-head);
}
.steps strong { display: block; font-family: var(--font-head); }
.steps span { color: var(--muted); font-size: .95rem; }
.side-card { padding: 26px 24px; }
.side-card + .side-card { margin-top: 20px; }
.side-card h2 { font-size: 1.15rem; font-weight: 700; }
.side-card p { margin: 0 0 .4em; }
.side-card a { text-decoration: none; }
.muted { color: var(--muted); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding: 120px 0; }
.not-found p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
