/* ============================================ */
/*              GLOBAL STYLES                   */
/* ============================================ */

:root {
    --bg-primary: #ffffff;
    --text-primary: #525455;
    --accent-primary: #cd0804;
    --font-main: 'Red Hat Display', sans-serif;
    --container-width: 1120px;
    --section-padding: 6rem 0;
}

/* Basic Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    max-width: 70ch; /* Improves readability */
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.section-dark {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-title-light {
    color: var(--bg-primary);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin: -1rem auto 3rem auto;
    max-width: 600px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: #a80603;
    border-color: #a80603;
    color: var(--bg-primary);
    opacity: 1;
}

.btn-secondary {
    background-color: var(--bg-primary);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: var(--bg-primary);
    opacity: 1;
}

/* ============================================ */
/*                    HEADER                    */
/* ============================================ */
.header {
    background-color: var(--bg-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

/* THIS IS THE NEW RULE */
.header-logo img {
    height: 50px; /* <-- You can adjust this value to make your logo bigger or smaller */
    width: auto;
    display: block;
   
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 700;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger {
    display: block;
    position: relative;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

/* ============================================ */
/*               HERO (SAFETY)                  */
/* ============================================ */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1650090974911-94b90ea2a833?q=80&w=1032&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    color: var(--bg-primary);
    padding: 10rem 0;
    text-align: center;
}

.hero-content .container {
    max-width: 800px;
}

.hero-h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

.hero-h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.hero-text {
    font-size: 1.1rem;
    margin: 0 auto 2rem auto;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.trust-badge .fa-check-circle {
    color: #28a745; /* Green checkmark */
}

/* ============================================ */
/*         BELONGING (TESTIMONIALS)             */
/* ============================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.testimonial-card {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-primary);
}

.testimonial-card .stars {
    color: #f5c518; /* Gold color */
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
}

/* ============================================ */
/*            STATUS (GALLERY)                  */
/* ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--bg-primary);
    padding: 2rem 1rem 1rem 1rem;
    font-weight: 700;
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

/* ============================================ */
/*           AUTONOMY (PROCESS)                 */
/* ============================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.process-step {
    padding: 2rem;
}

.process-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

/* ============================================ */
/*            MEANING (SPLIT SECTION)           */
/* ============================================ */
.section-split {
    background-color: #f8f9fa;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.split-image img {
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ============================================ */
/*            GROWTH (RESOURCES)                */
/* ============================================ */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    text-align: left;
}

.resource-card {
    border: 1px solid #e0e0e0;
    padding: 2rem;
    border-radius: 8px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* ============================================ */
/*                    FOOTER                    */
/* ============================================ */
.footer {
    background-color: var(--text-primary);
    color: #e0e0e0;
    padding: 4rem 0 2rem 0;
}

.footer a {
    color: #e0e0e0;
}

.footer a:hover {
    color: var(--bg-primary);
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--bg-primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col p {
    line-height: 1.8;
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #6c757d;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ============================================ */
/*              RESPONSIVE DESIGN               */
/* ============================================ */

/* For Tablets */
@media (max-width: 992px) {
    h1, .hero-h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .gallery-grid, .process-grid {
        grid-template-columns: 1fr;
    }
    
    .split-container {
        grid-template-columns: 1fr;
    }

    .split-image {
        order: -1; /* Puts image on top on mobile */
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For Mobile Phones */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .section { padding: 4rem 0; }
    h1, .hero-h1 { font-size: 2.2rem; }
    .hero-h2 { font-size: 1.5rem; }
    .hero { padding: 6rem 0; }

    /* Mobile Navigation */
    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link:hover::after {
        width: 0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-open .hamburger {
        background: transparent;
    }

    .nav-open .hamburger::before {
        transform: rotate(45deg);
    }

    .nav-open .hamburger::after {
        transform: rotate(-45deg);
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col ul {
        padding-left: 0;
    }

    .social-icons {
        margin-top: 1rem;
    }
}