:root {
  --ink: #182126;
  --ink-soft: #2e3b42;
  --cream: #f5f7f8;
  --sand: #e9eef0;
  --line: #d3dde1;
  --muted: #66757d;
  --forest: #24554f;
  --forest-dark: #183c3a;
  --clay: #2f706b;
  --clay-light: #78aaa5;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
a { color: inherit; }

nav, .site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.35rem 4vw;
  transition: background .3s ease, box-shadow .3s ease;
}
nav > *, .site-nav > * { position: relative; z-index: 2; }
nav.scrolled, .site-nav {
  background: rgba(24, 33, 38, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.1);
}
.brand {
  color: var(--white) !important;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 180px;
  object-fit: contain;
}
.phone-list {
  display: grid;
  gap: .35rem;
}
.phone-list a {
  color: inherit;
  text-decoration: none;
}
.phone-list a:hover { color: var(--clay-light); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem 1rem;
}
.footer-contact a {
  color: inherit;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--clay-light); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  color: rgba(255,253,249,.7) !important;
  font-size: .72rem;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav-links a:hover { color: #ffffff !important; }
.nav-dropdown {
  position: relative;
  color: rgba(255,255,255,.7);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary span {
  display: inline-block;
  margin-left: .25rem;
  font-size: .9rem;
  transition: transform .2s ease;
}
.nav-dropdown[open] summary span { transform: rotate(180deg); }
.nav-dropdown summary:hover,
.nav-dropdown[open] summary { color: #ffffff; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 1.25rem);
  left: 50%;
  display: grid;
  min-width: 190px;
  padding: .5rem;
  gap: .15rem;
  transform: translateX(-50%);
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 30px rgba(0,0,0,.2);
}
.nav-dropdown-menu a {
  padding: .7rem .75rem;
  color: rgba(255,255,255,.72) !important;
  font-size: .68rem;
  letter-spacing: .1em;
}
.nav-dropdown-menu a:hover { background: var(--forest); }
.nav-toggle { display: none; }
.about-photo {
  margin: 0 0 1.5rem;
  height: 260px;
  overflow: hidden;
}
.about-photo img, .photo-strip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.photo-strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.photo-strip figure {
  margin: 0;
  min-width: 0;
  background: var(--sand);
}
.photo-strip figure:first-child { grid-row: span 2; }
.photo-strip figure:first-child img { height: 330px; }
.photo-strip figure:not(:first-child) img { height: 157px; }
.photo-strip figcaption {
  padding: .8rem 1rem;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero { min-height: 100vh; background: var(--ink); }
.hero-bg {
  background:
    linear-gradient(90deg, rgba(24,33,38,.96) 0%, rgba(24,33,38,.72) 55%, rgba(24,33,38,.48) 100%),
    linear-gradient(160deg, rgba(36,85,79,.62), rgba(24,33,38,.84)),
    url("https://images.unsplash.com/photo-1586348943529-beaae6c28db9?w=1800&q=85") center/cover no-repeat;
}
.hero-content h1, h1, h2, h3 { font-family: "DM Sans", sans-serif; }
.hero-content h1 { max-width: 760px; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -.045em; }
.hero-eyebrow, .eyebrow, .label { color: var(--clay) !important; font-weight: 500; }
.hero-content h1 em { color: #ffffff; }
.hero-content p { max-width: 530px; }
.hero-cta, .button.primary, .submit-btn { background: var(--forest) !important; border: 0; border-radius: 3px; }
.hero-cta:hover, .submit-btn:hover { background: var(--clay) !important; }

section { padding-top: 8rem; padding-bottom: 8rem; }
.about { background: var(--cream); }
.about-inner, .services-inner, .team-inner, .locations-inner, .container, .footer-inner { max-width: 1200px; }
.about-left p, .team-intro p, .locations-left p, .section-head p, .service-copy p { color: var(--muted); }
.mission-block { background: var(--sand); border-left-color: var(--clay); }
.stats-row, .stat { border-color: var(--line); }
.stat-num { color: var(--clay); }
.services { background: var(--forest-dark); }
.services-grid { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.service-card { background: var(--forest-dark); }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .2;
  background-position: center;
  background-size: cover;
  transition: opacity .3s ease, transform .5s ease;
}
.service-card:nth-child(1)::before {
  background-image: url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?w=900&q=80");
}
.service-card:nth-child(2)::before {
  background-image: url("https://images.unsplash.com/photo-1519003722824-194d4455a60c?w=900&q=80");
}
.service-card:nth-child(3)::before {
  background-image: url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=900&q=80");
}
.service-card:nth-child(4)::before {
  background-image: url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?w=900&q=80");
}
.service-card:nth-child(5)::before {
  background-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?w=900&q=80");
}
.service-card:hover::before {
  opacity: .3;
  transform: scale(1.05);
}
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card:hover { background: var(--forest); }
.service-card::after { background: var(--clay); }
.service-icon, .service-link { color: var(--clay); }
.team { background: var(--sand); }
.team-card { background: var(--white); border-color: var(--line); }
.team-avatar { background: var(--forest); }
.locations { background: var(--cream); }
.location-list li { border-color: var(--line); color: var(--ink-soft); }
.location-list li svg { color: var(--clay); }
.contact-panel { background: var(--forest); }
.contact-section { background: var(--white); }
.form-group input, .form-group textarea { border-color: var(--line); background: var(--white); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--clay); }
footer {
  padding: 4.5rem 4vw 1.25rem;
  background: var(--ink);
  color: rgba(255,255,255,.72);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.25fr;
  gap: 3rem;
  margin: 0 auto;
  padding-bottom: 3.5rem;
}
.footer-main { max-width: 290px; }
.footer-brand { display: inline-flex; }
.footer-brand img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 190px;
}
.footer-main p {
  margin: 1.5rem 0 1.25rem;
  color: rgba(255,255,255,.54);
  font-size: .9rem;
  line-height: 1.7;
}
.footer-email,
.footer-column a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .2s ease;
}
.footer-email { font-size: .85rem; }
.footer-email:hover,
.footer-column a:hover,
.footer-bottom a:hover { color: var(--clay-light); }
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  font-size: .84rem;
}
.footer-column h3 {
  margin: 0 0 .45rem;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.footer-details span { line-height: 1.7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.4);
  font-size: .72rem;
}
.footer-bottom a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}

