/* ============================================================
   MB LANDSCAPING — Components & layout
   References design tokens (tokens.css). All colours are var(--*).
   ============================================================ */

/* ---- Layout primitives -------------------------------------------------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding-block: 96px; }
.bg-card { background: var(--surface-card); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Eyebrow ------------------------------------------------------------ */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow--light { color: var(--leaf-300); }
.eyebrow--light::before { background: var(--leaf-400); }

/* ---- Section heading ---------------------------------------------------- */
.section-heading { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.section-heading__title { margin: 0; font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; line-height: 1.15; text-wrap: balance; }
.section-heading__intro { margin: 0; font-size: 16px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* ---- Buttons ------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-sans); font-weight: 600; text-decoration: none; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); white-space: nowrap; }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--md { padding: 12px 22px; font-size: 16px; }
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--primary { background: var(--brand); color: var(--text-on-brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-strong); box-shadow: var(--shadow-md); text-decoration: none; color: var(--text-on-brand); }
.btn--primary:active { transform: translateY(1px); }
.btn--outline { background: transparent; border-color: var(--border-default); color: var(--brand-strong); }
.btn--outline:hover { border-color: var(--brand); background: var(--brand-wash); text-decoration: none; color: var(--brand-strong); }
.btn--secondary { background: var(--bark-600); color: var(--white); }
.btn--secondary:hover { background: var(--bark-700); text-decoration: none; color: var(--white); }
.btn--ghost-dark { background: transparent; border-color: rgba(255,255,255,0.45); color: var(--white); }
.btn--ghost-dark:hover { border-color: var(--white); background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }
.btn--ghost-bark { background: transparent; border-color: var(--bark-400); color: var(--stone-100); }
.btn--ghost-bark:hover { border-color: var(--stone-200); color: var(--white); text-decoration: none; }

/* Inline arrow link */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; color: var(--brand-strong); }

/* ---- Header ------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--stone-50) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--stone-200); }
.site-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { height: 40px; display: block; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav__link { font-family: var(--font-sans); font-size: 15px; text-decoration: none; color: var(--text-muted); font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; transition: color var(--dur-fast) var(--ease-out); }
.nav__link:hover { color: var(--brand-strong); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--text-strong); font-weight: 600; border-bottom-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: var(--text-strong); text-decoration: none; }
.header-phone:hover { color: var(--brand-strong); text-decoration: none; }
.header-phone svg { stroke: var(--brand-strong); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--text-strong); }

/* ---- Hero (home) -------------------------------------------------------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background: var(--bark-700); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(33,25,25,0.82) 0%, rgba(33,25,25,0.55) 48%, rgba(33,25,25,0.12) 100%); pointer-events: none; }
.hero__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 96px 32px; width: 100%; }
.hero__content { max-width: 640px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero__title { margin: 0; font-family: var(--font-display); font-size: 58px; line-height: 1.05; letter-spacing: -0.01em; font-weight: 600; color: var(--white); text-wrap: balance; }
.hero__sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--stone-200); max-width: 50ch; text-wrap: pretty; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.trust-chips { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 12px; }
.trust-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--stone-200); }
.trust-chip svg { stroke: var(--leaf-300); flex: none; }

/* ---- Page hero band (interior pages) ------------------------------------ */
.page-hero { background: var(--bark-600); }
.page-hero__inner { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.page-hero__content { max-width: 680px; display: flex; flex-direction: column; gap: 16px; }
.page-hero__title { margin: 0; font-family: var(--font-display); font-size: 46px; line-height: 1.1; font-weight: 600; color: var(--white); text-wrap: balance; }
.page-hero__sub { margin: 0; font-size: 18px; line-height: 1.6; color: var(--stone-300); max-width: 56ch; text-wrap: pretty; }

/* ---- Section head row (heading + link) ---------------------------------- */
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }

/* ---- Grids -------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ---- Service card (home) ------------------------------------------------ */
.service-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; text-decoration: none; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.icon-tile { width: 48px; height: 48px; border-radius: 10px; background: var(--brand-wash); border: 1px solid var(--brand-tint); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; flex: none; }
.service-card__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong); }
.service-card__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.service-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-strong); }

