/* ============================================================
   MacLean Brothers — Site CSS (Phase 1A)
   Shared across index.html, about.html, contact.html
   Depends on colors_and_type.css
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }

a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* ------- Layout ------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ------- Skip link (a11y) ------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--charcoal); color: var(--white);
  font-family: var(--font-heading); font-size: .82rem; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 14px 24px; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-size: .82rem; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  padding: 15px 28px; border-radius: 2px;
  border: none; cursor: pointer; text-decoration: none;
  transition: all .2s ease;
}
.btn-primary {
  color: var(--white); background: var(--red);
  box-shadow: 0 8px 20px rgba(193,40,45,.45);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn-gold {
  color: var(--charcoal); background: var(--gold);
  box-shadow: 0 8px 20px rgba(230,182,95,.4);
}
.btn-gold:hover { background: #d4a843; transform: translateY(-2px); }
.btn-ghost-dark {
  color: var(--white); background: transparent;
  border: 1px solid rgba(250,250,248,.35);
}
.btn-ghost-dark:hover { background: rgba(250,250,248,.08); border-color: var(--gold); }

.phone-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-size: .82rem; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--white); text-decoration: none; padding: 15px 6px;
}
.phone-link svg { stroke: var(--gold); }

/* ------- Nav ------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 110px;
  background: rgba(42,42,42,0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: all .3s ease;
}
.site-nav.scrolled {
  height: 80px;
  background: rgba(42,42,42,0.92);
  border-bottom-color: rgba(230,182,95,.18);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 217px; height: 85px; object-fit: contain; object-position: left center; filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); transition: height .3s, width .3s; }
.site-nav.scrolled .nav-logo img { width: 153px; height: 60px; }

.nav-desktop {
  display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0;
}
.nav-desktop a {
  font-family: var(--font-heading); font-size: .8rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--white);
  text-decoration: none; padding: 8px 0; transition: color .2s;
}
.nav-desktop a:hover,
.nav-desktop a.active { color: var(--gold); }
.nav-desktop a.nav-cta {
  font-family: var(--font-heading); font-size: .78rem; font-weight: 600;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--white); background: var(--red); border: none;
  padding: 12px 22px; border-radius: 2px; cursor: pointer;
  box-shadow: 0 6px 20px rgba(193,40,45,.35); text-decoration: none;
  display: inline-block; transition: all .2s;
  white-space: nowrap;
}
.nav-desktop a.nav-cta:hover { background: var(--red-deep); transform: translateY(-1px); color: var(--white); }

/* Hidden on desktop so space-between puts the menu flush right —
   an empty third flex item was centering the menu instead */
