/* =========================================================
   CK Condominium Consultants — finished Codex build
   Large type · High contrast · AutoCAD accents · Real logo
   ========================================================= */

:root {
  --ink: #121916;
  --paper: #f7f5ef;
  --lime: #d8f36a;
  --lime-deep: #3d6b1a; /* darker green for readable text contrast */
  --lime-btn: #c5e84a;
  --muted: #3a433c; /* darker gray — easier for aging eyes */
  --line: #c9d0c4;
  --serif: Manrope, system-ui, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --cad-grid: rgba(216, 243, 106, 0.08);
  --shadow: 0 18px 50px rgba(22, 33, 31, 0.12);
  --tap: 56px; /* minimum comfortable tap target */
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 125%; /* 20px base — grandpa & grandma friendly */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  letter-spacing: 0.01em;
  padding-bottom: 88px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }

:focus-visible {
  outline: 4px solid #2f6b14;
  outline-offset: 3px;
}

/* Underline links in body copy so they're obvious */
p a, .faq-list a, .form-status a, li a {
  color: var(--lime-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--lime);
  padding: 0.85rem 1.2rem;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Top line ---------- */
.topline {
  background: var(--ink);
  color: #f0f4ef;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 5vw;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  margin-right: 0.35rem;
  box-shadow: 0 0 0 4px rgba(216, 243, 106, 0.2);
}

.topline-link {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
  margin-left: auto;
  font-size: 1.05rem;
  padding: 0.35rem 0.5rem;
}
.topline-link:hover { color: #fff; }

@media (max-width: 700px) {
  .topline-link { margin-left: 0; width: 100%; text-align: center; }
}

/* ---------- Header + logo ---------- */
.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 4vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(247, 245, 239, 0.98);
  backdrop-filter: blur(10px);
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-logo-footer {
  height: 44px;
  max-width: min(220px, 70vw);
}

.brand-footer .brand-logo {
  /* green logo already visible on light footer — no invert needed */
  background: transparent;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.35rem 1rem;
  margin-left: auto;
  margin-right: 0.75rem;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0.45rem 0.4rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover { color: var(--lime-deep); }

/* Phone chip only in mobile menu — never crushes the desktop bar */
.nav-phone {
  color: #2f6b14 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.nav-phone-mobile {
  display: none; /* shown only when menu is open on mobile */
}

.button {
  border: 0;
  padding: 1.05rem 1.5rem;
  min-height: var(--tap);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border-radius: 8px;
}

.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: #fff; }
.button-lime { background: var(--lime-btn, var(--lime)); color: #121916; box-shadow: 0 10px 24px rgba(216, 243, 106, 0.35); border: 2px solid #2f6b14; }
.button span { font-size: 1.1rem; }

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 700;
}

.header-cta { display: none; }

@media (min-width: 980px) {
  .nav { display: flex; }
  .header-cta {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 48px;
    padding: 0.75rem 1.15rem;
    font-size: 0.95rem;
  }
  .menu-button { display: none; }
  .nav-phone-mobile { display: none !important; }
}

/* Mid desktop: slightly tighter so nothing wraps */
@media (min-width: 980px) and (max-width: 1180px) {
  .nav { gap: 0.15rem 0.55rem; margin-right: 0.5rem; }
  .nav a { font-size: 0.88rem; padding: 0.4rem 0.3rem; }
  .brand-logo { height: 44px; max-width: 180px; }
  .header-cta { padding: 0.7rem 1rem; font-size: 0.9rem; }
}

/* Mobile nav open */
.nav.nav-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0.5rem 5vw 1rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.nav.nav-open a {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  min-height: 56px;
}

/* ---------- CAD ribbon ---------- */
.cad-ribbon {
  min-height: 36px;
  background: var(--ink);
  color: #c5d0c8;
  padding: 0.45rem 5vw;
  display: flex;
  align-items: center;
  gap: 1rem 1.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 1px solid #2a3833;
}

.cad-ribbon strong {
  color: var(--lime);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.cad-sym { color: var(--lime); font-size: 1rem; }
.cad-rule {
  height: 1px;
  background: #5e6e65;
  flex: 1;
  min-width: 48px;
}

/* ---------- Layout ---------- */
.section-pad { padding: 5.5rem 8vw; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 800;
  color: #3d4a3f;
  margin: 0;
}

.eyebrow-line {
  width: 28px;
  height: 2px;
  background: currentColor;
}

h1, h2 {
  font-family: var(--serif);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 1.1rem 0 1.25rem;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h1 em, h2 em {
  font-style: normal;
  color: #2f6b14; /* high-contrast green, not pale */
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: 70vh;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    url("assets/autocad-bg-light.svg"),
    linear-gradient(var(--cad-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--cad-grid) 1px, transparent 1px);
  background-size: cover, 36px 36px, 36px 36px;
  background-position: 80% center, 0 0, 0 0;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 92%);
}

.hero-copy,
.hero-visual { position: relative; z-index: 1; }

.hero-lede {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 36rem;
  margin: 0;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin: 1.75rem 0 2.25rem;
}

.text-link {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.text-link span { margin-left: 0.35rem; }

.trust-row {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.avatars { display: flex; }
.avatars span {
  width: 36px;
  height: 36px;
  border: 2px solid var(--paper);
  background: #bac4b9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: -7px;
  font-size: 0.75rem;
  font-weight: 700;
}
.avatars span:first-child { margin: 0; background: #e4c7af; }
.avatars span:nth-child(2) { background: #b7b6ca; }
.avatars span:nth-child(3) { background: #d6aa9b; }
.avatars span:last-child {
  background: var(--ink);
  color: var(--lime);
  font-size: 1.1rem;
}

.trust-row strong,
.trust-row small { display: block; }
.trust-row strong { font-size: 0.95rem; }
.trust-row small { color: var(--muted); margin-top: 0.2rem; font-size: 0.88rem; }

.hero-visual {
  height: min(560px, 70vw);
  position: relative;
}

.hero-image {
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 160px 160px 0 0;
  box-shadow: var(--shadow);
}

.image-one {
  background-image: url("images/hero-condo.jpg");
}

.hero-card {
  position: absolute;
  bottom: -14px;
  left: -18px;
  background: var(--lime);
  padding: 1.35rem 1.5rem;
  width: min(220px, 70%);
  box-shadow: var(--shadow);
}

.card-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
  margin-top: 1.1rem;
  letter-spacing: -0.03em;
}

.card-arrow {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.25rem;
}

.hero-stamp {
  position: absolute;
  right: -8px;
  top: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.15;
  transform: rotate(8deg);
  background: var(--paper);
  font-weight: 600;
}

.hero-stamp strong {
  font-size: 1.2rem;
  font-family: var(--serif);
}

.cad-corner {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: rgba(22, 33, 31, 0.88);
  color: var(--lime);
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  border: 1px solid #3a4a44;
}

/* ---------- Proof bar ---------- */
.proof-bar {
  display: grid;
  gap: 1.5rem;
  background: #e4e6dd;
  padding: 1.75rem 8vw;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-bar > div {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 0.9rem;
  align-items: center;
}

.proof-number {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--lime-deep);
  font-weight: 800;
}

.proof-bar strong { font-size: 1rem; }
.proof-bar small {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* ---------- Sections ---------- */
.section-intro {
  max-width: 34rem;
  margin-bottom: 2.75rem;
}

.section-intro > p:last-child {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.cad-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--paper);
}

.cad-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/autocad-bg-light.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.28;
  pointer-events: none;
}

.cad-section > * {
  position: relative;
  z-index: 1;
}

/* Stronger AutoCAD panel for contact (dark sheet) */
.contact.cad-dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.contact.cad-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/autocad-bg.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}

.contact.cad-dark > * {
  position: relative;
  z-index: 1;
}

/* Full-bleed CAD wallpaper option (subtle site-wide under body not needed) */
.cad-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/autocad-bg-light.svg");
  background-size: 120% auto;
  background-position: 70% 20%;
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}

/* Services */
.service-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--paper);
  padding: 1.6rem 1.35rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.service-card.featured {
  background: var(--ink);
  color: #fff;
}

.service-num {
  font-size: 0.75rem;
  color: var(--lime-deep);
  letter-spacing: 0.12em;
  font-weight: 700;
}

.service-icon {
  font-size: 1.85rem;
  margin: 1.5rem 0 1rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

.service-card p {
  font-size: 1.05rem;
  color: #3a433c;
  line-height: 1.65;
  margin: 0.9rem 0 1.25rem;
}

.service-card.featured p { color: #dce5dc; }

.service-card a {
  margin-top: auto;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.service-card a span {
  color: var(--lime-deep);
  margin-left: 0.35rem;
}

/* Approach */
.approach {
  background: #e4e6dd;
  display: grid;
  gap: 3rem;
  align-items: center;
}

.approach-image {
  height: 420px;
  background-size: cover;
  background-position: center;
  position: relative;
  box-shadow: 14px 14px 0 rgba(22, 33, 31, 0.12);
}

.image-two {
  background-image: url("images/consultant-john.jpg");
}

.image-note {
  position: absolute;
  bottom: 1.25rem;
  right: -0.5rem;
  background: var(--paper);
  padding: 1.1rem 1.25rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  box-shadow: var(--shadow);
}

.image-note strong { color: var(--lime-deep); }

.cad-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--ink);
  color: var(--lime);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.7rem;
}

.approach-copy > p {
  color: var(--muted);
  line-height: 1.65;
  max-width: 28rem;
  font-size: 1.05rem;
}

.steps { margin-top: 2rem; }
.steps > div {
  display: flex;
  gap: 1.15rem;
  padding: 1rem 0;
  border-top: 1px solid #c8ccc1;
}
.steps span {
  font-size: 0.85rem;
  color: var(--lime-deep);
  font-weight: 800;
  min-width: 1.5rem;
}
.steps p { margin: 0; }
.steps strong,
.steps small { display: block; }
.steps strong { font-size: 1.05rem; }
.steps small {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Case study */
.case-study {
  background: var(--lime);
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.case-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 1.5rem 0 0;
  font-weight: 700;
}

.case-copy > p:not(.eyebrow):not(.case-label) {
  color: #3f4b2c;
  line-height: 1.65;
  max-width: 32rem;
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

.case-visual { display: grid; gap: 1.25rem; justify-items: center; }

.case-photo {
  width: 100%;
  max-width: 420px;
  height: 240px;
  background: url("images/aspen-close.jpg") center/cover;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 rgba(22, 33, 31, 0.15);
}

.case-number {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.case-number strong { font-size: 1.35em; }
.case-number span { font-size: 0.75em; }
.case-number small {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  font-weight: 700;
}

/* Reviews */
.reviews { background: var(--paper); }

.review-grid {
  display: grid;
  gap: 1.15rem;
}

.review-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem;
  box-shadow: 0 8px 28px rgba(22, 33, 31, 0.05);
}

.review-card p {
  margin: 0 0 1.15rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-card strong { font-size: 1rem; }
.review-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* FAQ */
.faq-list details {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0;
  background: transparent;
}

.faq-list details:last-child { border-bottom: 1px solid var(--line); }

summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  letter-spacing: -0.02em;
  min-height: 60px;
  padding: 0.35rem 0;
}

summary::-webkit-details-marker { display: none; }

.faq-list summary span {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--lime-deep);
  flex-shrink: 0;
}

.faq-list details p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 42rem;
  font-size: 1.12rem;
  margin: 0.85rem 0 0;
}

/* Contact */
.contact {
  background: var(--ink);
  color: #fff;
  display: grid;
  gap: 2.5rem;
}

.eyebrow-light { color: #b9c9b7; }

.contact h2 { color: #fff; }
.contact h2 em { color: var(--lime); }

.contact > div > p:not(.eyebrow) {
  color: #aab5ae;
  max-width: 26rem;
  line-height: 1.65;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 48px;
}

.contact-pill:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form label {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e8efe8;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 3px solid #7a8a80;
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 1rem 0.85rem;
  font: inherit;
  font-size: 1.15rem;
  outline: none;
  resize: vertical;
  min-height: 60px;
  border-radius: 8px 8px 0 0;
}

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--lime); }

.contact-form .button {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-status {
  font-size: 1rem;
  color: var(--lime);
  font-weight: 700;
  min-height: 1.4em;
}

/* Footer */
.footer {
  padding: 2.5rem 5vw;
  display: flex;
  align-items: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  background: #efece4;
}

.footer p {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  margin-right: auto;
  max-width: 22rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
}

.footer-links a:hover { color: var(--lime-deep); }

.footer > small {
  width: 100%;
  font-size: 0.85rem;
  color: #8a9088;
}

/* Mobile sticky bar */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 3px solid #2f6b14;
  box-shadow: 0 -10px 32px rgba(0, 0, 0, 0.12);
}

.mobile-bar .button {
  flex: 1;
  min-height: 60px;
  font-size: 1.1rem;
  border-radius: 10px;
}

/* Lift chat above mobile bar on small screens */
@media (max-width: 899px) {
  /* detailed mobile chat placement is in MOBILE FRIENDLY LAYER */
}

@media (min-width: 900px) {
  .mobile-bar { display: none; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 800px) {
  .proof-bar { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .faq {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4rem;
    align-items: start;
  }
  .faq .section-intro { margin-bottom: 0; }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4vw;
  }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .approach,
  .case-study,
  .contact {
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
  }
  .approach-image { height: 520px; }
  .hero-visual { height: 560px; }
  .hero-card { left: -36px; }
  .case-visual { justify-items: end; }
}

/* mobile rules moved to MOBILE FRIENDLY LAYER */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:hover { transform: none; }
}


/* =========================================================
   SENIOR-FRIENDLY LAYER — grandpa & grandma
   ========================================================= */

/* Phone chip styling — mobile menu only */
.nav.nav-open .nav-phone-mobile {
  display: inline-flex !important;
  font-size: 1.1rem !important;
  color: #2f6b14 !important;
  border: 2px solid #2f6b14;
  border-radius: 999px;
  padding: 0.75rem 1rem !important;
  background: #eef8e0;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  white-space: nowrap !important;
  box-sizing: border-box;
}

/* Proof / cards more readable */
.proof-bar strong { font-size: 1.1rem; }
.proof-bar small { font-size: 1rem; color: var(--muted); }
.trust-row strong { font-size: 1.05rem; }
.trust-row small { font-size: 0.98rem; }

.review-card p {
  font-size: 1.12rem;
  color: #2a322c;
  line-height: 1.7;
}

.review-card strong { font-size: 1.05rem; }
.review-card span { font-size: 0.98rem; color: #3a433c; }

.steps strong { font-size: 1.12rem; }
.steps small { font-size: 1.02rem; line-height: 1.55; }

.case-copy > p:not(.eyebrow):not(.case-label) {
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  color: #2a341c !important;
}

.contact-pill {
  font-size: 1.05rem !important;
  min-height: 56px !important;
  border-width: 2px !important;
}

.form-status {
  font-size: 1.1rem !important;
  line-height: 1.5;
}

.footer p,
.footer-links a,
.footer > small {
  font-size: 1.02rem !important;
  line-height: 1.55;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Easy-read helper banner */
.easy-read {
  background: #e8f5d4;
  border: 2px solid #2f6b14;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3010;
  line-height: 1.5;
}

.easy-read a {
  color: #1a4010;
  font-weight: 800;
}

/* High-contrast mode support */
@media (prefers-contrast: more) {
  body { color: #000; background: #fff; }
  .button-dark { background: #000; border: 2px solid #000; }
  .button-lime { background: #d8f36a; border: 3px solid #000; color: #000; }
  .muted, .hero-lede, .service-card p { color: #222 !important; }
}

/* Less motion for comfort */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   MOBILE FRIENDLY LAYER
   phones + small tablets
   ========================================================= */

/* Safe areas for notched phones */
.mobile-bar {
  padding-left: max(0.85rem, env(safe-area-inset-left));
  padding-right: max(0.85rem, env(safe-area-inset-right));
}

/* Full-width buttons feel better on touch */
.button {
  -webkit-tap-highlight-color: rgba(47, 107, 20, 0.15);
  touch-action: manipulation;
}

.menu-button,
.nav a,
.contact-pill,
.agentic-launch,
.agentic-chips button {
  -webkit-tap-highlight-color: rgba(47, 107, 20, 0.12);
  touch-action: manipulation;
}

/* Keep sticky header solid on mobile (no blur jank) */
@media (max-width: 979px) {
  .site-header {
    background: #f7f5ef;
    backdrop-filter: none;
    min-height: 72px;
    padding: 0.5rem 4vw;
    gap: 0.5rem;
  }

  .brand-logo {
    height: 42px;
    max-width: min(200px, 62vw);
  }

  .menu-button {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  /* Drawer menu full width, scrollable if long */
  .nav.nav-open {
    max-height: min(75vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 4vw 1.25rem;
    border-bottom: 3px solid #2f6b14;
  }

  .nav.nav-open a {
    font-size: 1.2rem;
    padding: 1rem 0.25rem;
  }

  .nav.nav-open .nav-phone-mobile {
    display: inline-flex !important;
    margin-top: 0.5rem;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap !important;
  }

  body.nav-is-open {
    overflow: hidden;
  }

  /* Hide decorative CAD ribbon clutter on small screens */
  .cad-ribbon {
    display: none;
  }

  .section-pad {
    padding: 3.25rem 5vw;
  }

  .hero {
    min-height: 0;
    gap: 1.75rem;
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }

  .hero-lede {
    font-size: 1.1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .easy-read {
    font-size: 1.02rem;
    padding: 0.9rem 1rem;
  }

  .trust-row {
    align-items: flex-start;
  }

  /* Hero image: no overflow off-screen */
  .hero-visual {
    height: min(360px, 88vw);
    width: 100%;
    margin: 0;
  }

  .hero-image {
    border-radius: 100px 100px 0 0;
  }

  .hero-card {
    left: 0.5rem;
    right: auto;
    bottom: 0.5rem;
    width: min(200px, 72%);
    padding: 1rem 1.1rem;
  }

  .hero-card strong {
    font-size: 1.15rem;
  }

  .hero-stamp {
    width: 72px;
    height: 72px;
    right: 0.35rem;
    top: 0.75rem;
    font-size: 0.68rem;
  }

  .hero-stamp strong {
    font-size: 1rem;
  }

  .cad-corner {
    display: none;
  }

  /* Proof: stack cleanly */
  .proof-bar {
    grid-template-columns: 1fr;
    padding: 1.25rem 5vw;
    gap: 1rem;
  }

  /* Services: one column */
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
    padding: 1.35rem 1.2rem;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  /* Approach / case / contact stack */
  .approach,
  .case-study,
  .contact,
  .faq {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .approach-image {
    height: 280px;
    order: -1;
    box-shadow: 8px 8px 0 rgba(22, 33, 31, 0.12);
  }

  .image-note {
    right: 0.5rem;
    bottom: 0.75rem;
    left: 0.5rem;
    font-size: 1.05rem;
    max-width: none;
  }

  .case-photo {
    height: 200px;
    max-width: 100%;
    box-shadow: 6px 6px 0 rgba(22, 33, 31, 0.12);
  }

  .case-number {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
    text-align: left;
    justify-self: start;
  }

  .case-visual {
    justify-items: stretch;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .contact-form .button {
    width: 100%;
    align-self: stretch;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 2rem 5vw 6.5rem; /* room above sticky bar */
  }

  .footer p {
    margin-right: 0;
    max-width: none;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }

  .footer-links a {
    width: 100%;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }

  /* Floating chat doesn't cover call bar */
  .agentic-launch {
    right: 14px !important;
    bottom: calc(92px + env(safe-area-inset-bottom)) !important;
    min-height: 54px !important;
    padding: 12px 16px 12px 12px !important;
    font-size: 15px !important;
  }

  .agentic-panel {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    bottom: calc(150px + env(safe-area-inset-bottom)) !important;
    height: min(58vh, 460px) !important;
    max-height: calc(100vh - 200px) !important;
  }

  /* Topline: stacked, big phone */
  .topline {
    flex-direction: column;
    text-align: center;
    gap: 0.35rem;
    padding: 0.7rem 4vw;
    font-size: 0.95rem;
  }

  .topline-link {
    margin-left: 0;
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    display: block;
    padding: 0.5rem;
  }
}

/* Phones in portrait (narrow) */
@media (max-width: 480px) {
  html { font-size: 112.5%; } /* ~18px — still large, fits better */

  h1 { font-size: 2rem !important; line-height: 1.12 !important; }
  h2 { font-size: 1.7rem !important; line-height: 1.15 !important; }

  .brand-logo {
    height: 36px;
    max-width: 58vw;
  }

  .site-header {
    min-height: 64px;
  }

  .menu-button {
    width: 48px;
    height: 48px;
  }

  .hero-visual {
    height: min(300px, 92vw);
  }

  .hero-image {
    border-radius: 80px 80px 0 0;
  }

  .hero-stamp {
    display: none; /* reduces clutter on small phones */
  }

  .hero-card {
    width: min(180px, 78%);
  }

  .mobile-bar .button {
    min-height: 56px;
    font-size: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .section-pad {
    padding: 2.75rem 4.5vw;
  }

  summary {
    font-size: 1.1rem;
    min-height: 56px;
  }
}

/* Landscape phones */
@media (max-height: 430px) and (orientation: landscape) {
  .hero-visual { display: none; }
  .mobile-bar { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .mobile-bar .button { min-height: 48px; }
  .agentic-launch { bottom: calc(72px + env(safe-area-inset-bottom)) !important; }
  body { padding-bottom: 70px; }
}

/* Tablet mid sizes: 2-col services, keep single hero until 980 */
@media (min-width: 600px) and (max-width: 979px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    grid-template-columns: 1fr 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 4rem 6vw;
  }
}


/* =========================================================
   MOTION LAYER — gentle movement (grandpa-safe)
   Soft floats, scroll reveals, button feedback
   ========================================================= */

:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-distance: 22px;
  --motion-time: 0.7s;
}

/* Buttons: soft press + glow */
.button {
  transition:
    transform 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out),
    background 0.22s ease,
    border-color 0.22s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-lime:hover {
  box-shadow: 0 14px 32px rgba(197, 232, 74, 0.45);
}

.button-dark:hover {
  box-shadow: 0 12px 28px rgba(18, 25, 22, 0.28);
}

/* Cards & tiles */
.service-card,
.review-card,
.proof-bar > div,
.contact-pill {
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.25s ease,
    background 0.25s ease;
}

.service-card:hover,
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(22, 33, 31, 0.12);
}

.proof-bar > div:hover {
  transform: translateX(4px);
}

.contact-pill:hover {
  transform: translateY(-2px);
}

/* Nav links underline grow */
.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 0.2rem;
  height: 2px;
  background: #2f6b14;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-phone::after { display: none; }

/* Logo soft pop on load */
.brand-logo {
  transition: transform 0.35s var(--ease-out), opacity 0.35s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.03);
}

/* Hero entrance */
.motion-fade-up {
  animation: fadeUp 0.85s var(--ease-out) both;
}

.motion-fade-in {
  animation: fadeIn 1s var(--ease-out) 0.15s both;
}

.motion-delay-2 {
  animation-delay: 0.2s;
}

.motion-float {
  animation: floatY 5s ease-in-out infinite;
}

.motion-float-slow {
  animation: floatY 7s ease-in-out 0.5s infinite;
}

/* Call banner gentle attention */
.motion-pulse-border {
  animation: softPulse 3.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(var(--motion-distance));
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(47, 107, 20, 0.15);
    border-color: #2f6b14;
  }
  50% {
    box-shadow: 0 0 0 8px rgba(47, 107, 20, 0.06);
    border-color: #4a9a22;
  }
}

/* Scroll reveals */
.reveal,
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--motion-time) var(--ease-out),
    transform var(--motion-time) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible,
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }

/* FAQ open animation */
.faq-list details {
  transition: background 0.25s ease;
}

.faq-list details[open] {
  background: rgba(255, 255, 255, 0.55);
}

.faq-list details .faq-body,
.faq-list details p {
  animation: fadeUp 0.35s var(--ease-out);
}

/* Sticky header shadow when scrolled */
.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(22, 33, 31, 0.08);
  transition: box-shadow 0.3s ease;
}

.site-header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Mobile bar slide-up on load */
.mobile-bar {
  animation: slideUpBar 0.55s var(--ease-out) 0.4s both;
}

@keyframes slideUpBar {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service icon wiggle on hover */
.service-icon {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Case number count feel */
.case-number {
  transition: transform 0.4s var(--ease-out);
}

.case-study.is-visible .case-number {
  animation: popIn 0.6s var(--ease-out) 0.15s both;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Smooth anchor scrolling already on html */

/* Respect reduced motion — keep usable, remove looping floats */
@media (prefers-reduced-motion: reduce) {
  .motion-fade-up,
  .motion-fade-in,
  .motion-float,
  .motion-float-slow,
  .motion-pulse-border,
  .mobile-bar,
  .case-study.is-visible .case-number,
  .faq-list details p {
    animation: none !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .button:hover,
  .service-card:hover,
  .review-card:hover {
    transform: none;
  }
}

/* On small screens: less float travel so it doesn’t feel busy */
@media (max-width: 700px) {
  :root {
    --motion-distance: 16px;
  }

  .motion-float,
  .motion-float-slow {
    animation-duration: 6.5s;
  }

  @keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .service-card:hover,
  .review-card:hover {
    transform: translateY(-3px);
  }
}
