/* SHN Structural Engineers - static one-page site. Mobile-first, no external assets. */
:root {
  --brown: #24140C;
  --brown-2: #3a2418;
  --copper: #C57852;
  --copper-light: #E2A47F;
  --copper-text: #9A5330;   /* copper tone with AA contrast on light backgrounds */
  --ink: #24140C;
  --muted: #5E4B40;
  --bg: #FFFFFF;
  --bg-soft: #F8F4F0;
  --line: #E8DED6;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36,20,12,.06), 0 8px 24px rgba(36,20,12,.08);
  --shadow-lg: 0 2px 4px rgba(36,20,12,.08), 0 18px 40px rgba(36,20,12,.16);
  --header-h: 68px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--copper-text); text-underline-offset: 3px; }
a:hover { color: var(--brown); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-light); }
.eyebrow-dark { color: var(--copper-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: .8rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: var(--brown); box-shadow: 0 6px 18px rgba(197,120,82,.35); }
.btn-primary:hover { background: var(--copper-light); color: var(--brown); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: #fff; color: var(--brown); border-color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(10px); } }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); }
.brand:hover { color: var(--brown); }
.brand img { width: 35px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; }
.brand-sub { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.nav a { color: var(--brown); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 2px; }
.nav a:not(.nav-cta):hover { color: var(--copper-text); }
.nav-cta { background: var(--brown); color: #fff !important; padding: 9px 16px !important; border-radius: 999px; }
.nav-cta:hover { background: var(--brown-2); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--brown); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 20px 18px; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .js .nav a.nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
}

/* Hero */
.hero { position: relative; color: #fff; isolation: isolate; min-height: 0; display: flex; align-items: center; padding: 64px 0 72px;
  background: var(--brown) url("images/hero-construction.jpg") center 40% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(36,20,12,.92) 0%, rgba(36,20,12,.78) 45%, rgba(36,20,12,.45) 100%), linear-gradient(0deg, rgba(36,20,12,.55), rgba(36,20,12,0) 45%); }
.hero-inner { max-width: 1180px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.25rem); font-weight: 800; letter-spacing: -.025em; max-width: 14ch; margin-bottom: .35em; }
.hero-tagline { font-size: clamp(1.1rem, 1rem + .6vw, 1.35rem); color: #F2E7DF; max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
.hero-actions .btn { width: 100%; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--copper); }

/* Sections */
.section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-intro { color: var(--muted); font-size: 1.1rem; }

/* About */
.about-grid { display: grid; gap: 40px; }
.about-text .lead { font-size: 1.18rem; color: var(--ink); }
.about-text p:not(.lead):not(.eyebrow) { color: var(--muted); }
.about-text h2 { max-width: 22ch; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.highlights li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.highlights h3 { font-size: 1.05rem; margin-bottom: .25em; }
.highlights p { margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.hl-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brown); color: var(--copper-light); }

/* Services */
.services { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 22px 24px; border-top: 4px solid var(--copper); }
.card-body p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* Careers */
.careers { padding: 72px 0; }
.callout { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 36px 28px; border-radius: 20px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, #5a3422 0%, rgba(90,52,34,0) 55%), var(--brown); box-shadow: var(--shadow-lg); }
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--copper); }
.callout h2 { color: #fff; margin-bottom: .35em; }
.callout p { color: #E9DCD2; margin: 0; max-width: 56ch; font-size: 1.08rem; }
.callout .eyebrow { color: var(--copper-light); margin-bottom: .6rem; }
.callout .btn { flex: none; }

/* Contact */
.contact { padding-top: 24px; }
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.contact-card { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.contact-card .hl-icon { margin-bottom: 10px; }
@media (max-width: 639px) {
  .contact-card { display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; row-gap: 2px; padding: 20px; align-items: center; }
  .contact-card .hl-icon { grid-row: span 2; margin: 0; }
}
a.contact-card:hover { color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--copper); }
.cc-label { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--copper-text); }
.cc-value { font-size: 1.15rem; font-weight: 700; overflow-wrap: anywhere; line-height: 1.4; }
.social { margin: 28px 0 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--brown); color: #D9C9BD; padding: 36px 0; border-top: 5px solid var(--copper); }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.brand-footer, .brand-footer:hover { color: #fff; }
.brand-footer .brand-sub { color: #D9C9BD; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: #F2E7DF; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--copper-light); }
.copyright { margin: 0; font-size: .92rem; }

/* Larger screens */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .hero { min-height: min(80vh, 680px); padding: 88px 0 96px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .callout { padding: 44px 48px; }
}
@media (min-width: 860px) {
  .section { padding: 96px 0; }
  .careers { padding: 96px 0; }
  .contact { padding-top: 32px; }
  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
  .highlights { grid-template-columns: 1fr 1fr; }
  .highlights li { flex-direction: column; gap: 12px; }
  .callout { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; padding: 52px 56px; }
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1100px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
}
