/*
Theme Name: Carson Web Design Child
Template: Divi
Version: 1.0.0
Description: Bold local Carson Web Design child theme for Divi.
Author: Carson Web Design
*/

:root {
  --cwd-navy: #172b3a;
  --cwd-blue: #4fa3d9;
  --cwd-red: #b3272d;
  --cwd-sage: #7e9b76;
  --cwd-copper: #c98247;
  --cwd-stone: #f7f2ea;
  --cwd-charcoal: #222222;
  --cwd-white: #ffffff;
}

body {
  color: var(--cwd-charcoal);
}

#main-header {
  border-bottom: 4px solid var(--cwd-red);
  box-shadow: 0 10px 28px rgba(23, 43, 58, 0.08);
}

#top-menu li a {
  color: var(--cwd-navy);
  font-weight: 900;
}

#top-menu li.current-menu-item > a,
#top-menu li a:hover {
  color: var(--cwd-red);
}

.mobile_menu_bar:before {
  color: var(--cwd-navy);
}

.et_mobile_menu {
  border-top-color: var(--cwd-red);
}

.cwd-page {
  --section-y: clamp(64px, 8vw, 112px);
}

.cwd-page .et_pb_section {
  background-size: cover;
}

.cwd-band-dark {
  background-color: var(--cwd-navy) !important;
}

.cwd-page h1,
.cwd-page h2,
.cwd-page h3 {
  letter-spacing: 0;
}

.cwd-flag-rule {
  position: relative;
}

.cwd-flag-rule:after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cwd-red) 0 33%, var(--cwd-white) 33% 66%, var(--cwd-blue) 66% 100%);
  box-shadow: 0 8px 18px rgba(23, 43, 58, 0.12);
}

.cwd-card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cwd-card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(23, 43, 58, 0.16);
}

.cwd-mini-callout {
  border-left: 6px solid var(--cwd-red);
}

.et_pb_button {
  font-weight: 900 !important;
}

.cwd-home-hero {
  position: relative;
  overflow: hidden;
  background-image: url("https://www.carsonwebdesign.com/wp-content/uploads/2026/05/american-flag-sunset-hero.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.cwd-home-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 29, 0.92), rgba(23, 43, 58, 0.76) 48%, rgba(23, 43, 58, 0.42)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 18px);
  pointer-events: none;
}

.cwd-home-hero .et_pb_row {
  position: relative;
  z-index: 2;
}

.cwd-hero-kicker {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.32);
  border-left: 6px solid var(--cwd-red);
  background: rgba(255,255,255,.09);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.cwd-video-frame {
  position: relative;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.16);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  background: #07121d;
}

.cwd-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.cwd-video-frame:after {
  content: "LIVE BUILD ENERGY";
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--cwd-red);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.cwd-patriot-strip {
  min-height: 18px;
  background: linear-gradient(90deg, #b3272d 0 33%, #fff 33% 66%, #1e5f96 66% 100%);
  box-shadow: 0 12px 28px rgba(23,43,58,.18);
}

.cwd-image-collage .et_pb_image img,
.cwd-big-photo .et_pb_image_wrap img {
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(23,43,58,.22);
}

.cwd-overlap-card {
  margin-top: -90px;
  position: relative;
  z-index: 3;
}

.cwd-bold-card {
  border-top: 8px solid var(--cwd-red) !important;
  box-shadow: 0 18px 45px rgba(23,43,58,.14);
}

.cwd-steel-section {
  background:
    linear-gradient(135deg, rgba(23,43,58,.97), rgba(9,22,36,.94)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 36px) !important;
}

.cwd-service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--cwd-red);
  color: #fff;
  font-weight: 900;
}

.cwd-photo-band {
  min-height: 520px;
  position: relative;
  background-image: url("https://www.carsonwebdesign.com/wp-content/uploads/2026/05/carson-city-welcome-sign.jpg") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.cwd-photo-band:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(23,43,58,.92), rgba(23,43,58,.35));
  pointer-events: none;
}

.cwd-photo-band .et_pb_row {
  position: relative;
  z-index: 2;
}

.cwd-home-hero h1,
.cwd-steel-section h2,
.cwd-photo-band h2 {
  text-shadow: 0 8px 28px rgba(0,0,0,.28);
}

.cwd-red-outline {
  border: 2px solid rgba(179,39,45,.22);
}

#main-footer {
  background: var(--cwd-navy);
}

#footer-info,
#footer-info a,
#footer-bottom .et-social-icon a {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 980px) {
  #main-header {
    border-bottom-width: 3px;
  }

  .cwd-overlap-card {
    margin-top: 0;
  }

  .cwd-photo-band {
    min-height: auto;
  }
}

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