.nav-mobile-actions { display: none; align-items: center; gap: 10px; }
.nav-mobile-btn {
  display: none; background: none; border: 1px solid rgba(250,250,248,.3);
  color: var(--white); padding: 8px 10px; border-radius: 2px; cursor: pointer;
}
.nav-phone-icon {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(230,182,95,.35);
  background: rgba(230,182,95,.08);
  color: var(--gold); text-decoration: none;
  transition: all .2s;
}
.nav-phone-icon:hover { background: rgba(230,182,95,.18); border-color: var(--gold); color: var(--gold); }
.nav-phone-text {
  font-family: var(--font-heading); font-size: .82rem; font-weight: 500;
  letter-spacing: 1.5px; color: rgba(250,250,248,.82);
  text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-phone-text:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav-mobile-drawer {
  display: none; background: rgba(42,42,42,0.98);
  border-top: 1px solid rgba(230,182,95,.18);
  padding: 20px 0 0;
}
.nav-mobile-drawer.open { display: block; }
.nav-mobile-drawer ul {
  list-style: none; padding: 0 32px; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.nav-mobile-drawer a {
  font-family: var(--font-heading); font-size: .95rem; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase; color: var(--white); text-decoration: none;
}
.nav-mobile-drawer li:last-child { margin-top: 8px; padding: 0; }
.nav-mobile-drawer a.nav-drawer-cta {
  display: block; width: 100%; text-align: center;
  background: var(--red); color: var(--white);
  font-family: var(--font-heading); font-size: .95rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
  padding: 18px 20px; border: none;
  box-shadow: 0 -2px 8px rgba(0,0,0,.15);
}
.nav-mobile-drawer a.nav-drawer-cta:hover { background: var(--red-deep); color: var(--white); }

/* ------- Eyebrows / section labels ------- */
.eyebrow-line {
  font-family: var(--font-heading); font-size: .72rem; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow-line.gold { color: var(--gold); }

/* ------- Footer ------- */
.site-footer {
  background: var(--charcoal); color: var(--white); position: relative;
}
.footer-service-band {
  background: linear-gradient(180deg, #1e1c1a 0%, #232020 100%);
  border-bottom: 1px solid rgba(230,182,95,.12);
  padding: 28px 0; position: relative; overflow: hidden;
}
.footer-service-band::before {
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 8% 50%, var(--red) 0, transparent 40%),
                    radial-gradient(circle at 95% 50%, var(--gold) 0, transparent 40%);
}
.footer-service-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer-service-label {
  display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; min-width: 340px;
}
.footer-service-label .line {
  display: flex; align-items: center; gap: 12px; white-space: nowrap;
}
.footer-service-label .line::before {
  content: ''; width: 22px; height: 1px; background: var(--gold); flex-shrink: 0;
}
.footer-service-label .eyebrow {
  font-family: var(--font-heading); font-size: .68rem; font-weight: 600;
  letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold);
}
.footer-service-label .sub {
  font-family: var(--font-body); font-size: .8rem;
  color: rgba(250,250,248,.55); line-height: 1.5; padding-left: 34px;
}
.footer-cities { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.footer-cities span {
  padding: 7px 14px; border-radius: 24px;
  border: 1px solid rgba(230,182,95,.3);
  background: rgba(250,250,248,.04);
  font-family: var(--font-heading); font-size: .7rem; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase; color: rgba(250,250,248,.85);
  display: inline-flex; align-items: center; gap: 7px;
}
.footer-cities span::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red);
}

.footer-main { max-width: 1280px; margin: 0 auto; padding: 90px 32px 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; margin-bottom: 64px;
}
.footer-brand img { height: 78px; width: auto; margin-bottom: 20px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.25)); }
.footer-brand p {
  color: rgba(250,250,248,.64); font-family: var(--font-body);
  font-size: .94rem; line-height: 1.7; margin: 0 0 18px; max-width: 340px;
}
.footer-motto {
  font-family: var(--font-accent); font-style: italic;
  color: var(--gold); font-size: .95rem; margin: 0;
}
.footer-col h4 {
  font-family: var(--font-heading); font-size: .78rem; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold);
  margin: 0 0 22px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: rgba(250,250,248,.7); font-family: var(--font-body);
  font-size: .94rem; text-decoration: none; transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-contact li {
  color: rgba(250,250,248,.7); font-family: var(--font-body); font-size: .94rem;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer-contact svg { stroke: var(--gold); flex-shrink: 0; }
.footer-contact a { color: inherit; text-decoration: none; white-space: nowrap; }

.footer-bottom {
  padding: 28px 0; border-top: 1px solid rgba(250,250,248,.08);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-bottom p { margin: 0; color: rgba(250,250,248,.48); font-size: .84rem; font-family: var(--font-body); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(250,250,248,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  transition: all .2s;
}
.footer-social a:hover { background: rgba(230,182,95,.12); border-color: var(--gold); }

/* ------- Shared CTA block ------- */
.cta-block {
  background: var(--red); padding: 90px 0; position: relative; overflow: hidden; color: var(--white);
}
.cta-block::before {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at 85% 50%, var(--gold) 0, transparent 40%);
}
.cta-block .container {
  position: relative; display: grid; grid-template-columns: 1.6fr auto; gap: 40px; align-items: center;
  max-width: 1100px;
}
.cta-block h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 0;
  color: var(--white); text-wrap: pretty;
}
.cta-block h2 em { font-style: italic; color: var(--gold); }
.cta-block .btn { white-space: nowrap; padding: 20px 32px; font-size: .9rem; letter-spacing: 2px; }

/* ------- Mobile sticky bar ------- */
.mobile-sticky-bar { display: none; }

/* ------- Responsive ------- */
@media (max-width: 900px) {
  .nav-desktop { display: none !important; }
  .nav-mobile-actions { display: flex !important; }
  .nav-mobile-btn { display: inline-flex !important; }
  .nav-phone-icon { display: inline-flex !important; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-block .container { grid-template-columns: 1fr; }
  /* Sticky bar covers the full range where the desktop nav CTA is hidden —
     601-900px previously had no visible estimate CTA at all */
  .mobile-sticky-bar {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
    background: var(--red);
    box-shadow: 0 -2px 8px rgba(0,0,0,.15);
  }
  .mobile-sticky-bar a {
    flex: 1; padding: 14px 12px;
    text-align: center; color: var(--white); text-decoration: none;
    font-family: var(--font-heading); font-size: .85rem; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .mobile-sticky-bar .mob-call {
    border-right: 1px solid rgba(255,255,255,.25);
  }
  body { padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .site-nav .nav-logo img,
  .site-nav.scrolled .nav-logo img {
    width: auto; max-width: 150px; height: auto;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-service-label { min-width: 0; width: 100%; }
}
