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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* ------------------------------
   HEADER
------------------------------ */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 3px solid #333d47;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 130px;
    width: auto;
    display: block;
}

/* Navigation */

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.nav-upper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 40px;
}

.main-menu {
    display: flex;
    gap: 5px;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: 0.3s;
}

.main-menu a:hover {
    color: #e67e22;
}

/* Phone + Button */
.phone-link {
    text-decoration: none;
    color: #333d47;
    font-weight: bold;
    margin-right: 20px;
}

/* Social Icons */
.social-header {
    display: flex;
    gap: 15px;
    margin-top: 5px;
    justify-content: flex-end;
}

.social-header a {
    color: #777;
    font-size: 16px;
    transition: 0.3s;
}

.social-header a:hover {
    color: #e67e22;
}

/* ------------------------------
   BUTTONS
------------------------------ */
.btn-primary,
.btn-large {
    background: #e67e22;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

.btn-primary:hover,
.btn-large:hover {
    background: #d35400;
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.trust-badges {
    margin: 20px 0 40px;
}

.trust-badges span {
    margin: 0 15px;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

/* ------------------------------
   SERVICES
------------------------------ */
.services {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Montserrat', sans-serif;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.service-card {
    padding: 30px;
    background: #f9f9f9;
    border-radius: 10px;
    border-top: 5px solid #333d47;
    text-align: center;
}

.service-card img {
    width: 60px;
    height: auto;
    display: block;
    margin: 0 auto 15px auto;
}

/* ------------------------------
   WHY CHOOSE US
------------------------------ */
.why-choose-us {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.side-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.trust-list {
    list-style: none;
}

.trust-list li {
    margin: 15px 0;
    padding-left: 30px;
    position: relative;
}

.trust-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e67e22;
    font-weight: bold;
}

/* ------------------------------
   BLOG PREVIEW
------------------------------ */
.blog-preview {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.advice-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
    background: #333d47;
    color: #fff;
    text-align: center;
    padding: 40px 0;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-upper {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .logo img {
        height: 90px;
    }


.service-grid {
    display: flex;       /* This is the 'Magnet' command */
    gap: 20px;          /* This creates the space between cards */
    flex-wrap: wrap;    /* This tells them: 'If the screen is too small (like a phone), go back to stacking' */
    justify-content: center; /* This centers the boxes on the screen */
}

.service-box {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    flex: 1 1 calc(33.333% - 40px); /* Sets 3 columns, shrinks on mobile */
    min-width: 300px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid #e67e22; /* Matches your brand orange */
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-10px); /* Adds a subtle lift on hover */
}

.service-box i {

    font-size: 3rem;
    color: #333d47;
    margin-bottom: 20px;
}

.service-box h3 {
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Mobile Tweak */
@media (max-width: 768px) {
    .service-box {
        flex: 1 1 100%;
    }
}

/* --- Mobile Styles --- */
@media (max-width: 768px) {
    /* Stack the header elements */
    .nav-container {
        flex-direction: column;
        padding: 10px;
    }

    .main-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    /* Make the 3 service boxes stack on top of each other */
    .services-grid {
        display: grid;
        grid-template-columns: 1fr; /* One column only */
        gap: 20px;
        padding: 0 20px;
    }

    /* Ensure images don't overflow the screen */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Make buttons larger for "fat fingers" on touchscreens */
    .btn-primary {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
    }
}
