/*
Theme Name: Kare Solutions Professional
Version: 2.7
*/

:root {
    --primary-blue: #0052CC;
    --primary-red: #E31937;
    --text-dark: #1A202C;
    --text-light: #718096;
    --bg-light: #F7FAFC;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: white;
}

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

header {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    width: 150px !important;
    height: auto !important;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .logo-img { width: 110px !important; max-height: 70px; }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

nav a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
}

.btn-contact {
    background: linear-gradient(135deg, var(--primary-red), #C41427);
    color: white !important;
    padding: 0.7rem 1.8rem !important;
    border-radius: 8px;
    font-weight: 600;
}

.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #0066FF 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1.1rem 2.2rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), #C41427);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(227,25,55,0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
}

/* Hero images CSS removed - using text-only hero */

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: var(--bg-light);
}

h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

h2 .highlight {
    color: var(--primary-red);
}

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

.service-card {
    background: white;
    padding: 2.7rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-top: 5px solid var(--primary-blue);
    transition: all 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-top-color: var(--primary-red);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 15px;
}

.service-card a {
    color: var(--primary-blue);
    font-weight: 600;
}

.page-hero {
    background: linear-gradient(135deg, #001A4D 0%, var(--primary-blue) 55%, var(--primary-red) 100%);
    color: white;
    padding: 5rem 0;
    position: relative;
    box-shadow: inset 0 -4px 0 var(--primary-red);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 12, 40, 0.45);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.page-content {
    padding: 4rem 0;
}

.page-content h2 {
    font-size: 28px;
    margin: 2rem 0 1rem;
}

.page-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.page-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    margin: 2rem 0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid #E2E8F0;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0,82,204,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group button {
    background: linear-gradient(135deg, var(--primary-red), #C41427);
    color: white;
    padding: 1.1rem 2.2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(227,25,55,0.2);
}

.form-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(227,25,55,0.3);
}

footer {
    background: linear-gradient(135deg, #1A202C, #2D3748);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--primary-red);
}

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

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-red);
}

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

.footer-section li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #CBD5E0;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    color: #CBD5E0;
    font-size: 13px;
}

@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

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

    h2 {
        font-size: 28px;
    }

    nav ul {
        gap: 1rem;
        font-size: 14px;
    }

    .form-container {
        padding: 2rem;
    }
}

.hero, .hero-home {
background-size: cover;
background-position: center;
color: #fff;
}
.hero-overlay {
background: rgba(0,0,0,0.55);
padding: 100px 20px;
text-align: center;
}
.services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 30px;
}
.service-card {
background: #fff;
padding: 25px;
border-radius: 12px;
box-shadow: 0 10px 25px rgba(0,0,0,0.05);
transition: 0.3s;
}
.service-card:hover {
transform: translateY(-8px);
}
.service-card img {
width:100%;
border-radius:10px;
margin-bottom:15px;
}
.fade-in {
opacity:0;
transform: translateY(30px);
animation: fadeInUp 1s ease forwards;
}
@keyframes fadeInUp {
to {
opacity:1;
transform: translateY(0);
}
}


/* Slider */
.hero-home.slider {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-home .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

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

.hero-home::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.hero-home .hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 20vh;
}

/* Inner hero fix */
.hero {
    position: relative;
    color: white;
    padding: 5rem 0;
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 85, 0.65);
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero p {
    opacity: 0.95;
}


/* INNER HERO FIX */
.hero {
    position: relative;
    color: #fff;
    padding: 5rem 0;
    background: linear-gradient(135deg,#0f2a44 0%,#1f4e79 60%,#2f6fa3 100%);
}
.hero::before{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.35);
}
.hero .container,.hero-overlay{position:relative;z-index:2;}

/* SLIDER */
.hero-slide{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity .8s ease;
}
.hero-slide.active{opacity:1;}
.hero-home{position:relative;overflow:hidden;}
.hero-home::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(0,0,0,0.4);
}

/* FAQ */
.faq-item p{display:none;}
.faq-item.active p{display:block;}

/* FORCE HERO OVERLAY FIX */
.hero::before{
 content:"";
 position:absolute;
 inset:0;
 background:linear-gradient(135deg,rgba(15,42,68,0.85),rgba(31,78,121,0.75)) !important;
}
.hero{position:relative;color:#fff;}
.hero > *{position:relative;z-index:2;}

/* SLIDER FIX */
.hero-slide{opacity:0;position:absolute;inset:0;background-size:cover;background-position:center;}
.hero-slide.active{opacity:1;}

/* === FAQ === */
.faq .faq-list { max-width: 860px; margin: 2rem auto 0; }
.faq-item {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.3s;
}
.faq-item h4 {
    font-size: 17px;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dark);
    margin: 0;
}
.faq-item h4::after {
    content: "+";
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 400;
    transition: transform 0.3s;
}
.faq-item.active h4::after { content: "−"; }
.faq-item.active { border-color: var(--primary-blue); box-shadow: 0 8px 20px rgba(0,82,204,0.08); }
.faq-item p {
    display: none;
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}
.faq-item.active p { display: block; }

/* === Sharper inner page hero (override prior rules) === */
.page-hero {
    background: linear-gradient(135deg, #001A4D 0%, #0052CC 55%, #E31937 100%) !important;
    color: #fff !important;
    padding: 5rem 0 !important;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute; inset: 0;
    background: rgba(0, 10, 35, 0.35);
    z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 3px 14px rgba(0,0,0,0.45);
}
