/* 
   EXACT DESIGN SYSTEM FOR CAREJIN.IN CLONE
   Colors, Fonts, and Spacing precisely matched to analysis.
*/

:root {
    --primary-blue: #0a2c4a;
    --secondary-blue: #061c30;
    --primary-gold: #b4915a;
    --secondary-gold: #8e6e3d;
    --light-bg-gold: #fcf9f2;
    --text-black: #171717;
    --text-muted: #757575;
    --white: #ffffff;
    --border-gray: #d8d8d8;
    --transition-base: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--primary-blue) 0%, rgba(10, 44, 74, 0.6) 60%, rgba(10, 44, 74, 0) 100%);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background-color: var(--primary-blue);
    height: 78px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ca-logo-box {
    background-color: var(--white);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
}

.ca-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-size: 26px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-text .tagline {
    font-size: 15px;
    color: var(--white);
    font-weight: 400;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-base);
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-contact {
    display: flex;
    gap: 30px;
}

.contact-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-icon {
    font-size: 28px;
    color: var(--white);
}

.wa-icon {
    background: var(--primary-gold);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.contact-text .label {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.contact-text .value {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
    padding-top: 90px;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Gradient Overlay to match navbar */
.hero-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue) 10%, var(--primary-blue) 15%, rgba(10, 44, 74, 0.4) 60%, rgba(10, 44, 74, 0) 100%);
    z-index: 2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    font-size: 40px;
    animation: fadeIn 1s ease-out;
}

/* About Section */
.about {
    background: var(--white);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1.2;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.about-text p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about-illustration {
    flex: 0.8;
}

.about-illustration img {
    width: 100%;
    max-width: 450px;
}

/* Services Section - Dynamic Expand/Collapse */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    width: calc(33.333% - 20px);
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 4px 10px rgba(10, 44, 74, 0.1);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    height: fit-content;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(10, 44, 74, 0.15);
    border-color: var(--primary-gold);
}

.service-icon-bg {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.service-icon-bg i {
    font-size: 24px;
    color: var(--primary-gold);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 0px;
    color: var(--primary-blue);
    text-align: center;
    transition: var(--transition-base);
}

/* Desktop: keep hover behaviour */
@media (hover: hover) and (pointer: fine) {
    .service-card:hover h3 {
        margin-bottom: 20px;
        color: var(--primary-gold);
    }

    .service-card:hover .service-icon-bg {
        background-color: var(--primary-blue);
    }

    .service-card:hover .service-icon-bg i {
        color: var(--white);
    }

    .service-card:hover ul {
        max-height: 600px;
        opacity: 1;
    }
}

/* Active class used by JS for touch devices (iOS/Android) */
.service-card.active h3 {
    margin-bottom: 20px;
    color: var(--primary-gold);
}

.service-card.active .service-icon-bg {
    background-color: var(--primary-blue);
}

.service-card.active .service-icon-bg i {
    color: var(--white);
}

.service-card.active {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(10, 44, 74, 0.15);
    border-color: var(--primary-gold);
}

.service-card ul {
    list-style: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    width: 100%;
}

.service-card.active ul {
    max-height: 600px;
    opacity: 1;
}

.service-card ul li {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

/* Sectors Section */
.sectors {
    overflow: hidden;
    width: 100%;
}

.sectors-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 40px;
    padding: 10px 0;
}

.sectors-marquee-track {
    display: flex;
    width: max-content;
    animation: scrollMarquee 35s linear infinite;
}

.sectors-marquee-track:hover {
    animation-play-state: paused;
}

.marquee-group {
    display: flex;
    gap: 20px;
    padding-right: 20px;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.sector-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    color: var(--text-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-base);
    min-width: 220px;
    height: 120px;
    flex-shrink: 0;
}

.sector-item i {
    font-size: 30px;
    color: var(--primary-gold);
}

.sector-item:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.sector-item:hover i {
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--secondary-blue);
    padding: 80px 0 0;
    color: var(--white);
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 60px;
}

.footer-brand .brand {
    font-size: 24px;
    font-weight: 700;
    display: block;
}

.footer-brand .tagline {
    font-size: 14px;
    opacity: 0.8;
}

.footer-desc {
    margin: 20px 0;
    opacity: 0.8;
}

.wa-link {
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-nav h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--white);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-nav ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    opacity: 0.9;
}

.footer-contact i {
    margin-top: 5px;
}

.footer-bottom {
    background-color: #0c3d5e;
    padding: 20px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 56px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .about-flex {
        flex-direction: column;
    }

    .service-card {
        width: calc(50% - 15px);
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .nav-contact {
        display: none;
    }
}

@media (max-width: 768px) {

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        background-color: var(--primary-blue);
        padding: 20px 0;
        text-align: center;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .section-title {
        font-size: 36px;
    }

    .service-card {
        width: 100%;
    }
}

/* WhatsApp Modal */
.wa-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.wa-modal-overlay.active {
    display: flex;
}

.wa-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wa-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.wa-close-btn:hover {
    color: var(--text-black);
}

.modal-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-gold);
    font-weight: 600;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: var(--text-black);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.wa-submit-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: var(--transition-base);
    margin-top: 10px;
}

.wa-submit-btn:hover {
    background: var(--secondary-blue);
}