/* style.css */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

/* GLOBAL RESET FOR CROSS-BROWSER CONSISTENCY */
*, *::before, *::after {
    -webkit-box-sizing: border-box; /* Safari/iOS compatibility */
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f9f9;
    color: #333333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background-color: #f0f0f0;
    color: #15316f;
    padding: 1.5rem 2rem 0;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header-logo {
    width: 250px;
    height: auto;
    margin-bottom: -0.75rem;
}
nav {
    background-color: #15316f;
    width: 100%;
    padding: 1rem 0;
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
    border-radius: 5px;
}
nav a:hover {
    background-color: #0d2146;
}

/* Mobile Menu Toggle - Set to always be hidden */
.menu-toggle {
    display: none !important;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 30px;
    height: 25px;
    flex-direction: column;
    justify-content: space-between;
}
.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #15316f;
    transition: all 0.3s ease-in-out;
}

/* MOBILE STYLES FOR PERMANENT, SMALL, TWO-ROW MENU (Screens up to 768px) */
@media (max-width: 768px) {
    header {
        padding: 1rem 1rem 0;
    }
    
    .menu-toggle {
        /* Ensure the mobile toggle button is hidden */
        display: none !important; 
    }

    nav {
        padding: 0.5rem 0.25rem; /* Small horizontal padding on the nav container */
    }
    
    /* *** CSS GRID FIX: Highly reliable 3-column layout *** */
    nav ul {
        /* Change from flex to grid */
        display: grid;
        /* Force 3 columns of equal size (1fr) for a perfect 3-up alignment */
        grid-template-columns: repeat(3, 1fr); 
        gap: 0.25rem; /* Very small gap between all items */
        
        list-style-type: none;
        margin: 0;
        padding: 0;
        position: static;
        height: auto; 
        overflow: visible;
        width: 100%;
    }
    
    nav li {
        text-align: center;
        margin: 0;
    }
    
    nav a {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 0.7rem; /* Smallest font size to guarantee text fits consistently */
        padding: 0.5rem 0.1rem;
        white-space: nowrap; 
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Content mobile styles */
    .image-gallery-grid {
        flex-direction: column;
        align-items: center;
    }
    .image-card {
        width: 100%;
        max-width: 400px;
    }
}
/* Main Content Containers */
.container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
h1, h2 {
    color: #15316f;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
h3 {
    color: #15316f;
    font-size: 1.5rem;
    text-align: center;
}
p {
    text-align: left;
    color: #555555;
}

/* Specific Section Styles */
.hero {
    text-align: center;
}
.hero p {
    font-size: 1.1rem;
    text-align: center;
}
.blue-bold {
    color: #15316f;
    font-weight: 700;
}
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #FF8C00;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #CC7000;
}
.services-list ul {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.services-list li {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
}
.services-list li:hover {
    background-color: #FF8C00;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: white;
}
.path-to-mind ol {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.path-to-mind ol li {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 5px;
    font-weight: 700;
    color: #15316f;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
.path-to-mind ol li:hover {
    background-color: #FF8C00;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Service Filter Buttons */
.filter-buttons {
    text-align: center;
    margin-bottom: 2rem;
}
.filter-buttons a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #e9e9e9;
    color: #15316f;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    margin: 0 5px;
    transition: background-color 0.3s;
}
.filter-buttons a:hover {
    background-color: #d1d1d1;
}
.filter-buttons a.active {
    background-color: #15316f;
    color: white;
}

/* Footer */
footer {
    background-color: #15316f;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}
.contact-form .form-group {
    margin-bottom: 1rem;
    text-align: left;
}
.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #15316f;
    font-weight: 700;
}
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}
.contact-form .submit-button {
    width: 100%;
    padding: 1rem;
    background-color: #FF8C00;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}
.contact-form .submit-button:hover {
    background-color: #CC7000;
}
/* New Style for Intro List on Maintenance Package Page */
.intro-list {
    list-style-type: disc;
    text-align: left;
    margin-bottom: 2rem;
}
.intro-list li {
    background: none;
    box-shadow: none;
    padding-left: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}
.intro-list li .blue-bold {
    display: inline;
}

/* NEW STYLE for the opening sentence of each section */
.intro-sentence {
    display: block;
    font-weight: 700;
    color: #15316f;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonial-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}
.testimonial-card {
    background-color: #f0f4f8;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #15316f;
    transition: all 0.3s ease-in-out;
}
.testimonial-card:hover {
    background-color: #FF8C00;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid white;
}
.testimonial-card:hover p,
.testimonial-card:hover h4 {
    color: white;
}
.testimonial-card p {
    font-style: italic;
    font-size: 1.1rem;
    color: #444444;
    margin-bottom: 1rem;
}
.testimonial-card h4 {
    text-align: right;
    font-size: 1rem;
    color: #15316f;
    margin: 0;
}

/* Homepage specific styles */
.services-summary .cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.secondary-cta {
    background-color: #e9e9e9;
    color: #15316f;
    transition: background-color 0.3s;
}

.secondary-cta:hover {
    background-color: #d1d1d1;
}

/* NEW STYLE for the slogan on the homepage */
.slogan-text {
    color: #333333;
    font-weight: normal;
}

/* NEW STYLE for the R.A.B tagline on the homepage */
.blue-spark {
    color: #15316f;
    font-weight: 700;
}
.logo-container {
    position: relative;
}

.section-logo {
    position: absolute;
    margin: 0 0 60px auto;
    width: 10px;
    height: auto;
}

/* Gallery Styles */
.gallery-section {
    margin: 2rem 0;
}

.image-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-card {
    flex-basis: 30%;
    flex-grow: 1;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.image-card:hover {
    transform: translateY(-5px);
}

.image-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

.image-card img:hover {
    transform: scale(1.05);
}
