/* Appizum Website Styles */
:root {
    --primary-color: #003261;
    --primary-dark: #002548;
    --primary-light: #004d8c;
    --secondary-color: #004d8c;
    --header-top-bg: #002548;
    --header-nav-bg: #003261;
    --gradient-primary: linear-gradient(135deg, #003261 0%, #004d8c 100%);
    --gray-50: #f9fafb;
    --gray-200: #e5e7eb;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
}

body > .container,
body > section {
    flex: 1;
}

footer, .site-footer {
    margin-top: auto;
    width: 100%;
}

/* Theme overrides */
.text-primary { color: var(--primary-color) !important; }
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero */
.hero-section {
    background: var(--gradient-primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

body:not(.home-page) .hero-section,
body:not(.home-page) .page-hero,
body.contact-page .contact-hero {
    background: var(--header-nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body:not(.home-page) .hero-section h1,
body:not(.home-page) .hero-section .display-4,
body:not(.home-page) .hero-section .display-5,
body:not(.home-page) .hero-section .lead,
body.contact-page .contact-hero h1,
body.contact-page .contact-hero .display-4,
body.contact-page .contact-hero .lead {
    color: #fff;
}

body.home-page .hero-section h1,
body.home-page .hero-section .lead {
    color: #fff;
}

.hero-section .lead,
.page-hero .lead,
.contact-hero .lead {
    color: rgba(255, 255, 255, 0.92);
}

/* Home intro */
.home-intro {
    background: #fff;
}

.home-intro__title {
    color: var(--primary-color);
    font-weight: 700;
}

.home-intro__content p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Stats */
.stat-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* About page */
.about-intro p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.about-cta-card {
    background: var(--primary-color);
}

/* Legal pages use same hero rules as other inner pages */

.legal-section__heading {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.legal-section__text,
.legal-section__list {
    font-size: 1rem;
    line-height: 1.8;
}

.legal-section__list {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.legal-section__list li {
    margin-bottom: 0.5rem;
}

.legal-last-updated {
    margin-bottom: 2rem;
}

.legal-contact a {
    color: var(--primary-color);
    text-decoration: none;
}

.legal-contact a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.75);
    padding: 4.5rem 0 0;
}

.site-footer__shape {
    position: absolute;
    top: 0;
    width: 220px;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
}

.site-footer__shape--left {
    left: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.12) 55%, transparent 56%);
    clip-path: polygon(0 0, 55% 0, 35% 100%, 0 100%);
}

.site-footer__shape--right {
    right: 0;
    background: linear-gradient(225deg, transparent 40%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.12) 55%, transparent 56%);
    clip-path: polygon(45% 0, 100% 0, 100% 100%, 65% 100%);
}

.site-footer__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.site-footer__title,
.site-footer__heading {
    color: #fff;
    font-weight: 700;
}

.site-footer__heading {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.site-footer__text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.75;
}

.site-footer__social {
    display: flex;
    gap: 0.65rem;
}

.site-footer__social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.site-footer__social a:hover {
    border-color: #fff;
    background: rgba(255, 255,  255, 0.12);
}

.site-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__links li {
    margin-bottom: 0.65rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.25s ease;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__chevron {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.8rem;
}

.site-footer__address {
    margin-bottom: 1.25rem;
}

.site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.site-footer__contact-item:last-child {
    margin-bottom: 0;
}

.site-footer__contact-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
}

.site-footer__label {
    display: block;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
    line-height: 1.3;
}

.site-footer__contact-body a {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-word;
}

.site-footer__contact-body a:hover {
    color: #fff;
}

.site-footer__icon {
    color: #fff;
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.site-footer__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.25rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.site-footer__bar-end {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: flex-end;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer__legal a:hover {
    color: #fff;
}

.site-footer__top {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.site-footer__top:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

@media (max-width: 991.98px) {
    .site-footer__bar {
        justify-content: center;
        text-align: center;
    }
    .site-footer__copyright {
        width: 100%;
    }
    .site-footer__bar-end {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    .display-4 {
        font-size: 2rem;
    }
    .display-5 {
        font-size: 1.65rem;
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .stat-card {
        padding: 18px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .about-page-content {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    .about-intro p {
        font-size: 1rem;
    }
    .home-intro__content p {
        font-size: 1rem;
    }
    body.home-page .hero-slider .btn-lg {
        display: block;
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    body.home-page .hero-slider .col-lg-6 .fa-10x {
        font-size: 4rem !important;
        margin-top: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .industries-cta-card .btn,
    .services-cta-card .btn,
    .about-cta-card .btn {
        width: 100%;
        max-width: 280px;
    }
    .industry-card-inner .btn,
    .service-card-item .btn {
        width: 100%;
    }
    .industry-card-inner .text-end {
        text-align: center !important;
    }
}
