:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-tint: #eef5ff;
  --bg-alt: #f5f6f8;
  --text: #111214;
  --muted: #606872;
  --brand: #1e88e5;
  --brand-dark: #166fc1;
  --card: #ffffff;
  --border: #e6e8ec;
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
  --max: 1120px;
  --scroll-offset: 96px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  max-width: 100%;
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #ffffff;
  color: #000000;
  padding: 0.75rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.04);
}

.logo {
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
}

.logo-img {
  height: 66px;
  width: auto;
  aspect-ratio: 4 / 1;
  object-fit: contain;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: clamp(1.22rem, 1.2vw + 0.9rem, 1.34rem);
  font-weight: 700;
  letter-spacing: normal;
  color: var(--text);
  white-space: nowrap;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav-desktop {
  margin-left: auto;
}

.site-nav a {
  color: #353c45;
  font-weight: 600;
  padding-bottom: 0.16rem;
  border-bottom: 2px solid transparent;
}

.site-nav a.active {
  color: var(--text);
  border-bottom-color: var(--brand);
}

.site-nav a:hover,
.menu-social a:hover,
.footer-links a:hover {
  color: var(--text);
}

.nav-details {
  display: none;
}

.nav-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  background: #ffffff;
}

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

.nav-panel {
  display: grid;
  gap: 0.75rem;
}

.menu-social {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
}

.menu-social a {
  padding: 0.25rem 0;
}

.header-social{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.header-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.12);
  text-decoration:none;
}

.header-social a:hover{
  background:rgba(255,255,255,.9);
}

.social-icon{
  width:16px;
  height:16px;
  fill:currentColor;
}

@media (max-width: 767px){
  .header-social{ display:none; }
}

.hero {
  padding: 2.5rem 0 2.5rem;
  position: relative;
  background-image: url("/assets/img/homepage-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(238, 245, 255, 0.92) 0%, rgba(251, 251, 252, 0.82) 55%, rgba(251, 251, 252, 0.47) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  max-width: 66ch;
}

.prose {
  max-width: 66ch;
}

.prose p {
  margin: 0 0 1rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  letter-spacing: 0;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 2.2vw + 1.4rem, 3rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.hero-subcopy {
  font-size: 1.04rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-contact {
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-weight: 600;
}

.hero-media {
  display: none;
}

.hero-logo {
  width: min(420px, 100%);
  height: auto;
  object-fit: contain;
}

.section {
  padding: 4rem 0;
}

main section[id] {
  scroll-margin-top: var(--scroll-offset);
}

.section-alt {
  background: var(--bg-alt);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.services-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid article {
  background: var(--surface);
  border: 1px solid rgba(17, 18, 20, 0.08);
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.grid article h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.grid article p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  margin: 0;
  max-width: 32ch;
}

.review-quote { color: var(--text); opacity: 0.92; margin: 0.75rem 0 0.75rem; }
.review-meta { color: var(--muted); font-weight: 600; margin: 0; }
.stars { color: var(--brand); letter-spacing: 0.08em; font-size: 0.95rem; }
.reviews-link { display: inline-block; margin-top: 1.25rem; color: var(--brand); font-weight: 700; }
.reviews-link:hover { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.36);
  outline-offset: 2px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 24, 40, 0.1);
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  border-color: var(--brand);
  color: var(--brand);
  background: #fff;
}

.btn-ghost {
  border-color: var(--border);
  color: #2f3640;
  background: #fff;
  padding: 0.45rem 0.95rem;
  font-size: 0.9rem;
}

.about-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.about-text h2 {
  margin-top: 0;
}

.about-cta {
  margin-top: 1.5rem;
  font-weight: 600;
}

.about-contact {
  margin: 0.2rem 0;
  font-weight: 600;
}

.about-media img {
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  max-width: 100%;
}

.areas-lede {
  color: var(--muted);
  font-size: 1.05rem;
}

.areas-list {
  margin-top: 0.75rem;
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.6rem);
}

.service-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.service-area-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
}

.service-area-links a:hover {
  color: var(--brand);
}

.service-area-links a[aria-current="page"] {
  border-color: var(--brand);
  color: var(--brand);
}

.page-hero {
  padding: 2rem 0 2.5rem;
}

.page-hero .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.breadcrumb {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--brand);
}

.content-section + .content-section {
  border-top: 1px solid var(--border);
}

.page-copy h2,
.faq-block h2 {
  margin-top: 0;
}

