/*
Theme Name: DrivingSchool.com.pk
Theme URI: https://www.drivingschool.com.pk
Author: DrivingSchool.com.pk
Author URI: https://www.drivingschool.com.pk
Description: A warm, approachable WordPress block theme for Pakistan's comprehensive driving resource hub. Safe Passage design with Fraunces headings, Lato body, forest green and terracotta on warm sand.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drivingschool-pk
*/

/* Footer Margin Reset */
.wp-site-blocks > footer {
  margin-block-start: 0;
}

/* Equal Cards Layout */
.equal-cards > .wp-block-column {
  display: flex;
  flex-direction: column;
  flex-grow: 0;
}
.equal-cards > .wp-block-column > .wp-block-group {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.equal-cards .cta-bottom {
  margin-top: auto;
  justify-content: center;
}

/* Entrance Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.3s; }
.fade-up:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: slideInLeft 0.7s ease forwards;
}
@keyframes slideInLeft {
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.7s ease forwards;
}
@keyframes slideInRight {
  to { opacity: 1; transform: translateX(0); }
}

/* Staggered Children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }

/* Scroll-Triggered Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effects */
.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(59, 47, 47, 0.12);
}

/* Ambient Motion */
.float-gentle {
  animation: floatGentle 6s ease-in-out infinite;
}
@keyframes floatGentle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Hero Glow Background Effect */
.hero-glow {
  position: relative;
  overflow: hidden;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 102, 58, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatGentle 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
.hero-glow::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(45, 90, 61, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: floatGentle 10s ease-in-out infinite reverse;
  z-index: 0;
  pointer-events: none;
}

/* Decorative Bar */
.decorative-bar::before {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #C4663A, transparent);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

/* Terracotta Text Gradient */
.text-gradient-warm {
  background: linear-gradient(120deg, #C4663A, #D97A4A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card with warm styling */
.card-warm {
  border: 1px solid rgba(45, 90, 61, 0.1);
  border-radius: 12px;
  background: #FFFAF5;
  transition: all 0.3s ease;
}
.card-warm:hover {
  border-color: rgba(196, 102, 58, 0.3);
  box-shadow: 0 8px 24px rgba(59, 47, 47, 0.08);
}

/* Step Number Circle */
.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #2D5A3D, #4A7A5C);
  color: #FFFAF5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Custom Button Styles */
.btn-primary-custom {
  background: linear-gradient(135deg, #C4663A, #D97A4A) !important;
  color: white !important;
  box-shadow: 0 8px 16px rgba(196, 102, 58, 0.25);
  transition: all 0.3s ease;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(196, 102, 58, 0.35);
}

.btn-secondary-custom {
  background: #FFFAF5 !important;
  color: #2D5A3D !important;
  border: 2px solid #2D5A3D !important;
  box-shadow: 0 4px 12px rgba(45, 90, 61, 0.15);
  transition: all 0.3s ease;
}
.btn-secondary-custom:hover {
  background: #2D5A3D !important;
  color: white !important;
  transform: translateY(-2px);
}

/* City tag pills */
.city-pill {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid rgba(45, 90, 61, 0.2);
  background: rgba(45, 90, 61, 0.05);
  color: #2D5A3D;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.city-pill:hover {
  background: #2D5A3D;
  color: #FFFAF5;
  border-color: #2D5A3D;
}

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