/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0071BC;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #0071BC;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #005A95;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #F15A29;
    color: white;
    border: 2px solid #F15A29;
}

.btn-primary:hover {
    background-color: #D14A21;
    border-color: #D14A21;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #0071BC;
    border: 2px solid #0071BC;
}

.btn-secondary:hover {
    background-color: #0071BC;
    color: white;
}

/* Navigation */
.top-bar {
    background-color: #0071BC;
    color: white;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
}

.top-bar a {
    color: white;
    margin-left: 20px;
    font-size: 14px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 24px 0; /* Doubled height */
}

.navbar.transparent {
    background-color: transparent;
}

.navbar.solid {
    background-color: rgba(0, 0, 0, 0.8); /* Transparent black */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 24px 0; /* Keep same height when solid */
}

.navbar .container {
    display: flex;
    justify-content: space-between; /* Logo left, nav right */
    align-items: center;
}

.navbar-brand {
    /* No need for absolute positioning anymore */
    display: flex;
    align-items: center;
}

.navbar-brand img {
    width: 200px;
    height: auto;
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0; /* Reset margin */
}

.navbar-nav li {
    margin: 0 15px; /* Even spacing between items */
}

.navbar-nav a {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    white-space: nowrap; /* Ensure text stays on one line */
}

.navbar.solid .navbar-nav a {
    color: #0071BC;
}

.navbar-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #F15A29;
    transition: width 0.3s ease;
}

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

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

.navbar.solid .navbar-toggle {
    color: #0071BC;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background-size: cover;
    background-position: center;
    /* Prevent iOS from opening video in fullscreen */
    pointer-events: none;
    /* Ensure video doesn't exceed viewport */
    max-height: 100vh;
    max-width: 100vw;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 15px;
    margin-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: #F15A29;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* About Section */
.about {
    background-color: #F5F5F5;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-text {
    flex: 1;
    padding-right: 30px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Wildfire Crisis Section */
.wildfire-crisis {
    background-color: white;
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.stat-item {
    flex: 0 0 calc(33.333% - 20px);
    text-align: center;
    padding: 30px;
    margin-bottom: 20px;
    background-color: #F5F5F5;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #F15A29;
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
}

.split-image {
    margin-top: 40px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.split-image img {
    width: 100%;
    display: block;
}

/* Prevention Section */
.prevention {
    background-color: #F5F5F5;
}

.prevention-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.prevention-image {
    flex: 1;
    padding-right: 30px;
}

.prevention-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.prevention-text {
    flex: 1;
}

.prevention-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: #0071BC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 20px;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    margin-bottom: 5px;
}

/* Business Model Section */
.business-model {
    background-color: white;
}

.highlights-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.highlight-item {
    flex: 0 0 calc(50% - 15px);
    margin-bottom: 30px;
    padding: 30px;
    background-color: #F5F5F5;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.highlight-item h3 {
    color: #0071BC;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.highlight-item ul {
    padding-left: 20px;
}

.highlight-item li {
    margin-bottom: 10px;
}

/* Team Section */
.team {
    background-color: #F5F5F5;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-member {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member-image {
    height: 250px;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-info {
    padding: 20px;
}

.team-member-info h3 {
    margin-bottom: 5px;
}

.team-member-info h4 {
    color: #F15A29;
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    background-color: white;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
}

.contact-info {
    flex: 0 0 40%;
    padding-right: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-icon {
    flex: 0 0 50px;
    height: 50px;
    background-color: #0071BC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 20px;
}

.contact-info-text {
    flex: 1;
}

.contact-form {
    flex: 0 0 60%;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: #000000;
    color: white;
    padding: 50px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 0 0 250px;
    margin-bottom: 30px;
}

.footer-logo img {
    width: 100%;
}

.footer-links {
    flex: 0 0 calc(25% - 20px);
    margin-bottom: 30px;
}

.footer-links h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px 0;
    z-index: 9999;
    display: none;
}

.cookie-consent.show {
    display: block;
}

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

.cookie-text {
    flex: 1;
    padding-right: 20px;
}

.cookie-buttons {
    flex: 0 0 auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
    }
    
    .navbar-nav.show {
        display: flex;
    }
    
    .navbar-nav li {
        margin: 10px 0;
    }
    
    .navbar-nav a {
        color: #0071BC !important;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content, .prevention-content {
        flex-direction: column;
    }
    
    .about-text, .prevention-text, .about-image, .prevention-image {
        flex: 0 0 100%;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .stat-item, .highlight-item {
        flex: 0 0 100%;
    }
    
    .team-member {
        flex: 0 0 calc(50% - 15px);
    }
    
    .team-member-image {
        height: 200px;
    }
    
    .team-member-image img {
        object-position: center top;
        object-fit: contain;
    }
    
    .contact-info, .contact-form {
        flex: 0 0 100%;
        padding: 0;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .footer-links {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .team-member {
        flex: 0 0 100%;
    }
    
    .team-member-image {
        height: 180px;
    }
    
    .team-member-image img {
        object-position: center 30%;
        object-fit: contain;
    }
    
    .footer-logo, .footer-links {
        flex: 0 0 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
    }
}
