/* M&J Plumbing Services - Industrial Copper Theme */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=Source+Sans+3:wght@300;400;600;700&display=swap');

:root {
  --copper: #c47a2b;
  --copper-light: #e8a44a;
  --copper-dark: #9a5e1a;
  --charcoal: #1c2230;
  --charcoal-mid: #28334a;
  --charcoal-light: #364254;
  --slate: #8090a8;
  --off-white: #f2efe8;
  --white: #ffffff;
  --text-dark: #1a1f2e;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 1rem;
}

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--copper); color: white;
  padding: .5rem 1rem; border-radius: 0 0 6px 6px;
  font-weight: 600; z-index: 9999; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ===== NAV ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--charcoal);
  border-bottom: 3px solid var(--copper);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo-icon {
  width: 40px; height: 40px; background: var(--copper);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 1.25rem;
  color: white; letter-spacing: -1px;
}
.nav-logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--white); line-height: 1.1; }
.nav-logo-text span { display: block; font-size: .7rem; font-weight: 400; color: var(--copper-light); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--slate); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: color .2s; padding: .25rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active {
  color: var(--copper-light); border-bottom-color: var(--copper-light); outline: none;
}
.nav-cta {
  background: var(--copper); color: white !important;
  padding: .5rem 1.25rem !important; border-radius: 4px; border-bottom: none !important;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--copper-light) !important; color: white !important; }
.hamburger { display: none; background: none; border: none; color: var(--white); cursor: pointer; padding: .5rem; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--charcoal-mid); border-bottom: 2px solid var(--copper);
  z-index: 99; padding: 1rem 2rem; flex-direction: column; gap: .5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--slate); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  letter-spacing: 1px; text-transform: uppercase;
  padding: .625rem 0; border-bottom: 1px solid rgba(255,255,255,.05); transition: color .2s;
}
.mobile-menu a:hover { color: var(--copper-light); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--charcoal); padding-top: 64px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1538474705339-e87de81450e8?w=1200&h=700&fit=crop&auto=format');
  background-size: cover; background-position: center;
  opacity: .18; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--charcoal) 40%, rgba(28,34,48,.7) 100%);
  z-index: 1;
}
.hero-deco { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hero-deco::before {
  content: ''; position: absolute; top: 20%; right: 10%;
  width: 300px; height: 300px; border: 2px solid var(--copper); opacity: .08; border-radius: 50%;
}
.hero-deco::after {
  content: ''; position: absolute; bottom: 10%; left: 5%;
  width: 180px; height: 180px; border: 2px solid var(--copper-light); opacity: .06; border-radius: 50%;
}
.hero-content {
  position: relative; z-index: 3; max-width: 900px;
  padding: 3rem 2rem; text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(196,122,43,.15); border: 1px solid var(--copper);
  color: var(--copper-light); font-family: var(--font-display);
  font-size: .85rem; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 2px; margin-bottom: 1.5rem;
  animation: fadeDown .8s ease both;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900; line-height: .95; color: var(--white);
  letter-spacing: -2px; margin-bottom: 1.25rem; animation: fadeUp .8s .2s ease both;
}
.hero-title .highlight { color: var(--copper); display: block; }
.hero-sub {
  font-size: 1.2rem; color: var(--slate); max-width: 600px;
  margin: 0 auto 2.5rem; line-height: 1.7; animation: fadeUp .8s .4s ease both;
}
.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .8s .6s ease both;
}
.btn-primary {
  background: var(--copper); color: white; padding: .9rem 2.25rem;
  border-radius: 4px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background .2s, transform .2s, box-shadow .2s;
  border: 2px solid var(--copper); display: inline-block;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--copper-light); border-color: var(--copper-light);
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,122,43,.4); outline: none;
}
.btn-outline {
  background: transparent; color: var(--white); padding: .9rem 2.25rem;
  border-radius: 4px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 1px; text-transform: uppercase;
  transition: background .2s, transform .2s; border: 2px solid rgba(255,255,255,.35); display: inline-block;
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: rgba(255,255,255,.08); border-color: var(--white); transform: translateY(-2px); outline: none;
}
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; color: var(--copper); animation: bounce 2s infinite;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--charcoal-mid);
  border-top: 3px solid var(--copper);
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 1rem 2rem;
}
.trust-inner {
  max-width: 1000px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  color: var(--off-white); font-family: var(--font-display);
  font-weight: 600; font-size: .95rem; letter-spacing: 1px; text-transform: uppercase;
}
.trust-item svg { color: var(--copper); flex-shrink: 0; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 2rem; }
.section-dark { background: var(--charcoal); color: var(--off-white); }
.section-mid { background: var(--charcoal-mid); color: var(--off-white); }
.section-light { background: var(--off-white); color: var(--text-dark); }
.section-white { background: var(--white); color: var(--text-dark); }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--copper);
  margin-bottom: .75rem; display: block;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -1px; margin-bottom: 1rem;
}
.section-dark .section-title, .section-mid .section-title { color: var(--white); }
.section-light .section-title, .section-white .section-title { color: var(--charcoal); }
.section-line { width: 60px; height: 4px; background: var(--copper); margin-bottom: 1.5rem; border-radius: 2px; }
.section-intro { max-width: 620px; line-height: 1.75; margin-bottom: 3rem; }
.section-dark .section-intro, .section-mid .section-intro { color: var(--slate); }
.section-light .section-intro, .section-white .section-intro { color: #555; }

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}
.service-card {
  background: var(--charcoal-light); border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s; position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.4); border-color: var(--copper); }
