:root {
  --orange: #e85800;
  --orange-dark: #c24a00;
  --ink: #1d1f22;
  --charcoal: #2b2e33;
  --slate: #50555c;
  --line: #e3e1dc;
  --paper: #f6f4f0;
  --white: #ffffff;
  --radius: 6px;
  --max: 1180px;
  --head: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: clip; }
section[id] { scroll-margin-top: 140px; }
img { max-width: 100%; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; color: var(--orange); margin-bottom: .6em; display: block; }
.lede { font-size: 1.15rem; color: var(--slate); max-width: 720px; }
.section { padding: 80px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--charcoal); color: #e9e7e3; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.btn { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em; padding: 13px 26px; border-radius: var(--radius); text-decoration: none; border: 2px solid var(--orange); background: var(--orange); color: var(--white); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn.outline { background: transparent; color: var(--orange-dark); }
.btn.outline:hover { background: var(--orange); color: var(--white); }

/* Top bar and header */
.topbar { background: var(--ink); color: #cfcac2; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar .social { display: flex; gap: 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 78px; }
/* Let the header stick to the page, not just to its own wrapper */
#site-header { display: contents; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: var(--radius); }
.nav a:hover, .nav a.active { color: var(--orange); }
.nav .dropdown { position: relative; }
.nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 8px; min-width: 240px; }
.nav .dropdown:hover .dropdown-menu, .nav .dropdown:focus-within .dropdown-menu { display: block; }
.nav .dropdown-menu a { display: block; font-weight: 500; }
.nav .btn { margin-left: 10px; padding: 10px 20px; color: var(--white); }
.nav .btn:hover { color: var(--white); }
.sub-toggle { display: none; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { position: relative; color: var(--white); min-height: 640px; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease; }
.hero .slide.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,23,.88) 0%, rgba(20,21,23,.6) 55%, rgba(20,21,23,.25) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 600px; color: #ece9e4; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .since { font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 600; }

