/* ============================================
   DE LEON PLUMBING — SHARED STYLES v3
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800&family=Nunito+Sans:wght@300;400;600;700&display=swap');

:root {
  --navy: #00254d;
  --navy-dark: #001830;
  --navy-light: #003570;
  --white: #ffffff;
  --gray: #D3D3D3;
  --gray-dark: #a0a0a0;
  --gray-light: #f4f4f4;
  --water-light: #d4ecf7;
  --water-mid: #a8d4f0;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0,37,77,0.12);
  --shadow-strong: 0 8px 40px rgba(0,37,77,0.22);
}

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

/* ---- SKIP LINK ---- */
.skip-link { position: absolute; top: -100%; left: 1rem; background: var(--navy); color: var(--white); padding: 0.75rem 1.5rem; border-radius: 0 0 8px 8px; font-family: var(--font-body); font-weight: 600; z-index: 9999; transition: top var(--transition); }
.skip-link:focus { top: 0; }

/* ---- NAVIGATION ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(0, 25, 48, 0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px;
  border-bottom: 1px solid rgba(211,211,211,0.1);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-strong); }

/* LOGO: icon clipped + text side by side */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-icon {
  width: 62px;
  height: 62px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.nav-logo-icon img {
  width: 82px; /* slightly wider than container to crop well */
  position: absolute;
  top: -4px;
  left: -10px;
}
.nav-logo-wordmark { height: 36px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--water-light); transition: width var(--transition); }
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }
.nav-cta { background: var(--white) !important; color: var(--navy) !important; padding: 0.55rem 1.4rem; border-radius: 4px; font-weight: 700 !important; transition: background var(--transition), transform var(--transition) !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--water-light) !important; transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 26px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.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); }

.nav-mobile { display: none; position: fixed; top: 90px; left: 0; right: 0; background: var(--navy-dark); padding: 1.5rem 2rem 2rem; z-index: 999; flex-direction: column; gap: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; transition: color var(--transition); }
.nav-mobile a:hover { color: var(--white); }
.nav-mobile .nav-cta { display: inline-block; width: fit-content; background: var(--white) !important; color: var(--navy) !important; padding: 0.65rem 1.6rem; border-radius: 4px; }

/* ---- SEAMLESS WAVE DIVIDERS ---- */
.wave-into-water { line-height: 0; }
.wave-into-water svg { display: block; width: 100%; }
.wave-into-navy { line-height: 0; }
.wave-into-navy svg { display: block; width: 100%; }
.wave-into-white { line-height: 0; }
.wave-into-white svg { display: block; width: 100%; }

/* ---- WATER BACKGROUND ---- */
.water-bg {
  background-color: var(--water-light);
  background-image:
    radial-gradient(ellipse 85% 45% at 15% 25%, rgba(255,255,255,0.6) 0%, transparent 60%),
    radial-gradient(ellipse 65% 35% at 80% 60%, rgba(255,255,255,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 50% 28% at 50% 88%, rgba(255,255,255,0.38) 0%, transparent 50%),
    radial-gradient(ellipse 70% 38% at 88% 12%, rgba(255,255,255,0.42) 0%, transparent 55%);
}

/* ---- BUTTONS ---- */
.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.85rem 2rem; border-radius: 4px; transition: all var(--transition); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-primary:hover { background: var(--water-light); border-color: var(--water-light); }
.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,0.6); }
.btn-outline-white:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---- SECTION DEFAULTS ---- */
section { padding: 6rem 2rem; }
.container { max-width: 1140px; margin: 0 auto; }
.section-label { font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray-dark); margin-bottom: 0.75rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; text-transform: uppercase; color: var(--navy); }
.section-title.light { color: var(--white); }
.section-body { font-size: 1.05rem; color: var(--text-mid); max-width: 560px; margin-top: 1rem; line-height: 1.75; }

