/* ==========================================================================
   Shared components (header, footer, SEO/GEO page blocks).
   Loaded on every public page after Bootstrap; cached by the browser.
   ========================================================================== */

/* ---- Footer (moved from footer.blade.php inline <style>) ---- */
/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1a3a2d, #2d7a4e);
    color: white;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section .footer-heading {
    color: #5bc0be;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: #5bc0be;
    border-radius: 2px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-section ul li:hover {
    transform: translateX(-5px);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    color: #5bc0be;
    transform: translateX(-3px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin: 0;
}

/* Contact Icons */
.contact-icon {
    width: 16px;
    height: 16px;
    color: #5bc0be;
    flex-shrink: 0;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    position: relative;
}

.social-links::before,
.social-links::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.social-links::before {
    left: 0;
}

.social-links::after {
    right: 0;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(91, 192, 190, 0.2);
    border-color: #5bc0be;
    box-shadow: 0 8px 25px rgba(91, 192, 190, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.2);
    color: #5bc0be;
}

/* Social Tooltip */
.social-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid rgba(0, 0, 0, 0.8);
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Copyright */
footer p {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 1rem;
    }

    .footer-sections {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .social-links::before,
    .social-links::after {
        width: 20%;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0 1rem;
    }

    .footer-sections {
        gap: 1.5rem;
    }

    .social-links {
        margin: 2rem 0;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}

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

.social-link:hover {
    animation: float 2s ease-in-out infinite;
}

/* ---- WhatsApp floating button (moved from master.blade.php) ---- */
.wa-float {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform .25s ease, box-shadow .25s ease;
    animation: wa-pulse 2s infinite;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55);
    }

    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .wa-float {
        bottom: 16px;
        left: 16px;
        width: 50px;
        height: 50px;
    }
}

/* ---- Header: logo, CTA, language switch (logo styles moved from nav.blade.php) ---- */
.logo-container { text-decoration: none; }
.logo-image {
    width: 90px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.logo-image:hover { transform: scale(1.1); }
@media (max-width: 768px) {
    .logo-image { width: 45px; height: 45px; }
}
.nav-links .nav-cta {
    background: var(--primary-gradient);
    color: #fff !important;
    padding: 0.45rem 1rem;
    border-radius: 25px;
    white-space: nowrap;
}
.nav-links .nav-cta:hover { opacity: 0.9; color: #fff; }
.lang-switch { text-decoration: none; display: inline-block; font-weight: 600; }

.footer-section .footer-heading { font-size: 1.2rem; }

/* ---- Accessibility ---- */
.skip-link {
    position: absolute;
    inset-inline-start: 1rem;
    top: -100px;
    z-index: 100001;
    background: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}
.skip-link:focus { top: 1rem; }

/* ---- Page header: breadcrumb + H1 + direct answer (GEO) ---- */
main .page-top { padding-top: 6.5rem; }
.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 0 1.25rem;
    font-size: 0.9rem;
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '/'; margin-inline-end: 0.35rem; opacity: 0.5; }
.breadcrumbs a { color: var(--primary-color); text-decoration: none; }
.breadcrumbs [aria-current] { opacity: 0.75; }

.answer-lead {
    max-width: 860px;
    margin: 0 auto 2.5rem;
    padding: 1.1rem 1.4rem;
    background: var(--card-bg);
    border-inline-start: 4px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--text-color);
    text-align: start;
}

/* ---- Landing pages (service / sector / author / request) ---- */
.landing { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem 4rem; }
.landing h1.section-title { margin-bottom: 1.25rem; }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: start; }
@media (max-width: 992px) { .landing-grid { grid-template-columns: 1fr; } }
.landing-body { font-size: 1.05rem; line-height: 1.9; }
.landing-body h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--primary-color); }
.landing-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.landing-body ul, .landing-body ol { padding-inline-start: 1.4rem; margin-bottom: 1rem; }
.landing-body p { margin-bottom: 1rem; }
.landing-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.landing-body th, .landing-body td { border: 1px solid rgba(0,0,0,0.1); padding: 0.6rem; }
.landing-image { width: 100%; height: auto; border-radius: 14px; margin-bottom: 1.5rem; aspect-ratio: 16 / 9; object-fit: cover; }

