/* ─── QUEEN CITY PLUMBING — SHARED STYLES ─── */

:root {
  --orange:       #E8510A;
  --orange-dark:  #C94208;
  --orange-glow:  #FF6B2B;
  --navy:         #1A2A6C;
  --navy-deep:    #0F1A45;
  --navy-mid:     #223080;
  --white:        #FFFFFF;
  --off-white:    #F7F4F0;
  --text:         #1C2030;
  --gray:         #6B7280;
  --gray-lt:      #E8E8EC;
  --border:       #D0D0DA;

  --display: 'Barlow Condensed', sans-serif;
  --body:    'Inter', sans-serif;
  --max: 1120px;
}

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

/* ─── EMERGENCY BANNER ─── */
.emergency-bar { background: var(--orange); color: var(--white); text-align: center; padding: 10px 24px; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.emergency-bar a { color: var(--white); text-decoration: underline; }

/* ─── NAV ─── */
nav { background: var(--navy-deep); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge { width: 66px; height: 66px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.logo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-logo-text { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.05; color: var(--white); white-space: nowrap; }
.nav-logo-text span { color: var(--orange-glow); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--orange) !important; color: var(--white) !important; padding: 10px 22px !important; border-radius: 3px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--orange-dark) !important; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { display: block; }

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--orange); }
.trust-inner { max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--white); padding: 6px 20px; border-right: 1px solid rgba(255,255,255,0.25); }
.trust-item:last-child { border-right: none; }

/* ─── PAGE HERO ─── */
.page-hero { background: var(--navy-deep); padding: 64px 24px 56px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.page-hero::after { content: ''; position: absolute; bottom: 0; right: 0; width: 45%; height: 100%; background: linear-gradient(135deg, transparent 30%, rgba(232,81,10,0.1) 100%); pointer-events: none; }
.page-hero-inner { max-width: var(--max); margin: 0 auto; position: relative; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,0.4); text-decoration: none; }
.breadcrumb a:hover { color: rgba(255,255,255,0.7); }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(36px, 5.5vw, 62px); line-height: 1.05; color: var(--white); margin-bottom: 16px; max-width: 700px; }
.page-hero h1 em { color: var(--orange-glow); font-style: normal; }
.page-hero-sub { font-size: 17px; color: rgba(255,255,255,0.6); max-width: 560px; margin-bottom: 32px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── BUTTONS ─── */
.btn-orange { background: var(--orange); color: var(--white); padding: 14px 26px; font-weight: 700; font-size: 15px; border-radius: 3px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s; }
.btn-orange:hover { background: var(--orange-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.2); color: var(--white); padding: 14px 26px; font-weight: 600; font-size: 15px; border-radius: 3px; text-decoration: none; display: inline-block; transition: border-color 0.15s; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); }
.btn-white { background: var(--white); color: var(--orange); padding: 13px 24px; font-weight: 700; font-size: 15px; border-radius: 3px; text-decoration: none; display: inline-block; }
.btn-white:hover { background: var(--off-white); }
.btn-dark { background: var(--navy-deep); color: var(--white); padding: 13px 28px; font-weight: 700; font-size: 15px; border-radius: 3px; text-decoration: none; display: inline-block; }
.btn-dark:hover { background: var(--navy); }

/* ─── SECTIONS ─── */
section { padding: 72px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.eyebrow::before { content: ''; display: block; width: 32px; height: 3px; background: var(--orange); border-radius: 2px; }
.eyebrow span { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; color: var(--navy-deep); margin-bottom: 12px; }
h3 { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--navy-deep); margin-bottom: 8px; }
p { color: var(--gray); line-height: 1.75; }

