/* ==========================================================================
   Skyline Plumbing - Modern Eco-Friendly Plumbing Landing Page Stylesheet
   Color Palette: Deep Forest Green (#0B3C2D), Light Green (#10B981), Water Blue (#0EA5E9)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design System & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  --primary-forest: #0B3C2D;
  --primary-dark: #06261C;
  --primary-medium: #14533D;
  --primary-light: #1E6B50;
  
  --secondary-emerald: #10B981;
  --secondary-hover: #059669;
  --secondary-light: #D1FAE5;
  --secondary-tint: #ECFDF5;
  
  --accent-blue: #0EA5E9;
  --accent-blue-hover: #0284C7;
  --accent-blue-light: #E0F2FE;

  --bg-white: #FFFFFF;
  --bg-very-light-green: #F0FDF4;
  --bg-mint-soft: #F6FCF8;
  --bg-card: #FFFFFF;
  
  --text-dark: #0F172A;
  --text-muted: #475569;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --border-light: #E2E8F0;
  --border-green: #A7F3D0;
  
  --btn-gradient: linear-gradient(135deg, #10B981 0%, #047857 100%);
  --btn-gradient-hover: linear-gradient(135deg, #059669 0%, #064E3B 100%);
  --banner-gradient: linear-gradient(135deg, #0B3C2D 0%, #04241B 100%);

  --shadow-sm: 0 2px 8px rgba(11, 60, 45, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 60, 45, 0.08);
  --shadow-lg: 0 16px 36px rgba(11, 60, 45, 0.12);
  --shadow-emerald: 0 10px 25px rgba(16, 185, 129, 0.35);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base & Reset
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--primary-forest);
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* --------------------------------------------------------------------------
   3. Utility Classes & Badges
   -------------------------------------------------------------------------- */
.text-forest { color: var(--primary-forest) !important; }
.text-emerald { color: var(--secondary-emerald) !important; }
.text-water-blue { color: var(--accent-blue) !important; }
.bg-very-light-green { background-color: var(--bg-very-light-green) !important; }
.bg-mint-soft { background-color: var(--bg-mint-soft) !important; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--secondary-light);
  color: var(--primary-forest);
  border: 1px solid var(--border-green);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-tag i {
  color: var(--secondary-emerald);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   4. Buttons & CTAs
   -------------------------------------------------------------------------- */
.btn-skyline-primary {
  background: var(--btn-gradient);
  color: var(--text-white) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-emerald);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.btn-skyline-primary:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.45);
}

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

.btn-skyline-secondary {
  background-color: var(--bg-white);
  color: var(--primary-forest) !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--primary-forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: var(--transition-normal);
}

.btn-skyline-secondary:hover {
  background-color: var(--primary-forest);
  color: var(--text-white) !important;
  transform: translateY(-2px);
}

.btn-skyline-accent {
  background-color: var(--accent-blue);
  color: var(--text-white) !important;
  font-weight: 700;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.35);
  transition: var(--transition-normal);
}

.btn-skyline-accent:hover {
  background-color: var(--accent-blue-hover);
  transform: translateY(-2px);
  color: var(--text-white) !important;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.skyline-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
  transition: var(--transition-normal);
  padding: 0.75rem 0;
}

.skyline-header.scrolled {
  box-shadow: 0 4px 20px rgba(11, 60, 45, 0.1);
  padding: 0.5rem 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-forest);
  letter-spacing: -0.03em;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-very-light-green);
  border: 1px solid var(--border-green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-emerald);
  font-size: 1.35rem;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary-emerald) !important;
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  background: linear-gradient(135deg, rgba(6, 38, 28, 0.88) 0%, rgba(11, 60, 45, 0.78) 100%), 
              url('../images/hero-plumber.png') center/cover no-repeat;
  color: var(--text-white);
  overflow: hidden;
}

.hero-content h1 {
  color: var(--text-white);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 3.75rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 680px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-white);
}

.trust-badge i {
  color: var(--secondary-emerald);
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   7. Eco-Friendly Section
   -------------------------------------------------------------------------- */
.eco-section {
  padding: 90px 0;
  background-color: var(--bg-very-light-green);
  position: relative;
}

.eco-card {
  background: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  height: 100%;
}

.eco-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-emerald);
}

.eco-icon-wrapper {
  width: 54px;
  height: 54px;
  background: var(--secondary-light);
  color: var(--primary-forest);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.eco-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.eco-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.eco-image-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-white);
}

/* --------------------------------------------------------------------------
   8. Services Section
   -------------------------------------------------------------------------- */
.services-section {
  padding: 90px 0;
  background-color: var(--bg-white);
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 2rem 1.5rem;
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-emerald);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-emerald);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--btn-gradient);
  color: var(--text-white);
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

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

.service-card .btn-service-call {
  width: 100%;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   9. Why Choose Us Section
   -------------------------------------------------------------------------- */
.why-choose-section {
  padding: 90px 0;
  background-color: var(--bg-mint-soft);
}

.why-card {
  background: var(--bg-white);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition-normal);
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-green);
}

.why-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--primary-forest);
  color: var(--secondary-emerald);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.why-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. How It Works Section
   -------------------------------------------------------------------------- */
.how-it-works-section {
  padding: 90px 0;
  background-color: var(--bg-white);
}

.step-card {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-very-light-green);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-green);
  height: 100%;
  transition: var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--primary-forest);
  color: var(--secondary-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(11, 60, 45, 0.2);
}

.step-icon {
  font-size: 2.5rem;
  color: var(--secondary-emerald);
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   11. Statistics Section
   -------------------------------------------------------------------------- */
.stats-section {
  padding: 70px 0;
  background: var(--banner-gradient);
  color: var(--text-white);
  position: relative;
}

.stat-box {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary-emerald);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Reviews Section
   -------------------------------------------------------------------------- */
.reviews-section {
  padding: 90px 0;
  background-color: var(--bg-very-light-green);
}

.review-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-green);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  color: var(--text-dark);
  font-size: 0.975rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.reviewer-avatar {
  width: 46px;
  height: 46px;
  background: var(--primary-forest);
  color: var(--secondary-emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.reviewer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-forest);
  margin: 0;
}

.reviewer-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.verified-badge {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--secondary-emerald);
  background: var(--secondary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Emergency Plumbing CTA Banner
   -------------------------------------------------------------------------- */
.emergency-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0B3C2D 0%, #06261C 100%);
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.emergency-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.emergency-cta-section h2 {
  color: var(--text-white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.emergency-cta-section p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 720px;
  margin: 0 auto 2.25rem;
}

.btn-emergency-pulse {
  animation: pulseGlow 2s infinite;
  font-size: 1.2rem;
  padding: 1.1rem 2.5rem;
}

/* --------------------------------------------------------------------------
   14. Footer & Sticky Elements
   -------------------------------------------------------------------------- */
.skyline-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 70px;
  padding-bottom: 100px; /* Space for mobile call bar */
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .skyline-footer {
    padding-bottom: 40px;
  }
}

.footer-brand {
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-title {
  color: var(--text-white);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--secondary-emerald);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--secondary-emerald);
  color: var(--text-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Floating Phone Button */
.floating-phone-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background: var(--btn-gradient);
  color: var(--text-white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.5);
  z-index: 1040;
  transition: var(--transition-normal);
  animation: floatPulse 2.5s infinite;
}

.floating-phone-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 14px 35px rgba(16, 185, 129, 0.7);
}

/* Sticky Mobile Call Bar */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--btn-gradient);
  padding: 0.85rem 1rem;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

.sticky-mobile-bar a {
  color: var(--text-white) !important;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   15. Keyframe Animations
   -------------------------------------------------------------------------- */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes floatPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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