/* Davidson H&C Co., Inc. — site styles */
:root {
  --navy: #16254d;
  --navy-deep: #0e1836;
  --navy-soft: #243a73;
  --gold: #f2c230;
  --gold-deep: #d9a718;
  --ink: #1d2433;
  --muted: #5b6474;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 24, 54, 0.10);
  --max: 1140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); }
h1, h2, h3, h4 { font-family: "Merriweather", Georgia, "Times New Roman", serif; line-height: 1.2; margin: 0 0 .5em; color: var(--navy-deep); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), 100% - 2rem); margin-inline: auto; }
.eyebrow { display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--gold-deep); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #ffd04a; }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }

/* Top bar + header */
.topbar { background: var(--navy-deep); color: #cfd6e6; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .lic { color: var(--gold); }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
.brand .mono { width: 46px; height: 46px; border-radius: 10px; background: var(--gold); color: var(--navy-deep); font-family: "Merriweather", Georgia, serif; font-weight: 900; font-size: 1.05rem; display: grid; place-items: center; letter-spacing: -.02em; flex: none; }
.brand .name { font-family: "Merriweather", Georgia, serif; font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand .tag { font-size: .78rem; color: #cfd6e6; letter-spacing: .06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: .2rem; }
.nav a { color: #e7ebf5; text-decoration: none; font-weight: 600; padding: .55rem .8rem; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav .btn { margin-left: .6rem; padding: .6rem 1.1rem; }
.nav-toggle { display: none; }
.nav-burger { display: none; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy-deep); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; background: url("/images/van.jpg") center 60% / cover no-repeat; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,24,54,.92) 0%, rgba(14,24,54,.78) 45%, rgba(14,24,54,.35) 100%); }
.hero .wrap { position: relative; padding: clamp(4rem, 9vw, 8rem) 0; max-width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { font-size: 1.2rem; color: #dbe1ef; max-width: 48ch; }
.hero .actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero .since { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); padding: .35rem .8rem; border-radius: 999px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.2rem; }

/* Sections */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 2rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 8px rgba(14,24,54,.04); }
.card h3 { margin-top: .4rem; }
.card ul { padding-left: 1.1rem; margin: .4rem 0 0; color: var(--muted); }
.card li { margin: .25rem 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: .8rem; }
.icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card-link { display: inline-block; margin-top: .8rem; font-weight: 700; text-decoration: none; color: var(--navy); }
.card-link::after { content: " →"; }

/* Stats */
.stats { background: var(--navy); color: #fff; }
.stats .grid { text-align: center; }
.stat b { display: block; font-family: "Merriweather", Georgia, serif; font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
.stat span { color: #cfd6e6; }

/* Story / split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.split.reverse > :first-child { order: 2; }

/* Hiring banner */
.banner { background: linear-gradient(135deg, var(--gold) 0%, #ffd766 100%); color: var(--navy-deep); }
.banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.banner h2 { margin: 0 0 .3rem; color: var(--navy-deep); }
.banner p { margin: 0; max-width: 60ch; }

/* Contact strip */
.contact-grid { grid-template-columns: repeat(4, 1fr); }
.contact-grid .card { text-align: center; }
.contact-grid .card .icon { margin-inline: auto; }
.contact-grid a { text-decoration: none; font-weight: 700; color: var(--navy); }

/* Page hero (inner pages) */
.page-hero { background: var(--navy); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfd6e6; margin: .5rem 0 0; max-width: 60ch; font-size: 1.1rem; }

/* Services page */
.service-list h3 { display: flex; align-items: center; gap: .6rem; }

/* Partners */
.partner { display: grid; place-items: center; min-height: 170px; }
.partner img { max-height: 110px; width: auto; }
.partner p { margin: .8rem 0 0; font-weight: 700; color: var(--navy); }

/* Jobs gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery a { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-size: .85rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(14,24,54,.85)); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); }
dialog.lightbox::backdrop { background: rgba(5, 10, 25, .9); }
dialog.lightbox img { max-height: 86vh; width: auto; max-width: 100%; margin-inline: auto; border-radius: 10px; }
dialog.lightbox p { color: #fff; text-align: center; margin: .6rem 0 0; }
dialog.lightbox button { position: fixed; top: 14px; right: 18px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 42px; height: 42px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

/* Contact page */
.map { border: 0; width: 100%; height: 100%; min-height: 380px; border-radius: var(--radius); box-shadow: var(--shadow); }
.details dt { font-weight: 700; color: var(--navy); margin-top: .9rem; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.details dd { margin: .15rem 0 0; font-size: 1.1rem; }
.details a { text-decoration: none; font-weight: 700; color: var(--navy-soft); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c2d8; padding: 3rem 0 1.5rem; font-size: .95rem; }
.site-footer .grid { grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.site-footer a { color: #e7ebf5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #8f9ab5; }

/* Responsive */
.nav a { white-space: nowrap; }
@media (max-width: 1100px) {
  .brand .tag { display: none; }
  .nav a { padding: .5rem .55rem; font-size: .95rem; }
  .nav .btn { display: none; }
}
@media (max-width: 980px) {
  .grid-4, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-3, .grid-2, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .topbar .fax, .topbar .hours { display: none; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .brand .tag { display: none; }
  .nav-burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.1); cursor: pointer; }
  .nav-burger span { width: 22px; height: 2px; background: #fff; box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; padding: .6rem 1rem 1rem; box-shadow: 0 12px 20px rgba(0,0,0,.3); }
  .nav a { padding: .8rem .6rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .nav .btn { display: inline-flex; margin: .8rem 0 0; justify-content: center; border-radius: 10px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero .bg { background-position: 70% center; }
  .hero .bg::after { background: linear-gradient(180deg, rgba(14,24,54,.85) 0%, rgba(14,24,54,.75) 100%); }
  .stat b { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .contact-grid, .gallery { grid-template-columns: 1fr; }
  .site-footer .grid { grid-template-columns: 1fr; }
}
