/* ==========================================================================
   Griffy's Plumbing & Property Services — Additional CSS
   Paste this entire file into WordPress > Customizer > Additional CSS
   (or into the Elementor "Custom CSS" panel on the relevant widgets).
   Tailwind utility classes handle layout/spacing; this file only covers
   things utility classes can't: fonts, custom animations, fine-tuned
   states, and brand tokens for reuse inside Elementor's Custom CSS fields.
   ========================================================================== */

:root {
  --color-navy: #0B2C4D;
  --color-navy-dark: #081F38;
  --color-gold: #F5A623;
  --color-gold-dark: #DB8E10;
  --color-brand-blue: #3B8FD4;
  --color-offwhite: #F4F6F9;
  --color-whatsapp: #25D366;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1A1A1A;
}

h1, h2, h3, h4, h5, h6,
.font-heading {
  font-family: var(--font-heading);
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-brand-blue);
  outline-offset: 2px;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}
.nav-link.is-active {
  color: var(--color-brand-blue);
}

/* Buttons — fixed for contrast: gold button always has dark navy text,
   outline-white button always has a solid white border + white text so it
   never disappears against the navy hero background. */
.btn-gold {
  background-color: var(--color-gold) !important;
  color: var(--color-navy) !important;
  border: 1.5px solid var(--color-gold);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
}
.btn-gold:hover {
  background-color: var(--color-gold-dark) !important;
  border-color: var(--color-gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.45);
}
.btn-gold:visited,
.btn-gold:active {
  color: var(--color-navy) !important;
}

.btn-outline-white {
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--color-navy) !important;
}
.btn-outline-white:visited,
.btn-outline-white:active {
  color: #ffffff !important;
}

/* Cards */
.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(11, 44, 77, 0.25);
}

/* Gallery hover zoom */
.gallery-item {
  overflow: hidden;
}
.gallery-item img {
  transition: transform 0.35s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}

/* Gallery filter buttons */
.filter-btn {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-btn.is-active {
  background-color: var(--color-navy);
  color: #ffffff;
}

/* WhatsApp floating button pulse */
.whatsapp-fab {
  animation: wa-pulse 2.4s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}

/* Star rating color (used with Elementor Star Rating widget too) */
.star-gold { color: var(--color-gold); }

/* Form inputs */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  border-color: var(--color-brand-blue);
  box-shadow: 0 0 0 3px rgba(59, 143, 212, 0.15);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Mobile menu slide */
#mobileMenu {
  transition: max-height 0.3s ease;
}
