/* DK Construction Inc. — plain CSS, no frameworks. Mobile-first. */

:root {
  --accent: #e8933c;
  --accent-dark: #c97622;
  --bg: #101418;
  --bg-soft: #171d24;
  --bg-card: #1c232c;
  --text: #f2f0ea;
  --text-muted: #b9b4a8;
  --border: #2c343e;
  --hero-overlay: linear-gradient(180deg, rgba(8,10,13,.82) 0%, rgba(8,10,13,.55) 55%, rgba(8,10,13,.9) 100%);
  --shadow: 0 8px 28px rgba(0,0,0,.35);
  --radius: 14px;
}

html[data-theme="light"] {
  --bg: #faf8f4;
  --bg-soft: #f1ede4;
  --bg-card: #ffffff;
  --text: #1d2126;
  --text-muted: #5d6470;
  --border: #e2dccf;
  --hero-overlay: linear-gradient(180deg, rgba(20,22,26,.78) 0%, rgba(20,22,26,.5) 55%, rgba(20,22,26,.85) 100%);
  --shadow: 0 8px 24px rgba(60,50,30,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 3.5rem 0; }
.section-lead { color: var(--text-muted); max-width: 42rem; }
.section-kicker {
  color: var(--accent); text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 700; margin: 0 0 .5rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: #111; padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: min(1200px, 94%); margin: 0 auto;
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); margin-right: auto; }
.brand-logo { height: 42px; width: auto; border-radius: 8px; }
.brand-name { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand-inc { color: var(--accent); }

.main-nav { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  color: var(--text-muted); text-decoration: none; font-size: .9rem; font-weight: 600;
  padding: .45rem .6rem; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--bg-soft); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle svg { width: 20px; height: 20px; }
html[data-theme="dark"] .icon-sun { display: block; }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="light"] .icon-moon { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  min-height: 52px;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-call { background: var(--accent); color: #161006; box-shadow: var(--shadow); }
.btn-call:hover { background: var(--accent-dark); color: #fff; }
.btn-text { background: transparent; color: var(--text); border-color: var(--accent); }
.btn-text:hover { background: var(--accent); color: #161006; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: .85rem; min-height: 42px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { font-size: 1.1rem; padding: 1rem 1.8rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: var(--hero-overlay), url("assets/photo-7.jpg") center/cover no-repeat;
}
html[data-theme="light"] .hero-bg { background: var(--hero-overlay), url("assets/photo-7.jpg") center/cover no-repeat; }
.hero-content {
  position: relative; width: min(900px, 92%); margin: 0 auto;
  padding: clamp(4rem, 12vw, 7.5rem) 0; text-align: center; color: #f5f2ea;
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem;
  font-weight: 700; color: var(--accent); margin: 0 0 1rem;
}
.hero-content h1 { font-size: clamp(2rem, 6.5vw, 3.4rem); margin-bottom: .4rem; }
.hero-tagline { font-size: clamp(1.2rem, 3.5vw, 1.7rem); font-style: italic; color: var(--accent); margin: 0 0 1rem; font-weight: 600; }
.hero-sub { color: #d8d2c4; max-width: 38rem; margin: 0 auto 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* ---------- Services ---------- */
.services-grid {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem;
  transition: transform .15s ease, border-color .15s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.service-card svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: .6rem; }
.service-card h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.service-card p { margin: 0; color: var(--text-muted); font-size: .93rem; }

/* ---------- Custom Built Homes feature ---------- */
.custom-homes { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.custom-homes-inner {
  display: grid; gap: 2rem; padding: 3.5rem 0; align-items: center;
  grid-template-columns: 1fr;
}
.custom-homes-text p { color: var(--text-muted); }
.custom-homes-text strong { color: var(--text); }
.custom-homes-text h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.custom-homes-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.custom-homes-figure { margin: 0; }
.custom-homes-figure img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-height: 560px; object-fit: cover;
}
.custom-homes-figure figcaption { color: var(--text-muted); font-size: .85rem; margin-top: .5rem; text-align: center; }
@media (min-width: 860px) {
  .custom-homes-inner { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; gap: .8rem; margin-top: 2rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item {
  padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--bg-card); cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform .2s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 96vw; max-height: 88vh; border-radius: 10px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: .8rem; right: 1rem; font-size: 2.6rem; line-height: 1;
  background: none; border: none; color: #fff; cursor: pointer; padding: .4rem .8rem;
}

/* ---------- Why ---------- */
.why { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid { display: grid; gap: 1rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.why-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.why-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); margin-bottom: .3rem; }
.why-card h3 { margin: 0 0 .4rem; }
.why-card p { margin: 0; color: var(--text-muted); font-size: .93rem; }

/* ---------- Areas ---------- */
.areas-list {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.areas-list li {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
}

/* ---------- Quote ---------- */
.quote { background: var(--bg-soft); border-top: 1px solid var(--border); }
.quote-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 2.5rem; }
.quote-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.6rem; max-width: 640px;
}
.quote-form h3 { margin-top: 0; }
.form-note { color: var(--text-muted); font-size: .92rem; margin-top: -.4rem; }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 1.2rem 0 1.4rem; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.quote-form label span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; padding: .8rem .9rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 1rem; font-family: inherit;
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.quote-form textarea { resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 1.2rem; }
.footer-inner { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-brand .brand-logo { height: 48px; margin-bottom: .6rem; }
.footer-tagline { font-style: italic; color: var(--accent); font-weight: 600; margin: 0; }
.site-footer h3 { font-size: 1rem; margin-bottom: .4rem; }
.site-footer p { margin: .2rem 0; color: var(--text-muted); font-size: .93rem; }
.footer-contact a { color: var(--text); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.footer-contact a:hover { color: var(--accent); }
.footer-copy { text-align: center; color: var(--text-muted); font-size: .85rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--border); }

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  .brand-name { display: none; }
  .main-nav { order: 3; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; }
  .btn-sm span { display: none; }
  .btn-sm { padding: .5rem .7rem; }
}