/* ---- SERVICE SQUARES WITH HOVER REVEAL ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; }
.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray);
  border-radius: 6px;
  padding: 2.5rem 1.75rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 220px;
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { border-color: var(--navy); box-shadow: var(--shadow); transform: translateY(-4px); }

/* Icon: visible by default, hides on hover */
.service-icon-wrap {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 0.85rem;
}
.service-icon-wrap svg { width: 100%; height: 100%; }
.service-card:hover .service-icon-wrap { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* Title: centered by default, moves up on hover */
.service-name {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.2;
  transition: transform 0.3s ease;
  position: relative; z-index: 1;
}
.service-card:hover .service-name { transform: translateY(-38px); }

/* Description: hidden by default, appears on hover */
.service-desc-hover {
  position: absolute;
  bottom: 1.75rem; left: 1.25rem; right: 1.25rem;
  font-size: 0.88rem; color: var(--text-mid); line-height: 1.6;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.service-card:hover .service-desc-hover { opacity: 1; transform: translateY(0); }

/* Bottom accent bar */
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--navy); transform: scaleX(0); transition: transform var(--transition); }
.service-card:hover::after { transform: scaleX(1); }

/* ---- BEFORE / AFTER ---- */
.before-after-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.ba-card { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.ba-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ba-card:hover img { transform: scale(1.04); }
.ba-label { position: absolute; top: 1rem; left: 1rem; background: var(--navy); color: var(--white); font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 3px; }

/* ---- TESTIMONIALS ---- */
.testimonials-section { background: var(--navy); overflow: hidden; }
.testimonials-track-wrap { margin-top: 3rem; overflow: hidden; position: relative; }
.testimonials-track-wrap::before, .testimonials-track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.testimonials-track-wrap::before { left: 0; background: linear-gradient(to right, var(--navy), transparent); }
.testimonials-track-wrap::after { right: 0; background: linear-gradient(to left, var(--navy), transparent); }
.testimonials-track { display: flex; gap: 1.5rem; animation: scroll-testimonials 32s linear infinite; width: max-content; }
.testimonials-track:hover { animation-play-state: paused; }
@keyframes scroll-testimonials { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.testimonial-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(211,211,211,0.15); border-radius: 6px; padding: 1.75rem 2rem; width: 340px; flex-shrink: 0; }
.testimonial-stars { color: #f5c518; font-size: 1rem; letter-spacing: 2px; margin-bottom: 0.75rem; }
.testimonial-text { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.7; font-style: italic; margin-bottom: 1rem; }
.testimonial-author { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; }
.testimonial-location { font-size: 0.78rem; color: var(--gray-dark); }

/* ---- CTA BANNER ---- */
.cta-banner { background: var(--gray-light); padding: 5rem 2rem; text-align: center; border-top: 1px solid var(--gray); }
.cta-banner p { color: var(--text-mid); font-size: 1.05rem; margin: 1rem auto 2rem; max-width: 500px; }
.cta-phone { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: 0.04em; display: block; margin-bottom: 1.5rem; transition: color var(--transition); }
.cta-phone:hover { color: var(--navy-light); }

/* ---- FOOTER ---- */
footer { background: var(--navy-dark); color: var(--gray); padding: 3rem 2rem; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
.footer-wordmark { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.85rem; line-height: 1.65; color: var(--gray-dark); margin-top: 0.5rem; }
.footer-heading { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: var(--white); margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.9rem; color: var(--gray-dark); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact-item { font-size: 0.9rem; color: var(--gray-dark); margin-bottom: 0.5rem; }
.footer-contact-item a { color: var(--gray-dark); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.footer-bottom { max-width: 1140px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray-dark); flex-wrap: wrap; gap: 0.5rem; }

/* ---- PAGE HEADER ---- */
.page-header { background: var(--navy); padding: 9rem 2rem 5rem; text-align: center; }
.page-header .section-label { color: var(--gray-dark); }
.page-header .section-title { color: var(--white); }
.page-header p { color: var(--gray); margin: 1rem auto 0; max-width: 560px; font-size: 1.05rem; }

/* ---- ADA FOCUS ---- */
:focus-visible { outline: 3px solid var(--water-light); outline-offset: 3px; border-radius: 3px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1000px) {
  .nav-links { gap: 1.2rem; }
  .nav-links a { font-size: 0.78rem; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 4rem 1.25rem; }
  .before-after-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
