/**
 * EVERRISELABS MAIN STYLES
 * Global styles for all pages
 */

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a90e2;
  --secondary-color: #764ba2;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(to bottom, #fafbfc 0%, #f5f7fa 100%);
  background-attachment: fixed;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}

/* Premium section titles */
.section h2.text-center {
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section h2.text-center::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: var(--text-light);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* ===== CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
  position: relative;
}

#services.section {
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
}

/* ===== CARDS ===== */
.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.required {
  color: var(--error-color);
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 140px 20px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 40px;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.3px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 50px;
}

.service-card {
  background: #f8f9ff;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(22, 63, 127, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(22, 63, 127, 0.12);
}

.service-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22, 63, 127, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.service-icon {
  width: 32px;
  height: 32px;
  color: #163f7f;
}

.service-icon-wrapper img.service-icon {
  width: auto;
  height: 40px;
  max-width: 48px;
  object-fit: contain;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.service-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card .btn {
  margin-top: auto;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 6px;
  width: auto;
}

.service-price {
  font-size: 1rem;
  font-weight: 600;
  color: var(--success-color);
  margin: 16px 0;
  line-height: 1.5;
}

/* Special styling for Dealgine card */
.service-card:has(.service-logo) {
  background: #f0f4ff;
}

.service-card:has(.service-logo) .service-icon-wrapper {
  background: rgba(22, 63, 127, 0.1);
}

.service-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 50px;
  margin-top: 60px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(74, 144, 226, 0.1);
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.step:nth-child(1) {
  animation-delay: 0.1s;
}

.step:nth-child(2) {
  animation-delay: 0.2s;
}

.step:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.15);
  border-color: rgba(74, 144, 226, 0.3);
}

.step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  );
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 30px;
  position: relative;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    #667eea 0%,
    #764ba2 100%
  );
  opacity: 0.3;
  filter: blur(10px);
  z-index: -1;
  transition: all 0.4s ease;
}

.step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.step:hover .step-number::before {
  opacity: 0.5;
  filter: blur(15px);
}

.step h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.3;
}

.step p {
  font-size: 1rem;
  color: #666;
  line-height: 1.7;
  max-width: 100%;
}

/* Connector line between steps (desktop only) */
@media (min-width: 769px) {
  .steps {
    position: relative;
  }
  
  .steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(102, 126, 234, 0.3) 20%,
      rgba(102, 126, 234, 0.3) 80%,
      transparent 100%
    );
    z-index: 0;
  }
  
  .step {
    z-index: 1;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-dark);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 80px;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: white;
  text-decoration: underline;
  margin: 0 10px;
  transition: opacity 0.3s ease;
}

footer a:hover {
  opacity: 0.8;
}

footer .footer-links {
  margin-top: 10px;
  font-size: 14px;
}

footer .footer-links span {
  margin: 0 5px;
  opacity: 0.7;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .hero {
    padding: 100px 20px 80px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .section {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }

  .service-card {
    padding: 28px 20px;
  }

  .service-icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
  }

  .service-icon {
    width: 28px;
    height: 28px;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .steps::before {
    display: none;
  }
  
  .step {
    padding: 32px 24px;
  }
  
  .step-number {
    width: 70px;
    height: 70px;
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .section h2.text-center {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .section h2.text-center::after {
    width: 50px;
    bottom: -12px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}
.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}
.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}
