/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  line-height: 1;
  gap: var(--space-xs);
}

/* Primary Button (Authoritative Dark) */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.25);
}

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

/* Secondary Button (Royal Blue interactive) */
.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-bg-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 39, 71, 0.25);
}

/* Accent Outline Button (Silver-metallic line style) */
.btn-accent-outline {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-accent);
}

.btn-accent-outline:hover {
  background-color: rgba(192, 192, 192, 0.15);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Call Now CTA Button (With subtle glow pulse animation) */
.btn-call {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-bg-white);
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.btn-call:hover::before {
  left: 120%;
}

.btn-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(30, 58, 138, 0.4);
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-accent-light);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(30, 58, 138, 0.2);
}

/* Why Choose Us feature cards */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  background-color: rgba(30, 58, 138, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.feature-card p {
  font-size: 0.925rem;
  margin-bottom: 0;
}

/* Service overview cards */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: background-color var(--transition-normal);
}

.service-card:hover .service-card-icon {
  background-color: var(--color-secondary);
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
}

.service-card h3 {
  margin-bottom: var(--space-sm);
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform var(--transition-fast);
}

.service-card-link:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   STAT COUNTERS
   ========================================================================== */
.stats-bar {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-bg-dark) 100%);
  color: var(--color-text-light);
  padding: var(--space-xxl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
  display: block;
}

.stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-light-muted);
}

/* ==========================================================================
   TESTIMONIAL SLIDER
   ========================================================================== */
.testimonial-section {
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.slider-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform var(--transition-normal);
  width: 100%;
}

.testimonial-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: var(--space-md);
  text-align: center;
  box-sizing: border-box;
}

.testimonial-quote-box {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-accent-light);
}

.testimonial-quote-box::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 30px;
  height: 30px;
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-accent-light);
  border-right: 1px solid var(--color-accent-light);
}

.testimonial-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-style: italic;
  color: var(--color-text-dark);
  line-height: 1.7;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.testimonial-author-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.testimonial-service-tag {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* Slider indicators */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: rgba(30, 58, 138, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--color-secondary);
  transform: scale(1.3);
}

/* ==========================================================================
   INTERACTIVE GALLERY GRID & LIGHTBOX
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.btn-filter {
  background-color: var(--color-bg-light);
  color: var(--color-text-muted);
  border: 1px solid var(--color-accent-light);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-filter:hover,
.btn-filter.active {
  background-color: var(--color-primary);
  color: var(--color-bg-white);
  border-color: var(--color-primary);
}

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

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

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(15, 39, 71, 0.9) 0%, rgba(15, 39, 71, 0.2) 70%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  color: var(--color-bg-white);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.gallery-item-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* Accessible Lightbox System */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 19, 36, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-premium);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
  color: var(--color-bg-white);
  margin-top: var(--space-md);
  font-family: var(--font-headings);
  font-size: 1.1rem;
  text-align: center;
}

.btn-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-bg-white);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
}

.btn-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--color-bg-white);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.btn-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-lightbox-prev { left: -70px; }
.btn-lightbox-next { right: -70px; }

@media (max-width: 1080px) {
  .btn-lightbox-prev { left: 10px; }
  .btn-lightbox-next { right: 10px; }
  .btn-lightbox-close { right: 10px; top: -50px; }
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.form-control {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-md);
  color: var(--color-text-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.15);
  background-color: var(--color-bg-white);
}

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

/* Validation status classes */
.form-group.error .form-control {
  border-color: var(--color-danger);
  background-color: #FEF2F2;
}

.form-group.error .form-label {
  color: var(--color-danger);
}

.form-error-msg {
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: 4px;
  font-weight: 500;
  display: none;
}

.form-group.error .form-error-msg {
  display: block;
}

/* ==========================================================================
   ADDED FOR PHASE 2: AUDIT & PRODUCTION OPTIMIZATIONS
   ========================================================================== */

/* Floating WhatsApp Conversions Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0px rgba(37, 211, 102, 0.5);
  z-index: 1000;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20BA56;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0px rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), 0 0 0 0px rgba(37, 211, 102, 0);
  }
}

/* Above-the-fold Trust Cards Grid */
.hero-trust-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  width: 100%;
  margin-top: var(--space-xl);
}

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

.hero-trust-card {
  background: rgba(15, 39, 71, 0.5);
  border: 1px solid rgba(192, 192, 192, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.hero-trust-card:hover {
  border-color: var(--color-accent);
  background: rgba(15, 39, 71, 0.8);
}

.hero-trust-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(30, 58, 138, 0.4);
  color: var(--color-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-trust-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.hero-trust-card-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-trust-card-title {
  font-family: var(--font-headings);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-bg-white);
}

.hero-trust-card-desc {
  font-size: 0.725rem;
  color: var(--color-text-light-muted);
}

/* Google Reviews Cards Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.review-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  position: relative;
}

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

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-avatar {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
}

.review-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.review-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.review-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.google-logo-icon {
  width: 18px;
  height: 18px;
}

.review-stars {
  display: flex;
  color: #F59E0B; /* Gold stars */
  font-size: 0.9rem;
  gap: 1px;
}

.review-body {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex-grow: 1;
}

.review-service-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  color: var(--color-secondary);
  font-weight: 600;
  background-color: rgba(30, 58, 138, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.review-service-verified svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* Double columns for upgraded Contact Form fields */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 576px) {
  .form-row-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}
