/* ================================================================
   CMN Welding & Hydraulics — styles.css
   ================================================================ */

/* ── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --orange:        #E8620A;
  --orange-light:  #FF8C3A;
  --dark:          #111111;
  --dark2:         #1A1A1A;
  --dark3:         #242424;
  --text:          #F0EDE8;
  --muted:         #9A9590;
  --steel:         #6E6E6E;
  --border-dim:    rgba(255, 255, 255, 0.07);
  --border-orange: rgba(232, 98, 10, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--dark);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
  width: 300%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-wrap { display: flex; flex-direction: column; min-height: 100vh; }





/* ================================================================
   STORE PAGE — temporary coming soon video
     (this will be removed once the store is live)
   ================================================================ */
.store-video {
    max-width: 400px;  /* Adjust this value to whatever size looks good */
    width: 100%;
    display: block;
    margin: 20px auto;
}


/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.97);
  border-bottom: 1px solid var(--border-orange);
  padding: 0 32px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.navbar a:hover,
.navbar a.active { color: var(--text); }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #0e0e0e;
  border: 1px solid var(--border-orange);
  border-radius: 6px;
  min-width: 210px;
  padding:10px 0 6px;
  z-index: 200;
}

.dropdown-content li a {
  display: block;
  padding: 9px 18px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.dropdown-content li a:hover {
  background: rgba(232, 98, 10, 0.08);
  color: var(--orange-light);
}

.dropdown:hover .dropdown-content { display: block; }

/* Navbar CTA button */
.nav-cta-btn {
  background: var(--orange) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  transition: background 0.2s !important;
}
.nav-cta-btn:hover { background: var(--orange-light) !important; }


/* ================================================================
   HERO — homepage only
   The logo image, MN badge, and Veteran Owned badge all live
   inside the background image itself. We must NOT clip them.
   The title + tagline sit at the bottom of the hero.
   ================================================================ */
.flashy-header {
  position: relative;
  width: 100%;
  /* tall enough to show the full image including top badges */
  min-height: 480px;
  background-image: url('/images/Logo/CMN_Logo_3.png');
  background-size: contain;       /* show the whole image, no cropping */
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #000;         /* fill gaps around the image */
  display: flex;
  align-items: flex-end;          /* pin content to the bottom */
  justify-content: center;
  text-align: center;
  overflow: visible;
}

/* Dark fade at the bottom so text pops over the image */
.flashy-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, rgba(5, 5, 5, 0.92));
  pointer-events: none;
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 24px 36px;
}

.header-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 4.5vw, 50px);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff6a00;
  text-shadow:
    0 0 6px rgba(0,0,0,1),
    0 0 14px rgba(255,106,0,1),
    0 0 36px rgba(255,106,0,0.8),
    0 0 72px rgba(255,80,0,0.5);
  margin-bottom: 8px;
}

.header-tagline {
  font-size: clamp(11px, 1.6vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 237, 232, 0.9);
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
  margin-bottom: 0;
}

/* CTA buttons inside hero */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(232,98,10,0.4);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 0 36px rgba(255,140,58,0.5);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.28);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}


/* ================================================================
   TRUST STRIP — below hero on homepage
   ================================================================ */
.trust-strip {
  display: flex;
  align-items: stretch;
  background: var(--dark2);
  border-top: 2px solid var(--orange);
  border-bottom: 1px solid var(--border-dim);
}

.trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border-right: 1px solid var(--border-dim);
  transition: background 0.2s;
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: rgba(255,255,255,0.03); }

.trust-icon {
  font-size: 22px;
  color: var(--orange);
  flex-shrink: 0;
  line-height: 1;
}

.trust-label {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.trust-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.04em;
}


/* ================================================================
   HOMEPAGE SERVICES SECTION
   ================================================================ */
.services {
  padding: 64px 0;
  background: var(--dark);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 36px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-link { display: block; text-decoration: none; color: inherit; }

.service-card {
  background: var(--dark2);
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--orange);
  border-radius: 8px;
  padding: 24px 26px;
  transition: background 0.2s, border-color 0.2s;
  height: 100%;
}
.service-link:hover .service-card {
  background: var(--dark3);
  border-color: var(--border-orange);
  border-left-color: var(--orange-light);
}

.service-icon {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1;
}

.service-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}


/* ================================================================
   INNER PAGE HEADER BANNER
   (used on service pages, about, gallery, quote)
   ================================================================ */
.page-header {
  background: var(--dark2);
  border-bottom: 2px solid var(--orange);
  padding: 40px 32px 36px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 0 30px rgba(232,98,10,0.25);
}


/* ================================================================
   INNER PAGE CONTENT
   (service pages: .custom-fab-section)
   ================================================================ */
.custom-fab-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 32px 72px;
  flex: 1;
}

.custom-fab-section > h1 {
  /* hide the duplicate h1 — the .page-header already shows it */
  display: none;
}

.custom-fab-section > p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.custom-fab-section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dim);
}

.fab-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.fab-list li {
  font-size: 15px;
  color: var(--muted);
  padding: 10px 0 10px 20px;
  border-bottom: 1px solid var(--border-dim);
  position: relative;
  line-height: 1.5;
}

