@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');
@import 'variables.css';

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #eaeff5;
    /* Light greyish blue for outer background */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Wrapper - The "Boxed" Look */
.page-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: var(--white);
    position: relative;
    /* Fixed overlap: changed from absolute to relative to push content down */
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Added slight shadow for depth */
}

.top-bar {
    background-color: #f8f9fa;
    /* Light gray background */
    position: relative;
    padding: 10px 0;
    font-size: 0.9rem;
    overflow: hidden;
    /* Ensures no scrollbar if pseudo extends */
}

/* Create the Blue Background Shape */
.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    clip-path: polygon(0 0, 42% 0, 43% 100%, 0 100%);
    z-index: 1;
}

/* Page Header */
.page-header {
    background-color: var(--primary-dark);
    padding: 50px 0 50px;
    color: white;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .page-header {
        padding: 40px 0 40px;
    }
}

/* Hero Section */
.hero-section {
    padding: 50px 0;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
    /* Parallax effect for premium feel */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f2b62 0%, #070620 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 40px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 991px) {
    .hero-section {
        padding: 40px 0 40px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }
}

/* Ensure content sits above the background */
.top-bar .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar .top-info {
    color: var(--white);
    /* Text on Blue background */
}

.top-bar .social-links a {
    color: var(--primary-color);
    /* Icons on White background */
    margin-left: 15px;
    transition: color 0.3s ease;
}

.top-bar .social-links a:hover {
    color: var(--accent-color);
}

.top-info span {
    margin-right: 20px;
}

.main-nav {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
    /* Ensured white background */
}

.logo img {
    height: 60px;
    width: auto;
    /* Adjust based on actual logo */
}

@media (max-width: 991px) {
    .logo img {
        height: 50px;
    }
}

/* Placeholder for Logo if image missing */
.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--primary-color);
    /* Dark blue text for better contrast on white */
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

/* Service Grid Styles */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

/* Home Services Grid */
.services-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-media {
    width: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background-color: #e0e0e0;
}

.service-media div[style*="height"] {
    width: 100%;
    background-color: #ddd !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon for the placeholder */
.service-media div[style*="height"]::after {
    content: '\f03e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #bbb;
    font-size: 3rem;
}

@media (max-width: 991px) {
    .service-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 50px;
    }

    .service-media {
        order: -1;
        width: 100% !important;
    }

    /* Target the placeholder div more broadly */
    .service-media div[style*="height"] {
        height: 250px !important;
    }
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-content {
    padding: 30px;
}

/* FAQ Styles */
.faq-section {
    padding: 80px 0;
}

.accordion-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.accordion-header {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.accordion-content.active {
    padding-bottom: 20px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f2b62 0%, #1a1a1a 100%);
    color: #e0e0e0;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.footer-section p {
    line-height: 1.8;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    white-space: nowrap;
}

.footer-section ul li a {
    color: #b0b0b0;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-section ul li i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}

.footer-logo {
    margin-bottom: 15px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-color);
    margin: 0 10px;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white);
    border: 2px solid var(--accent-color);
}

.btn-accent:hover {
    background-color: var(--white);
    color: var(--accent-color);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.contact-section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-icon {
    background: var(--light-bg);
    padding: 15px;
    border-radius: 50%;
    color: var(--accent-color);
    margin-right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-info-item:hover .contact-info-icon {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.contact-form-card {
    background: white;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border-radius: 15px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 194, 203, 0.1);
}

@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form-card {
        padding: 30px 20px;
    }
}

/* WhatsApp CTA Section */
.whatsapp-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.whatsapp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    opacity: 0.05;
}

.whatsapp-cta .container {
    position: relative;
    z-index: 1;
}

.whatsapp-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.whatsapp-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-whatsapp {
    background-color: #25d366;
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    border: none;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
    background-color: #20ba5a;
    color: white;
}

.btn-whatsapp i {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .whatsapp-cta {
        padding: 60px 20px;
    }

    .whatsapp-cta h2 {
        font-size: 2rem;
    }
}

/* Responsive Styles */
@media (max-width: 991px) {
    .top-bar {
        background: var(--primary-color);
        clip-path: none;
        overflow: visible;
        text-align: center;
    }

    .top-bar::before {
        display: none;
    }

    .top-bar .social-links {
        display: none;
    }

    .top-bar .container {
        justify-content: center;
    }

    .top-info {
        display: flex;
        flex-direction: row;
        /* Single line */
        justify-content: center;
        flex-wrap: wrap;
        /* Allow wrap on extremely small screens */
        gap: 15px;
        /* Increased gap for better single-line separation */
    }

    .top-info span {
        margin: 0;
    }

    .header .container {
        position: relative;
    }

    .main-nav {
        position: relative;
        justify-content: center;
        /* Center Logo */
        padding: 15px 0;
    }

    .logo {
        margin: 0;
    }

    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 1001;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 0;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        color: var(--text-color);
    }

    .nav-links>.nav-item>a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0 0 0 20px;
        background: #f9f9f9;
        display: none;
        opacity: 1;
        transform: none;
        visibility: visible;
        width: 100%;
    }

    .nav-item.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 1rem;
    }
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 250px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        border-radius: 0 0 8px 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 1100;
    }

    .nav-item {
        position: relative;
    }

    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu li a {
        display: block;
        padding: 8px 25px;
        color: var(--text-color);
        font-size: 0.95rem;
        text-transform: none;
        font-weight: 400;
    }

    .dropdown-menu li a:hover {
        background-color: #f5f5f5;
        color: var(--primary-color);
    }
}

.dropdown-header {
    padding: 10px 25px 5px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
    pointer-events: none;
}

@media (min-width: 992px) {
    .dropdown-mega {
        position: static !important;
    }

    .dropdown-mega .dropdown-menu {
        width: 100%;
        left: 0;
        right: 0;
        max-width: var(--container-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        padding: 30px;
        gap: 20px;
        border-radius: 0 0 15px 15px;
    }

    .dropdown-header {
        border-bottom: 2px solid var(--accent-color);
        padding: 0 0 10px 0;
        margin-bottom: 15px;
    }

    .dropdown-menu li {
        margin-bottom: 5px;
    }

    .dropdown-menu li a {
        padding: 5px 0;
    }
}

@media (max-width: 991px) {
    .mega-column {
        display: block;
        padding-top: 15px;
    }

    .dropdown-header {
        display: block;
        padding: 10px 0 5px 0;
        font-size: 0.8rem;
        color: var(--accent-color);
    }
}

/* Inline Article Links */
.service-detail a:not(.btn) {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.service-detail a:not(.btn):hover {
    color: var(--primary-color);
    text-decoration-color: var(--primary-color);
}