/* ============================================================
   Mr. Prime Electrical — Main Stylesheet
   ============================================================ */

@import url('https://googleapis.com');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:        #333333;
  --color-hero:      #161616;
  --color-nav:       #1e1e1e;
  --color-footer:    #2a2a2a;
  --color-footer-line: #111111;
  --color-white:     #ffffff;
  --color-accent:    #1a6baa;
  --max-width:       1200px;
  --nav-height:      64px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV BAR ─────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--color-nav);
  border-bottom: 3px solid var(--color-hero);
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-brand span {
  color: #5ba3d9;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

/* Multi-Tier Dropdown System Setup */
.nav-links li {
  position: relative;
}

.nav-links a {
  color: #cccccc;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.23rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  position: relative;
  display: inline-block;
  padding: 10px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--color-white);
}

.nav-links a:hover::after {
  width: 100%;
}



/* Update this block to remove the translateY gap */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%); /* Removed the translateY(10px) drop gap */
  background-color: var(--color-nav);
  border: 1px solid #000000;
  border-radius: 4px;
  min-width: 240px;
  list-style: none;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

/* Ensure this block matches without any layout shift overrides */
.nav-links .dropdown:hover .dropdown-menu {
  display: flex;
}







.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  width: 100%;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #bbbbbb;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background-color: #282828;
  color: var(--color-white);
}

/* Hover Rules for Dropdowns */
.nav-links .dropdown:hover .dropdown-menu {
  display: flex;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero {
  width: 100%;
  background-color: var(--color-hero);
  overflow: hidden;
}

.hero-table {
  display: flex;
  width: 100%;
  align-items: stretch;
}

/* LEFT CELL */
.hero-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;

  flex-shrink: 0;
}

.hero-left img {
  max-width: 100%;
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
}

/* RIGHT CELL */
.hero-right {
  width: 50%;
  display: flex;
  align-items: flex-end;  
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
}

.hero-right img {
  display: block;
  width: 100%;
  max-width: 970px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  vertical-align: bottom;
}

/* ── HERO BASE BORDER ────────────────────────────────────── */
.hero-base {
  width: 100%;
  display: block;
  line-height: 0;
  font-size: 0;
}

.hero-base img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── PAGE BODY / CONTENT AREA ────────────────────────────── */
.page-body {
  background-color: var(--color-bg);
  width: 100%;
  padding: 60px 24px 80px;
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Section headings */
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--color-white);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 8px;
}

.content-block {
  margin-bottom: 60px;
}

.content-block p {
  font-size: 1rem;
  line-height: 1.75;
  color: #cccccc;
  max-width: 720px;
}

/* Card layout with strict 1px solid black border layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  background: #3d3d3d;
  border: 1px solid #000000; /* Overridden to 1px pure black outline */
  border-radius: 6px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45); /* Softened custom gradient shadow */
}

.card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #5ba3d9;
}

.card p {
  font-size: 0.9rem;
  color: #ffffff;
  line-height: 1.65;
}

/* ── UNIVERSAL BUTTON MODULE ────────────────────────────── */
.btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.btn-universal {
  display: inline-block;
  padding: 12px 30px;
  background-color: #3d3d3d;
  color: var(--color-white);
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5); /* Deep soft layout shadow */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-universal:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Reduced soft compression */
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background-color: var(--color-footer);
  border-top: 2px solid var(--color-footer-line);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 40px;
}

.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.footer-brand span {
  color: #5ba3d9;
}

.footer-desc {
  font-size: 0.85rem;
  color: #888888;
  line-height: 1.65;
  margin-bottom: 20px;
}

.badge-container {
  display: block;
  margin-top: 15px;
}

.footer-badge-asset {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
  transition: filter 0.2s ease;
}

.footer-badge-asset:hover {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaaaaa;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #777777;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

/* Copyright bar */
.footer-copyright {
  border-top: 1px solid #3a3a3a;
  margin-top: 40px;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.78rem;
  color: #666666;
  letter-spacing: 0.04em;
}

/* ── INNER PAGE COMPONENT STYLES ─────────────────────────── */
.inner-hero {
  position: relative;
  width: 100%;
  height: 269px;
  background-color: var(--color-hero);
  overflow: hidden;
}

.inner-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.inner-hero-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 22, 22, 0.35); /* Subtle dark gradient blend */
  padding: 0 24px;
}

.inner-page-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  text-align: center;
}

.inner-subtitle-block {
  width: 100%;
  background-color: var(--color-hero);
  padding: 30px 24px;
  text-align: center;
  border-bottom: 1px solid #222222;
}

.inner-page-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: #cccccc;
}

.inner-body-padding {
  padding-top: 50px;
}

.inner-align-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.inner-image-frame {
  width: 100%;
  max-width: 969px;


  margin-bottom: 40px;
}

.inner-featured-media {
  display: block;
  width: 100%;
  max-width: 969px;
  height: auto;
  object-fit: cover;
  border: 1px solid #000000;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

/* Custom Wide Content Paragraph Box Layout 
   Inherits precise style identity from home section card layout */
.inner-content-textbox {
  background: #3d3d3d;
  border: 1px solid #000000;
  border-radius: 6px;
  padding: 40px 36px;
  width: 100%;
  max-width: 969px; 
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inner-content-textbox:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.inner-content-textbox h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #5ba3d9;
}

.inner-content-textbox p {
  font-size: 0.98rem;
  color: #ffffff !important;
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 100% !important;
}

.inner-content-textbox p:last-of-type {
  margin-bottom: 0;
}

/* ── RESPONSIVE OVERRIDES ────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: var(--color-nav);
    border-bottom: 3px solid var(--color-hero);
    padding: 12px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .nav-links a::after {
    display: none;
  }

  .dropdown-menu {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background-color: #252525;
    padding: 0;
    display: none;
  }

  .nav-links .dropdown.open .dropdown-menu,
  .nav-links .dropdown:hover .dropdown-menu {
    display: flex;
  }

  .dropdown-menu li a {
    padding: 10px 40px;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  
  .inner-page-title {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .hero-table {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .hero-left {
    padding: 32px 20px 20px;
    order: 1;
  }

  .hero-right {
    order: 2;
    justify-content: center;
  }

  .hero-right img {
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-title {
    font-size: 1.5rem;
  }
  
  .inner-content-textbox {
    padding: 24px 20px;
  }
}

@media (max-width: 400px) {
  :root {
    --nav-height: 56px;
  }

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




.nav-brand a {
  color: inherit !important;
  text-decoration: none !important;
  display: inline-block;
}






html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height); /* Adds an offset equal to your nav bar height */
}



/* Navigation link brand color */
.nav-links a {
  color: #5ba3d9;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #ffffff;
}


/* General page-content links */
.page-body a {
  color: #5ba3d9;
  transition: color 0.2s ease;
}

.page-body a:hover,
.page-body a:focus-visible {
  color: #ffffff;
}

