/* ===========================
   K&J Plumbing — Main Styles
   =========================== */

/* --- CSS Variables --- */
:root {
  --navy:    #0B2E59;
  --royal:   #1E73BE;
  --royal-d: #1560a0;
  --white:   #FFFFFF;
  --gray-lt: #F5F7FA;
  --gray:    #E8EDF3;
  --gray-md: #94a3b8;
  --text:    #1e293b;
  --text-lt: #475569;
  --wa:      #25D366;
  --red:     #dc2626;

  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(11,46,89,.10);
  --shadow-lg: 0 12px 40px rgba(11,46,89,.16);
  --transition: .3s ease;
  --font: 'Inter', system-ui, sans-serif;

  --section-pad: 80px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* --- Container --- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Sections --- */
.section { padding: var(--section-pad) 0; }
.section--gray { background: var(--gray-lt); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
  display: inline-block;
  background: rgba(30,115,190,.12);
  color: var(--royal);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 16px; }
.section-desc { color: var(--text-lt); font-size: 1.05rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 100px;
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition);
  white-space: nowrap; cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn--sm { padding: 9px 20px; font-size: .85rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--xl { padding: 18px 40px; font-size: 1.1rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary { background: var(--royal); color: var(--white); border-color: var(--royal); }
.btn--primary:hover { background: var(--royal-d); border-color: var(--royal-d); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,115,190,.35); }

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

.btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn--white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white:hover { background: var(--gray-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

.btn--whatsapp { background: var(--wa); color: var(--white); border-color: var(--wa); }
.btn--whatsapp:hover { background: #1ebe5a; border-color: #1ebe5a; transform: translateY(-2px); }

.pulse-btn { animation: pulse 2.5s infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(30,115,190,.5); }
  50% { box-shadow: 0 0 0 12px rgba(30,115,190,0); }
}

/* --- Links --- */
.link--primary { color: var(--royal); font-weight: 600; }
.link--primary:hover { text-decoration: underline; }

/* ===========================
   HEADER / NAV
   =========================== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(11,46,89,.08);
  transition: all var(--transition);
}
.header.scrolled { box-shadow: 0 4px 30px rgba(11,46,89,.14); }

.nav {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img { height: 56px; width: auto; object-fit: contain; }
.nav__logo-fallback {
  display: none; align-items: center; gap: 10px;
}
.logo-icon {
  width: 44px; height: 44px; background: var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.2rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-kj { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.logo-sub { font-size: .65rem; font-weight: 600; color: var(--text-lt); text-transform: uppercase; letter-spacing: .05em; }

.nav__menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  padding: 8px 14px; border-radius: 8px;
  font-weight: 500; font-size: .92rem; color: var(--text);
  transition: all var(--transition);
}
.nav__link:hover, .nav__link.active { background: rgba(30,115,190,.1); color: var(--royal); }
.nav__link--emergency { color: #c0392b; font-weight: 700; }
.nav__link--emergency:hover, .nav__link--emergency.active { background: rgba(192,57,43,.1); color: #c0392b; }

.nav__cta { margin-left: 8px; padding: 10px 22px; font-size: .9rem; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; margin-left: auto; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: all .3s; }
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 72px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,46,89,.88) 0%, rgba(11,46,89,.70) 50%, rgba(30,115,190,.55) 100%);
}
/* Fallback gradient when no image */
.hero__bg:not(:has(img[src])) { background: linear-gradient(135deg, var(--navy) 0%, var(--royal) 100%); }

.hero__content {
  position: relative; z-index: 1;
  padding: 80px 24px;
  max-width: 780px;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  color: var(--white); padding: 8px 18px; border-radius: 100px;
  font-size: .85rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,.25);
  animation: fadeInDown .8s ease both;
}
.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.5rem); font-weight: 800;
  color: var(--white); line-height: 1.15; margin-bottom: 20px;
  animation: fadeInUp .8s ease .1s both;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.88);
  max-width: 580px; margin-bottom: 28px;
  animation: fadeInUp .8s ease .2s both;
}
.hero__phone {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
  animation: fadeInUp .8s ease .3s both;
}
.hero__phone i { color: var(--royal); font-size: 1.3rem; }
.hero__phone-number {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--white);
  letter-spacing: .02em;
  transition: color var(--transition);
}
.hero__phone-number:hover { color: #7ec8f7; }
.hero__actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px;
  animation: fadeInUp .8s ease .4s both;
}