.service-card img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .4s; }
.service-card:hover img { transform: scale(1.04); }
.service-card-body { padding: 1.5rem; }
.service-icon {
  width: 48px; height: 48px; background: rgba(196,122,43,.15);
  border: 2px solid var(--copper); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--copper-light);
}
.service-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: var(--white); margin-bottom: .5rem; line-height: 1.2;
}
.service-card p { color: var(--slate); font-size: .95rem; line-height: 1.65; }

/* Light bg service card variant */
.service-card-light {
  background: var(--white); border: 1px solid #e8e4dc;
}
.service-card-light h3 { color: var(--charcoal); }
.service-card-light p { color: #666; }
.service-card-light:hover { border-color: var(--copper); box-shadow: 0 16px 40px rgba(0,0,0,.12); }

/* ===== STATS BAND ===== */
.stats-band { background: var(--copper); padding: 3.5rem 2rem; position: relative; overflow: hidden; }
.stats-band::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px; background: rgba(255,255,255,.06); border-radius: 50%;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem;
  position: relative; z-index: 1;
}
.stat-item { text-align: center; color: white; }
.stat-number {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 900;
  line-height: 1; color: white; display: block;
}
.stat-label {
  font-family: var(--font-display); font-size: .8rem;
  letter-spacing: 3px; text-transform: uppercase; opacity: .8; margin-top: .25rem; display: block;
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img { position: relative; }
.about-img img { width: 100%; border-radius: 8px; display: block; filter: brightness(.85) contrast(1.05); }
.about-img-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--copper); color: white;
  padding: 1.25rem 1.5rem; border-radius: 8px;
  text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.about-img-badge strong {
  display: block; font-family: var(--font-display);
  font-size: 2rem; font-weight: 900; line-height: 1;
}
.about-img-badge span { font-size: .75rem; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.credential-list { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; }
.credential-list li { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.credential-list li::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--copper); border-radius: 50%; flex-shrink: 0;
}
.section-dark .credential-list li { color: var(--slate); }
.section-light .credential-list li { color: #555; }

/* ===== BEFORE/AFTER ===== */
.ba-section { max-width: 750px; margin: 0 auto; }

/* ===== SERVICE AREA MAP ===== */
#service-area-map {
  height: 380px; border-radius: 8px;
  border: 2px solid rgba(255,255,255,.08); overflow: hidden;
}

/* ===== FAQ ===== */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  background: var(--charcoal-light); border: 1px solid rgba(255,255,255,.06);
  border-radius: 6px; overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--copper); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem;
  font-family: var(--font-display); letter-spacing: .5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; color: var(--off-white); transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }
