/* Clean Beans LLC - public site
   Built on the kmtow.com platform. Palette from the brand's green and black: deep charcoal, fresh green, soft paper.
   Type: Barlow / Barlow Condensed. */
:root {
  --ink: #1d2a23;
  --ink-deep: #111a15;
  --green: #3dbb63;
  --green-hover: #5fd082;
  --green-dark: #1f7a3d;
  --paper: #f4f7f4;
  --white: #ffffff;
  --text: #1f2622;
  --steel: #5a665f;
  --line: #d7e0da;
  --error: #a3241a;
  --ok: #1f7a3d;
  --radius: 8px;
  --wrap: 1180px;
  --head-font: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body-font: "Barlow", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body-font); font-size: 18px; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.1; color: var(--ink-deep); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.muted { color: var(--steel); }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--head-font); font-weight: 700; font-size: 1.15rem;
       padding: .6em 1.1em; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.1; }
.btn-call { background: var(--green); color: #07140b; }
.btn-call:hover { background: var(--green-hover); color: #07140b; }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink-deep); }
.btn svg { width: 1em; height: 1em; flex: none; }

/* ---------- Header ---------- */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 92px; }
.site-header .wrap { max-width: 1560px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--head-font); font-weight: 800; font-size: 1.9rem; color: var(--ink-deep); letter-spacing: .01em; }
.brand-text small { font-family: var(--head-font); font-weight: 600; font-size: .95rem; color: var(--green-dark); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; gap: 0 2px; justify-content: flex-end; }
.main-nav a { display: block; font-family: var(--head-font); font-weight: 600; font-size: 1.1rem; color: var(--text); text-decoration: none; padding: 8px 8px; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.main-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.header-call { flex: none; }
.menu-toggle { display: none; margin-left: auto; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); padding: 10px 14px; font: 600 1.05rem var(--head-font); cursor: pointer; }
/* Brand stripe under the header (green and black) */
.livery { height: 6px; background: repeating-linear-gradient(-45deg, var(--green) 0 14px, var(--ink-deep) 14px 28px); }

@media (max-width: 1480px) {
  .header-row { flex-wrap: wrap; min-height: 72px; gap: 12px; padding: 8px 0; }
  .brand img { height: 50px; }
  .brand-text strong { font-size: 1.6rem; }
  .menu-toggle { display: inline-block; }
  .header-call { order: 3; width: 100%; justify-content: center; }
  .main-nav { order: 4; width: 100%; display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; flex-wrap: wrap; padding-bottom: 8px; }
  .main-nav a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--green); padding-left: 14px; }
}

