/* DK Contracting LLC - shared stylesheet (clone of https://www.dk-contractors.com) */
/* Tokens, shared chrome (top bar / nav / footer), motion, and shared section styles. */

:root {
  --red: #b01e2d;
  --red-dark: #8c1622;
  --red-bright: #c22333;
  --ink: #1c1c1c;
  --near-black: #111111;
  --body: #333333;
  --muted: #5c5c5c;
  --grey-bg: #efefef;
  --grey-line: #e2e2e2;
  --white: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --sans: "Roboto", Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  color: var(--near-black);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--display);
  color: var(--red);
  font-weight: 600;
  text-transform: none;
  letter-spacing: .04em;
  font-size: 1.05rem;
  margin-bottom: .35rem;
  display: block;
}

.section { padding: 84px 0; }
.section--grey { background: var(--grey-bg); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head h2 { font-size: 2.35rem; margin-bottom: .5rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .9rem;
  padding: 14px 30px;
  border-radius: 40px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(176, 30, 45, .3); }

/* ============ TOP BAR ============ */
.site-header { position: relative; z-index: 40; }
.topbar { background: var(--red); color: #fff; font-size: .9rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.topbar-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.topbar a, .topbar span { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.topbar img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.topbar a:hover { opacity: .85; }

/* ============ NAVBAR ============ */
.navbar { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 24px; }
.brand img { width: auto; height: 66px; }
.main-nav > ul { list-style: none; display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; }
.main-nav a { font-family: var(--display); font-weight: 500; font-size: 1.05rem; color: var(--near-black); transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--red); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: "\25be"; font-size: .7em; margin-left: 6px; vertical-align: middle; }
.dropdown {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 210px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  border-radius: 10px;
  padding: 10px 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  border-top: 3px solid var(--red);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { display: block; }
.dropdown a { display: block; padding: 10px 22px; font-size: .98rem; white-space: nowrap; }
.dropdown a:hover { background: var(--grey-bg); color: var(--red); }
/* Note on the rule above: the dropdown is hidden ONLY as chrome (it carries duplicate nav links, no page copy); it is un-hidden on hover/focus with pure CSS and needs no script. */

.btn-estimate { white-space: nowrap; }

.nav-toggle { display: none; }

/* ============ HERO (home) ============ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,12,.78) 0%, rgba(10,10,12,.55) 55%, rgba(10,10,12,.35) 100%); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 620px; }
.hero .eyebrow { color: #fff; opacity: .92; }
.hero h1 { color: #fff; font-size: 3.2rem; margin-bottom: .5rem; }
.hero p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; margin-bottom: 1.7rem; }

/* ============ PAGE BANNER HERO (inner pages) ============ */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(176, 30, 45, .78); z-index: 1; }
.page-hero h1 { position: relative; z-index: 2; color: #fff; font-size: 3.4rem; letter-spacing: .01em; padding: 20px; }

/* ============ ABOUT (home) ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-figure { position: relative; padding: 18px; }
.about-figure img { border-radius: 8px; width: 100%; position: relative; z-index: 2; box-shadow: var(--card-shadow); }
.about-figure::before { content: ""; position: absolute; top: 0; left: 30px; right: 60px; height: 24px; background: var(--red); border-radius: 8px 8px 0 0; z-index: 1; }
.about-figure::after { content: ""; position: absolute; bottom: 0; left: 60px; right: 30px; height: 24px; border: 2px solid var(--red); border-top: none; border-radius: 0 0 8px 8px; z-index: 1; }
.about-body h3 { font-size: 2.1rem; margin-bottom: 1rem; }
.about-body p { color: var(--body); }

/* ============ SERVICE CARDS (home) ============ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.svc-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .12); }
.svc-card-img { position: relative; height: 210px; }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-card-icon { position: absolute; left: 22px; bottom: -26px; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: var(--card-shadow); display: flex; align-items: center; justify-content: center; }
.svc-card-icon img { width: 32px; height: 32px; }
.svc-card-body { padding: 40px 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.svc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.svc-card-head h5 { font-size: 1.25rem; margin: 0; }
.svc-card-body p { color: var(--muted); margin: 0; font-size: .97rem; }
.link-btn { display: inline-block; align-self: flex-start; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; background: var(--red); color: #fff; padding: 9px 18px; border-radius: 30px; transition: background .25s ease; }
.link-btn:hover { background: var(--red-dark); }

/* ============ WHY CHOOSE US ============ */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-card { border: 1px solid var(--grey-line); border-left: 4px solid var(--red); border-radius: 12px; padding: 30px 24px; background: #fff; transition: transform .3s ease, box-shadow .3s ease; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.why-card img { width: 46px; height: 46px; margin-bottom: 16px; }
.why-card h6 { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--near-black); margin: 0 0 10px; }
.why-card p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ============ SERVICE AREAS BAND ============ */
.areas-band { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; color: #fff; }
.areas-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.areas-band::after { content: ""; position: absolute; inset: 0; background: rgba(15, 18, 26, .74); z-index: 1; }
.areas-band .container { position: relative; z-index: 2; max-width: 820px; }
.areas-band .eyebrow { color: var(--red-bright); }
.areas-band h2 { color: #fff; font-size: 2.6rem; margin-bottom: 1rem; }
.areas-band p { color: rgba(255, 255, 255, .92); }

/* ============ REVIEWS ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.review-card { background: #fff; border-radius: 12px; box-shadow: var(--card-shadow); padding: 34px 28px; text-align: center; display: flex; flex-direction: column; }
.review-card p { color: var(--body); font-size: .98rem; }
.review-card .review-author { font-family: var(--display); font-weight: 600; color: var(--near-black); border-top: 1px solid var(--grey-line); padding-top: 16px; margin-top: auto; }
.review-card .review-author a { color: var(--near-black); }
.review-card .review-author a:hover { color: var(--red); }
.stars { color: #f2b01e; letter-spacing: 3px; margin-top: 10px; font-size: 1.05rem; }
.reviews-cta { text-align: center; margin-top: 44px; }

/* ============ CONTACT INFO CARDS ============ */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card { background: var(--red); color: #fff; border-radius: 14px; padding: 30px 28px; }
.info-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.info-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.info-icon svg { width: 22px; height: 22px; fill: #fff; }
.info-card-top .info-label { font-family: var(--display); font-weight: 600; font-size: 1rem; margin: 0; }
.info-card-top a, .info-card-top .info-value { color: #fff; font-size: 1.02rem; }
.info-card-top a:hover { text-decoration: underline; }
.info-card > p { color: rgba(255, 255, 255, .9); border-top: 1px solid rgba(255, 255, 255, .28); padding-top: 16px; margin: 0; font-size: .95rem; }

/* ============ INNER SERVICE PAGE CONTENT ============ */
.svc-detail { padding: 84px 0; }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.svc-detail h2 { font-size: 2.3rem; margin-bottom: 1.1rem; }
.svc-detail h2 .accent { color: var(--red); display: block; }
.svc-detail p { color: var(--body); }
.svc-figure { position: relative; padding: 16px; }
.svc-figure img { width: 100%; border-radius: 8px; position: relative; z-index: 2; box-shadow: var(--card-shadow); }
.svc-figure::before { content: ""; position: absolute; top: 0; left: 24px; right: 60px; height: 22px; background: var(--red); border-radius: 8px 8px 0 0; z-index: 1; }
.svc-figure::after { content: ""; position: absolute; bottom: 0; left: 60px; right: 24px; height: 22px; border: 2px solid var(--red); border-top: none; border-radius: 0 0 8px 8px; z-index: 1; }

/* ============ OUR WORK GALLERY ============ */
.gallery { padding: 72px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-grid img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px; background: #e6e6e6; transition: transform .3s ease, filter .3s ease; }
.gallery-grid img:hover { transform: scale(1.02); filter: brightness(1.05); }

/* ============ BLOG ============ */
.blog-list { padding: 72px 0; max-width: 940px; }
.blog-card { display: grid; grid-template-columns: 420px 1fr; gap: 0; border: 1px solid var(--grey-line); border-radius: 8px; overflow: hidden; margin-bottom: 34px; background: #fff; box-shadow: var(--card-shadow); }
.blog-card-media { display: block; height: 100%; }
.blog-card-img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.blog-card-body { padding: 30px 34px; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.blog-meta .avatar { width: 34px; height: 34px; border-radius: 50%; background: #d9d9d9; flex: 0 0 auto; }
.blog-card-body h3 { font-size: 1.5rem; margin: 4px 0; }
.blog-card-body h3 a:hover { color: var(--red); }
.blog-excerpt { color: var(--body); font-size: .98rem; margin: 0; }
.blog-stats { border-top: 1px solid var(--grey-line); padding-top: 14px; margin-top: auto; font-size: .85rem; color: var(--muted); }

/* ============ BLOG POST ============ */
.post-bar { border-bottom: 1px solid var(--grey-line); background: var(--white); }
.post-bar-inner { display: flex; align-items: center; gap: 28px; padding: 20px 24px; }
.post-bar a { font-family: var(--display); font-weight: 500; font-size: .95rem; letter-spacing: .04em; color: var(--ink); }
.post-bar a:hover { color: var(--red); }
.post-article { max-width: 940px; padding: 58px 0 0; }
.post-article h1 { font-size: 2.5rem; margin: 0 0 20px; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); margin-bottom: 30px; }
.post-meta .avatar { width: 38px; height: 38px; border-radius: 50%; background: #d9d9d9; flex: 0 0 auto; }
.post-body p { color: var(--body); font-size: 1.05rem; line-height: 1.85; margin: 0 0 22px; }
.post-stats { border-top: 1px solid var(--grey-line); padding-top: 16px; margin-top: 26px; font-size: .85rem; color: var(--muted); }
.recent-posts { max-width: 940px; padding: 46px 0 78px; }
.recent-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.recent-head h2 { font-size: 1.5rem; margin: 0; }
.recent-head a { font-size: .85rem; color: var(--muted); }
.recent-head a:hover { color: var(--red); }
.recent-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.recent-card { border: 1px solid var(--grey-line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); }
.recent-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.recent-card h3 { font-size: 1.15rem; margin: 0; padding: 18px 20px 22px; line-height: 1.3; }
.recent-card h3 a:hover { color: var(--red); }

/* ============ CONTACT PAGE FORM ============ */
.contact-section { padding: 84px 0; }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: start; }
.form-lead { color: var(--body); margin-bottom: 22px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .field.full { grid-column: 1 / -1; }
.contact-form label { font-size: .92rem; color: var(--near-black); font-weight: 500; }
.contact-form input, .contact-form textarea { border: none; border-bottom: 2px solid #d0d0d0; background: #f2f2f2; border-radius: 6px 6px 0 0; padding: 12px 14px; font-family: var(--sans); font-size: 1rem; color: var(--ink); transition: border-color .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--red); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; border-radius: 8px; background: var(--red); }
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-intro h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.contact-intro p { color: var(--body); }

/* ============ FOOTER ============ */
.site-footer { background: var(--grey-bg); color: var(--body); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 54px; }
.footer-brand img { height: 78px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; color: var(--muted); }
.socials { display: flex; gap: 12px; margin-top: 4px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; background: #111; display: flex; align-items: center; justify-content: center; transition: background .25s ease, transform .25s ease; }
.socials a:hover { background: var(--red); transform: translateY(-2px); }
.socials img { width: 16px; height: 16px; filter: brightness(0) invert(1); }
.footer-col h4 { font-family: var(--display); color: var(--red); font-size: 1.4rem; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--body); font-size: .96rem; }
.footer-col ul a:hover { color: var(--red); }
.footer-contact p { font-size: .96rem; margin-bottom: 12px; color: var(--body); }
.footer-contact strong { display: block; color: var(--near-black); }
.footer-contact a:hover { color: var(--red); }
.footer-bar { background: var(--red); color: #fff; text-align: center; padding: 16px; font-size: .9rem; }

/* ============ MOTION ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomSlow { from { transform: scale(1.08); } to { transform: scale(1); } }

.reveal { animation: fadeUp .8s cubic-bezier(.2, .7, .3, 1) both; }
.reveal.d1 { animation-delay: .12s; }
.reveal.d2 { animation-delay: .24s; }
.reveal.d3 { animation-delay: .36s; }
.hero-bg, .page-hero img, .areas-band img { animation: zoomSlow 1.6s ease both; }
.hero-inner { animation: fadeUp 1s ease both; }
.page-hero h1 { animation: fadeIn 1s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .reveal, .hero-bg, .page-hero img, .areas-band img, .hero-inner, .page-hero h1 {
    animation: none !important;
    transition: none !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .about-grid, .svc-detail-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid, .info-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-img { min-height: 220px; }
  .hero h1 { font-size: 2.5rem; }
  .page-hero h1 { font-size: 2.6rem; }
  .post-article h1 { font-size: 2.1rem; }
}
@media (max-width: 760px) {
  .navbar-inner { flex-wrap: wrap; min-height: 70px; }
  .main-nav { order: 3; width: 100%; }
  .main-nav > ul { flex-wrap: wrap; gap: 16px 22px; justify-content: center; padding: 10px 0; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; border-top: none; padding: 4px 0 4px 14px; min-width: 0; }
  .has-dropdown > a::after { display: none; }
  .svc-grid, .why-grid, .contact-form { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .btn-estimate { display: none; }
  .hero { min-height: 480px; }
  .recent-grid { grid-template-columns: 1fr; }
  .post-article h1 { font-size: 1.8rem; }
}