.page-copy ul,
.faq-list {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.page-copy li,
.faq-list li {
  margin-bottom: 0.55rem;
}

.faq-list strong {
  display: block;
  color: var(--text);
}

.section-cta {
  background: var(--bg-alt);
}

.section-cta p {
  margin-bottom: 1rem;
}

.section-cta .contact-actions {
  margin-top: 1.5rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(251, 251, 252, 0.98);
  border-top: 1px solid var(--border);
  justify-content: center;
  z-index: 100;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-cta.compact {
  opacity: 0.6;
  transform: translateY(8px);
}

@media (max-width: 640px) {
  :root {
    --scroll-offset: 120px;
  }
  .site-header {
    --mobile-header-h: 64px;
  }

  .header-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    height: var(--mobile-header-h);
    padding: 0;
  }

  .brand-lockup {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0.35rem;
    gap: 0.5rem;
  }

  .site-nav-desktop {
    display: none;
  }

  .site-menu {
    display: block;
    margin-left: auto;
  }

  .site-menu[open] > .menu-button {
    background: #f1f3f6;
  }

  .mobile-menu[open] > .menu-button {
    position: relative;
    z-index: 123;
  }

  .mobile-menu[open] > .menu-button::before {
    content: "";
    position: fixed;
    inset: var(--mobile-header-h) 0 0;
    background: rgba(17, 18, 20, 0.12);
    pointer-events: none;
    z-index: 121;
  }

  .mobile-menu[open] > .mobile-menu__panel {
    position: fixed;
    top: var(--mobile-header-h);
    right: 0.75rem;
    width: min(92vw, 22rem);
    max-height: calc(100dvh - var(--mobile-header-h) - 0.75rem);
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    z-index: 122;
  }

  .site-nav-mobile {
    display: grid;
    gap: 0.15rem;
    margin: 0;
  }

  .site-nav-mobile a {
    display: block;
    padding: 0.65rem 0.45rem;
    border-bottom: 0;
  }

  .logo-img {
    height: 54px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-tag {
    font-size: 0.7rem;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  :root {
    --scroll-offset: 110px;
  }

  .hero {
    padding-top: 0.6rem;
  }

  .hero::before {
    background:
      radial-gradient(760px 380px at 10% 10%, rgba(184, 134, 44, 0.12), transparent 65%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.2));
  }

  .hero-actions {
    display: none;
  }

  .hero-subcopy {
    font-size: 1.02rem;
  }

  .mobile-cta {
    display: flex;
  }

  .mobile-cta .btn {
    flex: 1;
    min-width: 0;
    padding: 0.9rem 1rem;
  }

  main {
    padding-bottom: 5.5rem;
  }

  section {
    scroll-margin-top: 96px;
  }

  .site-footer {
    padding-bottom: 6rem;
  }

  .logo-img {
    height: 54px;
  }

  .hero-media {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo.brand-lockup {
    min-width: 0;
    flex: 1 1 auto;
  }

  .logo-img {
    height: 44px;
    width: auto;
  }

  .brand-text {
    min-width: 0;
    overflow: hidden;
  }

  .brand-name,
  .brand-tag {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu {
    flex: 0 0 auto;
  }

  .menu-button {
    white-space: nowrap;
  }

  .mobile-cta {
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-inner,
  .grid {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 640px) {
  .site-header {
    --mobile-header-h: 88px;
  }

  .site-header .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.2rem;
    height: auto;
    padding: 0.35rem 0;
  }

  .logo.brand-lockup {
    display: contents;
  }

  .logo-badge {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .logo-img {
    height: 48px;
    width: auto;
  }

  .brand-text {
    grid-column: 1 / 3;
    grid-row: 2;
    min-width: 0;
    overflow: hidden;
  }

  .brand-name,
  .brand-tag {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    flex: 0 0 auto;
  }

  .menu-button {
    white-space: nowrap;
  }

  .hero .container {
    padding-inline: 1rem;
  }

  .hero-content {
    max-width: 38rem;
    margin-inline: auto;
  }
}

@media (min-width: 768px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(20px, 4vw, 56px);
    align-items: center;
  }

  .hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .site-nav-desktop {
    display: flex;
  }

  .nav-details {
    display: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --scroll-offset: 112px;
  }

  .hero {
    background-image: none;
  }

  .header-inner {
    min-height: 72px;
    padding: 0.5rem 0;
    justify-content: space-between;
  }

  .brand-text {
    display: none;
  }

  .logo.brand-lockup {
    display: inline-flex !important;
    align-items: center;
    min-width: 0;
  }

  .logo-img {
    height: 50px;
    width: auto;
  }

  .site-nav-desktop {
    display: none;
  }

  .nav-details {
    display: block;
    margin-left: auto;
  }

  .nav-details[open] > .nav-summary {
    background: #f5f2eb;
  }

  .nav-details[open] > .nav-panel {
    position: fixed;
    top: 72px;
    right: 0.75rem;
    width: min(92vw, 22rem);
    max-height: calc(100dvh - 72px - 0.75rem);
    overflow-y: auto;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
    z-index: 122;
  }

  .site-nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin: 0;
  }

  .site-nav-mobile a {
    display: block;
    padding: 0.65rem 0.45rem;
    border-bottom: 0;
  }

  .hero-media {
    display: none !important;
  }

  .hero-actions,
  .hero-contact {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  main {
    padding-bottom: 72px;
  }

  .service-area-links a {
    width: 100%;
    justify-content: center;
  }
}

/* Keep header pinned across breakpoints and browser variants. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

body {
  padding-top: var(--header-offset, 98px);
}

@media (max-width: 767.98px) {
  :root {
    --header-offset: 72px;
  }
}