/* ---------- Home hero: the phone number is the headline act ---------- */
.hero { position: relative; color: #fff; background: var(--ink-deep); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,26,21,.94) 0%, rgba(17,26,21,.78) 45%, rgba(17,26,21,.15) 100%); }
.hero-inner { position: relative; z-index: 1; padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 7vw, 96px); max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero-lead { font-size: 1.2rem; color: #d6e6dc; max-width: 34em; }
.hero-phone { display: inline-block; white-space: nowrap; font-family: var(--head-font); font-weight: 800; font-size: clamp(2.5rem, 8.2vw, 5.8rem); line-height: .95;
              color: var(--green); text-decoration: none; letter-spacing: -.01em; margin: .15em 0 .2em; }
.hero-phone:hover { color: var(--green-hover); }
.hero-phone-label { display: block; white-space: normal; font-family: var(--head-font); font-size: 1.25rem; color: #fff; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.hero.plain-hero, .page-hero.plain {
  background:
    radial-gradient(circle at 85% 20%, rgba(61,187,99,.28), transparent 42%),
    radial-gradient(circle at 70% 90%, rgba(61,187,99,.16), transparent 38%),
    var(--ink-deep); }
.hero.plain-hero::after { display: none; }
.hero-sparkles { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); width: min(40vw, 500px); height: auto; pointer-events: none; }
@media (max-width: 900px) { .hero-sparkles { display: none; } }
.hero-creds { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 22px 0 0; color: #d6e6dc; font-weight: 500; }
.hero-creds li::before { content: "\2713"; color: var(--green); font-weight: 700; margin-right: 8px; }

/* Inner page hero */
.page-hero { position: relative; background: var(--ink-deep); color: #fff; overflow: hidden; }
.page-hero .hero-media img { object-position: center 55%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,26,21,.92), rgba(17,26,21,.55)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(32px, 6vw, 64px); }
.page-hero h1 { color: #fff; max-width: 18em; }
.page-hero p { color: #d6e6dc; font-size: 1.15rem; max-width: 36em; margin: 0; }

.page-hero.plain::after { display: none; }
.crumbs { font-size: .95rem; margin-bottom: 10px; }
.crumbs a { color: var(--ink); }
.page-hero .crumbs a { color: #bfd6c7; }

/* ---------- Sections ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { padding-top: 0; }
.section.band { background: var(--white); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.band + .section { padding-top: clamp(40px, 6vw, 72px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.split.media-right .split-media { order: 2; }
.split-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.media-right .split-media { order: 0; } }

/* Service links: photo tiles with a label bar */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.service { position: relative; display: block; text-decoration: none; color: #fff; border-radius: var(--radius); overflow: hidden; background: var(--ink); min-height: 260px; }
.service.noimg { background: radial-gradient(circle at 75% 25%, rgba(61,187,99,.35), transparent 55%), var(--ink); }
.service-icon { position: absolute; top: 22px; left: 18px; color: var(--green); }
.service-icon svg { width: 54px; height: 54px; }
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.service:hover img { transform: scale(1.04); }
.service-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 16px; background: linear-gradient(transparent, rgba(17,26,21,.95) 55%); }
.service-label h3 { color: #fff; margin: 0 0 4px; font-size: 1.55rem; }
.service-label p { margin: 0; font-size: .98rem; color: #d6e6dc; line-height: 1.4; }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } .service { min-height: 220px; } }
@media (prefers-reduced-motion: reduce) { .service img { transition: none; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: #dfe8e2; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; }
.gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(6,12,8,.9); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; margin: 0 auto; }
.lightbox form { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.lightbox .lb-count { margin-right: auto; color: #e6efe9; font: 600 .95rem var(--body-font, system-ui); }
.lightbox .lb-prev, .lightbox .lb-next { font-size: 1.5rem; line-height: 1; padding: 4px 14px; }
/* Big gallery (Our Work page): denser grid, square tiles */
.gallery.gallery-big { grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery.gallery-big button { aspect-ratio: 1 / 1; }
@media (max-width: 1000px) { .gallery.gallery-big { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery.gallery-big { grid-template-columns: repeat(2, 1fr); gap: 6px; } }
.gallery button img { transition: transform .25s ease; }
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.04); }
.lightbox button { background: var(--green); border: 0; font: 700 1rem var(--head-font); padding: 8px 14px; border-radius: var(--radius); cursor: pointer; margin-bottom: 8px; }

/* Call-to-action band */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 6px 0 0; color: #d6e6dc; }
.cta-phone { font-family: var(--head-font); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--green); text-decoration: none; line-height: 1; }
.cta-phone:hover { color: var(--green-hover); }

/* Map */
.map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.map-canvas { height: 440px; border-radius: var(--radius); border: 1px solid var(--line); background: #dfe8e2; }
.map-canvas iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.areas { columns: 2; padding-left: 1.1em; margin: 0 0 1em; }
@media (max-width: 820px) { .map-wrap { grid-template-columns: 1fr; } .map-canvas { height: 340px; } }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--head-font); font-size: 1.25rem; font-weight: 600; color: var(--ink-deep); }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 18px 4px; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label.field { display: block; }
label.field > span { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=email], input[type=search], input[type=number], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #b4c3b9; border-radius: var(--radius); background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(61,187,99,.4); outline-offset: 0; }
.field-error { color: var(--error); font-size: .92rem; margin-top: 4px; }
.notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; border-left: 5px solid; background: var(--white); }
.notice.ok { border-color: var(--ok); }
.notice.error { border-color: var(--error); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: #bfd6c7; margin-top: 0; font-size: .98rem; }
.site-footer a { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-top h2 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { height: 72px; width: auto; flex: none; }
.footer-phone { font-family: var(--head-font); font-weight: 700; font-size: 1.7rem; color: var(--green) !important; text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social img { width: 36px; height: 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 16px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: .9rem; }
.credits { display: flex; align-items: center; gap: 16px; }
.credits span { color: #9ab8a4; }
.credits img { height: 30px; width: auto; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* Mobile call bar: always one tap away from calling */
.callbar { display: none; }
@media (max-width: 700px) {
  .header-call { display: none; }
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--green); }
  .callbar a { flex: 1; text-align: center; padding: 14px; font: 800 1.3rem var(--head-font); color: #07140b; text-decoration: none; }
  body { padding-bottom: 58px; }
}

/* Quote form: text-message opt-in */
label.field.check-field { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.field.check-field input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--green-dark, #1f7a3d); }
label.field.check-field > span { font-weight: 600; margin: 0; }
label.field.check-field .muted { display: block; font-weight: 400; font-size: .85rem; line-height: 1.45; margin-top: 3px; }
.footer-bottom a { color: inherit; }

/* Phones: bigger tap targets for the footer links (mobile-friendly rule, 2026-10-24). Desktop unchanged. */
@media (max-width: 700px) {
  .footer-links li { margin-bottom: 0; }
  .footer-links a, .footer-bottom > div:first-child a { display: inline-block; padding: 11px 0; }
}
