/* Cascade Peak Plumbing - Demo Site by Redeemed Web Design */
:root {
  --primary: #0a4d68;
  --primary-dark: #063447;
  --primary-light: #0e7490;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --text: #1e293b;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(10, 77, 104, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 77, 104, 0.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Demo Banner */
.demo-banner {
  background: var(--bg-dark);
  color: #fff;
  font-size: 0.875rem;
  padding: 0.65rem 1rem;
  text-align: center;
}

.demo-banner a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-banner a:hover {
  color: #fff;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: var(--bg-dark);
}

.btn-accent:hover {
  background: #22d3ee;
  color: var(--bg-dark);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1.05rem;
}

.btn-phone {
  background: var(--success);
  color: #fff;
}

.btn-phone:hover {
  background: #059669;
  color: #fff;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hero */
.hero {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 40%, #f8fafc 100%);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 120%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--bg-dark);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary-light);
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.hero-visual-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #0a4d68 0%, #0e7490 50%, #06b6d4 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.9);
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-visual-placeholder::after {
  content: '💧';
  font-size: 4rem;
  opacity: 0.9;
}

.hero-card {
  position: absolute;
  bottom: -1rem;
  left: 1.5rem;
  right: 1.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-card strong {
  display: block;
  font-size: 0.95rem;
}

.hero-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.25s;
  box-shadow: var(--shadow);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent-soft), #e0f2fe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 0.5rem;
  color: var(--bg-dark);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-card a {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
}

.why-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.why-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--bg-dark);
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.testimonial p {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.author-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  opacity: 0.9;
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.cta-banner .btn {
  background: #fff;
  color: var(--primary);
}

.cta-banner .btn:hover {
  background: var(--accent-soft);
  color: var(--primary-dark);
}

/* RWD Promo */
.rwd-promo {
  background: var(--bg-dark);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}

.rwd-promo h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.rwd-promo p {
  opacity: 0.85;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.rwd-promo .btn {
  background: var(--accent);
  color: var(--bg-dark);
}

.rwd-promo .btn:hover {
  background: #22d3ee;
}

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
}

/* Page Hero (inner pages) */
.page-hero {
  background: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Contact cards */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Location */
.location-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin: 0 auto;
}

.location-map {
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #0e7490 0%, #06b6d4 50%, #a5f3fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  position: relative;
}

.location-map::before {
  content: '📍';
  font-size: 3rem;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.location-details {
  padding: 2rem;
}

.location-details h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.location-details p {
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hours-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.hours-row:last-child {
  border-bottom: none;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.portfolio-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #0a4d68, #0e7490);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-size: 2.5rem;
}

.portfolio-img.alt1 { background: linear-gradient(145deg, #0e7490, #06b6d4); }
.portfolio-img.alt2 { background: linear-gradient(145deg, #0a4d68, #164e63); }
.portfolio-img.alt3 { background: linear-gradient(145deg, #155e75, #0891b2); }
.portfolio-img.alt4 { background: linear-gradient(145deg, #0c4a6e, #0284c7); }
.portfolio-img.alt5 { background: linear-gradient(145deg, #164e63, #0e7490); }

.portfolio-info {
  padding: 1.25rem;
}

.portfolio-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Notice */
.demo-notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #92400e;
  margin-bottom: 2rem;
  text-align: center;
}

.demo-notice a {
  color: #b45309;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .testimonials-grid,
  .portfolio-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-toggle {
    display: block;
  }

  .header-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .testimonials-grid,
  .portfolio-grid,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-banner {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   ANIMATIONS — Plumbing-themed motion
   ============================================ */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes floatDrop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ripple {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes gentlePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.35); }
  50% { box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); }
}

@keyframes waterShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes drip {
  0% { transform: translateY(-8px) scaleY(0.6); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(18px) scaleY(1); opacity: 0; }
}

@keyframes waveFlow {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Scroll reveal base state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* Hero entrance (runs on load) */
.hero-badge {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero h1 {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero-lead {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero-actions {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero-stats {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.hero-visual {
  animation: scaleIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* Floating water drop on hero visual */
.hero-visual-placeholder {
  position: relative;
}

.hero-visual-placeholder::after {
  content: '💧';
  font-size: 4rem;
  opacity: 0.9;
  animation: floatDrop 3.5s ease-in-out infinite;
  display: block;
}

/* Soft ripple rings behind the drop */
.hero-visual-placeholder::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2.8s ease-out infinite;
  pointer-events: none;
}

/* Phone CTA gentle pulse (emergency feel) */
.btn-phone {
  animation: gentlePulse 2.5s ease-out infinite;
}

/* Service / portfolio / testimonial cards */
.service-card,
.portfolio-item,
.testimonial,
.contact-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.service-card:hover,
.portfolio-item:hover,
.contact-card:hover {
  transform: translateY(-6px);
}

/* Service icon subtle bounce on hover */
.service-card:hover .service-icon {
  animation: floatDrop 0.8s ease;
}

/* Why-us numbers pop in */
.why-num {
  transition: transform 0.3s ease, background 0.3s ease;
}

.why-item:hover .why-num {
  transform: scale(1.08);
  background: var(--primary-light);
}

/* CTA banner water shimmer background */
.cta-banner {
  background-size: 200% 200%;
  animation: waterShimmer 12s ease infinite;
}

/* Buttons */
.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Logo icon soft float */
.logo-icon {
  animation: floatDrop 4s ease-in-out infinite;
}

/* Page hero entrance */
.page-hero h1 {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.page-hero p {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* Form card entrance */
.form-card {
  animation: scaleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Location map soft pulse */
.location-map {
  position: relative;
  overflow: hidden;
}

.location-map::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2.5s ease-out infinite;
  pointer-events: none;
}

/* Demo banner subtle slide */
.demo-banner {
  animation: fadeIn 0.5s ease both;
}

/* Header slide down */
.site-header {
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Stagger helper for grids via JS data attribute */
[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="stagger"].visible > *:nth-child(1) { transition-delay: 0.05s; }
[data-animate="stagger"].visible > *:nth-child(2) { transition-delay: 0.12s; }
[data-animate="stagger"].visible > *:nth-child(3) { transition-delay: 0.19s; }
[data-animate="stagger"].visible > *:nth-child(4) { transition-delay: 0.26s; }
[data-animate="stagger"].visible > *:nth-child(5) { transition-delay: 0.33s; }
[data-animate="stagger"].visible > *:nth-child(6) { transition-delay: 0.4s; }
[data-animate="stagger"].visible > *:nth-child(7) { transition-delay: 0.47s; }
[data-animate="stagger"].visible > *:nth-child(8) { transition-delay: 0.54s; }
[data-animate="stagger"].visible > *:nth-child(9) { transition-delay: 0.61s; }

[data-animate="stagger"].visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Success check bounce */
@keyframes checkPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

#formSuccess > div:first-child,
#contactSuccess > div:first-child {
  animation: checkPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================
   Fake-call modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.15rem;
  background: var(--accent-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--bg-dark);
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.modal p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.modal-actions .btn {
  width: 100%;
}

.modal-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: none;
  border: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  border-radius: 6px;
}

.modal-close-x:hover {
  color: var(--text);
  background: var(--bg-alt);
}

.modal {
  position: relative;
}

body.modal-open {
  overflow: hidden;
}