.fab-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* CTA button on service pages */
.cta-button {
  display: inline-block;
  margin-top: 36px;
  background: var(--orange);
  color: #fff;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 4px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(232,98,10,0.3);
}
.cta-button:hover {
  background: var(--orange-light);
  box-shadow: 0 0 30px rgba(255,140,58,0.45);
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h3 {
  font-family: 'Bungee', cursive;
  font-size: 24px;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(200,241,53,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-text span {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
}

.contact-item-text strong { font-size: 15px; color: var(--white); }


/* FORM */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(200,241,53,0.08);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select option { background: var(--bg2); }

/* ================================================================
   FOOTER — shared via components/footer.html
   ================================================================ */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border-dim);
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 36px;
}

/* Override for homepage footer which has 4 columns */
.footer-content.four-col {
  grid-template-columns: 1.2fr 2fr 0.8fr 0.8fr;
}

.footer h4,
.footer-heading {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-section p,
.footer-section li,
.footer p,
.footer li {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-section a,
.footer a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer-section a:hover,
.footer a:hover { color: var(--orange-light); }

/* Footer review slider */
.review-box { position: relative; }
.review-slider { position: relative; min-height: 110px; }

.review-slide { display: none; animation: fadeIn 0.4s ease; }
.review-slide.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.review-stars {
  color: var(--orange);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.review-slide p {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 8px;
}

.review-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
}

.review-dots { display: flex; gap: 6px; margin-top: 12px; }

.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-dim);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: var(--orange); border-color: var(--orange); }

.footer-right ul { padding: 0; }
.footer-right li { margin-bottom: 8px; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: center;
  padding: 14px 32px;
}
.footer-bottom p {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.05em;
}


/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .footer-content,
  .footer-content.four-col {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .navbar { padding: 0 16px; }
  .nav-left, .nav-right { gap: 14px; }
  .navbar a { font-size: 11px; }

  .flashy-header { min-height: 340px; }

  .trust-strip { flex-wrap: wrap; }
  .trust-item {
    flex: 1 1 50%;
    border-right: none;
    border-bottom: 1px solid var(--border-dim);
  }

  .service-list { grid-template-columns: 1fr; }

  .footer-content,
  .footer-content.four-col {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 20px 28px;
  }

  .hero-cta-group { flex-direction: column; gap: 10px; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }

  .custom-fab-section { padding: 40px 20px 56px; }
  .page-header { padding: 28px 20px 24px; }
}

/* ================================================================
   MOBILE NAVBAR — add these rules to your styles.css
   These sit alongside your existing navbar styles and only
   activate on screens 768px and below.
   ================================================================ */

/* ── Hamburger button ───────────────────────────────────────────── */
.hamburger {
    display: none;               /* hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-orange);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    margin-left: auto;           /* push to far right */
    flex-shrink: 0;
    z-index: 201;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── Mobile slide-down menu ─────────────────────────────────────── */
.mobile-menu {
    display: none;               /* hidden on desktop */
    position: absolute;
    top: 60px;                   /* height of navbar */
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 2px solid var(--orange);
    border-top: 1px solid var(--border-dim);
    z-index: 199;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.open {
    max-height: 600px;           /* tall enough for all items */
}

.mobile-nav-links {
    list-style: none;
    padding: 8px 0 16px;
    margin: 0;
}

.mobile-nav-links > li > a,
.mobile-dropdown-btn {
    display: block;
    width: 100%;
    padding: 13px 24px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
    transition: color 0.2s, background 0.2s;
}

.mobile-nav-links > li > a:hover,
.mobile-dropdown-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

/* Services arrow rotation */
.mobile-arrow {
    display: inline-block;
    transition: transform 0.25s;
    margin-left: 4px;
}
.mobile-dropdown-btn.open .mobile-arrow {
    transform: rotate(180deg);
}

/* Services sub-menu */
.mobile-dropdown-content {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--orange);
    margin: 0 16px 4px;
    border-radius: 0 4px 4px 0;
}

.mobile-dropdown-content.open {
    max-height: 300px;
}

.mobile-dropdown-content li a {
    display: block;
    padding: 10px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s;
}

.mobile-dropdown-content li a:hover {
    color: var(--orange-light);
}

/* Get a Quote CTA in mobile menu */
.mobile-cta-btn {
    display: block !important;
    margin: 12px 16px 4px !important;
    padding: 13px 24px !important;
    background: var(--orange) !important;
    color: #fff !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    box-shadow: 0 0 20px rgba(232, 98, 10, 0.3);
    transition: background 0.2s !important;
}
.mobile-cta-btn:hover {
    background: var(--orange-light) !important;
}


/* ================================================================
   RESPONSIVE BREAKPOINT — 768px and below
   ================================================================ */
@media (max-width: 768px) {

    /* Hide the desktop left/right nav lists */
    .nav-left,
    .nav-right {
        display: none;
    }

    /* Show hamburger and position navbar for absolute child */
    .navbar {
        position: relative;
        justify-content: flex-end;   /* push hamburger to right */
    }

    .hamburger {
        display: flex;
    }

    /* Show the mobile menu container (open/close handled by JS) */
    .mobile-menu {
        display: block;
    }
}

/* ── Confirmation Modal ──────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #1A1A1A;
    border: 1px solid rgba(232, 98, 10, 0.35);
    border-top: 3px solid #E8620A;
    border-radius: 10px;
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 60px rgba(232, 98, 10, 0.12);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.modal-body {
    font-size: 15px;
    color: #9A9590;
    line-height: 1.7;
    margin-bottom: 28px;
}

.modal-close-btn {
    background: #E8620A;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #FF8C3A;
}