/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 6rem 0 4rem;
    margin-top: 80px;
    border-radius: 14px;
    margin-left: 20px;
    margin-right: 20px;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: white;
}

.services-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.service-cta {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.service-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.service-cta.special {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.service-cta.special:hover {
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

/* Why Choose Us Section */
.why-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.why-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #1f2937;
}

/* Why Choose Us Section with Gradient */
.why-section-gradient {
    padding: 6rem 0;
    background: #f8fafc;
    margin: 0 20px;
    border-radius: 14px;
}

.why-section-gradient .container {
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      border-radius: 14px;
      padding: 4rem 2rem;
      color: white;
      box-sizing: border-box;
    }
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 14px;
    padding: 4rem 2rem;
    color: white;
}

.why-section-gradient h2 {
      text-align: center;
      font-size: 2.5rem;
      margin-bottom: 4rem;
      color: white;
      font-weight: 700;
      overflow-wrap: anywhere;
      padding: 0 8px;
    }
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: white;
    font-weight: 700;
}

.why-section-gradient .why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-section-gradient .why-item {
    text-align: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.why-section-gradient .why-item h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.why-section-gradient .why-item p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.why-section-gradient .why-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.why-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.why-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.why-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.why-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: white;
}

.process-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #1f2937;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

.process-step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.process-step p {
    color: #6b7280;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1f2937, #374151);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
        margin-left: 15px;
        margin-right: 15px;
        border-radius: 12px;
    }
    
    .why-section-gradient {
        margin: 0 15px;
        border-radius: 12px;
    }
    
    .why-section-gradient .container {
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      border-radius: 14px;
      padding: 4rem 2rem;
      color: white;
      box-sizing: border-box;
    }
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }
    
    .why-section-gradient .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-section {
        padding: 4rem 0;
    }
    
    .services-section h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .why-section {
        padding: 4rem 0;
    }
    
    .why-section h2 {
        font-size: 2rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-section {
        padding: 4rem 0;
    }
    
    .process-section h2 {
        font-size: 2rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-section {
        padding: 4rem 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        border-radius: 10px;
        margin-left: 12px;
        margin-right: 12px;
        padding: 3rem 0 2.5rem;
    }
    
    .why-section-gradient {
        margin: 0 12px;
        border-radius: 10px;
    }
    
    .why-section-gradient .container {
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      border-radius: 14px;
      padding: 4rem 2rem;
      color: white;
      box-sizing: border-box;
    }
        padding: 2.5rem 1.25rem;
        border-radius: 10px;
    }
    
    .hero-section h1 {
        font-size: 1.9rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-section h2,
    .why-section h2,
    .process-section h2,
    .cta-section h2 {
        font-size: 1.7rem;
    }
    
    .service-card,
    .why-item,
    .process-step {
        padding: 1.25rem;
    }
}

@media (max-width: 320px) {
    .hero-section h1 {
        font-size: 1.7rem;
        line-height: 1.4;
    }
    
    .hero-section {
        border-radius: 8px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .why-section-gradient {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .why-section-gradient .container {
      background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
      border-radius: 14px;
      padding: 4rem 2rem;
      color: white;
      box-sizing: border-box;
    }
        padding: 2rem 1rem;
        border-radius: 8px;
    }
}
/* Fix mobile nav background */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white !important;
    }
}

/* Homepage services grid: 2x2 on desktop */
@media (min-width: 769px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Services grid polish */
.services-section .services-grid { gap: 1.5rem; }
.services-section .service-card { padding: 1.75rem; display:flex; flex-direction:column; height:100%; }
.services-section .service-features { flex: 1 1 auto; }
.services-section .service-cta { margin-top: auto; }
.services-section .service-icon { font-size: 2.25rem; }
.services-section .service-card h3 { font-size: 1.35rem; }

@media (max-width: 768px) {
  .services-section .services-grid { gap: 1.25rem; }
  .services-section .service-icon { font-size: 2rem; }
  .services-section .service-card h3 { font-size: 1.2rem; }
}
}
