/* ==========================================
   AGIFA - Home / Landing Page CSS
   Note: hero-section and CTA background images are set inline
         via CSS custom properties --hero-bg-url / --cta-bg-url
         to allow Twig's asset() function to resolve the paths.
   ========================================== */

:root {
    --primary-color: #28a745;
    --primary-dark: #218838;
    --alternative-color: #dc3545;
    /* URLs injected by template */
    --hero-bg-url: none;
    --cta-bg-url: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---- Navbar ---- */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: white !important;
    font-weight: 500;
}

/* ---- Hero ---- */
.hero-section {
    background:
        linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(33, 136, 56, 0.15) 100%),
        var(--hero-bg-url) center / cover no-repeat;
    color: white;
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom / cover;
    opacity: 0.3;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.3rem;
    opacity: 0.95;
}

.platform-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    margin: 5px;
    backdrop-filter: blur(10px);
}

/* ---- Feature cards ---- */
.feature-card {
    border: none;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

/* ---- Pricing cards ---- */
.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
    transform: translateY(-5px);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 500;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    color: white;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

/* ---- Section typography ---- */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* ---- CTA section ---- */
.cta-section {
    background:
        linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(33, 136, 56, 0.15) 100%),
        var(--cta-bg-url) center / cover no-repeat;
    color: white;
}

/* ---- Footer ---- */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1.5rem;
}

footer h5,
footer h6 {
    color: white;
    margin-bottom: 1rem;
}

footer p              { color: rgba(255, 255, 255, 0.8) !important; }
footer .text-muted    { color: rgba(255, 255, 255, 0.7) !important; }
footer a              { color: rgba(255, 255, 255, 0.8); text-decoration: none; transition: color 0.3s; }
footer a:hover        { color: var(--primary-color); }

/* ---- Newsletter form ---- */
.newsletter-form .form-control-pill {
    border-radius: 50px;
    border: none;
    padding: 12px 25px;
}

.btn-newsletter-submit {
    background-color: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    border: none;
    padding: 12px 30px;
    transition: all 0.3s;
    min-width: 150px;
}

.btn-newsletter-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
    color: var(--primary-color);
}

.alert-success-cta {
    background-color: rgba(255, 255, 255, 0.95);
    color: #155724;
    border: none;
    border-radius: 10px;
}

.alert-warning-cta {
    background-color: rgba(255, 255, 255, 0.95);
    color: #856404;
    border: none;
    border-radius: 10px;
}

.py-section { padding: 100px 0; }

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .navbar-nav .nav-item              { margin-bottom: 0.5rem; }
    .navbar-nav .nav-item.ms-3,
    .navbar-nav .nav-item.ms-2         { margin-left: 0 !important; }
    .navbar-nav .btn                   { width: 100%; text-align: center; justify-content: center; display: inline-flex; align-items: center; }
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.2rem; }
    .section-title   { font-size: 1.8rem; }
}
