/* css/services.css */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    /* primary text colour */
    background-color: #fff;
    /* page background */
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1250px;
    /* keeps side space */
    margin: 0 auto;
    padding: 0 40px;
    /* adds breathing space on left/right */
}

/* Top Bar */
.top-bar {
    background-color: #f8f8f8;
    /* light neutral background */
    border-bottom: 1px solid #eaeaea;
    /* light border */
    padding: 8px 0;
    font-size: 0.9em;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 30px;
    /* Space between phone and email */
    justify-content: center;
}

.contact-info span {
    margin-right: 0;
    /* Remove the right margin since we're using gap */
}

.contact-info i {
    margin-right: 5px;
    color: #694ec2;
    /* new accent color */
}

/* Main Header */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    padding: 15px 0;
    position: relative;
    z-index: 1001;
    /* FIXED: Puts the header bar above the menu (z-index: 1000) */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    margin-left: 0;
    /* Ensure logo starts from left */
}

.logo img {
    height: 70px;
    width: auto;
    max-width: 100%;
}

.main-nav {
    margin-left: auto;
    /* Push nav to right */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 55px;
    /* Reduced gap between navigation items */
    margin-right: 0;
    /* Remove any right margin */
}

.main-nav li {
    margin-left: 0;
    /* Remove the left margin since we're using gap */
}

/* Navigation links */
.main-nav a {
    text-decoration: none;
    color: #2b2849;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 10px 0;
    transition: color 0.3s ease;
    white-space: nowrap;
    /* Prevent text wrapping */
}

.main-nav a:hover,
.main-nav a.active {
    color: #694ec2;
    /* new navigation hover color */
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #2b2849;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    color: #fff;
}

.hero-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.hero-text-centered {
    width: 100%;
    /* Ensure it takes full width */
    text-align: center;
    /* Center all text */
}

.hero-text-centered h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    /* Ensure h1 is centered */
}

.hero-text-centered p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
    /* Center the paragraph text */
    margin-left: auto;
    /* Center the paragraph container */
    margin-right: auto;
    /* Center the paragraph container */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #5e57e3, #377ddf);
    /* gradient background */
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: linear-gradient(135deg, #4d46c9, #2c6bc7);
    /* darker gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 87, 227, 0.3);
}

/* Section Styling */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: #f2f2f2;
    /* very light neutral */
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    font-weight: 600;
}

/* Intro Section (Not used on this page, but styles are kept for consistency) */
.intro-section {
    text-align: center;
}

.intro-section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.intro-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Services Highlight (Not used on this page, but styles are kept for consistency) */
.services-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* force 2 equal columns */
    gap: 30px;
    /* space between cards */
    justify-content: center;
    /* keeps grid centered */
}

.service-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Allow card to shrink/grow properly */
    width: 100%;
    /* ensure card takes full grid cell width */
}

.service-card .service-icon {
    background: #eaeaea;
    /* temporary placeholder background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Prevent image overflow */
    width: 100%;
    /* Ensure image area takes full card width */
    height: 370px;
    /* larger image area */
}

.service-card .service-icon img {
    width: 100%;
    /* Image takes full container width */
    height: 100%;
    /* Change from auto to 100% */
    object-fit: cover;
    /* This will crop but maintain aspect ratio */
    display: block;
}

.service-card .service-info {
    background: #14104d;
    /* your requested color */
    color: #fff;
    padding: 25px;
    text-align: center;
    flex-grow: 0;
    /* Change from 1 to 0 */
    height: 80px;
    /* Reduced bottom height to compensate for larger image */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: center;
    /* Center content horizontally */
}

.service-card .service-info h3 {
    color: #edebfe;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    /* Remove bottom margin since we're using flex centering */
}

.service-card .service-info a:hover {
    color: #a7b1ff;
    /* subtle hover tint */
    text-decoration: underline;
}

/* News Section (Not used on this page, but styles are kept for consistency) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-bottom: 40px;
}

.news-card {
    background: linear-gradient(135deg, #19125f, #191464);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.news-content {
    padding: 25px;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #888;
    /* new primary color for news headings */
}

.news-content h3 a {
    color: #edebfe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h3 a:hover {
    color: #888;
    /* new accent color */
}

.news-content p {
    color: #adabcd;
}

.news-meta {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.section-cta {
    text-align: center;
}

/* === NEW STYLES FOR SERVICES PAGE START === */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 30px; /* Space between items */
    max-width: 1250px;
    margin: 0 auto;
}

.service-item-new {
    display: flex;
    align-items: flex-start; /* Aligns icon with the top of the text */
    text-align: left;
}

.service-item-new i {
    color: #694ec2; /* Your brand's accent color */
    font-size: 1.5rem; /* 24px, nice and visible */
    margin-right: 15px; /* Space between icon and text */
    margin-top: 3px; /* Fine-tunes vertical alignment with text */
    flex-shrink: 0; /* Prevents icon from shrinking */
}

.service-item-new span {
    color: #2b2849; /* Your brand's dark text color */
    font-weight: 700; /* Bolder (was 600) */
    font-size: 1.2rem; /* Larger (was 1.1rem) */
    line-height: 1.5; /* Good readability for multi-line items */
}
/* === NEW STYLES FOR SERVICES PAGE END === */


/* Get In Touch Section */
.get-in-touch {
    background-color: #edeef4;
    padding: 80px 0;
    position: relative;
}