/* ---- Recent work mosaic (home) ------------------------------------------ */
.mosaic { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 280px 280px; gap: 20px; }
.mosaic__tile { position: relative; border-radius: 16px; overflow: hidden; }
.mosaic__tile--feature { grid-row: span 2; }
.mosaic__tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(to top, rgba(33,25,25,0.75), transparent); pointer-events: none; display: flex; flex-direction: column; gap: 2px; }
.mosaic__tile--feature .mosaic__caption { padding-top: 48px; padding-bottom: 20px; }
.mosaic__cat { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf-300); }
.mosaic__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--white); }
.mosaic__tile--feature .mosaic__title { font-size: 22px; }

/* ---- About band (home) -------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.media { position: relative; height: 440px; border-radius: 16px; overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text-body); }
.checklist svg { stroke: var(--brand-strong); flex: none; margin-top: 2px; }
.stack { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

/* ---- CTA panel ---------------------------------------------------------- */
.cta-panel { background: var(--bark-600); border-radius: 20px; padding: 72px 64px; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-panel--sm { padding: 56px 64px; }
.cta-panel__mark { position: absolute; right: -40px; top: -60px; width: 320px; opacity: 0.08; pointer-events: none; }
.cta-panel__body { display: flex; flex-direction: column; gap: 12px; max-width: 560px; position: relative; }
.cta-panel__title { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.18; color: var(--white); text-wrap: balance; }
.cta-panel--sm .cta-panel__title { font-size: 30px; }
.cta-panel__sub { margin: 0; font-size: 16px; line-height: 1.6; color: var(--stone-300); }
.cta-panel__actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; }

/* ---- Services page ------------------------------------------------------ */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-block { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.service-block__head { display: flex; align-items: center; gap: 16px; }
.service-block__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-strong); letter-spacing: -0.01em; }
.service-block__desc { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.tag { font-size: 12.5px; font-weight: 500; color: var(--text-muted); background: var(--stone-100); border: 1px solid var(--stone-200); border-radius: 999px; padding: 5px 12px; }

/* ---- Our Work ----------------------------------------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chip { font-family: var(--font-sans); font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--border-default); background: var(--surface-card); color: var(--text-body); transition: all var(--dur-fast) var(--ease-out); }
.filter-chip:hover { border-color: var(--brand); color: var(--brand-strong); }
.filter-chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: var(--text-on-brand); }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.work-card { display: flex; flex-direction: column; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; overflow: hidden; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.work-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.work-card__img { height: 220px; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; }
.work-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.work-card__meta { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-strong); }
.work-card__title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--text-strong); }
.work-card__desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.work-card[hidden] { display: none; }

/* ---- About page --------------------------------------------------------- */
.lineage { display: flex; flex-direction: column; border-left: 2px solid var(--brand); padding-left: 20px; }
.lineage__item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; }
.lineage__item + .lineage__item { border-top: 1px solid var(--border-subtle); }
.lineage__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text-strong); }
.lineage__note { font-size: 13.5px; color: var(--text-muted); }
.prose { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text-body); text-wrap: pretty; }
.value-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--stone-50); border: 1px solid var(--border-subtle); border-radius: 16px; }
.value-card__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text-strong); }
.value-card__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

