/*
Theme Name: Toronto Plumbing Solutions
Theme URI: https://practice.shehzadiwebs.com
Author: shehzadi-ux
Author URI: https://github.com/shehzadi-ux/-Toronto-Plumbing
Description: High-converting, modern, production-ready custom WordPress Gutenberg Block Theme for emergency plumbing services in Toronto and GTA. Fully editable in Gutenberg block editor and Full Site Editing (FSE) Site Editor.
Version: 1.1.0
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toronto-plumbing
Tags: full-site-editing, block-patterns, block-styles, editor-style, custom, plumbing, emergency-services, modern, responsive-layout, translation-ready
*/

/* Reset & Core Theme Styles */
*, ::before, ::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
  color: #0f172a;
  background-color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

/* Custom Animation Keyframes */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@keyframes heroFadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes underlineReveal {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes subtlePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.15); }
}

@keyframes heroCinematicMotion {
  0% { transform: scale(1.02) translate(0%, 0%); }
  50% { transform: scale(1.10) translate(-1.5%, -1%); }
  100% { transform: scale(1.02) translate(0%, 0%); }
}

@keyframes waterGleam {
  0% { opacity: 0.05; transform: translateX(-100%) rotate(15deg); }
  50% { opacity: 0.2; }
  100% { opacity: 0.05; transform: translateX(200%) rotate(15deg); }
}

.hero-gradient {
  background: linear-gradient(145deg, #061527 0%, #0a213a 50%, #051322 100%);
}

.pulse-badge {
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.anim-eyebrow {
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.anim-title-1 {
  opacity: 0;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.16s forwards;
}

.anim-title-2 {
  opacity: 0;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.anim-accent-underline {
  transform-origin: left;
  transform: scaleX(0);
  animation: underlineReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
}

.anim-copy {
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.42s forwards;
}

.anim-ctas {
  opacity: 0;
  animation: heroFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.54s forwards;
}

.anim-trust {
  opacity: 0;
  animation: heroFadeUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.66s forwards;
}

.anim-panel {
  opacity: 0;
  animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.hero-video-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 66.6vw;
  min-width: 150vh;
  min-height: 100vh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: none;
}

.hero-cinematic-bg {
  animation: heroCinematicMotion 24s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-ambient-gleam {
  animation: waterGleam 10s ease-in-out infinite;
}

.live-dot-pulse {
  animation: subtlePulse 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .anim-eyebrow,
  .anim-title-1,
  .anim-title-2,
  .anim-copy,
  .anim-ctas,
  .anim-trust,
  .anim-panel {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .anim-accent-underline {
    transform: scaleX(1) !important;
    animation: none !important;
  }
  .live-dot-pulse {
    animation: none !important;
  }
}
