/* ============================================================
   J&L Plumbing and Air — Global Stylesheet
   Colors: Deep Metallic Blue / Holographic Silver / White
   ============================================================ */

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

:root {
  --black:        #122030;
  --black-light:  #1A2E42;
  --black-mid:    #213852;
  --blue:         #3A7CA5;
  --blue-light:   #5298C0;
  --blue-bright:  #6AB4D8;
  --blue-dim:     rgba(58,124,165,0.2);
  --silver:       #B8BEC4;
  --silver-light: #D8DDE2;
  --silver-bright:#ECEEF0;
  --silver-dim:   #8A9299;
  --white:        #FFFFFF;

  /* Holographic / foil gradient — used on accents, dividers, CTAs */
  --foil: linear-gradient(135deg,
    #C8D0D8 0%,
    #7AB4D4 20%,
    #E0E6EA 40%,
    #5298C0 60%,
    #D0D8E0 80%,
    #8ABCD6 100%
  );

  /* Metallic silver gradient — flatter, less blue */
  --metal: linear-gradient(135deg,
    #8A9299 0%,
    #D8DDE2 35%,
    #ECEEF0 50%,
    #B8BEC4 65%,
    #7A8390 100%
  );

  /* Metallic gold gradient */
  --gold-metal: linear-gradient(135deg,
    #7A5A08 0%,
    #C8991A 25%,
    #F0C840 45%,
    #E8B830 50%,
    #C09018 70%,
    #8B6808 100%
  );
  --gold:       #C8991A;
  --gold-light: #E8B830;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--black);
  color: var(--silver-light);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(18,32,48,0.97);
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(184,190,196,0.3), rgba(106,180,216,0.3), rgba(184,190,196,0.3), transparent) 1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem; height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo img {
  height: 48px; width: 48px; object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(82,152,192,0.4)) brightness(1.05);
  transition: filter 0.4s ease;
}
.nav-logo:hover img {
  filter: drop-shadow(0 0 16px rgba(200,208,216,0.6)) drop-shadow(0 0 6px rgba(106,180,216,0.4)) brightness(1.15);
}
.nav-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: var(--silver-bright); letter-spacing: 0.08em;
  text-transform: uppercase; line-height: 1.2;
}
.nav-logo-text span {
  display: block; font-size: 0.52rem;
  letter-spacing: 0.25em; color: var(--silver-dim);
  font-weight: 400; font-family: 'Lato', sans-serif;
  margin-top: 2px;
}
.nav-links {
  display: flex; gap: 2rem; list-style: none; align-items: center;
}
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--silver);
  text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--silver-bright); }
.nav-cta {
  background: var(--gold-metal) !important;
  color: #1A0E00 !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: opacity 0.2s !important;
  border: none !important;
  box-shadow: 0 2px 12px rgba(200,153,26,0.3) !important;
}
.nav-cta:hover { opacity: 0.88 !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; width: 40px; height: 40px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--silver-light);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HEADER (interior pages) ── */
.page-header {
  background: var(--black-light);
  border-bottom: 1px solid rgba(184,190,196,0.12);
  padding: 7rem 2rem 3.5rem;
  text-align: center;
}
.page-header .breadcrumb {
  font-size: 0.65rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--silver-dim);
  margin-bottom: 1rem; display: flex;
  align-items: center; justify-content: center; gap: 0.5rem;
}
.page-header .breadcrumb a { color: var(--blue-light); }
.page-header .breadcrumb span { opacity: 0.4; }
.page-header .page-label {
  font-size: 0.6rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--blue-light);
  margin-bottom: 0.75rem; display: block;
}
.page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600; color: var(--white);
  letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.1; margin-bottom: 0.75rem;
}
.page-header .page-sub {
  font-size: 0.9rem; font-weight: 300;
  color: var(--silver); max-width: 540px; margin: 0 auto;
  line-height: 1.8;
}

/* ── SECTION LABELS ── */
.section-label {
  display: block; font-size: 0.6rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 0.6rem;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600; color: var(--silver-bright);
  text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1.15;
}

/* Foil gradient divider line */
.header-divider {
  width: 80px; height: 3px;
  background: var(--foil);
  margin: 1rem 0 0;
  border-radius: 2px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold-metal);
  color: #1A0E00;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 2.5rem; border: none; border-radius: 2px;
  cursor: pointer; text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 20px rgba(200,153,26,0.35);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--silver-light);
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(184,190,196,0.35);
  border-radius: 2px; text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--silver-light); color: var(--white); }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, #1A2E42 0%, #213852 50%, #1A2E42 100%);
  border-top: 1px solid rgba(184,190,196,0.15);
  border-bottom: 1px solid rgba(184,190,196,0.15);
  padding: 3.5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(200,208,216,0.04) 0%,
    rgba(106,180,216,0.06) 50%,
    rgba(200,208,216,0.04) 100%
  );
  pointer-events: none;
}
.cta-band h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600; color: var(--silver-bright);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.75rem; position: relative;
}
.cta-band p {
  font-size: 0.92rem; font-weight: 300;
  color: var(--silver); margin-bottom: 2rem;
  max-width: 520px; margin-left: auto; margin-right: auto;
  line-height: 1.8; position: relative;
}
.cta-band .btn-dark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold-metal);
  color: #1A0E00;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 1rem 2.5rem; border-radius: 2px;
  text-decoration: none; position: relative;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 24px rgba(200,153,26,0.4);
}
.cta-band .btn-dark:hover { opacity: 0.88; transform: translateY(-2px); }
.cta-band .cta-phone {
  display: block; margin-top: 1rem;
  font-size: 0.75rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--silver-dim);
  position: relative;
}

/* ── BLOG / CARD GRID ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5px;
  background: rgba(184,190,196,0.07);
  border: 1px solid rgba(184,190,196,0.1);
}
.blog-card {
  background: var(--black-light);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.25s, border-color 0.25s;
}
.blog-card:hover {
  background: var(--black-mid);
  border-left-color: var(--silver);
}

/* ── FOOTER ── */
footer {
  background: var(--black-light);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(184,190,196,0.2), rgba(106,180,216,0.2), rgba(184,190,196,0.2), transparent) 1;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: auto;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--silver-bright); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}
.footer-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.4rem 1.75rem;
  margin-bottom: 1.25rem;
}
.footer-links a {
  font-size: 0.68rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--silver-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--silver-light); }
.footer-copy {
  font-size: 0.68rem; color: var(--silver-dim);
  letter-spacing: 0.08em; opacity: 0.6;
}

/* ── UTILITY ── */
.divider-line {
  border: none; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184,190,196,0.15), transparent);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .page-header { padding: 6rem 1.25rem 2.5rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 2.5rem 1.25rem; }
  footer { padding: 2rem 1.25rem; }
}
