/* DW Construction LLC — site styles */
:root {
  --navy: #153145;
  --navy-deep: #0f2430;
  --navy-mid: #1d4158;
  --ink: #1c252b;
  --muted: #4a5860;
  --line: #d7d2c8;
  --paper: #f7f4ef;
  --paper-2: #eef3f6;
  --white: #ffffff;
  --copper: #a67c52;
  --copper-dark: #8b6240;
  --label-bg: rgba(15, 36, 48, 0.88);
  --radius: 6px;
  --max: 1120px;
  --header-h: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--copper-dark); }
h1, h2, h3, h4 {
  font-family: "Palatino Linotype", Palatino, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}


/* Utility bar with phone + email */
.util-bar {
  background: var(--navy-deep);
  color: #d7e0e6;
  font-size: 0.8125rem;
}
.util-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0;
}
.util-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.util-bar a:hover { color: #e8d5bb; }
.util-meta { color: #9eb0ba; }
.util-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.15rem; }
.util-contact span, .util-contact a { white-space: nowrap; }

/* Header / nav */
.site-header {
  background: var(--white);
  border-bottom: 1px solid #e6e2db;
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.logo {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.logo-mark {
  font-family: "Palatino Linotype", Palatino, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo-mark span { font-weight: 500; font-size: 0.78em; color: var(--copper); margin-left: 0.2rem; }
.logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.15rem;
}

.nav-toggle { position: absolute; left: -9999px; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--copper-dark); }
.site-nav .nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { background: var(--copper-dark); }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  color: #fff;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,36,48,0.32) 0%, rgba(15,36,48,0.55) 42%, rgba(15,36,48,0.88) 100%);
}
.hero::before {
  content: "DW";
  position: absolute;
  right: 3%;
  bottom: -0.18em;
  font-family: "Palatino Linotype", Palatino, "Iowan Old Style", "Times New Roman", serif;
  font-size: clamp(9rem, 24vw, 18rem);
  font-weight: 600;
  line-height: 0.75;
  color: rgba(255,255,255,0.07);
  pointer-events: none;
  letter-spacing: -0.04em;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 5.5rem 0 4.25rem;
  max-width: 40rem;
}
.hero-content::before {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--copper);
  margin-bottom: 1.35rem;
}
.eyebrow {
  color: #e8d5bb;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  margin-bottom: 1rem;
}
.hero p {
  color: #e4ecef;
  font-size: 1.125rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.25rem;
  border-radius: 2px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--copper); color: #fff !important; }
.btn-primary:hover { background: var(--copper-dark); color: #fff !important; }
.btn-ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.6); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-navy { background: var(--navy); color: #fff !important; }
.btn-navy:hover { background: var(--navy-mid); color: #fff !important; }

.ph-label {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--label-bg);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.32rem 0.5rem;
  border-left: 3px solid var(--copper);
  max-width: calc(100% - 1.5rem);
  line-height: 1.35;
}

/* Sections */
section { padding: 4.5rem 0; }
.section-kicker {
  color: var(--copper-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.section-head { max-width: 38rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--muted); }

/* Services */
#services { background: var(--paper); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  padding: 1.6rem 1.5rem 1.5rem;
  border-top: 3px solid var(--navy);
  box-shadow: 0 1px 0 rgba(21,49,69,0.04);
}
.service-card.wide { grid-column: auto; }
.service-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.45rem;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.service-card.has-photo { padding: 0 0 1.4rem; overflow: hidden; }
.service-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9dee2;
  margin-bottom: 1.15rem;
}
.service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-thumb.pos-mid img { object-position: center 38%; }
.service-card.has-photo .service-num,
.service-card.has-photo h3,
.service-card.has-photo > p {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d9dee2;
  margin: 0;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(15,36,48,0.75));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 2rem 0.8rem 0.7rem;
}

/* About */
#about { background: var(--navy); color: #d7e0e6; }
#about h2, #about h3 { color: #fff; }
#about .section-kicker { color: #e8d5bb; }
#about p { color: #c5d0d6; }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.facts {
  background: rgba(255,255,255,0.06);
  padding: 1.5rem 1.4rem;
  border-top: 3px solid var(--copper);
}
.facts h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.facts dl { margin: 0; }
.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8d5bb;
  font-weight: 700;
  margin-top: 0.9rem;
}
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 0.15rem 0 0; color: #fff; }

/* Contact */
#contact { background: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-list { margin: 1.25rem 0 1.5rem; }
.contact-list li { margin-bottom: 0.85rem; }
.contact-list .label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.contact-list a { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-note {
  background: var(--paper);
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--copper);
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-panel {
  background: var(--paper);
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}
.contact-panel h3 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.contact-panel .contact-actions { margin: 0; }
.contact-panel .btn { text-align: center; }

/* Page intro (services page) */
.page-intro {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.page-intro h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-intro p { color: #c5d0d6; max-width: 38rem; margin: 0; }
.services-page { background: var(--paper); }
.services-page .service-grid { grid-template-columns: 1fr; }
.services-page .service-card { max-width: none; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #9eb0ba;
  padding: 2.4rem 0 1.6rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .logo { color: #fff; }
.site-footer .logo-sub { color: #9eb0ba; }
.site-footer h4 {
  color: #fff;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #e8d5bb; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .service-grid,
  .gallery-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .ba-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle-label { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid #e6e2db;
    padding: 0.75rem 1.25rem 1rem;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .hero { min-height: 64vh; }
  .hero-content { padding: 4rem 0 3rem; }
}

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .wrap { width: min(var(--max), calc(100% - 1.75rem)); }
}


.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 0.25rem;
}

#work { background: var(--white); }
#before-after { background: var(--paper); }
.gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
}
.gallery-item:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.work-note { color: var(--muted); font-size: 0.95rem; margin: 1.15rem 0 0; }

.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.ba-card { position: relative; background: #fff; margin: 0; cursor: zoom-in; }
.ba-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.ba-label {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.55rem;
}
.ba-card figcaption {
  padding: 0.7rem 0.9rem 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}
.lightbox::backdrop { background: rgba(15,36,48,0.92); }
.lightbox-inner {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 3rem 1.5rem 4.5rem;
  position: relative;
}
.lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.45);
  background: #0f2430;
}
.lightbox-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.15rem;
  text-align: center;
  color: #e4ecef;
  font-size: 0.9rem;
  padding: 0 1.5rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

@media (max-width: 860px) {
  .ba-grid { grid-template-columns: 1fr; }
}