/* ===========================
   SERVICE CARDS
   =========================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(30,115,190,.2); }
.service-card--emergency { background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-card--emergency h3, .service-card--emergency p { color: var(--white); }
.service-card--emergency .service-card__icon { background: rgba(255,255,255,.15); color: var(--white); }

.service-card__icon {
  width: 64px; height: 64px; border-radius: var(--radius);
  background: rgba(30,115,190,.1); color: var(--royal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
  transition: all var(--transition);
}
.service-card:not(.service-card--emergency):hover .service-card__icon {
  background: var(--royal); color: var(--white);
}
.service-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); }
.service-card p { font-size: .88rem; color: var(--text-lt); line-height: 1.55; }

.services__cta { text-align: center; margin-top: 48px; }

/* --- Detailed service cards (services page) --- */
.services-detailed {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
}
.service-detail-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--gray);
  transition: all var(--transition);
}
.service-detail-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(30,115,190,.2); }
.service-detail-card--emergency { background: var(--navy); color: var(--white); }
.service-detail-card--emergency h3 { color: var(--white); }
.service-detail-card--emergency p { color: rgba(255,255,255,.8); }
.service-detail-card--emergency .service-detail-card__icon { background: rgba(255,255,255,.15); color: var(--white); }

.service-detail-card__icon {
  width: 54px; height: 54px; border-radius: 12px; flex-shrink: 0;
  background: rgba(30,115,190,.1); color: var(--royal);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.service-detail-card__content h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.service-detail-card__content p { font-size: .9rem; color: var(--text-lt); margin-bottom: 16px; line-height: 1.6; }

/* ===========================
   WHY CHOOSE US
   =========================== */
.why-us__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
.why-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--gray);
  transition: all var(--transition);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.why-card__icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.3rem;
}
.why-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: .88rem; color: var(--text-lt); }

/* ===========================
   ABOUT SNIPPET
   =========================== */
.about-snippet__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.about-snippet__img { position: relative; }
.about-snippet__img img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; height: 500px; object-fit: cover;
}
.about-snippet__img.no-img {
  background: linear-gradient(135deg, var(--navy), var(--royal));
  border-radius: var(--radius-lg); min-height: 400px;
}
.about-snippet__badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--royal); color: var(--white);
  padding: 16px 24px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow-lg);
}

.about-snippet__content .section-title { text-align: left; }
.about-snippet__content p { color: var(--text-lt); margin-bottom: 16px; }
.about-snippet__list { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 10px; }
.about-snippet__list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 500; }
.about-snippet__list li i { color: var(--royal); font-size: 1.1rem; }

/* ===========================
   EMERGENCY CTA
   =========================== */
.emergency-cta { padding: 0; }
.emergency-cta__inner {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3d7c 50%, var(--royal) 100%);
  padding: var(--section-pad) 0;
}
.emergency-cta__content {
  display: flex; align-items: center; gap: 40px; flex-wrap: wrap;
}
.emergency-cta__icon { font-size: 3rem; color: #fbbf24; flex-shrink: 0; animation: shake 2s infinite; }
@keyframes shake {
  0%,100% { transform: rotate(0); }
  10% { transform: rotate(-8deg); }
  20% { transform: rotate(8deg); }
  30% { transform: rotate(0); }
}
.emergency-cta__text { flex: 1; min-width: 200px; }
.emergency-cta__text h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: var(--white); margin-bottom: 8px; }
.emergency-cta__text p { color: rgba(255,255,255,.8); }
.emergency-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px;
}
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--gray);
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 20px;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-card__stars { color: #f59e0b; font-size: 1rem; display: flex; gap: 3px; }
.testimonial-card__text { color: var(--text-lt); font-size: .95rem; line-height: 1.65; flex: 1; font-style: italic; }
.testimonial-card__text::before { content: '\201C'; font-size: 1.2rem; color: var(--royal); font-style: normal; }
.testimonial-card__text::after { content: '\201D'; font-size: 1.2rem; color: var(--royal); font-style: normal; }
.testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy), var(--royal));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: .85rem; font-weight: 700;
}
.testimonial-card__author strong { display: block; font-size: .95rem; color: var(--navy); }
.testimonial-card__author span { font-size: .82rem; color: var(--text-lt); }

/* ===========================
   CONTACT CTA
   =========================== */