.get-in-touch-container {
    display: flex;
    align-items: flex-start;
    /* change this line */
    justify-content: space-between;
    gap: 60px;
}

.get-in-touch-text {
    margin-top: 0px;
    /* adjust up/down to fine tune alignment */
}

.get-in-touch-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a144d;
    margin-bottom: 10px;
}

.get-in-touch-text p {
    color: #7a7d90;
    font-size: 1.1rem;
}

.get-in-touch-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 60%;
}

.get-in-touch-form input {
    padding: 18px 22px;
    border: none;
    border-radius: 30px;
    background: #f6f7fb;
    box-shadow: inset 6px 6px 10px rgba(0, 0, 0, 0.05),
        inset -6px -6px 10px rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    width: 100%;
}

.get-in-touch-form :hover {
    background: #ffffff;
}

.get-in-touch-form :focus-within {
    background: #ffffff;
}

.btn-gradient {
    background: linear-gradient(135deg, #6652e8, #3b82f6);
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #5943e1, #2563eb);
    box-shadow: 0 5px 15px rgba(94, 87, 227, 0.4);
    transform: translateY(-2px);
}

/* Footer */
.main-footer {
    background-color: #161153;
    /* new primary dark color */
    color: #ecf0f1;
    /* light text on dark bg */
    padding: 30px 0 15px;
}

.footer-links-centered {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links-centered a {
    color: #bdc3c7;
    /* medium light link colour */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.footer-links-centered a:hover {
    color: #fff;
}

.footer-contact-social {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Footer alignment fix */
.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9em;
}

.contact-item i {
    color: #fff;
    /* new accent color for icons */
    width: 14px;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Ensures <sup> doesn't push the address line down */
.footer-contact sup {
    font-size: 0.7em;
    vertical-align: top;
    position: relative;
    top: -0.2em;
}

/* Fix alignment of icons and text for all contact items */
.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9em;
}

/* Tighter alignment for multi-line address */
.footer-contact .contact-item span {
    line-height: 1.4;
}

/* Move footer contact & social section to right and closer together */
.footer-contact-social {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 70px;
    margin-right: 50px;
}

.follow-us-text {
    color: #bdc3c7;
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons-row {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid #5e57e3;
    /* new accent color border */
    border-radius: 10px;
    color: #5e57e3;
    /* new accent color */
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    background: transparent;
}

.footer-social a i {
    font-size: 18px;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #5e57e3, #377ddf);
    color: #fff;
    transform: translateY(-13px);
    border-color: transparent;
}

.footer-bottom {
    border-top: 1px solid #2a2468;
    /* darker border line using primary color */
    padding-top: 15px;
    text-align: center;
    color: #bdc3c7;
    font-size: 0.85em;
}

/* Additional elements with the new color scheme */
.service-card.featured {
    background: linear-gradient(135deg, #161153, #2a2468);
    color: #fff;
}

.service-card.featured h3,
.service-card.featured p,
.service-card.featured a {
    color: #fff;
}

.service-card.featured a:hover {
    color: #bdc3c7;
}

/*
|--------------------------------------------------------------------------
| Responsive Design
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .main-nav ul {
        gap: 40px;
    }

    .services-grid-2x2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .main-nav ul {
        gap: 30px;
    }

    .hero-text-centered h1 {
        font-size: 2.5rem;
    }

    .hero-text-centered p {
        font-size: 1.1rem;
    }

    .service-card .service-icon {
        height: 300px;
    }

    .get-in-touch-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .get-in-touch-form {
        width: 100%;
        align-items: center;
    }

    .get-in-touch-form input {
        width: 90%;
    }

    .btn-gradient {
        width: 90%;
    }

    /* === NEW RESPONSIVE RULE FOR SERVICES === */
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px !important;
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .contact-info span {
        display: block;
        margin: 5px 0;
    }

    .social-links {
        margin-top: 10px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1002;
        /* This z-index is fine, but it's relative to the header */
    }

    body.menu-open .menu-toggle {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        /* Added max-width */
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1003;
        /* This menu is on layer 1000 */
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 20px;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid #eee;
    }

    .hero-image img {
        height: 400px;
    }

    .hero-text-centered h1 {
        font-size: 2rem;
    }

    .hero-text-centered p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .services-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .service-card .service-icon {
        height: 250px;
    }

    .service-card .service-info {
        height: auto;
        padding: 20px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links-centered {
        gap: 20px;
    }

    .footer-contact-social {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        justify-content: center;
        margin-right: 0;
        align-items: center;
    }

    .footer-contact {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
        margin-top: 5px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }

    /* === NEW RESPONSIVE RULE FOR SERVICES === */
    .services-grid-new {
        grid-template-columns: 1fr; /* 1 column on mobile */
        gap: 20px;
    }

    .service-item-new span {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {

    .top-bar {
        font-size: 0.8em;
    }

    .logo img {
        height: 50px;
    }

    .hero-image img {
        height: 300px;
    }

    .hero-text-centered h1 {
        font-size: 1.8rem;
    }

    .hero-text-centered p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .service-card .service-icon {
        height: 200px;
    }

    .service-card .service-info h3 {
        font-size: 1.1rem;
    }

    .news-content {
        padding: 20px;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    .get-in-touch-form input {
        width: 100%;
    }

    .btn-gradient {
        width: 100%;
    }

    .footer-links-centered {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        align-items: center;
    }

    .footer-contact {
        gap: 12px;
    }

    .footer-contact-social {
        gap: 30px;
    }
}