/* ============ DOK Electrical – brand tokens ============ */
:root {
  --black: #1A1A1A;
  --white: #FFFFFF;
  --dark-grey: #333333;
  --mid-grey: #777777;
  --light-grey: #F2F2F2;
  --red: #E21B23;
  --deep-red: #B51219;
  --light-red: #FDE8E9;
  --off-white: #FAFAFA;

  --footer: #111111;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 76px;
  --radius: 10px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark-grey);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; } /* let the <img> inside lay out as if the wrapper weren't there */
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--black); margin: 0; line-height: 1.12; }
h1 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
h2 { font-weight: 900; font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); letter-spacing: -0.01em; margin-bottom: 1.25rem; text-wrap: balance; }
h3 { font-weight: 800; font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.red { color: var(--red); }
.muted { color: var(--mid-grey); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
section[id] { scroll-margin-top: var(--header-h); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font); font-weight: 900; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 17px 28px; font-size: 0.92rem; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--deep-red); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.icon { width: 18px; height: 18px; flex: none; }

/* ============ Logo ============ */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--black); }
.logo-mark { width: 46px; height: 46px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-dok { font-weight: 900; font-size: 1.75rem; letter-spacing: 0.01em; color: currentColor; }
.logo-elec { font-weight: 700; font-size: 0.62rem; letter-spacing: 0.2em; color: var(--red); margin-top: 3px; }
.logo-light { color: var(--white); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { border-color: #e6e6e6; box-shadow: 0 4px 18px rgba(0,0,0,.06); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a:not(.btn) {
  text-decoration: none; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--black); position: relative; padding: 6px 0;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transition: transform .2s;
}
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 3px; background: var(--black); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 55%, rgba(226,27,35,.22), transparent 70%),
    linear-gradient(160deg, #222 0%, var(--black) 55%, #121212 100%);
  color: var(--white);
}
.hero::before { /* faint grid texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end;
  gap: 24px; min-height: min(640px, calc(100vh - var(--header-h)));
}
.hero-copy { padding: 72px 0 80px; align-self: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #cfcfcf; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(226,27,35,.25); }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 1.2rem + 4vw, 4.1rem); margin-bottom: 22px; text-wrap: balance; }
.hero-lead { font-size: 1.12rem; color: #d6d6d6; max-width: 34em; margin-bottom: 32px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-points li { font-size: 0.82rem; font-weight: 600; color: #bdbdbd; display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 6px; height: 6px; background: var(--red); transform: rotate(45deg); }

.hero-badge { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hero-badge img { width: 92px; border-radius: 6px; }
.hero-badge span { font-size: 0.78rem; font-weight: 700; line-height: 1.4; color: #cfcfcf; letter-spacing: .02em; }

.hero-photo { position: relative; align-self: end; display: flex; justify-content: center; }
.hero-photo img { position: relative; z-index: 1; width: 100%; max-width: 470px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.hero-ring { /* echoes the red circle in the logo */
  position: absolute; z-index: 0; width: 86%; aspect-ratio: 1; left: 50%; top: 8%;
  transform: translateX(-50%); border-radius: 50%; border: 18px solid var(--red); opacity: .9;
}

