/* ══════════════════════════════════════════════════════════
   Price Rite Plumbing | style.css
   ══════════════════════════════════════════════════════════ */

/* ── Loader ─────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--dark); display: flex; align-items: center; justify-content: center; transition: opacity 0.8s var(--ease), visibility 0.8s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.loader-icon { width: clamp(64px, 12vw, 96px); height: auto; }
.loader-draw { stroke-dasharray: 200; stroke-dashoffset: 200; animation: drawPath 1.4s var(--ease) forwards; fill: none; }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
.loader-text { font-family: var(--font-heading); font-size: clamp(0.85rem, 2vw, 1rem); font-weight: 700; letter-spacing: 0.3em; color: var(--accent); opacity: 0; animation: fadeInText 0.6s ease 0.8s forwards; }
@keyframes fadeInText { to { opacity: 1; } }

/* ── Skip Nav ───────────────────────────────────────────── */
.skip-nav { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 10000; padding: 12px 24px; background: var(--accent); color: #FFFFFF; font-size: 14px; font-weight: 600; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.skip-nav:focus { position: fixed; top: 0; left: 16px; width: auto; height: auto; overflow: visible; }

/* ── Scroll Progress ────────────────────────────────────── */
.scroll-progress { position: fixed; top: 0; left: 0; width: 0; height: 3px; background: var(--accent); z-index: 9999; }

/* ── Emergency Bar ──────────────────────────────────────── */
.emergency-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--dark); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 24px; z-index: 900; transform: translateY(100%); transition: transform 0.4s var(--ease); }
.emergency-bar.visible { transform: translateY(0); }
.emergency-bar-link { color: #FFFFFF; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; padding: 8px 24px; background: var(--accent); border-radius: var(--radius-btn); transition: background 0.2s; }
.emergency-bar-link:hover { background: var(--accent-hover); color: #FFFFFF; }
.emergency-bar-close { color: rgba(255,255,255,0.5); font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; transition: color 0.2s; }
.emergency-bar-close:hover { color: #FFFFFF; }
@media (min-width: 769px) { .emergency-bar { display: none; } }

/* ── Animations ──────────────────────────────────────────── */
[data-animate] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.services-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.services-grid [data-animate]:nth-child(5) { transition-delay: 0.32s; }
.services-grid [data-animate]:nth-child(6) { transition-delay: 0.40s; }
.testimonials-grid [data-animate]:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid [data-animate]:nth-child(3) { transition-delay: 0.16s; }
.testimonials-grid [data-animate]:nth-child(4) { transition-delay: 0.24s; }
.why-points .why-point:nth-child(2) { transition-delay: 0.08s; }
.why-points .why-point:nth-child(3) { transition-delay: 0.16s; }
.why-points .why-point:nth-child(4) { transition-delay: 0.24s; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Container ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #D9DFE6; box-shadow: 0 1px 0 rgba(13, 29, 46, 0.1); transition: box-shadow 0.3s ease; }
.nav.scrolled { box-shadow: 0 2px 12px rgba(13, 29, 46, 0.1); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.logo-img { height: 78px; width: auto; display: block; }
.logo span { color: var(--accent); }
.nav-hamburger span { background: var(--text); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.btn-nav { display: inline-flex; align-items: center; padding: 10px 22px; font-size: 14px; font-weight: 600; background: var(--accent); color: #FFFFFF !important; border-radius: var(--radius-btn); transition: background 0.2s; }
.btn-nav:hover { background: var(--accent-hover); color: #FFFFFF !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; border-radius: var(--radius-btn); transition: background 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer; text-decoration: none; }
.btn-primary { padding: 14px 32px; font-size: 15px; background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(180,83,9,0.3); }
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn-ghost { padding: 14px 28px; font-size: 15px; background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-ghost:hover { background: var(--text); color: #FFFFFF; }
.btn-outline-white { padding: 14px 32px; font-size: 15px; background: transparent; color: #FFFFFF; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: #FFFFFF; }

/* ── Hero (full-bleed photo) ────────────────────────────── */
.hero { position: relative; width: 100%; height: 100vh; min-height: 600px; max-height: 900px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.5) 40%, rgba(10,22,40,0.3) 100%); }
.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; max-width: 700px; }
.hero-headline { font-family: var(--font-heading); font-size: clamp(36px,5vw,56px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; color: #FFFFFF; margin-bottom: 12px; }
.hero-sub { font-size: clamp(16px,2vw,20px); color: rgba(255,255,255,0.8); line-height: 1.5; margin-bottom: 36px; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Trust Bar ──────────────────────────────────────────── */
.trust-bar { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
.trust-bar-inner { max-width: var(--max-w); margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; }
.trust-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.trust-label { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); white-space: nowrap; }
.trust-label strong { font-weight: 700; color: #FFFFFF; }
.trust-divider { width: 1px; height: 24px; background: rgba(255,255,255,0.12); }

/* ── About Section ───────────────────────────────────────── */
.about-section { background: var(--bg-alt); padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-image { width: 100%; height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.about-label { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; letter-spacing: 0.02em; }
.about-text h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); margin-bottom: 20px; }
.about-text p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 16px; }
.about-text .btn { margin-top: 12px; }

/* ── Services Section ────────────────────────────────────── */
.services-section { background: var(--bg); padding: 100px 0; }
.services-header { margin-bottom: 56px; }
.services-header h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.service-card-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: var(--accent-light); border-radius: var(--radius-sm); flex-shrink: 0; }
.service-card-icon svg { width: 28px; height: 28px; color: var(--accent); }
.service-card-body { flex: 1; display: flex; flex-direction: column; }
.service-card-category { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 6px; }
.service-card-name { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.service-card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.service-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); transition: gap 0.2s; }
.service-card-link:hover { gap: 10px; }
.service-card-link svg { width: 14px; height: 14px; }

/* ── Pricing (Maintenance Plans) ─────────────────────────── */
.pricing-section { background: var(--bg-alt); padding: 100px 0; }
.pricing-section .services-header { text-align: center; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 48px auto 0; }
.price-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; text-align: center; position: relative; transition: box-shadow 0.3s ease, transform 0.3s ease; }
.price-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transform: translateY(-4px); }
.price-card--popular { border-color: var(--accent); box-shadow: 0 4px 24px rgba(180,83,9,0.12); }
.price-card__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: var(--radius-btn); text-transform: uppercase; letter-spacing: 0.05em; }
.price-card h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.price-card__amount { font-family: var(--font-heading); font-size: 48px; font-weight: 700; color: var(--text); }
.price-card__period { font-size: 16px; color: var(--text-muted); }
.price-card__features { text-align: left; margin: 28px 0; }
.price-card__features li { font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 10px; }
.price-card__features li.included::before { content: '\2713'; color: var(--trust-green); font-weight: 700; }
.price-card__features li.excluded { color: var(--text-faint); }
.price-card__features li.excluded::before { content: '\2013'; color: var(--text-faint); }
.price-card .btn { width: 100%; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials-section { background: var(--bg); padding: 100px 0; }
.testimonials-header { margin-bottom: 56px; }
.testimonials-header h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testimonial-card { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.testimonial-stars { color: #FBBF24; font-size: 18px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-card blockquote { font-size: 16px; color: var(--text); line-height: 1.65; font-style: normal; margin-bottom: 20px; }
.testimonial-author { font-size: 15px; font-weight: 700; color: var(--text); }
.testimonial-location { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Why Section ─────────────────────────────────────────── */
.why-section { background: var(--bg-alt); padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.why-photo img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }
.why-content h2 { font-family: var(--font-heading); font-size: 36px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); margin-bottom: 32px; }
.why-points { display: flex; flex-direction: column; gap: 28px; }
.why-point { display: flex; gap: 16px; align-items: flex-start; }
.why-point-icon { width: 44px; height: 44px; min-width: 44px; display: flex; align-items: center; justify-content: center; background: var(--accent-light); border-radius: var(--radius-sm); }
.why-point-icon svg { width: 22px; height: 22px; color: var(--accent); }
.why-point strong { display: block; font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.why-point p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Service Area ────────────────────────────────────────── */
.area-section { background: var(--bg); padding: 100px 0; }
.area-section .services-header { text-align: center; }
.area-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.area-col h4 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.area-col li { font-size: 15px; color: var(--text-muted); padding: 4px 0; }
.area-cta { text-align: center; margin-top: 32px; font-size: 16px; color: var(--text-muted); }
.area-cta a { color: var(--accent); font-weight: 600; }

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.8) 100%); }
.cta-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.cta-section h2 { font-family: var(--font-heading); font-size: 40px; font-weight: 700; color: #FFFFFF; margin-bottom: 12px; line-height: 1.15; letter-spacing: -0.02em; }
.cta-section .cta-desc { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 24px; line-height: 1.7; }
.cta-phone { margin-bottom: 32px; }
.cta-phone a { font-family: var(--font-heading); font-size: clamp(36px,5vw,52px); font-weight: 700; color: #FFFFFF; letter-spacing: -0.02em; transition: color 0.2s; }
.cta-phone a:hover { color: var(--accent); }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── License Badge ──────────────────────────────────────── */
.license-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--trust-green-light); padding: 8px 16px; border-radius: var(--radius-sm); margin-top: 16px; }
.license-badge svg { width: 18px; height: 18px; color: var(--trust-green); }
.license-badge span { font-size: 13px; font-weight: 600; color: var(--trust-green); }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--dark); padding: 72px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--dark-border); }
.footer-brand .logo { font-size: 22px; color: #FFFFFF; margin-bottom: 12px; display: inline-flex; }
.footer-brand .logo-img { height: 56px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; color: var(--dark-text-muted); line-height: 1.6; max-width: 280px; margin-top: 16px; }
.footer-brand .footer-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 20px; font-weight: 700; color: #FFFFFF; font-family: var(--font-heading); }
.footer-brand .footer-phone svg { width: 18px; height: 18px; color: var(--accent); }
.footer-col h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; color: var(--dark-text-muted); margin-bottom: 10px; transition: color 0.2s; line-height: 1.5; }
.footer-col a:hover { color: #FFFFFF; }
.footer-licenses { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dark-border); }
.footer-licenses p { font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 4px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.25); }
.footer-copy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.footer-copy a:hover { color: #FFFFFF; }

/* ── Hamburger ───────────────────────────────────────────── */
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; z-index: 101; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Lead Form ──────────────────────────────────────────── */
.lead-form { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 32px; max-width: 480px; }
.lead-form h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lead-form p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.lead-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: 12px 14px; font-size: 15px; font-family: var(--font-body); border: 1px solid var(--border); border-radius: var(--radius-sm); background: #FFFFFF; color: var(--text); margin-bottom: 16px; transition: border-color 0.2s; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(180,83,9,0.1); }
.lead-form textarea { resize: vertical; min-height: 80px; }
.lead-form .btn { width: 100%; }
.lead-form-success { display: none; text-align: center; padding: 24px 0; }
.lead-form-success h4 { font-family: var(--font-heading); font-size: 20px; color: var(--trust-green); margin-bottom: 8px; }
.lead-form-success p { font-size: 15px; color: var(--text-muted); }

/* ── BBB Badge ──────────────────────────────────────────── */
.bbb-badge { display: inline-flex; align-items: center; gap: 8px; background: #005A8C; padding: 6px 12px; border-radius: var(--radius-sm); color: #FFFFFF; font-size: 12px; font-weight: 700; margin-top: 12px; }
.bbb-badge svg { width: 16px; height: 16px; }

/* ── Responsive: 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { max-height: 800px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .about-grid { gap: 40px; }
  .why-grid { gap: 40px; }
  .why-photo img { height: 440px; }
}

/* ── Responsive: 768px ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #FFFFFF; flex-direction: column; padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
  .nav-links.mobile-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--text) !important; }
  .nav.mobile-menu-open { background: #FFFFFF; }
  .nav.mobile-menu-open .logo { color: var(--text) !important; }
  .nav.mobile-menu-open .nav-hamburger span { background: var(--text) !important; }

  .hero { min-height: 500px; max-height: 700px; }
  .hero-headline { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: center; width: 100%; }
  .hero-actions .btn { width: 100%; max-width: 300px; justify-content: center; }

  .trust-bar-inner { flex-direction: column; gap: 16px; text-align: center; }
  .trust-divider { width: 40px; height: 1px; }

  .about-section, .services-section, .why-section, .testimonials-section, .pricing-section, .area-section, .cta-section { padding: 72px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-image { height: 300px; }
  .about-text h2, .services-header h2, .testimonials-header h2, .why-content h2, .cta-section h2 { font-size: 32px; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-photo img { height: 280px; }
  .area-grid { grid-template-columns: 1fr; gap: 24px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .lead-form { padding: 28px 20px; }
}
