/*=============================================
   TEXAS QUALITY PLUMBING – PREMIUM DESIGN
   STYLE.CSS – Navy, White, Ocean Blue
===============================================*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  
  --bg-primary: #ffffff;
  --bg-light: #f4f8fc;
  --bg-dark: #0a1627;
  --text-dark: #0a1627;
  --text-secondary: #2d3a4a;
  --text-light: #ffffff;
  --accent: #0077be;
  --accent-hover: #005f9b;
  --accent-light: #e6f2fa;
  --border: #d2dfe9;
  --shadow: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-hover: 0 20px 50px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
  --max-width: 1200px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:100%; }
body { font-family:var(--font-body); background:var(--bg-primary); color:var(--text-dark); line-height:1.6; overflow-x:hidden; -webkit-font-smoothing:antialiased; }
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition:color var(--transition); }
ul { list-style:none; }

h1, h2, h3, h4 { font-family:var(--font-heading); line-height:1.2; font-weight:700; color:var(--bg-dark); }
h1 { font-size:clamp(2.8rem, 7vw, 5rem); }
h2 { font-size:clamp(2rem, 4.5vw, 3.2rem); margin-bottom:1.5rem; }
h3 { font-size:clamp(1.3rem, 2.5vw, 1.8rem); }

.section-label { text-transform:uppercase; letter-spacing:0.15em; font-size:0.85rem; color:var(--accent); font-weight:700; margin-bottom:0.8rem; display:inline-block; }

/* ---------- BUTTONS ---------- */
.btn {
  display:inline-block; padding:0.95rem 2.2rem; font-family:var(--font-heading); font-size:0.9rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em;
  border-radius:8px; transition:all var(--transition); cursor:pointer; border:2px solid transparent; text-align:center;
}
.btn-primary { background:var(--accent); color:#fff; border-color:var(--accent); }
.btn-primary:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.btn-outline { background:transparent; border-color:var(--accent); color:var(--accent); }
.btn-outline:hover { background:var(--accent); color:#fff; }
.btn-white { background:#fff; color:var(--bg-dark); border-color:#fff; }
.btn-white:hover { background:#f0f0f0; }
.btn-lg { padding:1.1rem 2.8rem; font-size:1rem; }

/* ---------- NAVIGATION ---------- */
.navbar {
  position:fixed; top:0; left:0; width:100%; z-index:1000; padding:1rem 2rem;
  display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,0.96);
  backdrop-filter:blur(10px); box-shadow:0 1px 10px rgba(0,0,0,0.02); transition:all var(--transition);
}
.navbar.scrolled { padding:0.6rem 2rem; box-shadow:0 4px 20px rgba(0,0,0,0.06); }
.logo { font-family:var(--font-heading); font-size:1.7rem; font-weight:800; color:var(--bg-dark); }
.logo span { color:var(--accent); }
.nav-links { display:flex; gap:1.8rem; align-items:center; }
.nav-links a { font-size:0.9rem; font-weight:600; color:var(--text-secondary); position:relative; padding:0.2rem 0; }
.nav-links a::after { content:''; position:absolute; bottom:0; left:0; width:0; height:2px; background:var(--accent); transition:width var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width:100%; }
.nav-cta { background:var(--accent); color:#fff !important; padding:0.6rem 1.6rem !important; border-radius:8px; font-weight:700; }
.nav-cta:hover { background:var(--accent-hover); }

.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; }
.hamburger span { width:28px; height:3px; background:var(--bg-dark); border-radius:3px; transition:all var(--transition); }

/* ---------- HERO ---------- */
.hero {
  height:100vh; min-height:650px;
  background: linear-gradient(rgba(10,22,39,0.6), rgba(10,22,39,0.75)), 
              url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?w=1600&q=80') center/cover no-repeat;
  display:flex; align-items:center; justify-content:center; text-align:center; color:#fff; position:relative;
}
.hero-content { max-width:900px; padding:0 2rem; }
.hero-label { text-transform:uppercase; letter-spacing:0.2em; font-size:0.9rem; color:var(--accent); margin-bottom:1rem; }
.hero-title { color:#fff; text-shadow:0 4px 20px rgba(0,0,0,0.4); margin-bottom:1.5rem; }
.hero-subtitle { font-size:1.3rem; max-width:650px; margin:0 auto 2.5rem; color:rgba(255,255,255,0.92); }
.hero-buttons { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ---------- STATS BANNER ---------- */
.stats-banner {
  background:var(--bg-dark); color:#fff; padding:2.5rem 2rem; display:flex; justify-content:space-around; flex-wrap:wrap; text-align:center; gap:2rem;
}
.stat-item h3 { color:var(--accent); font-size:2.5rem; }
.stat-item p { font-size:0.9rem; text-transform:uppercase; letter-spacing:0.05em; color:rgba(255,255,255,0.8); }

/* ---------- SECTIONS ---------- */
.section { padding:6rem 2rem; }
.section-dark { background:var(--bg-dark); color:#fff; }
.section-dark h2, .section-dark h3 { color:#fff; }
.section-light { background:var(--bg-light); }
.container { max-width:var(--max-width); margin:0 auto; }
.section-header { text-align:center; margin-bottom:4rem; }
.section-header p { max-width:650px; margin:0 auto; color:var(--text-secondary); }

/* Services cards */
.services-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:2rem; }
.service-card { background:#fff; padding:2.5rem 1.8rem; border-radius:12px; box-shadow:var(--shadow); text-align:center; transition:all var(--transition); }
.service-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-hover); }
.service-icon { font-size:3rem; margin-bottom:1.2rem; color:var(--accent); }
.service-card h4 { margin-bottom:0.8rem; }

/* Before/After gallery */
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:1.5rem; }
.before-after { position:relative; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); transition:transform var(--transition); }
.before-after:hover { transform:scale(1.02); }
.before-after img { width:100%; height:300px; object-fit:cover; }
.before-after .label { position:absolute; bottom:1rem; left:1rem; background:var(--accent); color:#fff; padding:0.3rem 1.2rem; border-radius:20px; font-weight:700; font-size:0.8rem; }

/* Testimonials */
.testimonial-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:2rem; }
.testimonial-card { background:#fff; padding:2.5rem; border-radius:12px; box-shadow:var(--shadow); border-left:4px solid var(--accent); }
.testimonial-card .quote { font-style:italic; color:var(--text-secondary); margin-bottom:1.5rem; font-size:1.05rem; }
.testimonial-card .author { font-weight:700; color:var(--bg-dark); }

/* Emergency banner */
.emergency-banner { background:linear-gradient(135deg, var(--accent), #005f9b); color:#fff; text-align:center; padding:3rem 2rem; border-radius:12px; margin-top:3rem; }
.emergency-banner h3 { color:#fff; font-size:2rem; margin-bottom:0.8rem; }

/* Request form */
.request-form { max-width:700px; margin:0 auto; }
.form-group { margin-bottom:1.5rem; }
.form-group label { display:block; font-weight:600; margin-bottom:0.4rem; color:var(--text-dark); }
.request-form input, .request-form select, .request-form textarea { width:100%; padding:1rem; border:1px solid var(--border); border-radius:8px; font-family:var(--font-body); font-size:1rem; transition:border var(--transition); background:#fff; }
.request-form input:focus, .request-form textarea:focus, .request-form select:focus { border-color:var(--accent); outline:none; }
.request-form textarea { min-height:140px; resize:vertical; }
.file-label { background:var(--bg-light); padding:1rem; border-radius:8px; display:block; text-align:center; cursor:pointer; border:2px dashed var(--border); transition:border var(--transition); }
.file-label:hover { border-color:var(--accent); }
input[type="file"] { display:none; }

/* Footer */
.footer { background:var(--bg-dark); color:#fff; padding:4rem 2rem 2rem; }
.footer-grid { display:flex; justify-content:space-between; flex-wrap:wrap; gap:2rem; max-width:var(--max-width); margin:0 auto 2rem; }
.footer-col h4 { color:#fff; margin-bottom:1rem; }
.footer-col p, .footer-col a { color:rgba(255,255,255,0.75); font-size:0.9rem; margin-bottom:0.5rem; display:block; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { text-align:center; color:rgba(255,255,255,0.45); font-size:0.85rem; border-top:1px solid rgba(255,255,255,0.1); padding-top:2rem; margin-top:2rem; }

/* Reveal animation */
.reveal { opacity:0; transform:translateY(30px); transition:opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display:flex; z-index:1001; }
  .nav-links { position:fixed; top:0; right:-100%; width:80%; height:100vh; background:#fff; flex-direction:column; justify-content:center; padding:2rem; transition:right 0.4s ease; box-shadow:-5px 0 30px rgba(0,0,0,0.1); }
  .nav-links.active { right:0; }
  .hero-buttons { flex-direction:column; align-items:center; }
  .section { padding:4rem 1.5rem; }
  .section-header { margin-bottom:2.5rem; }
             }
