/*
  DC Elite Installations
  Modern Website Styles
*/

/* =========================
   CSS Variables
========================= */

:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-surface-alt: #eef3f8;

  --color-primary: #0f172a;
  --color-primary-light: #1e293b;
  --color-accent: #f97316;
  --color-accent-dark: #ea580c;
  --color-blue: #0284c7;

  --color-text: #1f2937;
  --color-muted: #64748b;
  --color-border: #dbe3ec;

  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container-width: 1160px;
}

/* =========================
   Reset / Base
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(2, 132, 199, 0.08), transparent 32rem),
    var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

p {
  margin-bottom: 1rem;
}

h1,
h2,
h3 {
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.15rem);
}

h3 {
  font-size: 1.25rem;
}

/* =========================
   Layout
========================= */

.container {
  width: min(var(--container-width), 92%);
  margin: 0 auto;
}

.narrow-content {
  max-width: 820px;
}

.section {
  padding: 6rem 0;
}

.section-muted {
  background:
    linear-gradient(180deg, #eef3f8 0%, #f8fafc 100%);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-heading p {
  color: var(--color-muted);
  font-size: 1.08rem;
}

/* =========================
   Header / Navigation
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.header-content {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.brand a::before {
  content: "DC";
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), #fb923c);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.site-nav a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
}

.site-nav a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

/* =========================
   Hero
========================= */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.62) 100%),
    url("../images/dcelitelogo.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.3), transparent 24rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.9), transparent);
}

.hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -10rem;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  background: rgba(2, 132, 199, 0.24);
  filter: blur(14px);
}

.hero-content {
  max-width: 820px;
  padding: 6rem 0;
}

.hero h1 {
  color: #ffffff;
  max-width: 860px;
}

.hero p {
  max-width: 700px;
  color: #dbeafe;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fed7aa;
  background-color: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: var(--color-accent);
  box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================
   Page Hero
========================= */

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(249, 115, 22, 0.2), transparent 22rem),
    linear-gradient(135deg, #0f172a 0%, #1e293b 62%, #0f172a 100%);
  padding: 5.5rem 0;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -12rem;
  top: -12rem;
  width: 30rem;
  height: 30rem;
  border-radius: 999px;
  background-color: rgba(2, 132, 199, 0.22);
}

.page-hero h1,
.page-hero h2 {
  color: #ffffff;
  max-width: 900px;
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 1.15rem;
}

/* =========================
   Buttons
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dark));
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 20px 42px rgba(249, 115, 22, 0.36);
}

.btn-secondary {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background-color: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  color: #0f172a;
  background-color: #ffffff;
  border-color: #ffffff;
}

/* =========================
   Cards
========================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(219, 227, 236, 0.95);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-blue));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.22);
}

.card:hover::before {
  opacity: 1;
}

.card h2,
.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-muted);
}

/* =========================
   Split Section
========================= */

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 3rem;
  align-items: start;
}

.split-section p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1rem 1rem 1.2rem;
  font-weight: 850;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.feature-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-blue));
}

/* =========================
   Services
========================= */

.service-list {
  display: grid;
  gap: 1rem;
}

.service-row {
  display: grid;
  gap: 0.25rem;
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.service-row h3 {
  margin-bottom: 0.25rem;
}

.service-row p {
  color: var(--color-muted);
  margin-bottom: 0;
}

/* =========================
   Contact
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  align-items: start;
}

.contact-detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.contact-detail strong {
  display: block;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.contact-detail a {
  color: var(--color-blue);
  font-weight: 850;
}

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

.check-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.check-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--color-muted);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  color: #ffffff;
  background-color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 900;
}

/* =========================
   CTA
========================= */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.26), transparent 22rem),
    linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 5rem 0;
  text-align: center;
}

.cta::after {
  content: "";
  position: absolute;
  right: -10rem;
  bottom: -12rem;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background-color: rgba(2, 132, 199, 0.22);
}

.cta h2 {
  color: #ffffff;
}

.cta p {
  color: #cbd5e1;
  margin-bottom: 2rem;
  font-size: 1.08rem;
}

.cta-content {
  max-width: 760px;
}

/* =========================
   Footer
========================= */

.site-footer {
  color: #cbd5e1;
  background-color: #020617;
  padding: 1.5rem 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: #e2e8f0;
  font-weight: 700;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-content p {
  margin-bottom: 0;
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
  .card-grid,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 760px) {
  .header-content {
    min-height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .site-nav a {
    padding: 0.6rem 0.85rem;
  }

  .hero {
    padding: 4.5rem 0;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .page-hero {
    padding: 4rem 0;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .card {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 2rem, var(--container-width));
  }

  .brand a {
    font-size: 1rem;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3rem);
  }

  .section {
    padding: 3.5rem 0;
  }
}


/* Completed Work Page */

.page-hero {
  padding: 6rem 0 4rem;
  background:
    linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.82)),
    url("images/work/door-install-1.jpg");
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.page-hero .eyebrow {
  color: #f59e0b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 700px;
  font-size: 1.1rem;
  color: #e5e7eb;
}

.gallery-section {
  padding: 4rem 0;
  background: #f8fafc;
}

.gallery-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.gallery-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.gallery-intro p {
  color: #475569;
  line-height: 1.7;
}

.masonry-gallery {
  columns: 1;
  column-gap: 1.25rem;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 640px) {
  .masonry-gallery {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-gallery {
    columns: 3;
  }
}

@media (min-width: 1400px) {
  .masonry-gallery {
    columns: 4;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 95vw;
  max-height: 88vh;
  border-radius: 1rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}

/* Final Navigation Override */

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  .site-nav {
    gap: 0.55rem;
  }

  .site-nav a {
    padding: 0.55rem 0.75rem;
  }
}