.contact-cta__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.contact-cta__content h2 { font-size: clamp(1.5rem,3vw,2rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.contact-cta__content p { color: var(--text-lt); }
.contact-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===========================
   FOOTER
   =========================== */
.footer { background: var(--navy); color: rgba(255,255,255,.75); }
.footer__top {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 48px;
  padding: 72px 24px 48px;
}
.footer__brand { }
.footer__logo { display: flex; align-items: center; margin-bottom: 16px; }
.footer__logo img, .footer__logo-img { height: 64px; width: auto; object-fit: contain; }
.footer__logo .nav__logo-fallback .logo-kj { color: var(--white); }
.footer__logo .nav__logo-fallback .logo-sub { color: rgba(255,255,255,.6); }
.footer__logo .logo-icon { background: rgba(255,255,255,.15); }
.footer__brand p { font-size: .9rem; line-height: 1.6; margin-bottom: 24px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.footer__social a:hover { background: var(--royal); transform: translateY(-2px); }
.footer__col h4 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a { font-size: .9rem; transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--white); }
.footer__contact-list { gap: 12px !important; }
.footer__contact-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.footer__contact-list li i { color: var(--royal); width: 16px; }
.footer__contact-list li a { transition: color var(--transition); }
.footer__contact-list li a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px; text-align: center;
}
.footer__bottom p { font-size: .85rem; }

/* ===========================
   WHATSAPP FLOAT
   =========================== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  background: var(--wa); color: var(--white);
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 100px;
  box-shadow: 0 6px 28px rgba(37,211,102,.45);
  font-weight: 700; font-size: .92rem;
  transition: all var(--transition);
  animation: wa-bounce 3s ease-in-out infinite;
}
.whatsapp-float:hover { background: #1ebe5a; transform: translateY(-3px); box-shadow: 0 10px 36px rgba(37,211,102,.55); }
.whatsapp-float i { font-size: 1.4rem; }
@keyframes wa-bounce {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ===========================
   PAGE HERO (inner pages)
   =========================== */
.page-hero {
  position: relative; padding: 120px 0 60px;
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d7a 50%, var(--royal) 100%);
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: .15;
}
.page-hero__content { position: relative; z-index: 1; }
.page-hero__content h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; color: var(--white); margin-bottom: 12px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75); font-size: .9rem; }
.breadcrumb a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .7rem; }
.breadcrumb span { color: var(--white); font-weight: 600; }

/* ===========================
   EMERGENCY PAGE
   =========================== */
.emergency-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center;
  padding-top: 72px;
  background: linear-gradient(135deg, #7b0000, #c0392b 40%, #e74c3c);
}
.emergency-hero__overlay {
  position: absolute; inset: 0;
  background: url('../images/plumber-work.jpg') center/cover no-repeat;
  opacity: .12;
  mix-blend-mode: multiply;
}
.emergency-hero__content { position: relative; z-index: 1; padding: 80px 24px; }
.emergency-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.2); color: var(--white);
  padding: 8px 18px; border-radius: 100px; font-weight: 700; font-size: .9rem;
  border: 1px solid rgba(255,255,255,.3); margin-bottom: 24px;
  animation: fadeInDown .8s ease both;
}
.emergency-hero__content h1 {
  font-size: clamp(2rem,5.5vw,3.5rem); font-weight: 800; color: var(--white);
  line-height: 1.15; margin-bottom: 16px;
  animation: fadeInUp .8s ease .1s both;
}
.emergency-hero__content p {
  font-size: clamp(1rem,2vw,1.2rem); color: rgba(255,255,255,.9);
  max-width: 600px; margin-bottom: 28px;
  animation: fadeInUp .8s ease .2s both;
}
.emergency-hero__phone {
  display: flex; align-items: center; gap: 12px; margin-bottom: 32px;
  animation: fadeInUp .8s ease .3s both;
}
.emergency-hero__phone i { color: #fbbf24; font-size: 1.5rem; }
.emergency-hero__phone a { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; color: var(--white); }
.emergency-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp .8s ease .4s both; }
.emergency-hero .pulse-btn { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  50% { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

.emergency-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px;
}
.emergency-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid var(--gray);
  transition: all var(--transition);
}
.emergency-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.emergency-card__icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.4rem;
}
.emergency-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.emergency-card p { font-size: .88rem; color: var(--text-lt); }

.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px;
}
.step-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 24px; box-shadow: var(--shadow); border: 1px solid var(--gray);
  transition: all var(--transition); text-align: center;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-card__num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.step-card p { font-size: .88rem; color: var(--text-lt); }