/* ---- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.form-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 40px; box-shadow: var(--shadow-sm); }
.form-title { margin: 0 0 20px; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text-strong); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--text-strong); }
.field__label .req { color: var(--danger); }
.field input, .field textarea { width: 100%; font-family: var(--font-sans); font-size: 15px; color: var(--text-strong); background: var(--surface-card); border: 1.5px solid var(--border-default); border-radius: 10px; padding: 12px 14px; transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--focus-ring); }
.field textarea { resize: vertical; min-height: 120px; }
.field__error { font-size: 13px; color: var(--danger); min-height: 1em; }
.field--invalid input, .field--invalid textarea { border-color: var(--danger); }
.callout { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.callout__panel { width: 100%; background: var(--success-tint); border: 1px solid var(--brand-tint); border-radius: 12px; padding: 24px; }
.callout__title { margin: 0 0 6px; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--brand-strong); }
.callout__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-body); }
.contact-side { display: flex; flex-direction: column; gap: 28px; }
.contact-side__item { display: flex; flex-direction: column; gap: 6px; }
.contact-side__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); }
.contact-side__phone { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--text-strong); text-decoration: none; }
.contact-side__phone:hover { color: var(--brand-strong); text-decoration: none; }
.contact-side__email { font-size: 17px; font-weight: 500; color: var(--text-strong); text-decoration: none; }
.contact-side__email:hover { color: var(--brand-strong); text-decoration: underline; }
.contact-side__divider { border-top: 1px solid var(--border-subtle); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--bark-600); color: var(--stone-100); font-family: var(--font-sans); }
.site-footer__grid { max-width: 1200px; margin: 0 auto; padding: 64px 32px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 20px; }
.site-footer__brand img { height: 44px; width: fit-content; }
.footer-tag { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf-300); }
.footer-blurb { margin: 0; font-size: 14px; line-height: 1.65; color: var(--bark-200); max-width: 34ch; }
.socials { display: flex; gap: 12px; }
.social { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--bark-400); display: flex; align-items: center; justify-content: center; color: var(--stone-200); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.social:hover { border-color: var(--leaf-400); color: var(--leaf-300); }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col__head { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf-300); margin-bottom: 4px; }
.footer-col a { color: var(--stone-200); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-note { color: var(--bark-200); font-size: 14px; line-height: 1.5; }
.site-footer__bar { border-top: 1px solid var(--bark-500); }
.site-footer__bar-inner { max-width: 1200px; margin: 0 auto; padding: 20px 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.copyright { font-size: 13px; color: var(--bark-300); }
.staff-login { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--bark-300); text-decoration: none; }
.staff-login:hover { color: var(--leaf-300); text-decoration: none; }

/* ---- 404 ---------------------------------------------------------------- */
.notfound { min-height: 70vh; background: var(--bark-600); display: flex; align-items: center; justify-content: center; text-align: center; }
.notfound__inner { display: flex; flex-direction: column; gap: 20px; align-items: center; padding: 40px 32px; }
.notfound img { height: 48px; }
.notfound h1 { margin: 0; font-family: var(--font-display); font-size: 34px; color: var(--white); }
.notfound p { margin: 0; color: var(--stone-300); font-size: 16px; }

/* ---- Mobile nav panel (hidden on desktop) ------------------------------- */
.mobile-nav { display: none; }

/* ============================================================
   Responsive — designs are desktop; below is the adaptive layer
   ============================================================ */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .split .media, .split--top .media { order: 2; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .mosaic__tile { height: 240px; }
  .mosaic__tile--feature { grid-row: auto; }
  .hero__title { font-size: 48px; }
  .cta-panel { padding: 56px 40px; }
}

@media (max-width: 760px) {
  .container, .hero__inner, .page-hero__inner, .site-header__inner,
  .site-footer__grid, .site-footer__bar-inner { padding-left: 20px; padding-right: 20px; }
  .section { padding-block: 64px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .work-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 34px; }
  .hero__inner { padding: 72px 20px; }
  .page-hero__title { font-size: 34px; }
  .section-heading__title { font-size: 26px; }
  .cta-panel, .cta-panel--sm { padding: 40px 28px; flex-direction: column; align-items: flex-start; }
  .cta-panel__title { font-size: 26px; }
  .form-card { padding: 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }

  /* Mobile nav */
  .mobile-nav { display: block; background: var(--surface-card); border-bottom: 1px solid var(--border-subtle); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav__list { display: flex; flex-direction: column; padding: 8px 20px 16px; }
  .mobile-nav__list a { padding: 12px 0; font-size: 16px; font-weight: 500; color: var(--text-body); text-decoration: none; border-bottom: 1px solid var(--border-subtle); min-height: 44px; display: flex; align-items: center; }
  .mobile-nav__list a[aria-current="page"] { color: var(--brand-strong); font-weight: 600; }
  .mobile-nav__cta { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

/* Mobile header refinement — de-squash phone + hamburger */
@media (max-width: 760px) {
  .site-header__inner { gap: 12px; }
  .wordmark img { height: 34px; }
  .header-actions { gap: 10px; }
  .header-phone { font-size: 14px; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--border-default); border-radius: 999px; line-height: 1; }
  .header-phone svg { width: 14px; height: 14px; }
  .nav-toggle { width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; }
}