.feature-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.feature-chips li {
    background: rgba(45, 122, 78, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.92rem;
}

.side-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: sticky;
    top: 6.5rem;
}
.side-card h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.side-card .btn-block {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.8rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
}
.btn-solid { background: var(--primary-gradient); color: #fff; }
.btn-solid:hover { color: #fff; opacity: 0.92; }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); }
.btn-outline:hover { background: var(--primary-color); color: #fff; }
.btn-wa { background: #0e7a3e; color: #fff; } /* WCAG AA: 5.4:1 with white text */
.btn-wa:hover { color: #fff; opacity: 0.92; }
.meta-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.meta-list li { padding: 0.4rem 0; border-bottom: 1px dashed rgba(0,0,0,0.1); display: flex; justify-content: space-between; gap: 1rem; }

.qa-list { margin-top: 2.5rem; }
.qa-list h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.qa-list details {
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    padding: 0.9rem 1.2rem;
}
.qa-list summary { cursor: pointer; font-weight: 600; }
.qa-list details p { margin: 0.75rem 0 0; line-height: 1.8; }

.link-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 1rem; }
.link-cards a {
    display: block;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem 1.2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}
.link-cards a:hover { transform: translateY(-3px); color: var(--primary-color); }

/* ---- Author box (E-E-A-T) ---- */
.author-box {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1.1rem 1.3rem;
    margin: 2rem 0;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box .author-name { font-weight: 700; margin: 0; }
.author-box .author-role { opacity: 0.8; margin: 0 0 0.25rem; font-size: 0.95rem; }
.author-box p { margin: 0; }

/* ---- Feasibility request form ---- */
.request-form .form-label { font-weight: 600; }
.request-form .form-control, .request-form .form-select { border-radius: 10px; padding: 0.65rem 0.9rem; }
.request-form .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.request-includes { list-style: none; padding: 0; counter-reset: step; }
.request-includes li {
    counter-increment: step;
    position: relative;
    padding: 0.75rem 0;
    padding-inline-start: 3rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.request-includes li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: 0.7rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.request-includes strong { display: block; }
.alert-box { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.25rem; }
.alert-box.success { background: #d4edda; color: #155724; }
.alert-box.error { background: #f8d7da; color: #721c24; }

/* ---- LTR (English) adjustments ---- */
[dir="ltr"] .footer-section ul li:hover,
[dir="ltr"] .footer-section a:hover { transform: translateX(5px); }
[dir="ltr"] .footer-section .footer-heading::after { right: auto; left: 0; }
[dir="ltr"] .wa-float { left: auto; right: 24px; }

/* ---- Feasibility request page layout ---- */
.request-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 2.5rem; align-items: start; }
@media (max-width: 992px) { .request-grid { grid-template-columns: 1fr; } }
.request-details h2 { font-size: 1.4rem; margin: 1.75rem 0 0.75rem; color: var(--primary-color); }
.request-details h2:first-child { margin-top: 0; }
.request-steps, .request-why { padding-inline-start: 1.3rem; line-height: 1.9; }
.request-card { top: 6rem; }

/* ---- Generic CTA band + blog card links ---- */
.cta-band {
    background: var(--section-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}
.cta-band h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.cta-band p { margin-bottom: 1.25rem; }
.blog-title a { color: inherit; text-decoration: none; }
.blog-title a:hover { color: var(--primary-color); }

/* ---- Hero background: smaller file on phones ---- */
@media (max-width: 800px) {
    .hero {
        background-image: linear-gradient(120deg, rgba(15, 32, 39, 0.85), rgba(32, 58, 67, 0.85), rgba(44, 83, 100, 0.85)),
            url('../images/hero-bg-800.webp');
    }
}
