:root {
  --oat: #f1eadf;
  --oat-light: #faf7f1;
  --paper: #fffdf8;
  --terracotta: #b96f54;
  --terracotta-deep: #8d4937;
  --green: #173f37;
  --green-soft: #55736a;
  --charcoal: #1b211f;
  --muted: #6c706d;
  --line: rgba(23, 63, 55, 0.18);
  --white: #ffffff;
  --call-green: #07b52d;
  --soft-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --page: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--charcoal);
  background: var(--oat);
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 15px;
  left: 15px;
  padding: 10px 15px;
  color: var(--white);
  background: var(--green);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.brand-monogram {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.brand-name {
  display: inline;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
}

.contact-intro,
.contact-form,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-footer {
  position: absolute;
  right: max(34px, calc((100vw - var(--page)) / 2));
  bottom: 28px;
  left: max(34px, calc((100vw - var(--page)) / 2));
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 22px;
  color: rgba(255, 253, 248, 0.53);
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a:hover {
  color: var(--paper);
}

.site-footer-standalone {
  position: relative;
  z-index: 7;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding:
    26px
    max(34px, calc((100vw - var(--page)) / 2))
    34px;
  color: rgba(255, 253, 248, 0.58);
  background: var(--green);
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer-standalone p {
  margin: 0;
}

.site-footer-standalone div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer-standalone a:hover {
  color: var(--paper);
}

.mobile-call-bar {
  display: none;
}

@media (max-width: 1050px) {
.site-footer {
    right: 34px;
    left: 34px;
  }
}

@media (max-width: 760px) {
html {
    scroll-padding-top: 90px;
  }

body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

.brand-name {
    max-width: 145px;
    font-size: 0.78rem;
  }

.site-footer {
    right: 22px;
    bottom: 25px;
    left: 22px;
    flex-direction: column;
    gap: 12px;
  }

.site-footer-standalone {
    right: auto;
    bottom: auto;
    left: auto;
    flex-direction: column;
    gap: 12px;
    padding: 25px 22px 110px;
  }

.mobile-call-bar {
    position: fixed;
    z-index: 1600;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    color: var(--white);
    background: var(--call-green);
    box-shadow: 0 -8px 25px rgba(0, 90, 20, 0.25);
  }

.mobile-call-bar small,
  .mobile-call-bar strong {
    display: block;
  }

.mobile-call-bar small {
    font-size: 0.65rem;
  }

.mobile-call-bar strong {
    font-size: 1rem;
  }

.mobile-call-bar i {
    width: 14px;
    height: 14px;
    position: relative;
    background: #77ff8c;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(119, 255, 140, 0.22);
  }

.mobile-call-bar i::after {
    content: "";
    position: absolute;
    inset: -7px;
    border: 2px solid rgba(119, 255, 140, 0.6);
    border-radius: 50%;
    animation: call-pulse 1.8s ease-out infinite;
  }
}

@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;
    scroll-behavior: auto !important;
  }
}

html.jumping-home {
  scroll-behavior: auto !important;
}

html {
  scroll-padding-top: 0 !important;
}

/* Minimal mobile sticky call bar */
.mobile-call-bar {
  position: fixed;
  z-index: 99999;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  color: #ffffff;
  background: #02b615;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.mobile-call-bar:hover {
  color: #ffffff;
  background: #029a12;
}

@media (max-width: 991px) {
body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

.mobile-call-bar {
    display: flex;
  }
}

/* Directory content wrapper width */
.page-shell,
.container {
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}

@media (max-width: 980px) {
.page-shell,
  .container {
    width: min(calc(100% - 28px), 1200px);
  }
}

.footer-brand .brand-logo {
  height: 36px;
  max-width: min(110px, 34vw);
}

@media (max-width: 1080px) {
.footer-brand .brand-logo {
    height: 32px;
    max-width: min(92px, 32vw);
  }
}

/* Site header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--header-bar-border, rgba(16, 46, 68, 0.08));
  background: var(--header-bar-bg, rgba(255, 255, 255, 0.96));
  color: var(--header-bar-text, inherit);
  backdrop-filter: var(--header-bar-backdrop, blur(14px));
}

.site-header .brand-name,
.site-header .brand-copy strong,
.site-header .brand-text strong,
.site-header .primary-nav > a,
.site-header .main-nav > a,
.site-header .nav-menu > a,
.site-header .desktop-nav > a {
  color: var(--header-bar-link, inherit);
}

.site-header .brand-copy small,
.site-header .brand-text small {
  color: var(--header-bar-link-muted, inherit);
}

.site-header .menu-toggle {
  color: var(--header-bar-link, inherit);
}

.site-header .header-inner,
.site-header .nav-wrap,
.site-header .container.nav-wrap,
.header-inner.shell,
.header-inner.page-shell,
.page-shell.header-inner,
.shell.header-inner {
  width: min(var(--content-max, 2400px), calc(100% - 40px));
  max-width: none;
  min-height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: none;
  width: auto;
  margin-right: 0;
}

.logo-placeholder,
.brand-mark,
.logo-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  padding: 0;
  box-shadow: none;
}

.brand-logo,
.brand .brand-logo {
  display: block;
  width: auto;
  height: 40px;
  max-width: min(120px, 38vw);
  flex: 0 0 auto;
  object-fit: contain;
  background: var(--header-logo-bg, transparent);
  border: 0;
  border-radius: var(--header-logo-radius, 0);
  padding: var(--header-logo-pad, 0);
  box-shadow: none;
  overflow: visible;
  box-sizing: content-box;
}

.footer-brand .brand-logo {
  height: 36px;
  max-width: min(110px, 34vw);
  background: var(--footer-logo-bg, var(--header-logo-bg, transparent));
  padding: var(--footer-logo-pad, var(--header-logo-pad, 0));
  border-radius: var(--footer-logo-radius, var(--header-logo-radius, 0));
}

.logo-placeholder svg,
.brand-mark svg,
.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-placeholder:has(svg) {
  font-size: 0;
  line-height: 0;
  color: transparent;
}

.brand-copy,
.brand-text {
  display: grid;
  line-height: 1.05;
  min-width: 0;
}

.brand-copy strong,
.brand-text strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy small,
.brand-text small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-brand.brand,
.brand.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.primary-nav,
.main-nav,
.nav-menu,
.desktop-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.8vw, 24px);
  white-space: nowrap;
  margin-left: auto;
}

.primary-nav > a,
.main-nav > a,
.nav-menu > a,
.desktop-nav > a {
  position: relative;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.primary-nav > a:not(.nav-call)::after,
.main-nav > a:not(.nav-call)::after,
.nav-menu > a:not(.nav-call)::after,
.desktop-nav > a:not(.nav-call)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav > a:not(.nav-call):hover::after,
.primary-nav > a:not(.nav-call):focus-visible::after,
.primary-nav > a.active::after,
.main-nav > a:not(.nav-call):hover::after,
.main-nav > a:not(.nav-call):focus-visible::after,
.main-nav > a.active::after,
.nav-menu > a:not(.nav-call):hover::after,
.nav-menu > a:not(.nav-call):focus-visible::after,
.nav-menu > a.active::after,
.desktop-nav > a:not(.nav-call):hover::after,
.desktop-nav > a:not(.nav-call):focus-visible::after,
.desktop-nav > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav .nav-call,
.main-nav .nav-call,
.nav-menu .nav-call,
.desktop-nav .nav-call {
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
}

.primary-nav .nav-call::after,
.main-nav .nav-call::after,
.nav-menu .nav-call::after,
.desktop-nav .nav-call::after {
  display: none;
}

.header-phone,
.header-call,
.header-cta,
.header-quote {
  display: none !important;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

@media (max-width: 1080px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav,
  .main-nav,
  .nav-menu,
  .desktop-nav {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 18px 20px 24px;
    margin-left: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 180ms ease, visibility 180ms ease;
  }

  .primary-nav.open,
  .main-nav.open,
  .nav-menu.open,
  .desktop-nav.open {
    transform: translateY(0);
    visibility: visible;
  }

  .primary-nav > a,
  .main-nav > a,
  .nav-menu > a,
  .desktop-nav > a {
    padding: 15px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-size: 1rem;
  }

  .primary-nav .nav-call,
  .main-nav .nav-call,
  .nav-menu .nav-call,
  .desktop-nav .nav-call {
    margin-top: 8px;
    width: fit-content;
  }

  .logo-placeholder,
  .brand-mark,
  .logo-mark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .brand-logo {
    height: 34px;
    max-width: min(100px, 34vw);
  }

  .footer-brand .brand-logo {
    height: 32px;
    max-width: min(92px, 32vw);
  }
}