/* ─── SERVICE CARDS ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 40px; }
.service-card { border: 1.5px solid var(--gray-lt); border-radius: 4px; padding: 28px 24px; transition: border-color 0.15s, box-shadow 0.15s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--orange); transform: scaleY(0); transform-origin: bottom; transition: transform 0.2s; }
.service-card:hover { border-color: var(--orange); box-shadow: 0 4px 20px rgba(232,81,10,0.1); }
.service-card:hover::before { transform: scaleY(1); }
.service-icon { width: 46px; height: 46px; background: var(--navy-deep); border-radius: 3px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.service-icon svg { color: var(--orange); }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14px; }
.service-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--orange); font-size: 13px; font-weight: 600; text-decoration: none; }

/* ─── FEATURE BLOCKS ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; margin-top: 40px; }
.feature-block { display: flex; flex-direction: column; gap: 10px; }
.feature-header { display: flex; align-items: center; gap: 12px; }
.feature-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.feature-block h3 { font-size: 17px; margin-bottom: 0; }
.feature-block p { font-size: 14px; line-height: 1.7; }
.cares-letter { color: var(--orange-glow); }

/* ─── DARK SECTION ─── */
.section-dark { background: var(--navy-deep); }
.section-dark h2 { color: var(--white); }
.section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.5); }
.section-dark .eyebrow::before { background: var(--orange); }
.section-dark .feature-dot { background: var(--orange); }

/* ─── CITY TAGS ─── */
.city-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.city-tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 20px; }

/* ─── CTA BAND ─── */
.cta-band { background: var(--orange); padding: 64px 24px; }
.cta-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 17px; }
.cta-right { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cta-number { font-family: var(--display); font-weight: 800; font-size: 38px; color: var(--white); text-decoration: none; display: block; line-height: 1; }

/* ─── FAQ ─── */
.faq-list { max-width: 720px; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--white); }
.faq-q svg { flex-shrink: 0; transition: transform 0.2s; color: var(--orange); }
.faq-q.open svg { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 20px; }
.faq-a p { font-size: 15px; }
.faq-a.open { display: block; }

/* ─── FOOTER ─── */
footer { background: var(--navy-deep); border-top: 3px solid var(--orange); padding: 56px 24px 32px; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo-badge { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.footer-logo-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-logo-text { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--white); margin-bottom: 6px; }
.footer-logo-text span { color: var(--orange-glow); }
.footer-logo-full { height: 228px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.3); margin-bottom: 14px; text-transform: uppercase; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.4); max-width: 280px; }
.footer-col h4 { font-family: var(--display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange-glow); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: rgba(255,255,255,0.75); }
.footer-service-group { margin-bottom: 18px; }
.footer-service-group:last-child { margin-bottom: 0; }
.footer-group-label { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.02em; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.footer-group-link { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-group-link:hover { color: rgba(255,255,255,0.9); }
.footer-service-group ul { margin-left: 2px; }
.footer-service-group li { margin-bottom: 6px; }
.footer-hours { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,0.4); margin-top: 20px; }
.footer-hours .emerg { color: var(--orange-glow); }
.footer-address { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.4); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.3); }
.license-info { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); padding: 6px 14px; border-radius: 2px; font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.social-link { color: rgba(255,255,255,0.4); transition: color 0.15s; display: flex; align-items: center; }
.social-link:hover { color: var(--orange-glow); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-right { align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust-item { border-right: none; padding: 4px 12px; }
}
@media (max-width: 1150px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 20px rgba(0,0,0,0.3);
    padding: 8px 24px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-cta { display: block; text-align: center; margin-top: 10px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  section { padding: 56px 24px; }
}

/* ─── CONTACT FORM ─── */
.contact-form { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-deep); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 3px; font-family: var(--body); font-size: 15px; color: var(--text); background: var(--white); transition: border-color 0.15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { background: var(--orange); color: var(--white); padding: 14px 32px; font-weight: 700; font-size: 15px; border: none; border-radius: 3px; cursor: pointer; transition: background 0.15s; font-family: var(--body); }
.form-submit:hover { background: var(--orange-dark); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-message { display: none; padding: 24px; border-radius: 4px; font-size: 15px; line-height: 1.6; color: var(--navy-deep); max-width: 640px; }
.form-message a { color: var(--orange-dark); font-weight: 600; }
.form-success { background: rgba(232,81,10,0.08); border: 1.5px solid var(--orange); }
.form-error { background: rgba(200,48,48,0.06); border: 1.5px solid #C83030; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
