/* ============================================================
   Steve Mercer Home Maintenance — Shared Stylesheet
   ============================================================ */

:root {
  --navy:       #1c3a5b;
  --navy-deep:  #152c45;
  --navy-ink:   #0f2236;
  --green:      #5f7d3c;
  --green-deep: #4d6730;
  --green-soft: #e8eede;
  --cream:      #f7f3ea;
  --cream-deep: #efe8d9;
  --paper:      #ffffff;
  --ink:        #27302b;
  --muted:      #5f6660;
  --line:       #e2dccd;
  --radius:     16px;
  --shadow-sm:  0 1px 2px rgba(21,44,69,.06), 0 2px 8px rgba(21,44,69,.05);
  --shadow-md:  0 4px 14px rgba(21,44,69,.08), 0 12px 34px rgba(21,44,69,.07);
  --container:  1180px;
  --serif:      "Newsreader", Georgia, serif;
  --sans:       "Hanken Grotesk", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* Suppress iOS blue tap flash on interactive elements */
a, button { -webkit-tap-highlight-color: rgba(0,0,0,0); }
body  {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 19px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy);
  margin: 0;
  letter-spacing: -.01em;
}
p  { margin: 0 0 1rem; text-wrap: pretty; }
a  { color: inherit; }
img{ max-width: 100%; display: block; }
ul { margin: 0; padding-left: 1.25em; }
li { margin-bottom: .45em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

/* ---- Typography helpers ---- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
  display: inline-block;
  flex: none;
}
.lead {
  font-size: 20px;
  color: var(--muted);
  margin-top: 14px;
}

/* ---- Sections ---- */
section { padding: 62px 0; }

.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px,4vw,38px); }
.sec-head p  { margin-top: 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-white   { background: #fff; color: var(--green-deep); }
.btn-white:hover { background: #f3f6ec; }
.btn svg { width: 18px; height: 18px; }

/* ---- Cards ---- */
.card {
  display: flex;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  transition: transform .14s, box-shadow .14s, border-color .14s;
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd3bf; }
.card .ic {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-deep);
}
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 20px; margin-bottom: 6px; color: var(--navy); }
.card p  { font-size: 16px; color: var(--muted); margin: 0; }
.card .go {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  font-weight: 700;
  font-size: 15px;
}
.card .go svg { width: 15px; height: 15px; }

/* ---- Closing CTA band ---- */
.cta-band {
  background: linear-gradient(160deg, var(--green-deep), var(--green));
  color: #fff;
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(26px, 4.5vw, 42px); }
.cta-band p  { font-size: 19px; color: #eef3e6; max-width: 600px; margin: 14px auto 26px; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .note { font-size: 14.5px; color: #dfeacf; margin-top: 18px; }

/* ---- Promises (reusable dark panel) ---- */
.promises { background: var(--navy); color: #eaf0f6; }
.promises h2 { color: #fff; }
.promises .eyebrow { color: #9bb26d; }
.promises .eyebrow::before { background: #9bb26d; }
.promise-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.promise {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 16px 18px;
}
.promise .tick {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
}
.promise .tick svg { width: 15px; height: 15px; color: #fff; }
.promise p { margin: 0; font-size: 17px; color: #eef3f8; font-weight: 500; }

/* ---- Page hero (internal pages) ---- */
.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(95,125,60,.18) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .eyebrow { color: #9bb26d; }
.page-hero .eyebrow::before { background: #9bb26d; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 4.5vw, 46px); margin-top: 8px; max-width: 680px; }
.page-hero p  { font-size: 19px; color: #cdd8e4; max-width: 640px; margin-top: 14px; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #9aa7b5;
  margin-bottom: 16px;
}
.page-hero .breadcrumb a { text-decoration: none; color: #9aa7b5; }
.page-hero .breadcrumb a:hover { color: #fff; }
.page-hero .breadcrumb span { color: #5c7080; }

/* ---- Photo placeholders (image-slot wrapper) ---- */
.photo-slot image-slot {
  width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 5px solid #fff;
  outline: 1px solid var(--line);
}
.photo-caption {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-top: 10px;
  font-style: italic;
}

/* ---- Info box ---- */
.info-box {
  background: var(--green-soft);
  border: 1px solid #cdd3bf;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-box .ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.info-box .ic svg { width: 17px; height: 17px; color: #fff; }
.info-box p { margin: 0; font-size: 16.5px; color: #3a4d2a; }

/* ---- Warning / boundary box ---- */
.boundary-box {
  background: #fdf6e8;
  border: 1px solid #e5d49a;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.boundary-box .ic {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #c8a24a;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.boundary-box .ic svg { width: 17px; height: 17px; color: #fff; }
.boundary-box p { margin: 0; font-size: 16px; color: #5c4a18; }
.boundary-box strong { color: #5c4a18; }

/* ---- Service list ---- */
.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  color: var(--ink);
  margin: 0;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  margin-top: 9px;
}

/* ---- Pricing display ---- */
.price-hero-card {
  background: var(--navy);
  color: #fff;
  border-radius: 22px;
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.price-hero-card .big {
  font-family: var(--serif);
  font-size: 80px;
  line-height: 1;
  font-weight: 600;
}
.price-hero-card .big sup { font-size: 36px; vertical-align: super; }
.price-hero-card .cap  { font-size: 17px; color: #cdd8e4; margin-top: 6px; }
.price-hero-card .rule { height: 1px; background: rgba(255,255,255,.15); margin: 22px 0; }
.price-hero-card .caps { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.price-hero-card .caps div { font-size: 14px; color: #cdd8e4; }
.price-hero-card .caps strong { display: block; font-family: var(--serif); font-size: 28px; color: #fff; }

/* ---- Responsive ---- */
@media (min-width: 600px) {
  .promise-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  section { padding: 80px 0; }
  .promise-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   HEADER
   ============================================================ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,234,.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 112px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
  flex: none;
}
.brand .logo-full { height: 96px; width: auto; flex: none; display: block; }
.brand .wm { display: none; }

nav.desk { display: none; align-items: center; gap: 4px; }
nav.desk a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
nav.desk a:hover  { background: var(--green-soft); color: var(--green-deep); }
nav.desk a.active { background: var(--green-soft); color: var(--green-deep); font-weight: 700; }

.phone-top {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: var(--green);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex: none;
}
.phone-top:hover { background: var(--green-deep); }
.phone-top svg { width: 17px; height: 17px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  flex: none;
}
.menu-btn svg { width: 19px; height: 19px; }

/* mobile call strip */
.callstrip { display: flex; }
.callstrip a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.callstrip a svg { width: 19px; height: 19px; }
.callstrip a.alt { background: var(--navy); }

/* Mobile drawer */
.scrim {
  position: fixed; inset: 0;
  background: rgba(15,34,54,.5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s; z-index: 60;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0;
  height: 100%;
  width: min(86vw, 360px);
  background: var(--cream);
  z-index: 70;
  transform: translateX(102%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -10px 0 40px rgba(15,34,54,.18);
}
.drawer.open { transform: translateX(0); }
.drawer .dhead {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}
.drawer .dhead span { font-family: var(--serif); font-size: 20px; color: var(--navy); font-weight: 600; }
.drawer .x { background: none; border: none; font-size: 30px; line-height: 1; color: var(--navy); cursor: pointer; padding: 0 4px; }
.drawer nav { display: flex; flex-direction: column; padding: 10px 0; overflow: auto; }
.drawer nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 21px;
  font-weight: 500;
  padding: 15px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer nav a:hover   { background: var(--green-soft); }
.drawer nav a.active  { color: var(--green-deep); font-weight: 700; }
.drawer .dfoot { margin-top: auto; padding: 22px; border-top: 1px solid var(--line); }
.drawer .dfoot a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 19px; padding: 14px; border-radius: 12px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer.site {
  background: var(--navy-deep);
  color: #c3cdd9;
  padding: 56px 0 30px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}
footer .brand .logo-full { height: 80px; }
footer .col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  font-weight: 700;
}
footer .col a {
  display: block;
  text-decoration: none;
  color: #c3cdd9;
  padding: 5px 0;
  font-size: 15.5px;
}
footer .col a:hover { color: #fff; }
.contactline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  color: #e4ebf2;
  margin-bottom: 10px;
}
.contactline svg  { width: 17px; height: 17px; color: #9bb26d; flex: none; }
.foot-area { font-size: 14.5px; color: #9aa7b5; margin-top: 8px; }
.foot-note {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px;
  color: #8d9bab;
  line-height: 1.7;
}
.foot-note .quiet { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.foot-note .quiet a { color: #9aa7b5; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RESPONSIVE BREAKPOINTS (shared)
   ============================================================ */
@media (min-width: 720px) {
  .callstrip { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .menu-btn   { display: none; }
  nav.desk    { display: flex; }
  .phone-top  { display: inline-flex; }
  .foot-grid  { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
}

/* ============================================================
   MOBILE-SPECIFIC IMPROVEMENTS
   Designed and tested mobile-first per STRUCTURE.md
   ============================================================ */

/* Ensure all buttons meet 48px minimum touch target (AA standard) */
.btn { min-height: 48px; }

/* Disable sticky pricing card on mobile — it overlaps content */
.sticky-card { position: static; }
@media (min-width: 900px) {
  .sticky-card { position: sticky; top: 90px; }
}

/* On small screens, make service cards full-width and easier to tap */
@media (max-width: 599px) {
  /* Shrink the header logo so it doesn't push the menu button off-screen on phones */
  .brand .logo-full { height: 60px; }
  .bar { min-height: 88px; }

  .card { flex-direction: column; }
  .card .ic { width: 48px; height: 48px; }

  /* Tighten section padding on phones */
  section { padding: 48px 0; }

  /* Make the hero badge stack better on very small screens */
  .hero-badge { flex-direction: column; text-align: center; gap: 6px; }

  /* Price card: make the big number slightly smaller on tiny screens */
  .price-hero-card .big { font-size: 64px; }

  /* Full-width buttons in CTA band on mobile */
  .cta-band .row { flex-direction: column; align-items: stretch; }
  .cta-band .row .btn { justify-content: center; }
}

/* Improve readability of breadcrumb on mobile */
@media (max-width: 480px) {
  .page-hero .breadcrumb { font-size: 13px; }
  .page-hero h1 { font-size: clamp(24px, 6vw, 46px); }

  /* Shrink further on small phones so the logo + menu button always fit */
  .brand .logo-full { height: 46px; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--navy);
  color: #fff;
  padding: 18px 0;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #dbe4ee;
  max-width: 560px;
}
.cookie-banner p a { color: #9bb26d; font-weight: 600; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: none;
}
.cookie-banner-actions button {
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
}
.cookie-banner-actions .cb-accept {
  background: var(--green-deep);
  color: #fff;
}
.cookie-banner-actions .cb-reject {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
@media (max-width: 599px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions button { flex: 1; }
}