.faq-item[open] summary { color: var(--copper-light); }
.faq-item summary:focus-visible { outline: 2px solid var(--copper); outline-offset: -2px; }
.faq-chevron { transition: transform .3s; flex-shrink: 0; margin-left: 1rem; color: var(--copper); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.5rem 1.25rem; line-height: 1.75; color: var(--slate); font-size: .95rem; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info-card {
  background: var(--charcoal-mid); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 2rem;
}
.contact-info-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--white); margin-bottom: 1.25rem;
}
.contact-detail {
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.05);
}
.contact-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-detail-icon {
  width: 42px; height: 42px; background: rgba(196,122,43,.15);
  border: 1px solid var(--copper); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--copper-light); flex-shrink: 0;
}
.contact-detail-text strong {
  display: block; color: var(--off-white); font-size: .8rem;
  font-family: var(--font-display); letter-spacing: 2px; text-transform: uppercase; margin-bottom: .25rem;
}
.contact-detail-text a {
  color: var(--copper-light); text-decoration: none; font-size: 1rem; transition: color .2s; display: block;
}
.contact-detail-text a:hover { color: var(--white); }
.contact-detail-text span { color: var(--slate); font-size: .9rem; }

/* ===== FORM ===== */
.contact-form {
  background: var(--charcoal-light); border: 1px solid rgba(255,255,255,.06); border-radius: 8px; padding: 2rem;
}
.contact-form h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .85rem; font-family: var(--font-display);
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: var(--off-white); margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: var(--charcoal); border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px; color: var(--off-white); font-family: var(--font-body);
  font-size: .95rem; padding: .75rem 1rem;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.form-group select option { background: var(--charcoal); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--copper); box-shadow: 0 0 0 3px rgba(196,122,43,.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--slate); }
.form-success {
  display: none; background: rgba(196,122,43,.15); border: 1px solid var(--copper);
  border-radius: 6px; padding: 1.5rem; text-align: center;
  color: var(--copper-light); font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
}

/* ===== GALLERY ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .75rem; }
.gallery-img {
  width: 100%; height: 220px; object-fit: cover; border-radius: 6px;
  cursor: pointer; transition: transform .3s; display: block;
}
.gallery-img:hover { transform: scale(1.03); }
.gallery-img:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; }
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center; cursor: zoom-out;
}
#lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; }
#lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  background: none; border: none; color: white;
  font-size: 2.5rem; cursor: pointer; line-height: 1; transition: color .2s;
}
#lightbox-close:hover { color: var(--copper-light); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--charcoal); border-top: 3px solid var(--copper);
  padding: 3rem 2rem 1.5rem; color: var(--slate);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem;
}
.footer-brand-text { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: .25rem; }
.footer-tagline { font-size: .85rem; color: var(--copper-light); letter-spacing: 1px; margin-bottom: 1rem; }
.footer-desc { font-size: .9rem; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--white); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { color: var(--slate); text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--copper-light); }
.footer-col p { font-size: .9rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem; font-size: .8rem;
  max-width: 1100px; margin: 0 auto;
}
.footer-yelp-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--copper-light); text-decoration: none; font-size: .85rem; transition: color .2s;
}
.footer-yelp-link:hover { color: var(--white); }

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  background: var(--copper); color: white;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(196,122,43,.5);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
}
.floating-cta:hover, .floating-cta:focus-visible {
  transform: scale(1.1); box-shadow: 0 6px 24px rgba(196,122,43,.65); outline: none;
}
@media (min-width: 768px) { .floating-cta { bottom: 2rem; right: 2rem; width: 64px; height: 64px; } }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .1s; }
.reveal:nth-child(3) { transition-delay: .2s; }
.reveal:nth-child(4) { transition-delay: .3s; }
.reveal:nth-child(5) { transition-delay: .4s; }
.reveal:nth-child(6) { transition-delay: .5s; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: var(--charcoal); padding: 6rem 2rem 3rem; position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--copper);
}
.page-header h1 {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; color: var(--white); line-height: 1; letter-spacing: -1px;
}
.page-header p { color: var(--slate); font-size: 1.05rem; margin-top: .75rem; max-width: 520px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-badge { right: 0; bottom: -10px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stats-inner { gap: 2rem; }
  .trust-inner { gap: 1.5rem; }
}
@media (max-width: 480px) {
  .section { padding: 3.5rem 1.25rem; }
  .hero-content { padding: 2rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
