/* Meglen's Waterwise Landscapes. Type and color follow the logo and the trailer
   lettering: condensed Archivo headings, heavy italic caps for the tagline and
   phone, Libre Franklin for reading, two greens on cream. */

@font-face { font-family: "Archivo"; src: url(/fonts/archivo-62-800.woff2) format("woff2"); font-weight: 800; font-stretch: 62%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-62-800-italic.woff2) format("woff2"); font-weight: 800; font-style: italic; font-stretch: 62%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo-75-700.woff2) format("woff2"); font-weight: 700; font-stretch: 75%; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(/fonts/libre-franklin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #1b2a1f;        /* headings, dark buttons */
  --text: #3d4339;       /* body */
  --muted: #5f665b;      /* secondary text */
  --green: #5d9732;      /* logo green: badges, rules, accents */
  --green-dark: #4a7a27; /* green with white text, links */
  --green-tint: #eef5e6;
  --cream: #f6f5ef;
  --paper: #fbfaf6;
  --line: #d9dccf;
  --white: #fff;
  --radius: 14px;
  --max: 1170px;
  --nav-h: 88px;
  --display: "Archivo", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body { margin: 0; color: var(--text); background: var(--cream); font: 18px/1.65 "Libre Franklin", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 800; font-stretch: 62%; letter-spacing: 0; line-height: 1.06; margin: 0 0 14px; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 60px); }
h2 { font-size: clamp(32px, 4vw, 44px); }
h3 { font-size: 30px; }
p { margin: 0 0 14px; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 3%; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 3px; }

