/* Tull Companies — site styles */
:root {
  --red: #ee1f24;
  --red-dark: #c4161b;
  --ink: #1d1d1f;
  --text: #333;
  --muted: #666;
  --line: #e2e2e2;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --dark: #222;
  --max: 1200px;
  --radius: 6px;
  --head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --body: "Open Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); }
a:hover { color: var(--red); }
h1, h2, h3, h4 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 4px solid var(--red);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.logo img { width: 84px; height: auto; }
.header-phone {
  font-family: var(--head); font-size: 1.25rem; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.header-phone:hover { color: var(--red); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: 6px 10px; font: 600 .9rem var(--body); cursor: pointer; color: var(--ink);
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; font-family: var(--head); text-transform: uppercase; font-size: 1rem;
  color: var(--ink); text-decoration: none; border-radius: var(--radius); letter-spacing: .03em;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--red); color: #fff; }
.has-sub { position: relative; }
.sub-nav {
  display: none !important; position: absolute; top: 100%; left: 0; background: #fff; min-width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15); border-top: 3px solid var(--red); padding: 6px !important; flex-direction: column;
}
.has-sub:hover .sub-nav, .has-sub:focus-within .sub-nav { display: flex !important; }
.sub-nav a { text-transform: none; font-family: var(--body); font-size: .95rem; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; }
  .sub-nav { display: flex !important; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px !important; }
}

/* Hero & banners */
.hero {
  position: relative; color: #fff; background: #333 center/cover no-repeat;
  min-height: 520px; display: flex; align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.72), rgba(0,0,0,.25)); }
.hero .container { position: relative; width: 100%; }
.hero h1 { color: #fff; max-width: 760px; }
.hero p { font-size: 1.2rem; max-width: 640px; }
.page-banner {
  position: relative; background: #333 center/cover no-repeat; color: #fff; padding: 90px 0 60px;
}
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { margin: .4em 0 0; font-size: 1.15rem; }
.breadcrumb { font-size: .9rem; margin-bottom: 10px; }
.breadcrumb a { color: #fff; }

/* Buttons */
.btn {
  display: inline-block; background: var(--red); color: #fff; padding: 12px 26px; border-radius: var(--radius);
  font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; font-size: 1.05rem;
  border: 2px solid var(--red); transition: background .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { background: transparent; border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-red { background: var(--red); color: #fff; }
.section-red h2 { color: #fff; }
.lead { font-size: 1.2rem; color: var(--ink); }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding: 4px 0 4px 30px; }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .65em; width: 12px; height: 7px;
  border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg);
}
.columns-2 { columns: 2 220px; column-gap: 30px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,.14); color: var(--text); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { flex: 1; font-size: .95rem; }
.card-link { font-family: var(--head); text-transform: uppercase; color: var(--red-dark); letter-spacing: .04em; }

/* Feature figures / galleries */
.feature-figure { margin: 0; }
.feature-figure img { border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.15); width: 100%; }
.feature-figure figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); position: relative; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
a[data-lightbox] { cursor: zoom-in; }
.project { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
blockquote { margin: 0 0 1em; padding: 16px 22px; border-left: 4px solid var(--red); background: var(--bg-alt); font-style: italic; }
blockquote cite { display: block; font-style: normal; font-size: .9rem; margin-top: 8px; }

/* Stats & badges */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--head); font-size: 2.6rem; color: #fff; line-height: 1.1; }
.badges { display: flex; gap: 30px; align-items: center; justify-content: center; flex-wrap: wrap; }
.badges img { max-height: 80px; width: auto; }

/* CTA */
.cta { text-align: center; }
.cta p { font-size: 1.15rem; max-width: 720px; margin: 0 auto 1em; }
.cta .btn-row { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info dl { margin: 0; }
.contact-info dt { font-family: var(--head); text-transform: uppercase; color: var(--ink); margin-top: 16px; }
.contact-info dd { margin: 0; }
.map-wrap { margin-top: 24px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Footer */
.site-footer { background: var(--dark); color: #ccc; padding: 50px 0 24px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.site-footer h2 { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid #444; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; font-size: .88rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 50px 60px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,.5); }
.lightbox figcaption { color: #eee; margin-top: 12px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  font-size: 2rem; line-height: 1; width: 48px; height: 48px; border-radius: 50%;
}
.lightbox button:hover, .lightbox button:focus-visible { background: var(--red); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 10px; } .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; } }
body.lb-open { overflow: hidden; }