.site-nav + .hero {
  min-height: 78vh;
  padding-top: 9rem;
  background:
    linear-gradient(90deg, rgba(24,33,38,.96), rgba(24,33,38,.58)),
    url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?w=1800&q=85") center/cover;
}
.site-nav + .hero h1 { max-width: 14ch; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; }
.site-nav + .hero p { color: rgba(255,253,249,.72); }
.button, .button.secondary { border-radius: 3px; }
.summary-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.summary-card:hover { border-color: var(--clay); box-shadow: 0 10px 24px rgba(24,33,38,.08); }
.summary-card h3 { font-size: 1.25rem; font-family: "DM Sans", sans-serif; }
.service-section { border-top-color: var(--line); }
.service-section.alt { background: var(--sand); }
.service-panel { background: var(--forest-dark); border-radius: 3px; }
.detail-list li::before { color: var(--clay); }
.cta { background: var(--forest); }

@media (max-width: 900px) {
  nav, .site-nav { padding: 1rem 5vw; }
  .nav-links, .site-nav .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(24, 33, 38, .98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .nav-links.open a { font-size: 1rem; }
  .nav-links.open .nav-dropdown { width: min(280px, 85vw); text-align: center; font-size: 1rem; }
  .nav-links.open .nav-dropdown summary { padding: .25rem; }
  .nav-links.open .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin-top: .75rem;
    background: rgba(255,255,255,.05);
    box-shadow: none;
  }
  .nav-links.open .nav-dropdown-menu a { font-size: .8rem; }
  .nav-toggle { display: block; color: var(--white); background: none; border: 0; font-size: 1.5rem; }
  .about-inner, .locations-inner, .service-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-right { position: static; }
  .services-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: 1; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip figure:first-child { grid-row: auto; grid-column: 1 / -1; }
  .photo-strip figure:first-child img { height: 260px; }
  .photo-strip figure:not(:first-child) img { height: 180px; }
}
@media (max-width: 540px) {
  nav, .site-nav { padding: 1.1rem 5vw; }
  .hero-content h1, .site-nav + .hero h1 { font-size: clamp(2.7rem, 12vw, 4.5rem); }
  section { padding: 5rem 5vw; }
  .services-grid, .team-grid, .summary-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .contact-panel, .service-panel { padding: 2rem; }
  .about-photo { height: 210px; }
  .photo-strip { grid-template-columns: 1fr; }
  .photo-strip figure:first-child { grid-column: auto; }
  .photo-strip figure:first-child img,
  .photo-strip figure:not(:first-child) img { height: 210px; }
  footer { padding: 3.5rem 5vw 1.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 1.5rem; padding-bottom: 2.5rem; }
  .footer-main { grid-column: 1 / -1; max-width: 360px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