/* ============ Sections ============ */
.section { padding: 96px 0; }
.section-white { background: var(--white); }
.section-grey { background: var(--light-grey); }
.section-black { background: var(--black); color: #d0d0d0; }
.section-black h2, .section-black h3 { color: var(--white); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--red); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about-copy { font-size: 1.05rem; }
.about-copy strong { color: var(--black); font-weight: 800; }
.stats { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stats li { border-top: 3px solid var(--black); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.stats li:first-child { border-top-color: var(--red); }
.stat-num { font-weight: 900; font-size: 2.3rem; color: var(--black); line-height: 1; }
.stat-label { font-size: 0.92rem; color: var(--mid-grey); font-weight: 500; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.service-card {
  background: #232323; border: 1px solid #2e2e2e; border-radius: var(--radius);
  padding: 34px 30px 30px; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--red); transform: translateY(-3px); }
.service-icon { width: 52px; height: 52px; color: var(--white); margin-bottom: 22px; }
.service-card h3 { margin-bottom: 12px; text-transform: uppercase; font-size: 1.08rem; letter-spacing: 0.04em; font-weight: 900; }
.service-card p { color: #bdbdbd; font-size: 0.98rem; flex: 1; }
.card-link {
  margin-top: 10px; align-self: flex-start; color: var(--white); text-decoration: none;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  border-bottom: 2px solid var(--red); padding-bottom: 3px;
}
.card-link span { display: inline-block; transition: transform .2s; }
.card-link:hover span { transform: translateX(4px); }
.extras { margin-top: 28px; border-top: 1px solid #2e2e2e; padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.extras h3 { font-size: 0.8rem; letter-spacing: .14em; text-transform: uppercase; color: #a9a9a9; font-weight: 800; }
.extras ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.extras li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid #3a3a3a; color: var(--white); font-size: 0.86rem; font-weight: 600;
}
.extras li::before { content: ""; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); }

/* Our Work */
.section-intro { max-width: 40em; margin-top: -0.4rem; }
.photo-count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(26,26,26,.82); color: var(--white);
  font-size: 0.7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px;
}
.feature-img, .project-img, .thumbs button {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: #e9e9e9; cursor: zoom-in; overflow: hidden;
}
.feature-img img, .project-img img, .thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.feature-img:hover img, .project-img:hover img, .thumbs button:hover img { transform: scale(1.04); }

.feature-project {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1.1fr; background: var(--light-grey);
  border-radius: var(--radius); overflow: hidden;
}
.feature-img { aspect-ratio: 4 / 5; height: 100%; }
.feature-body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-body h3 { font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem); font-weight: 900; margin: 14px 0 14px; }
.feature-body p { color: var(--dark-grey); }
.feature-body .tag { align-self: flex-start; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.thumbs button { aspect-ratio: 1; border-radius: 6px; }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.project-card { background: var(--white); border: 1px solid #e7e7e7; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.project-img { aspect-ratio: 4 / 5; }
.project-body { padding: 20px 20px 24px; }
.project-body h3 { margin: 10px 0 8px; font-size: 1.12rem; }
.project-body p { margin: 0; font-size: 0.96rem; color: var(--mid-grey); }
.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--deep-red); background: var(--light-red); padding: 4px 10px; border-radius: 4px;
}

/* Why */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.why-badge { width: 170px; margin-top: 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why-list li {
  display: flex; gap: 16px; align-items: flex-start; background: var(--white);
  border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--black);
}
.why-list svg { width: 26px; height: 26px; flex: none; color: var(--red); margin-top: 1px; }
.why-list strong { display: block; color: var(--black); font-weight: 800; }
.why-list span { color: var(--mid-grey); font-size: 0.95rem; }

/* Contact */
.contact-inner { text-align: center; max-width: 880px; }
.contact-inner .kicker { justify-content: center; }
.contact-lead { font-size: 1.08rem; max-width: 40em; margin: 0 auto 40px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #232323; border: 1px solid #333; border-radius: var(--radius);
  padding: 34px 20px; text-decoration: none; transition: border-color .2s, background-color .2s;
}
.contact-card:hover { border-color: var(--red); background: #262626; }
.contact-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--red); color: var(--white); display: grid; place-items: center; margin-bottom: 10px; }
.contact-icon svg { width: 26px; height: 26px; }
.contact-label { font-size: 0.75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #a9a9a9; }
.contact-value { font-weight: 900; color: var(--white); font-size: clamp(1rem, 0.75rem + 0.9vw, 1.4rem); white-space: nowrap; }
.contact-tip { margin: 28px auto 0; font-size: 0.92rem; color: #a9a9a9; max-width: 36em; }
.contact-tip strong { color: var(--white); }

/* Footer */
.site-footer { background: var(--footer); color: #a9a9a9; padding: 64px 0 0; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 40px; }
.site-footer h4 { color: var(--white); font-size: 0.75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer nav a, .site-footer div > a:not(.logo) { display: block; text-decoration: none; margin-bottom: 8px; color: #cfcfcf; }
.site-footer a:hover { color: var(--white); }
.footer-tag { margin-top: 16px; }
.footer-area { margin-top: 8px; font-size: 0.85rem; }
.footer-badge { width: 110px; border-radius: 6px; margin-top: 4px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10,10,10,.96); color: var(--white);
}
.lightbox[open] { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 20px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { margin-top: 14px; display: flex; gap: 16px; align-items: baseline; font-size: 0.92rem; color: #cfcfcf; text-align: center; padding: 0 12px; }
.lb-count { color: #8a8a8a; font-size: 0.8rem; white-space: nowrap; }
.lightbox button {
  background: none; border: 0; color: var(--white); cursor: pointer; font-family: var(--font);
  width: 56px; height: 56px; border-radius: 50%; font-size: 2.2rem; line-height: 1; justify-self: center;
}
.lightbox button:hover { background: rgba(255,255,255,.1); }
.lb-close { position: absolute; top: 10px; right: 12px; font-size: 2rem !important; }
.lb-prev:disabled, .lb-next:disabled { visibility: hidden; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid !important; place-items: center;
  border: 1px solid #3a3a3a; color: var(--white); margin: 0 !important; transition: background-color .2s, border-color .2s;
}
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 20px; height: 20px; }
.site-footer .social-handle { margin-top: 10px; font-weight: 700; }

.owner-sign { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.owner-sign img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 4%;
  background: var(--light-grey); border: 3px solid var(--red);
}
.owner-sign strong { display: block; font-weight: 900; color: var(--black); font-size: 1.05rem; }
.owner-sign span { font-size: 0.88rem; color: var(--mid-grey); }
.footer-bottom { border-top: 1px solid #262626; margin-top: 48px; padding-top: 22px; padding-bottom: 22px; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* ============ Tablet ============ */
@media (max-width: 960px) {
  .main-nav { gap: 20px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .feature-project { grid-template-columns: 1fr; }
  .feature-img { aspect-ratio: 4 / 3; }
  .feature-body { padding: 28px 24px 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ============ Mobile ============ */
@media (max-width: 820px) {
  :root { --header-h: 66px; }
  body { font-size: 16px; padding-bottom: 64px; }
  .container { padding: 0 16px; }
  .logo-mark { width: 40px; height: 40px; }
  .logo-dok { font-size: 1.5rem; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid #eee; box-shadow: 0 16px 30px rgba(0,0,0,.12);
    padding: 8px 16px 20px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 15px 4px; border-bottom: 1px solid #eee; font-size: 0.9rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 16px 0 0; }

  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 44px 0 8px; }
  .hero-buttons .btn { flex: 1 1 100%; }
  .hero-photo img { max-width: 330px; }
  .hero-ring { width: 78%; border-width: 14px; }

  .section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .cards-3 { grid-template-columns: 1fr; margin-top: 28px; }
  .cards-4 { gap: 12px; }
  .project-body { padding: 14px 14px 18px; }
  .project-body h3 { font-size: 0.98rem; }
  .project-body p { font-size: 0.86rem; }
  .thumbs { gap: 6px; }
  .lightbox[open] { grid-template-columns: 44px 1fr 44px; }
  .lightbox button { width: 44px; height: 44px; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1.6fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    box-shadow: 0 -6px 20px rgba(0,0,0,.18);
    padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--black);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; height: 60px;
    text-decoration: none; font-weight: 900; font-size: 0.85rem; letter-spacing: .1em; text-transform: uppercase;
  }
  .mobile-bar svg { width: 20px; height: 20px; }
  .mobile-call { background: var(--red); color: var(--white); }
  .mobile-email { background: var(--black); color: var(--white); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
