/* FILE: site/css/styles.css | PURPOSE: All styles for the Hernandez Landscaping site. Mobile-first; breakpoints at 600px and 900px.
   Sections: tokens, base, buttons, header/nav, hero, trust strip, sections, services, steps, projects, about, reviews, area, CTA band, footer, mobile bar, placeholders. */

/* ---------- Fonts (self-hosted from Google Fonts, SIL Open Font License; latin subset) ---------- */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Franklin'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/libre-franklin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --green: #1E3A2B;
  --green-dark: #152A1F;
  --sand: #C9B48E;
  --sand-light: #E9DFCB;
  --bg: #F5F2EB;
  --bg-alt: #ECE6DA;
  --white: #FFFFFF;
  --ink: #1B1C19;
  --ink-soft: #4A4B45;   /* 8.0:1 on --bg */
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Libre Franklin", system-ui, -apple-system, sans-serif;
  --radius: 2px;
  --gutter: 16px;
  --max: 1200px;
  --header-h: 68px;
  --bar-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); padding-bottom: var(--bar-h); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--green); color: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--sand-light); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }
.btn-outline-green { border-color: var(--green); color: var(--green); background: var(--white); }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { color: var(--green); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Header and nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid rgba(27,28,25,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand img { width: 128px; height: auto; }
.menu-toggle { font: 600 1rem var(--body); background: none; border: 2px solid var(--green); color: var(--green); border-radius: var(--radius); padding: 8px 14px; min-height: 44px; cursor: pointer; }
.site-nav { display: none; }
.site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 8px var(--gutter) 20px; border-bottom: 1px solid rgba(27,28,25,.12); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.site-nav a:not(.btn) { text-decoration: none; padding: 12px 0; font-weight: 600; border-bottom: 1px solid rgba(27,28,25,.08); }
.site-nav .btn { margin-top: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--green-dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,16,12,.88) 0%, rgba(10,16,12,.62) 50%, rgba(10,16,12,.18) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 36px; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1; margin-bottom: 16px; max-width: 12em; }
.hero-sub { font-size: 1.06rem; max-width: 36em; color: rgba(255,255,255,.92); margin-bottom: 24px; }
.hero .btn { flex: 1 1 100%; }

/* ---------- Trust strip ---------- */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--green); color: #fff; }
.trust li { display: flex; align-items: center; gap: 8px; padding: 14px 12px 14px var(--gutter); font-weight: 600; font-size: .9rem; line-height: 1.3; border-top: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.trust li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--sand); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.lead { font-size: 1.12rem; max-width: 40em; color: var(--ink-soft); margin-bottom: 32px; }