.page-hero { position: relative; color: var(--white); padding: 110px 0 70px; background: var(--ink) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(20,21,23,.72); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: .2em; }
.page-hero p { color: #e2ded8; font-size: 1.15rem; max-width: 680px; margin: 0; }
.crumbs { font-size: .9rem; color: #cfcac2; margin-bottom: 10px; }
.crumbs a { color: #fff; text-decoration: none; }

/* Stats strip */
.stats { background: var(--orange); color: var(--white); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.stats strong { display: block; font-family: var(--head); font-size: 2.4rem; line-height: 1; }
.stats span { font-size: .95rem; opacity: .95; }

/* Cards and grids */
.grid { display: grid; gap: 26px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.09); }
.card .thumb { aspect-ratio: 16/10; background: var(--paper) center/cover no-repeat; }
.card .thumb.empty { display: flex; align-items: center; justify-content: center; background: var(--charcoal); }
.card .thumb.empty img { width: 40%; opacity: .5; }
.card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card .body p { color: var(--slate); font-size: .98rem; }
.card .more { margin-top: auto; font-family: var(--head); font-weight: 600; color: var(--orange-dark); }
.tag { display: inline-block; font-family: var(--head); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); background: #fdeee4; padding: 3px 9px; border-radius: 3px; margin-bottom: 10px; }
.place { color: var(--slate); font-size: .95rem; margin: -4px 0 8px; }

.service-card .icon { width: 50px; height: 50px; border-radius: 50%; background: #fdeee4; color: var(--orange); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-card .icon svg { width: 26px; height: 26px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.checks.one { grid-template-columns: 1fr; }
.panel { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 28px 30px; }

/* Service subnav */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 79px; z-index: 40; }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; }
.subnav a { white-space: nowrap; font-family: var(--head); font-weight: 600; text-decoration: none; color: var(--slate); padding: 7px 14px; border-radius: 30px; border: 1px solid var(--line); }
.subnav a.active, .subnav a:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button { font-family: var(--head); font-weight: 600; font-size: 1rem; background: var(--white); border: 1px solid var(--line); color: var(--ink); padding: 9px 18px; border-radius: 30px; cursor: pointer; }
.filters button.on { background: var(--orange); border-color: var(--orange); color: var(--white); }

/* Project detail */
.project-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start; }
.project-main img.lead { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
.facts { background: var(--paper); border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; }
.facts dl { margin: 0 0 20px; }
.facts dt { font-family: var(--head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--slate); }
.facts dd { margin: 0 0 14px; font-weight: 600; }
.award { display: flex; gap: 12px; align-items: flex-start; background: #fdeee4; border-radius: var(--radius); padding: 14px 16px; margin-bottom: 24px; font-weight: 600; color: var(--orange-dark); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.gallery button { padding: 0; border: 0; cursor: zoom-in; background: none; border-radius: var(--radius); overflow: hidden; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .25s; }
.gallery button:hover img { transform: scale(1.04); }
.doc-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 600; text-decoration: none; border: 1px solid var(--line); padding: 12px 16px; border-radius: var(--radius); margin-top: 10px; }

/* Lightbox and modal */
.overlay { position: fixed; inset: 0; background: rgba(15,16,18,.88); z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.overlay.open { display: flex; }
.overlay img { max-height: 86vh; border-radius: var(--radius); }
.overlay .close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.overlay .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.overlay .prev { left: 20px; } .overlay .next { right: 20px; }
.modal { background: var(--white); border-radius: var(--radius); max-width: 760px; width: 100%; max-height: 88vh; overflow-y: auto; display: grid; grid-template-columns: 240px 1fr; }
.modal .photo { background: var(--paper) center top/cover no-repeat; aspect-ratio: 4/5; align-self: start; position: sticky; top: 0; }
.modal .text { padding: 32px; position: relative; }
.modal .close { color: var(--ink); top: 10px; right: 14px; font-size: 2rem; }

/* Team */
.person { text-align: left; cursor: default; }
.person.has-bio { cursor: pointer; }
.person .photo { aspect-ratio: 1/1; background: var(--paper) center 20%/cover no-repeat; }
.person .photo.initials { display: flex; align-items: center; justify-content: center; background: var(--charcoal); color: var(--white); font-family: var(--head); font-size: 2.6rem; font-weight: 600; letter-spacing: .04em; }
.person .body { padding: 16px 18px 18px; }
.person h3 { margin-bottom: 2px; font-size: 1.2rem; }
.person .role { color: var(--slate); font-size: .95rem; line-height: 1.4; }
.person .loc { font-size: .85rem; color: var(--orange-dark); font-weight: 600; margin-top: 6px; }

/* Timeline */
.timeline { position: relative; margin: 30px 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 30px; padding-bottom: 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 65px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.timeline .yr { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--orange-dark); }

/* Offices */
.office .thumb { aspect-ratio: 16/9; }
.office ul { list-style: none; padding: 0; margin: 0 0 14px; font-size: .97rem; }
.office li { padding: 3px 0; }
.office li b { display: inline-block; width: 52px; color: var(--slate); font-weight: 600; }
.office a { text-decoration: none; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
label .req { color: var(--orange); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cfccc6; border-radius: var(--radius); background: var(--white); color: var(--ink); margin-top: 6px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--slate); }
.form-status { margin-top: 14px; font-weight: 600; }

/* CTA band */
.cta { background: var(--orange) url("../img/banner-plans.jpg") center/cover no-repeat; position: relative; color: var(--white); }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(200,74,0,.9); }
.cta .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: var(--white); margin: 0 0 6px; }
.cta p { margin: 0; color: #fff3ea; }
.cta .btn { background: var(--white); color: var(--orange-dark); border-color: var(--white); }
.cta .btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Footer */
.site-footer { background: var(--ink); color: #b9b4ab; font-size: .95rem; }
.site-footer .wrap { padding-top: 60px; padding-bottom: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--white); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: #e7e3dc; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .logo { height: 54px; width: auto; margin-bottom: 16px; }
.foot-bottom { border-top: 1px solid #3a3d42; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero .slide { transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1040px) {
  .grid.four { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: fixed; top: 79px; left: 0; right: 0; bottom: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 20px; gap: 0; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; }
  .nav .dropdown { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); }
  .nav .dropdown > a { flex: 1; border-bottom: 0; }
  .sub-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; color: var(--ink); }
  .sub-toggle svg { width: 20px; height: 20px; transition: transform .2s; }
  .nav .dropdown.open .sub-toggle svg { transform: rotate(180deg); }
  .nav .dropdown-menu, .nav .dropdown:hover .dropdown-menu, .nav .dropdown:focus-within .dropdown-menu { display: none; flex-basis: 100%; position: static; border: 0; box-shadow: none; padding: 0 0 8px 16px; min-width: 0; }
  .nav .dropdown.open .dropdown-menu { display: block; }
  .nav .dropdown-menu a { font-size: 1.05rem; padding: 11px 6px; }
  .nav .dropdown-menu a:last-child { border-bottom: 0; }
  .nav .btn { margin: 18px 0 0; text-align: center; border-radius: var(--radius); }
  .split, .project-layout, .form-wrap { grid-template-columns: 1fr; gap: 34px; }
  .split.flip > :first-child { order: 0; }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .facts { position: static; }
  .modal { grid-template-columns: 1fr; }
  .modal .photo { aspect-ratio: 4/3; position: static; background-position: center 20%; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .topbar .hide-sm { display: none; }
  .hero { min-height: 560px; padding: 70px 0; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .checks { grid-template-columns: 1fr; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer a { overflow-wrap: anywhere; }
  .timeline::before { left: 54px; }
  .timeline li { grid-template-columns: 54px 1fr; gap: 24px; }
  .timeline li::before { left: 49px; }
  .person .body { padding: 12px; }
  .person h3 { font-size: 1.05rem; }
  .overlay .nav-btn { display: none; }
}
