/* ========================================
   Hayward's Exterior Cleaning Services
   Custom styles (non-Tailwind overrides)
   ======================================== */

/* Material Symbols configuration */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Navigation — solid at top, glass when scrolled */
.glass-nav {
  background: rgb(249, 249, 249);
}

/* Hero gradient (primary → primary-container at 135°) */
.hero-gradient {
  background: linear-gradient(135deg, #012d1d 0%, #1b4332 100%);
}

/* SVG noise texture overlay for depth */
.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Ambient shadow for floating elements */
.ambient-shadow {
  box-shadow: 0 8px 60px rgba(26, 28, 28, 0.06);
}

/* Layered color-tinted shadows for cards */
.card-shadow {
  box-shadow:
    0 2px 8px rgba(1, 45, 29, 0.04),
    0 8px 32px rgba(1, 45, 29, 0.06);
}

.card-shadow-hover {
  box-shadow:
    0 4px 12px rgba(1, 45, 29, 0.06),
    0 16px 48px rgba(1, 45, 29, 0.1);
}

/* Button gradient with proper hover/active states */
.btn-primary {
  background: linear-gradient(135deg, #012d1d, #1b4332);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:focus-visible {
  outline: 2px solid #1b4332;
  outline-offset: 2px;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* Ghost button hover/active */
.btn-ghost {
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.btn-ghost:active {
  transform: scale(0.97);
}

/* Navigation link hover states */
.nav-link {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:focus-visible {
  outline: 2px solid #1b4332;
  outline-offset: 4px;
  border-radius: 2px;
}

/* Service card image zoom on hover */
.service-card-img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.group:hover .service-card-img {
  transform: scale(1.05);
}

/* Contact icon hover */
.contact-icon {
  transition: background-color 0.2s ease;
}

.contact-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Social link hover */
.social-link {
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.social-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.social-link:active {
  transform: scale(0.97);
}

/* Footer link hover */
.footer-link {
  transition: color 0.2s ease;
}

.footer-link:focus-visible {
  outline: 2px solid #1b4332;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Form input focus */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
}

/* Submit button */
.btn-submit {
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-submit:hover {
  background-color: #1b4332;
}

.btn-submit:focus-visible {
  outline: 2px solid #012d1d;
  outline-offset: 2px;
}

.btn-submit:active {
  transform: scale(0.98);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Image gradient overlay utility */
.img-overlay {
  position: relative;
}

.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}