.emergency-big-cta { background: var(--gray-lt); }
.emergency-big-cta__inner {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 40px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  border: 2px solid rgba(30,115,190,.1);
}
.emergency-big-cta__icon { font-size: 3rem; color: var(--royal); flex-shrink: 0; }
.emergency-big-cta__text { flex: 1; min-width: 200px; }
.emergency-big-cta__text h2 { font-size: clamp(1.4rem,3vw,2rem); font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.emergency-big-cta__text p { color: var(--text-lt); }

/* ===========================
   CONTACT PAGE
   =========================== */
.contact-layout {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start;
}
.contact-form-wrap__header { margin-bottom: 32px; }
.contact-form-wrap__header h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.contact-form-wrap__header p { color: var(--text-lt); }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.form-group label span { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px; border-radius: 10px;
  border: 2px solid var(--gray);
  background: var(--white); color: var(--text);
  font-size: .95rem; transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(30,115,190,.12); }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230B2E59'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: .8rem; color: var(--red); min-height: 1em; }

.form-success {
  background: #dcfce7; color: #166534; border: 1px solid #86efac;
  padding: 16px; border-radius: 10px; font-weight: 600; font-size: .9rem;
  display: none; text-align: center;
}
.form-success.visible { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info__header h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.contact-info__card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--gray);
  display: flex; flex-direction: column; gap: 20px;
}
.contact-info__item { display: flex; align-items: center; gap: 16px; }
.contact-info__icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(30,115,190,.1); color: var(--royal);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.contact-info__icon--wa { background: rgba(37,211,102,.12); color: var(--wa); }
.contact-info__item strong { display: block; font-size: .8rem; color: var(--text-lt); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.contact-info__item a { font-size: 1.05rem; font-weight: 700; color: var(--navy); transition: color var(--transition); }
.contact-info__item a:hover { color: var(--royal); }

.contact-info__hours {
  background: var(--gray-lt); border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--gray);
}
.contact-info__hours h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.contact-info__hours h3 i { color: var(--royal); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; font-size: .9rem; color: var(--text-lt); border-bottom: 1px solid var(--gray); }
.hours-table td:last-child { text-align: right; }
.hours-table tr:last-child td { border-bottom: none; }
.emergency-text { color: #c0392b !important; }

.contact-info__emergency {
  background: linear-gradient(135deg, var(--navy), #0d3d7a);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; align-items: center; gap: 16px;
  color: var(--white);
}
.contact-info__emergency i { font-size: 2rem; color: #fbbf24; flex-shrink: 0; }
.contact-info__emergency strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.contact-info__emergency p { font-size: .87rem; color: rgba(255,255,255,.8); margin-bottom: 14px; }

.contact-info__social h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-info__social-icons { display: flex; gap: 12px; }
.contact-info__social-icons a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all var(--transition);
}
.contact-info__social-icons a:hover { background: var(--royal); transform: translateY(-2px); }

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInDown { from { opacity:0; transform: translateY(-20px); } to { opacity:1; transform: translateY(0); } }
@keyframes fadeInUp   { from { opacity:0; transform: translateY(24px);  } to { opacity:1; transform: translateY(0); } }

.reveal, .reveal-left, .reveal-right {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-snippet__inner { gap: 40px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-template-rows: 200px 200px; }
  .gallery-item--large { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  /* Nav mobile */
  .nav__menu {
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); box-shadow: 0 8px 30px rgba(11,46,89,.12);
    padding: 16px; z-index: 100;
  }
  .nav__menu.open { display: flex; }
  .nav__link { padding: 12px 16px; font-size: 1rem; border-radius: 10px; }
  .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav { position: relative; }

  /* Hero */
  .hero__stats { gap: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { text-align: center; justify-content: center; }

  /* Sections */
  .about-snippet__inner { grid-template-columns: 1fr; gap: 32px; }
  .about-snippet__img img { height: 300px; }
  .about-snippet__badge { bottom: 100px; right: 12px; }
  .about-snippet__img-accent { width: 120px; height: 120px; right: -8px; bottom: -8px; }

  .photo-strip { grid-template-columns: repeat(2, 1fr); height: 320px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 200px 200px 200px; }
  .gallery-item--large { grid-column: span 2; }

  .emergency-cta__content { flex-direction: column; align-items: flex-start; }
  .emergency-cta__actions { margin-left: 0; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 32px; }

  .emergency-big-cta__inner { flex-direction: column; text-align: center; }

  .contact-cta__inner { flex-direction: column; text-align: center; }
  .contact-cta__actions { justify-content: center; }

  .services-detailed { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__phone-number { font-size: 1.5rem; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 16px; border-radius: 50%; }
  .section-header { margin-bottom: 40px; }
  .services__grid { grid-template-columns: 1fr 1fr; }
  .emergency-grid, .steps-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; height: 260px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item, .gallery-item--large { grid-column: span 1; grid-row: span 1; height: 160px; }
  .about-snippet__img-accent { display: none; }
  .about-snippet__badge { bottom: -12px; right: 12px; }
}

@media (max-width: 360px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ===========================
   ACCESSIBILITY
   =========================== */
:focus-visible {
  outline: 3px solid var(--royal);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Skip to content */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 9999;
  background: var(--navy); color: var(--white);
  padding: 10px 20px; border-radius: 0 0 8px 8px;
  font-weight: 700; transition: top .3s;
}
.skip-link:focus { top: 0; }

/* ===========================
   PHOTO STRIP
   =========================== */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 260px;
}
.photo-strip__item {
  position: relative;
  overflow: hidden;
}
.photo-strip__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.photo-strip__item:hover img { transform: scale(1.08); }
.photo-strip__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,46,89,.75) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s ease;
}
.photo-strip__item:hover .photo-strip__overlay { opacity: 1; }
.photo-strip__overlay span {
  color: var(--white); font-weight: 700; font-size: .95rem;
  letter-spacing: .03em;
}

/* ===========================
   TESTIMONIALS WITH BG IMAGE
   =========================== */
.testimonials {
  position: relative;
  overflow: hidden;
}
.testimonials__bg {
  position: absolute; inset: 0;
}
.testimonials__bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.testimonials__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,46,89,.93) 0%, rgba(11,46,89,.88) 50%, rgba(30,115,190,.85) 100%);
}
.testimonial-card {
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
}
.testimonial-card:hover {
  background: rgba(255,255,255,.16);
  transform: translateY(-4px);
}
.testimonial-card__text { color: rgba(255,255,255,.9); }
.testimonial-card__text::before,
.testimonial-card__text::after { color: rgba(255,255,255,.5); }
.testimonial-card__author strong { color: #fff; }
.testimonial-card__author span { color: rgba(255,255,255,.65); }
.author-avatar {
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.3);
}