/* Heavy italic caps, used only where the logo and trailer use it */
.tagline, .phone-badge, .eyebrow { font-family: var(--display); font-weight: 800; font-style: italic; font-stretch: 62%; text-transform: uppercase; letter-spacing: .01em; }
.tagline { color: var(--green-dark); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; margin-bottom: 18px; text-wrap: balance; }
.eyebrow { color: var(--green-dark); font-size: 20px; margin-bottom: 8px; }
.phone-badge { display: inline-block; background: var(--green); color: var(--cream); font-size: 26px; line-height: 1; padding: 9px 14px 7px; border-radius: 8px; border: 3px solid var(--cream); box-shadow: 0 0 0 3px var(--green-dark), 3px 4px 0 3px var(--ink); white-space: nowrap; text-decoration: none; }
.phone-badge:hover { background: var(--green-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 24px; border-radius: 10px; border: 0; cursor: pointer; font: 700 20px/1.1 var(--display); font-stretch: 75%; letter-spacing: .01em; text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(27,42,31,.18); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-green { background: var(--green-dark); color: #fff; }
.btn-light { background: var(--green-tint); color: var(--green-dark); }
.btn img { width: 20px; }

/* Nav */
.navbar { position: fixed; inset: 0 0 auto; z-index: 100; min-height: var(--nav-h); display: flex; align-items: center; padding: 8px 3%; background: rgba(251,250,246,.96); backdrop-filter: blur(6px); border-bottom: 3px solid var(--green); }
.nav-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 190px; }
.nav-menu { display: flex; align-items: center; }
.nav-menu a { color: var(--ink); font-weight: 700; font-size: 16px; padding: 12px 14px; text-decoration: none; }
.nav-menu a:hover, .nav-menu a[aria-current] { color: var(--green-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-menu .menu-call { display: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.social img { width: 24px; }
.menu-btn { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

main { padding-top: var(--nav-h); }

/* Hero */
.hero { padding: 56px 0 70px; }
.hero-top { max-width: 860px; margin-bottom: 40px; }
.hero-lead { font-size: 20px; max-width: 680px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.owner { font: 800 30px/1.1 var(--display); font-stretch: 62%; color: var(--ink); margin-bottom: 14px; }
.hero-photo { border-radius: 100% 0 100% 100%; overflow: hidden; background: var(--green-tint); }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Sections */
.section { padding: 80px 0; }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title p { margin: 0; }
.link-arrow { font-weight: 700; }

/* Slider (CSS scroll-snap; JS adds arrows and dots) */
.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); }
.slider-lg { max-width: 1000px; margin: 0 auto; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides > * { flex: 0 0 100%; scroll-snap-align: start; margin: 0; aspect-ratio: 3 / 2; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
.slider-sm .slides img { object-fit: contain; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; line-height: 48px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 2px 6px; border-radius: 99px; background: rgba(0,0,0,.4); }
.slider-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.slider-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); }
.slider-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.3); }

/* Services */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.service-title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.service-title h3 { margin: 0; }
.service-icon { flex: none; width: 60px; height: 60px; padding: 15px; border-radius: 16px; background: var(--green-tint); }
.service-card p { font-size: 17px; }
.service-card .slider, .service-card > img { margin-top: auto; border-radius: 10px; }
.service-card > img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.quote-card .stars { color: #e7a741; font-size: 20px; letter-spacing: 2px; margin-bottom: 10px; }
.quote-card blockquote { margin: 0 0 18px; font-size: 17px; }
.quote-card figcaption { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.quote-card .g { width: 28px; height: 28px; }
.quote-card cite { font-style: normal; color: var(--ink); font-weight: 700; display: block; }
.quote-card small { display: block; color: var(--muted); font-size: 15px; }
.review-cta { text-align: center; margin-top: 32px; }

/* Footer */
.footer { padding: 60px 3% 40px; background: var(--ink); color: #d7dccf; }
.footer a { color: #fff; }
.footer-card { max-width: var(--max); margin: 0 auto; background: var(--cream); border-radius: 24px; padding: 34px 40px; display: flex; align-items: center; gap: 40px; }
.footer-card .cta { flex: 1; }
.footer-card h2 { margin-bottom: 16px; }
.footer-card .logo { width: 230px; }
.footer-card h2 { font-size: clamp(28px, 3.4vw, 40px); }
.footer-card .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cols { max-width: var(--max); margin: 44px auto 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; font-size: 16px; }
.footer-cols h3 { color: #fff; font-size: 24px; margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.bbb { display: inline-block; margin-top: 10px; background: #fff; padding: 6px; border-radius: 6px; }
.bbb img { width: 150px; }
.legal { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); text-align: center; font-size: 15px; }

.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 52px; height: 52px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(27,42,31,.18); opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top img { width: 20px; }

.action-bar { display: none; }

/* Gallery */
.page-head { padding: 50px 3% 10px; max-width: 900px; margin: 0 auto; text-align: center; }
.page-head .lead { font-size: 19px; }
.page-head .more { text-align: left; font-size: 17px; }
.chips-wrap { position: relative; max-width: 1000px; margin: 20px auto 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 3%; }
.chips a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 16px; text-decoration: none; transition: background .2s, color .2s; }
.chips a:hover { background: var(--green-tint); }
.chips a[aria-current="page"] { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.chips small { font-weight: 400; font-size: 14px; }
.grid-status { max-width: var(--max); margin: 0 auto 10px; padding: 0 3%; font-size: 15px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: var(--max); margin: 0 auto; padding: 0 3%; scroll-margin-top: calc(var(--nav-h) + 80px); }
.grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--green-tint); aspect-ratio: 4 / 3; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid a:hover img { transform: scale(1.04); }
.videos { padding-top: 70px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 0; padding: 0; cursor: pointer; width: 100%; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
button.video::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%,-50%); border-radius: 12px; background: #e62117 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 28px no-repeat; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-title { font-size: 16px; margin-top: 8px; color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; padding: 50px 3% 80px; max-width: var(--max); margin: 0 auto; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: 0 20px 50px rgba(27,42,31,.08); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field label b { color: var(--green-dark); }
.field input, .field textarea { width: 100%; border: 1.5px solid #b9bfb0; border-radius: 10px; padding: 13px 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--white); }
.field input:focus, .field textarea:focus { outline: 3px solid var(--green-dark); outline-offset: 1px; border-color: var(--green-dark); }
.field textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin-top: 16px; padding: 16px 18px; border-radius: 12px; font-size: 17px; display: none; scroll-margin: 120px 0 120px; }
.form-msg.ok { display: block; background: var(--green-tint); color: #2d5a12; border: 2px solid var(--green); font-weight: 700; }
.form-msg.err { display: block; background: #fdecec; color: #8a1f1f; border: 2px solid #d74848; }
.form-msg.info { display: block; background: #fff8e6; color: #6b4e00; }
.contact-cards { display: grid; gap: 12px; margin-top: 26px; }
.contact-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink); font-weight: 700; text-decoration: none; }
.contact-card img { width: 26px; }
.jobs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.jobs img { border-radius: var(--radius); }

/* Owner questionnaire */
.questions { max-width: 820px; margin: 0 auto; padding: 0 3% 60px; }
.qsec { margin-bottom: 20px; }
.qsec h2 { font-size: 32px; }
.q { border: 0; padding: 0; margin: 0 0 18px; }
.q legend { font-weight: 700; color: var(--ink); font-size: 17px; margin-bottom: 8px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 17px; cursor: pointer; }
.opt input { width: 22px; height: 22px; accent-color: var(--green-dark); flex: none; }
.acct { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.acct input[type=text], .acct input:not([type]) { border: 1.5px solid #b9bfb0; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 16px; }

/* Responsive */
@media (max-width: 991px) {
  :root { --nav-h: 72px; }
  .brand img { width: 150px; }
  .menu-btn { display: block; }
  .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 3px solid var(--green); padding: 8px 0; box-shadow: 0 12px 24px rgba(27,42,31,.12); }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: 14px 6%; font-size: 18px; }
  .nav-menu .menu-call { display: block; color: var(--green-dark); }
  .nav-right .phone-badge, .social { display: none; }
  .hero-grid, .contact-grid, .jobs { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-card { flex-direction: column; text-align: center; gap: 16px; }
  .footer-card .actions { justify-content: center; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .section { padding: 56px 0; }
  .hero { padding: 32px 0 50px; }
  .hero-lead { font-size: 18px; }
  .hero-buttons .btn { flex: 1 1 140px; }
  .hero-buttons .btn:first-child { flex-basis: 100%; }
  .service-card { padding: 22px; }
  .video-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .to-top { display: none; }
  .footer { padding-bottom: 90px; }
  .footer-cols { grid-template-columns: 1fr; }
  .acct { grid-template-columns: 1fr; }
  .chips-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(to right, rgba(246,245,239,0), var(--cream)); pointer-events: none; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 2px 40px 6px 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chips a { flex: none; }
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { color: #fff; text-align: center; padding: 15px 4px; font: 700 19px/1 var(--display); font-stretch: 75%; text-decoration: none; }
  .action-bar a + a { border-left: 1px solid rgba(255,255,255,.18); }
  .action-bar a:first-child { background: var(--green-dark); }
}
@media (max-width: 479px) {
  .grid { gap: 8px; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { transition: none !important; }
}
