/* ============================================
   Day Or Night Plumbing — Custom Styles
   ============================================ */

/* --- Base & Utilities --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* --- Navigation --- */
.nav-fixed {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 29, 58, 0.06);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(11, 29, 58, 0.08);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #2DD4BF;
  transition: width 0.25s ease;
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2DD4BF;
  color: #0B1D3A;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(45, 212, 191, 0.3);
  text-decoration: none;
  overflow: hidden;
  position: relative;
}

.btn-primary:hover {
  background: #14B8A6;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.4);
}

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

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #0B1D3A;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: 2px solid rgba(11, 29, 58, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  border-color: #2DD4BF;
  background: rgba(45, 212, 191, 0.08);
  transform: translateY(-2px);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0B1D3A;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(11, 29, 58, 0.3);
  text-decoration: none;
}

.btn-cta:hover {
  background: #132D54;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(11, 29, 58, 0.4);
}

.btn-cta:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Hero --- */
.hero-section {
  background: linear-gradient(135deg, #F0FDFA 0%, #FFFFFF 50%, #EEFEF8 100%);
  position: relative;
  min-height: 100vh;
}

.hero-shapes {
  overflow: hidden;
}

.shape-circle-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
  position: absolute;
  bottom: 5%;
  left: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(11, 29, 58, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-circle-3 {
  position: absolute;
  top: 30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-slow 6s ease-in-out infinite;
}

.shape-rect-1 {
  position: absolute;
  top: 15%;
  right: 5%;
  width: 120px;
  height: 120px;
  background: rgba(45, 212, 191, 0.08);
  border-radius: 24px;
  transform: rotate(45deg);
  animation: spin-slow 20s linear infinite;
}

.shape-rect-2 {
  position: absolute;
  bottom: 20%;
  right: 15%;
  width: 80px;
  height: 80px;
  border: 3px solid rgba(45, 212, 191, 0.15);
  border-radius: 16px;
  transform: rotate(30deg);
  animation: spin-slow 15s linear infinite reverse;
}

.shape-dot-pattern {
  position: absolute;
  top: 20%;
  left: 5%;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(11, 29, 58, 0.1) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.accent-underline {
  position: relative;
}

.accent-underline::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(45, 212, 191, 0.3);
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-12deg);
}

.hero-image-wrapper {
  position: relative;
}

.floating-card-1 {
  animation: float 4s ease-in-out infinite;
}

.floating-card-2 {
  animation: float-delayed 5s ease-in-out infinite;
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(11, 29, 58, 0.25);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: #2DD4BF;
  border-radius: 2px;
  animation: scroll-wheel-anim 1.5s ease-in-out infinite;
}

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

.service-card {
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.06);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(11, 29, 58, 0.1);
  border-color: rgba(45, 212, 191, 0.3);
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  background: rgba(45, 212, 191, 0.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrap {
  background: #2DD4BF;
  transform: scale(1.05);
}

.service-accent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #2DD4BF, #5EEAD4);
  border-radius: 0 0 20px 20px;
  transition: width 0.4s ease;
}

.service-card:hover .service-accent-bar {
  width: 100%;
}

/* --- Why Us --- */
.why-feature {
  border-left: 2px solid rgba(45, 212, 191, 0.2);
  padding-left: 0;
  transition: border-color 0.3s ease;
}

.why-feature:hover {
  border-left-color: #2DD4BF;
}

/* --- Areas --- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.area-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.06);
  border-radius: 14px;
  padding: 16px 20px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0B1D3A;
  transition: all 0.25s ease;
}

.area-card:hover {
  border-color: #2DD4BF;
  background: rgba(45, 212, 191, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 29, 58, 0.06);
}

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

.testimonial-card {
  background: #fff;
  border: 1px solid rgba(11, 29, 58, 0.06);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(11, 29, 58, 0.08);
  border-color: rgba(45, 212, 191, 0.2);
}

.testimonial-quote-icon {
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.75;
  color: #0B1D3A;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2DD4BF, #5EEAD4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0B1D3A;
  flex-shrink: 0;
}

/* --- CTA Pattern --- */
.cta-pattern {
  background-image:
    linear-gradient(45deg, rgba(11, 29, 58, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(11, 29, 58, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(11, 29, 58, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(11, 29, 58, 0.05) 75%);
  background-size: 30px 30px;
  background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
}

/* --- Contact Form --- */
.contact-form-card {
  border: 1px solid rgba(11, 29, 58, 0.06);
}

.form-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0B1D3A;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(11, 29, 58, 0.12);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #0B1D3A;
  background: #fff;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.form-input:hover {
  border-color: rgba(45, 212, 191, 0.4);
}

.form-input:focus {
  border-color: #2DD4BF;
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
}

.form-input::placeholder {
  color: rgba(11, 29, 58, 0.3);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B1D3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
  cursor: pointer;
}

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

/* --- Mobile Menu --- */
.mobile-link {
  display: block;
  text-decoration: none;
}

/* --- Animations --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.02); }
}

@keyframes spin-slow {
  from { transform: rotate(45deg); }
  to { transform: rotate(405deg); }
}

@keyframes scroll-wheel-anim {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(8px); }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  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; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .areas-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-section {
    padding-bottom: 80px;
  }
  .shape-circle-1 {
    width: 300px;
    height: 300px;
  }
  .shape-circle-2, .shape-circle-3, .shape-rect-1, .shape-rect-2 {
    display: none;
  }
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .areas-grid {
    grid-template-columns: 1fr;
  }
  .hero-section h1 {
    font-size: 2.75rem;
  }
  .floating-card-1 {
    left: 0;
    bottom: -4px;
  }
  .floating-card-2 {
    right: 0;
    top: -4px;
  }
}