/* ===========================
   ABOUT ACCENT IMAGE
   =========================== */
.about-snippet__img-accent {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 160px; height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 5px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.about-snippet__img-accent img {
  width: 100%; height: 100%; object-fit: cover;
}
/* Push badge up to avoid overlap */
.about-snippet__badge { bottom: 130px; }

/* ===========================
   GALLERY
   =========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
}
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,46,89,.75) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }
.gallery-item__overlay span {
  color: var(--white); font-weight: 700; font-size: .9rem;
}

/* Decorative pattern overlay on hero */
.hero__overlay::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(30,115,190,.3) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(11,46,89,.4) 0%, transparent 50%);
  pointer-events: none;
}

/* If no hero image, make overlay a full gradient */
.hero:not(:has(.hero__bg-img[complete])) .hero__overlay {
  background: linear-gradient(135deg, rgba(11,46,89,.95) 0%, rgba(11,46,89,.80) 50%, rgba(30,115,190,.75) 100%);
}

/* General plumbing-themed background for hero when no image */
.hero__bg {
  background: linear-gradient(135deg, #0B2E59 0%, #0d3d7a 40%, #1E73BE 100%);
}

/* ===========================
   SERVICES IMAGE ROW
   =========================== */
.services-img-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-bottom: 48px; border-radius: var(--radius-lg); overflow: hidden;
}
.services-img-row__item {
  position: relative; height: 220px; overflow: hidden; border-radius: var(--radius-lg);
}
.services-img-row__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.services-img-row__item:hover img { transform: scale(1.06); }
.services-img-row__label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: linear-gradient(to top, rgba(11,46,89,.85), transparent);
  color: var(--white); font-weight: 700; font-size: .9rem;
}
@media print {
  .header, .whatsapp-float, .nav__hamburger, .skip-link { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero__overlay { background: var(--navy) !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
  .btn { border: 1px solid #000 !important; background: none !important; color: #000 !important; }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .header, .whatsapp-float, .nav__hamburger, .skip-link,
  .photo-strip, .gallery-section { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .hero__overlay { background: var(--navy) !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
  .btn { border: 1px solid #000 !important; background: none !important; color: #000 !important; }
}

/* Services img row responsive */
@media (max-width: 768px) {
  .services-img-row { grid-template-columns: 1fr; }
  .services-img-row__item { height: 180px; }
}
