/* ===================================
   WHITMORE PLUMBING — CUSTOM STYLES
   Deep Navy + Warm Gold Palette
   =================================== */

/* --- Custom Properties --- */
:root {
  --navy: #1a2e4a;
  --navy-light: #243a5c;
  --navy-dark: #0f1d30;
  --gold: #d4a84b;
  --gold-light: #e8c373;
  --gold-dark: #b8912e;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --gray-50: #faf9f7;
  --gray-100: #f0ede6;
  --gray-200: #e0dbd0;
  --gray-300: #c4bfb3;
  --gray-400: #9e988c;
  --gray-600: #5c5750;
  --gray-800: #2d2a26;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 1px 3px rgba(26,46,74,0.08);
  --shadow-md: 0 4px 16px rgba(26,46,74,0.10);
  --shadow-lg: 0 8px 32px rgba(26,46,74,0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

/* --- Typography --- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
  position: relative;
  padding-left: 36px;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
}
.section-label--light { color: var(--gold-light); }
.section-label--light::before { background: var(--gold-light); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }

.section-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 600px;
  line-height: 1.7;
}
.section-sub--light { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--lg { padding: 16px 32px; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,46,74,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212,168,75,0.2);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(15,29,48,0.98);
  box-shadow: var(--shadow-lg);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.nav__logo-icon { flex-shrink: 0; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}
.nav__menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  position: relative;
}
.nav__menu a:not(.nav__cta):hover { color: var(--gold); }
.nav__menu a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav__menu a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('https://images.pexels.com/photos/3615715/pexels-photo-3615715.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080') center center / cover no-repeat;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,29,48,0.92) 0%,
    rgba(26,46,74,0.85) 50%,
    rgba(26,46,74,0.70) 100%
  );
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212,168,75,0.15);
  border: 1px solid rgba(212,168,75,0.35);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
}
.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  max-width: 800px;
  margin-bottom: 24px;
}
.hero__headline em {
  font-style: normal;
  color: var(--gold);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero__trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* --- Services --- */
.services {
  padding: 100px 0;
  background: var(--white);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-card__icon {
  background: var(--navy);
}
.service-card:hover .service-card__icon svg {
  stroke: var(--gold);
}
.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.service-card__desc {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* --- About --- */
.about {
  padding: 100px 0;
  background: var(--gray-50);
}
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__image-wrap {
  position: relative;
}
.about__image-wrap img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background: var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about__content .section-label { padding-left: 0; }
.about__text {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
}
.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}
.about__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.about__stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* --- Why Us --- */
.why-us {
  padding: 100px 0;
  background: var(--navy);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(212,168,75,0.4);
  transform: translateY(-4px);
}
.why-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.6;
}
.why-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.why-card__desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
  padding: 100px 0;
  background: var(--white);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.testimonial-card__quote-mark {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 24px;
  opacity: 0.4;
}
.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 24px;
  margin-top: 24px;
  font-style: italic;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__name {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.testimonial-card__location {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 2px;
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  background: var(--gold);
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}
.cta-banner__text {
  font-size: 1.05rem;
  color: var(--navy-light);
  max-width: 500px;
  line-height: 1.7;
}
.cta-banner__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--gray-50);
}
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact__info .section-label { padding-left: 0; }
.contact__text {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact__details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}
.contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact__detail-icon {
  width: 48px;
  height: 48px;
  background: rgba(212,168,75,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact__detail strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact__detail a,
.contact__detail span {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.contact__detail a:hover { color: var(--gold-dark); }
.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}
.contact__map img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.contact__map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(26,46,74,0.85));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}
.contact__map:hover .contact__map-overlay {
  background: linear-gradient(transparent, rgba(26,46,74,0.95));
}

/* Form */
.contact__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.contact__form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.contact__form-sub {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212,168,75,0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  background: rgba(26,122,74,0.08);
  border: 1px solid rgba(26,122,74,0.2);
  border-radius: var(--radius-sm);
}
.form-success p {
  font-size: 0.9rem;
  color: #1a6e3e;
  font-weight: 500;
}

/* --- Footer --- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer__tagline {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__nav ul,
.footer__contact ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__nav a,
.footer__contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.footer__nav a:hover,
.footer__contact a:hover { color: var(--gold); }
.footer__service-area p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(15,29,48,0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(212,168,75,0.2);
  }
  .nav__menu.open { transform: translateY(0); }
  .nav__menu a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1rem;
  }
  .nav__menu a:not(.nav__cta)::after { display: none; }
  .nav__cta {
    margin-top: 8px;
    justify-content: center;
    border-bottom: none;
  }
  .hero__headline { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__trust { gap: 20px; }
  .services__grid { grid-template-columns: 1fr; }
  .about__layout { grid-template-columns: 1fr; gap: 40px; }
  .about__image-wrap img { height: 350px; }
  .about__image-accent { width: 100px; height: 100px; bottom: -10px; right: -10px; }
  .why-grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact__layout { grid-template-columns: 1fr; gap: 40px; }
  .contact__form-wrap { padding: 28px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__actions { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .services, .about, .why-us, .testimonials, .contact { padding: 64px 0; }
  .hero__content { padding: 100px 16px 60px; }
  .about__stats { grid-template-columns: 1fr; gap: 20px; }
}
