/**
 * Ed's Sewer & Water Repair - Components
 * Reusable UI component styles
 */

/* ==================== BUTTONS ==================== */

.btn {
  display: inline-block;
  padding: var(--button-padding-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-all);
  cursor: pointer;
  border: none;
  line-height: 1;
}

/* Button Sizes */
.btn-sm {
  padding: var(--button-padding-sm);
  font-size: var(--font-size-sm);
}

.btn-lg {
  padding: var(--button-padding-lg);
  font-size: var(--font-size-lg);
}

/* Primary Button (Aqua) */
.btn-aqua {
  background-color: var(--color-aqua);
  color: var(--color-white);
}

.btn-aqua:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-aqua);
  filter: brightness(1.1);
  color: var(--color-white);
}

/* Secondary Button (Orange) */
.btn-orange {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn-orange:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-orange);
  filter: brightness(1.1);
  color: var(--color-white);
}

/* Ghost Button */
.btn-ghost {
  background-color: var(--color-white);
  color: var(--color-navy);
  border: var(--border-width-medium) solid transparent;
}

.btn-ghost:hover {
  background-color: var(--color-gray-100);
  color: var(--color-navy);
}

/* Full Width Button */
.btn-block {
  width: 100%;
  display: block;
}

/* ==================== SERVICE CARDS ==================== */

.service-card {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-all);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-icon-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.service-card__icon svg {
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
  color: var(--color-aqua);
  stroke-width: 2;
}

.service-card__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

.service-card__description {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.service-card__link {
  color: var(--color-orange);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: var(--transition-color);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}

.service-card__link:hover {
  color: var(--color-navy);
}

.service-card__link::after {
  content: ' →';
  margin-left: var(--space-1);
}

/* ==================== TRUST BAR ITEMS ==================== */

.trust-item {
  position: relative;
  padding: var(--space-6);
  background: var(--gradient-card-bg);
  border-radius: var(--radius-lg);
  border: var(--border-width-medium) solid transparent;
  transition: var(--transition-all);
  text-align: center;
}

.trust-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-aqua);
  box-shadow: 0 10px 25px rgba(0, 142, 151, 0.15);
}

.trust-icon {
  width: var(--trust-icon-size);
  height: var(--trust-icon-size);
  background: var(--gradient-aqua);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  box-shadow: 0 4px 15px rgba(0, 142, 151, 0.3);
}

.trust-icon svg {
  width: var(--icon-size-lg);
  height: var(--icon-size-lg);
  color: var(--color-white);
  stroke-width: 2;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  background: var(--gradient-text-aqua);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
  display: block;
}

.trust-label {
  color: var(--color-navy);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
}

@media (max-width: 767px) {
  .trust-number {
    font-size: 2rem;
  }
  
  .trust-icon {
    width: var(--trust-icon-size-mobile);
    height: var(--trust-icon-size-mobile);
  }
  
  .trust-label {
    font-size: var(--font-size-sm);
  }
}

/* ==================== FEATURE SECTIONS ==================== */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.feature-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.feature-item__icon {
  background-color: var(--color-aqua);
  border-radius: var(--radius-full);
  padding: var(--space-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item__icon svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  color: var(--color-white);
  stroke-width: 2;
}

.feature-item__content {
  flex: 1;
}

.feature-item__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.feature-item__description {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}


/* ==================== WARRANTY BADGE ==================== */

.warranty-badge {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: var(--gradient-aqua);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-aqua);
  padding: var(--space-6);
  text-align: center;
  transition: var(--transition-all);
}

.warranty-badge:hover {
  transform: scale(1.05);
}

