/* ==========================================================================
   Rob Mc Plumbing & Heating — stylesheet
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-light: #123a63;
  --orange: #f7941d;
  --orange-dark: #d9530f;
  --blue: #29abe2;
  --blue-dark: #0f5fa8;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;
  --text-dark: #16202b;
  --text-muted: #5b6b7a;
  --bg-light: #f6f8fa;
  --white: #ffffff;
  --border: #e4e9ee;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.18);
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--orange), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(217, 83, 15, 0.3);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(217, 83, 15, 0.4); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: #eef3f8; }

.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #cfe0f0;
  font-size: 0.85rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-contact a { color: #cfe0f0; transition: color 0.2s; }
.topbar-contact a:hover { color: var(--orange); }
.topbar-item i { margin-right: 6px; color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--orange-dark);
}

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--orange-dark); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(247, 148, 29, 0.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(41, 171, 226, 0.14), transparent 45%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}
.eyebrow i { color: var(--blue); }

.hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-trust li { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--whatsapp); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-flame-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, var(--navy), var(--navy-light));
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  padding: 40px;
}
.hero-logo-big { width: 78%; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }

.floating-badge {
  position: absolute;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: floatY 4s ease-in-out infinite;
}
.floating-badge i { color: var(--orange); }
.badge-1 { top: 10%; left: -6%; }
.badge-2 { bottom: 8%; right: -4%; animation-delay: 1.5s; }
.badge-2 i { color: var(--blue); }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */
.stats {
  background: var(--navy);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  background: linear-gradient(90deg, var(--orange), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: 0.85rem; color: #b9c9d8; font-weight: 500; }

/* ---------- Section head ---------- */
.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-tag {
  display: inline-block;
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); }

/* ---------- Services ---------- */
.services { padding: 100px 0; background: var(--bg-light); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 34px 28px;
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 16px; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.service-tags li {
  background: var(--bg-light);
  color: var(--navy-light);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.service-card { display: flex; flex-direction: column; }

/* ---------- Gallery ---------- */
.gallery { padding: 100px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.gallery-item:nth-child(3),
.gallery-item:nth-child(6) { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, transparent, rgba(10,37,64,0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 30, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- About ---------- */
.about { padding: 100px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.about-card {
  background: linear-gradient(145deg, #eef3f8, #ffffff);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 50px;
  box-shadow: var(--shadow-md);
}
.about-list { margin: 26px 0; display: flex; flex-direction: column; gap: 12px; }
.about-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.about-list i { color: var(--whatsapp); }
.about-content p { color: var(--text-muted); margin: 16px 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--orange-dark), var(--orange) 45%, var(--blue) 100%);
  padding: 60px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--white);
}
.cta-inner h2 { color: var(--white); font-size: 1.7rem; margin-bottom: 6px; }
.cta-inner p { color: rgba(255,255,255,0.9); }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 100px 0; background: var(--bg-light); }

.google-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.google-g { width: 22px; height: 22px; }
.google-rating-score { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.stars-inline { margin-bottom: 0; font-size: 1rem; }
.google-rating-count { color: var(--text-muted); font-size: 0.9rem; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.testimonial-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.avatar {
  width: 40px; height: 40px;
  min-width: 40px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial-head strong { display: block; font-size: 0.92rem; color: var(--navy); }
.testimonial-meta { font-size: 0.78rem; color: var(--text-muted); }
.stars { color: var(--orange); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text-dark); font-size: 0.92rem; }
.testimonial-name { font-weight: 600; color: var(--navy); font-size: 0.9rem; }

.testimonials-cta { text-align: center; margin-top: 46px; }
.testimonials-cta .btn i { color: #4285F4; }

/* ---------- Contact ---------- */
.contact { padding: 100px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.contact-info p { color: var(--text-muted); margin: 14px 0 30px; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-light);
  border-radius: 14px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
a.contact-method:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact-method i {
  width: 42px; height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.contact-method strong { display: block; font-size: 0.95rem; }
.contact-method span { font-size: 0.87rem; color: var(--text-muted); }

.contact-form {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.15);
}
.form-note { margin-top: 14px; font-size: 0.9rem; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfe0f0; padding: 60px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 42px; height: 42px; }
.footer-brand .brand-name { color: var(--white); }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: #cfe0f0; font-size: 0.92rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; color: #93a7ba; }

/* ---------- WhatsApp floating widget (mobile only) ---------- */
.whatsapp-fab {
  display: none;
  position: fixed;
  bottom: 22px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  animation: pulse 2.4s ease-in-out infinite;
}
.whatsapp-fab:active { transform: scale(0.94); }

@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Show the WhatsApp widget ONLY on mobile viewports */
@media (max-width: 768px) {
  .whatsapp-fab { display: flex; }
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin: 0 auto 20px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { max-width: 380px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-item:first-child { display: none; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(6) { grid-row: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .header-actions .btn-primary { padding: 10px 18px; font-size: 0.85rem; }
  .hero { padding: 60px 0 80px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta { flex-direction: column; }
}