/* ---------- Services ---------- */
.tier-label { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--green); display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.tier-label::after { content: ""; flex: 1; height: 3px; background: var(--green); }
.hardscape-grid { display: grid; gap: 20px; margin-bottom: 48px; }
.service-card { background: var(--white); overflow: hidden; }
.service-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service-body { padding: 20px 22px 24px; }
.service-body h4 { font-size: 1.8rem; margin-bottom: 6px; }
.service-body p { margin: 0; color: var(--ink-soft); }
.landscape-grid { display: grid; gap: 12px; }
.mini-card { background: var(--white); padding: 18px 20px; border-top: 4px solid var(--sand); }
.mini-card h4 { margin-bottom: 4px; }
.mini-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 28px; }
.steps li { position: relative; padding-left: 68px; }
.step-num { position: absolute; left: 0; top: -4px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--green); color: #fff; font: 700 1.8rem/1 var(--head); }
.steps h3 { font-size: 1.8rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- Recent projects ---------- */
.project-grid { display: grid; gap: 16px; margin: 8px 0 36px; }
.project-grid figure { margin: 0; }
.project-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.project-grid figcaption { font-weight: 600; font-size: .95rem; padding-top: 10px; }

/* ---------- About ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about-text p { max-width: 36em; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: 16px; margin: 8px 0 28px; }
.review { margin: 0; background: var(--white); padding: 24px; border-left: 4px solid var(--green); }
.review .stars { color: #8A6D2F; letter-spacing: 2px; margin-bottom: 8px; } /* darker sand: 4.6:1 on white */
.review footer { font-weight: 600; font-size: .95rem; }

/* ---------- Service area ---------- */
.area p { max-width: 40em; font-size: 1.08rem; }
.city-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list li { background: var(--white); border: 1px solid rgba(27,28,25,.12); padding: 8px 14px; font-weight: 600; font-size: .95rem; }

/* ---------- Closing CTA ---------- */
.cta-band { background: var(--green); color: #fff; padding: 64px 0; }
.cta-band p { font-size: 1.12rem; color: rgba(255,255,255,.9); margin-bottom: 24px; }
.cta-band .btn { flex: 1 1 100%; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-dark); color: rgba(255,255,255,.88); padding: 48px 0; font-size: .95rem; }
.footer-inner { display: grid; gap: 24px; }
.site-footer img { width: 150px; }
.footer-info p { margin: 0 0 6px; }
.footer-info a { color: #fff; }
.copyright { margin-top: 14px !important; color: rgba(255,255,255,.65); }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -2px 14px rgba(0,0,0,.14); }

/* ---------- Placeholders (remove before launch) ---------- */
.placeholder { background: repeating-linear-gradient(45deg, var(--sand-light), var(--sand-light) 12px, #E2D6BE 12px, #E2D6BE 24px); aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 24px; font-weight: 600; color: #6B5427; }
.placeholder-review p:not(.stars) { color: #6B5427; font-weight: 600; }

/* ---------- 600px and up ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .hero .btn, .cta-band .btn { flex: 0 0 auto; }
  .trust li { font-size: .97rem; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .landscape-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- 900px and up: full nav, no bottom bar ---------- */
@media (min-width: 900px) {
  :root { --header-h: 84px; --bar-h: 0px; }
  body { padding-bottom: 0; }
  .mobile-bar, .menu-toggle { display: none; }
  .brand img { width: 160px; }
  .site-nav, .site-nav.open { display: flex; flex-direction: row; align-items: center; gap: 28px; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .site-nav a:not(.btn) { padding: 6px 0; border: 0; font-size: .98rem; }
  .site-nav a:not(.btn):hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
  .site-nav .btn { margin: 0; }
  .hero { min-height: 680px; align-items: center; }
  .hero::after { background: linear-gradient(90deg, rgba(10,16,12,.82) 0%, rgba(10,16,12,.6) 42%, rgba(10,16,12,.08) 78%), linear-gradient(0deg, rgba(10,16,12,.35), transparent 40%); }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero h1 { max-width: 11em; }  /* breaks as "Hardscape and landscaping / in the South Bay" */
  .hero-sub { font-size: 1.2rem; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust li { justify-content: center; padding: 20px 16px; border-top: 0; border-left: 1px solid rgba(255,255,255,.14); }
  .trust li:first-child { border-left: 0; }
  .section { padding: 96px 0; }
  .hardscape-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .landscape-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { padding-left: 0; padding-top: 70px; }
  .project-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .about { grid-template-columns: 1fr 1fr; gap: 64px; }
  .review-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cta-band { padding: 88px 0; text-align: center; }
  .cta-band .btn-row { justify-content: center; }
  .cta-band p { margin-left: auto; margin-right: auto; }
  .footer-inner { grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
}

/* ---------- Sub-page intro (contact, work) ---------- */
.page-intro { background: var(--green); color: #fff; padding: 48px 0 40px; }
.page-intro h1 { font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; margin-bottom: 12px; }
.page-intro .lead { color: rgba(255,255,255,.9); margin: 0; }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Contact page ---------- */
.contact-section { padding-top: 40px; }
.contact-methods { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.contact-methods li { background: var(--white); padding: 16px 20px; border-left: 4px solid var(--green); }
.method-label { display: block; font: 700 1.05rem/1.2 var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: 2px; }
.method-value { font-weight: 600; font-size: 1.1rem; color: var(--green); text-underline-offset: 3px; word-break: break-word; }
.hours { margin: 0 0 32px; }
.form-wrap { background: var(--white); padding: 28px 20px; max-width: 820px; }
.estimate-form h2, .form-thanks h2 { font-size: 2.2rem; }
.field { margin: 0 0 20px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 20px; }
.estimate-form label, .estimate-form legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req, .hint { font-weight: 400; color: var(--ink-soft); font-size: .9rem; }
.estimate-form input[type="text"], .estimate-form input[type="tel"], .estimate-form input[type="email"], .estimate-form select, .estimate-form textarea {
  width: 100%; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--white); border: 1.5px solid #8C8D86; border-radius: var(--radius); padding: 12px 12px; min-height: 48px; }
.estimate-form textarea { resize: vertical; min-height: 130px; }
.estimate-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.estimate-form input:focus, .estimate-form select:focus, .estimate-form textarea:focus { outline: 3px solid var(--sand); outline-offset: 1px; border-color: var(--green); }
.estimate-form [aria-invalid="true"] { border-color: #A3261C; }
.choices { display: grid; gap: 8px; }
.choices.grid { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.choices.inline { grid-template-columns: repeat(2, max-content); gap: 8px 24px; }
.choice { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; min-height: 40px; margin: 0 !important; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--green); flex: none; margin: 0; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: #A3261C; font-weight: 600; } /* 7.4:1 on white */
.btn-submit { width: 100%; font-size: 1.05rem; }
.btn-submit[disabled] { opacity: .7; cursor: wait; }
.form-thanks { padding: 8px 0; }
.form-thanks:focus { outline: none; }

@media (min-width: 600px) {
  .contact-methods { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 36px 40px; }
  .btn-submit { width: auto; padding-left: 36px; padding-right: 36px; }
}
@media (min-width: 900px) {
  .page-intro { padding: 72px 0 60px; }
  .contact-section { padding-top: 56px; }
  .choices.grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Photo banner for sub-page intros (work, contact) ---------- */
.page-intro--photo { position: relative; overflow: hidden; background: var(--green-dark); padding: 72px 0 40px; }
.page-intro-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-intro--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,16,12,.85) 0%, rgba(10,16,12,.55) 60%, rgba(10,16,12,.35) 100%); }
.page-intro--photo .container { position: relative; z-index: 1; }

/* ---------- Gallery filters ---------- */
.gallery-section { padding-top: 32px; }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) 20px; padding-left: var(--gutter); padding-right: var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter-btn { flex: none; font: 600 .95rem/1 var(--body); padding: 12px 16px; min-height: 44px; border: 2px solid var(--green); border-radius: 999px; background: var(--white); color: var(--green); cursor: pointer; white-space: nowrap; }
.filter-btn[aria-pressed="true"] { background: var(--green); color: #fff; }

/* ---------- Gallery grid ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.gallery-item[hidden] { display: none; }
.gallery-item a { display: block; overflow: hidden; background: var(--bg-alt); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.gallery-item a:hover img { transform: scale(1.03); }
.gallery-caption { font-size: .86rem; font-weight: 600; line-height: 1.35; margin: 8px 0 0; }

/* ---------- Full-screen viewer ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,10,9,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; }
.lightbox-caption { color: #fff; font-weight: 600; margin: 14px 0 0; text-align: center; padding: 0 60px; }
.lightbox-count { color: rgba(255,255,255,.7); font-size: .9rem; margin: 4px 0 0; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font: 400 28px/1 var(--body); cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox-close { top: 10px; right: 10px; }
.lightbox-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 8px; top: 50%; transform: translateY(-50%); }
body.no-scroll { overflow: hidden; }

/* ---------- Before and after ---------- */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 980px; }
.ba-pair figure { margin: 0; position: relative; }
.ba-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba-label { position: absolute; top: 10px; left: 10px; background: var(--green); color: #fff; font: 700 .95rem/1 var(--head); text-transform: uppercase; letter-spacing: .12em; padding: 7px 10px; }

/* ---------- Laptop "Text Jaime": number copied notice ---------- */
.copied-note { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; background: var(--ink); color: #fff; padding: 14px 20px; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100% - 32px); text-align: center; }

@media (min-width: 600px) {
  .gallery { gap: 22px 16px; }
  .gallery-caption { font-size: .93rem; }
  .ba-pair { gap: 16px; }
}
@media (min-width: 900px) {
  .page-intro--photo { padding: 120px 0 64px; }
  .filters { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; margin-bottom: 28px; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .lightbox { padding: 64px 90px 32px; }
  .lightbox-prev { left: 24px; }
  .lightbox-next { right: 24px; }
  .lightbox-close { top: 18px; right: 24px; }
}

/* About photo (v1 uses a project photo) */
img.about-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Reviews: overall rating line (individual ratings aren't available) */
.rating-line { font-weight: 600; margin: -4px 0 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rating-line .stars { color: #8A6D2F; letter-spacing: 2px; font-size: 1.1rem; }
.review p { font-size: 1rem; }
.other-city[hidden] { display: none; }
.ba-pair a { display: block; cursor: zoom-in; }

/* Hero on phones/tablets: photo shown whole on top, text below on green (laptops keep text over photo) */
@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: static; height: auto; aspect-ratio: 4 / 3; object-position: 50% 100%; }
  .hero::after { display: none; }
  .hero-inner { padding-top: 24px; padding-bottom: 32px; }
}

/* Homepage statement band (StoryBrand: problem + guide) */
.statement { background: var(--green); color: #fff; padding: 56px 0; }
.statement .container { max-width: 820px; }
.statement h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.statement p { font-size: 1.1rem; margin: 0; color: rgba(255,255,255,.92); }
.field-hint { font-size: .92rem; color: var(--ink-soft); margin: -2px 0 8px; }
.field-hint a { color: var(--green); font-weight: 600; }
@media (min-width: 900px) { .statement { padding: 80px 0; text-align: center; } }

/* Google profile links under reviews */
.review-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
@media (min-width: 900px) { .review-links { justify-content: center; } }