.warranty-badge__number {
  font-size: 2.5rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.warranty-badge__text {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==================== TESTIMONIAL CARDS ==================== */

.testimonial-card {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card__star {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  color: var(--color-orange);
}

.testimonial-card__quote {
  font-size: var(--font-size-lg);
  color: var(--color-gray-700);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.testimonial-card__author {
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
}

/* ==================== NAVIGATION ==================== */

.nav {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.nav__logo img {
  height: 48px;
  width: auto;
}

@media (min-width: 768px) {
  .nav__logo img {
    height: 64px;
  }
}

.nav__menu {
  display: none;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .nav__menu {
    display: flex;
  }
}

.nav__link {
  color: var(--color-navy);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: var(--transition-color);
}

.nav__link:hover {
  color: var(--color-aqua);
}

.nav__phone {
  display: none;
}

@media (min-width: 768px) {
  .nav__phone {
    display: block;
  }
}

.nav__toggle {
  display: block;
  background: none;
  border: none;
  color: var(--color-navy);
  padding: var(--space-2);
  cursor: pointer;
}

@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }
}

.nav__toggle svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  padding-bottom: var(--space-4);
}

.nav__mobile.active {
  display: block;
}

.nav__mobile a {
  display: block;
  padding: var(--space-2) 0;
  color: var(--color-navy);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}

.nav__mobile a:hover {
  color: var(--color-aqua);
}

.nav__mobile .btn {
  margin-top: var(--space-3);
  width: 100%;
}

/* ==================== FOOTER ==================== */

.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__text {
  color: var(--color-gray-300);
  margin-bottom: var(--space-4);
}

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

.footer__list li {
  margin-bottom: var(--space-2);
}

.footer__link {
  color: var(--color-gray-300);
  text-decoration: none;
  transition: var(--transition-color);
}

.footer__link:hover {
  color: var(--color-aqua);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  color: var(--color-gray-300);
}

.footer__contact-item svg {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  color: var(--color-aqua);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid var(--color-gray-700);
  padding-top: var(--space-8);
  text-align: center;
  color: var(--color-gray-400);
}

/* ==================== HERO SECTION ==================== */

.hero {
  position: relative;
  color: var(--color-white);
  padding-top: var(--section-padding-lg);
  padding-bottom: var(--section-padding-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

.hero-animated {
  background: var(--gradient-hero);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Floating Orbs */
.hero-animated::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 142, 151, 0.4) 0%, rgba(0, 142, 151, 0.2) 40%, transparent 70%);
  border-radius: 50%;
  top: -250px;
  right: -150px;
  animation: float 18s ease-in-out infinite;
  z-index: 1;
}

.hero-animated::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 142, 151, 0.35) 0%, rgba(0, 142, 151, 0.15) 40%, transparent 70%);
  border-radius: 50%;
  bottom: -200px;
  left: -150px;
  animation: float 22s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes float {
  0%, 100% { 
    transform: translate(0, 0) scale(1); 
  }
  25% { 
    transform: translate(40px, -30px) scale(1.08); 
  }
  50% { 
    transform: translate(80px, 20px) scale(1.15); 
  }
  75% { 
    transform: translate(40px, 40px) scale(1.08); 
  }
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 800px;
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: var(--line-height-tight);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: var(--font-size-6xl);
  }
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-gray-200);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--font-size-2xl);
  }
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--color-gray-300);
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .hero__buttons {
    flex-direction: row;
  }
}

/* ==================== HERO ORB ANIMATIONS ==================== */

.hero-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
  animation: floatRandom 20s ease-in-out infinite;
}

.orb:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 10%;
  left: 15%;
  animation-duration: 18s;
  animation-delay: 0s;
}

.orb:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 60%;
  left: 70%;
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 30%;
  right: 10%;
  animation-duration: 25s;
  animation-delay: -10s;
}

.orb:nth-child(4) {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 40%;
  animation-duration: 20s;
  animation-delay: -7s;
}

.orb:nth-child(5) {
  width: 60px;
  height: 60px;
  top: 80%;
  right: 30%;
  animation-duration: 16s;
  animation-delay: -3s;
}

.orb:nth-child(6) {
  width: 90px;
  height: 90px;
  top: 45%;
  left: 25%;
  animation-duration: 24s;
  animation-delay: -12s;
}

.orb:nth-child(7) {
  width: 110px;
  height: 110px;
  bottom: 15%;
  right: 20%;
  animation-duration: 19s;
  animation-delay: -8s;
}

@keyframes floatRandom {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% { 
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.5;
  }
  50% { 
    transform: translate(-20px, 30px) scale(0.9);
    opacity: 0.4;
  }
  75% { 
    transform: translate(40px, 20px) scale(1.05);
    opacity: 0.6;
  }
}

/* ==================== CONTACT FORM ==================== */

.contact-form {
  background-color: var(--color-background-secondary);
  padding: var(--space-12);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 767px) {
  .contact-form {
    padding: var(--space-8);
  }
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==================== GRID UTILITIES ==================== */

.grid {
  display: grid;
  gap: var(--gap-md);
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==================== SECTION HEADERS ==================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-header__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-navy);
  margin-bottom: var(--space-4);
}

@media (min-width: 768px) {
  .section-header__title {
    font-size: var(--font-size-5xl);
  }
}

.section-header__description {
  font-size: var(--font-size-xl);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==================== UTILITY CLASSES (Basic) ==================== */

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Text Colors */
.text-navy { color: var(--color-navy); }
.text-aqua { color: var(--color-aqua); }
.text-orange { color: var(--color-orange); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-text-secondary); }

/* Background Colors */
.bg-white { background-color: var(--color-white); }
.bg-gray-50 { background-color: var(--color-gray-50); }
.bg-navy { background-color: var(--color-navy); }
.bg-aqua { background-color: var(--color-aqua); }

/* Display */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flex Utilities */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }