﻿:root {
    --primary-brown: #4A2C1D; /* Coffee Brown */
    --tech-green: #1E6B4C; /* Deep Green Accent */
    --background: #F4EFEA; /* Warm Neutral Background */
    --white: #ffffff;
    --text-dark: #2d1b12;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
}

header {
    background: var(--white);
    padding: 1rem 5%;
    border-bottom: 3px solid var(--primary-brown);
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--primary-brown);
        font-weight: 600;
        transition: color 0.3s;
    }

        .nav-menu a:hover {
            color: var(--tech-green);
        }

/* Accordion Styling */
.accordion-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 5%;
}

details {
    background: var(--white);
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    overflow: hidden;
    transition: all 0.3s ease;
}

summary {
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-brown);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background);
}

    /* Add a custom arrow to the summary */
    summary::after {
        content: '▶';
        font-size: 0.8rem;
        transition: transform 0.3s;
        color: var(--tech-green);
    }

details[open] summary::after {
    transform: rotate(90deg);
}

.content-wrapper {
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* Responsive Image handling inside collapse */
.story-image-container {
    flex: 1 1 300px;
    text-align: center;
}

.story-photo {
    width: 100%;
    max-width: 350px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    /* In a real build, replace with a toggle-able burger menu */
}

.brand-logo {
    height: 80px; /* Adjust based on preference */
    width: auto;
}

.nav-links a {
    color: var(--primary-brown);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
}

    .nav-links a:hover {
        color: var(--tech-green);
    }

.hero {
    text-align: center;
    padding: 5rem 10%;
    background-color: var(--primary-brown);
    color: var(--background);
}

.btn {
    background: var(--tech-green);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s ease;
}

    .btn:hover {
        background: #144d36; /* Slightly darker green */
    }

.purpose {
    padding: 4rem 10%;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

    .purpose h2 {
        color: var(--tech-green);
    }

/* Story Section Styling */
.our-story {
    padding: 5rem 10%;
    background-color: var(--background); /* HEX #F4EFEA */
    color: var(--primary-brown); /* HEX #4A2C1D */
    line-height: 1.8;
}

.story-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: left;
}

    .story-content h2 {
        font-size: 2.5rem;
        color: var(--tech-green); /* HEX #1E6B4C */
        margin-bottom: 1.5rem;
    }

.story-intro {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border-left: 4px solid var(--tech-green);
    padding-left: 1.5rem;
}

/* Additional Styles for the Story Page */
.story-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #333;
}

.story-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows items to stack on mobile */
    gap: 30px; /* Space between text and image */
    align-items: center;
    margin-bottom: 40px;
}

.story-text {
    flex: 1 1 400px; /* Grows to fill space, but won't shrink below 400px */
}

.story-image-container {
    flex: 1 1 300px; /* Adjusts based on screen size */
    max-width: 100%;
    text-align: center;
}

.story-photo {
    width: 100%; /* Makes image responsive to its container */
    height: auto; /* Maintains aspect ratio */
    max-width: 450px; /* Prevents the image from getting too large on big screens */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.image-caption {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #1E6B4C; /* Your Brand Technology Green */
    font-style: italic;
}


.customer-insight {
    font-size: 1.6rem;
    color: var(--tech-green); /* HEX #1E6B4C */
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 2rem 0;
    margin: 3rem 0;
    font-family: Georgia, serif;
    text-align: center;
}

.bridge-graphic {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin: 3rem 0;
}

.bridge-point {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-brown); /* HEX #4A2C1D */
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--tech-green);
    letter-spacing: 1px;
}
.arrow {
    color: var(--tech-green);
    font-size: 2rem;
}

.closing-statement {
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--primary-brown);
    border-top: 2px solid var(--tech-green);
    display: inline-block;
    padding-top: 1rem;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .story-content h2 {
        font-size: 1.8rem;
    }

    .bridge-graphic {
        font-size: 1.1rem;
    }
}

.notify-section {
    background: var(--white);
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid #ddd;
}

#launch-form input {
    padding: 0.8rem;
    margin: 0.5rem;
    border: 1px solid var(--primary-brown);
    border-radius: 4px;
    width: 250px;
}

/* Container for the entire form */
.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Consistent spacing between rows */
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

/* Individual field groups */
.form-group {
    display: flex;
    flex-direction: column; /* Forces Label above Input */
    align-items: flex-start;
}

    .form-group label {
        font-weight: 600;
        margin-bottom: 8px;
        color: #4A2C1D; /* Coffee Brown */
    }

    /* Standardize width for all inputs and textareas */
    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        box-sizing: border-box; /* Crucial: prevents padding from pushing width past 100% */
        font-family: inherit;
    }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: 2px solid var(--tech-green);
            border-color: transparent;
        }

    /* specific fix for the textarea resizing */
    .form-group textarea {
        resize: vertical; /* Prevents horizontal stretching that breaks layout */
        min-height: 100px;
    }

/* Button Alignment */
.btn {
    align-self: flex-start; /* Keeps the button from stretching too wide */
    padding: 12px 24px;
    background-color: #1E6B4C; /* Tech Deep Green */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

#form-feedback {
    margin-top: 1rem;
    font-weight: 600;
    color: var(--tech-green);
}


footer {
    text-align: center;
    padding: 3rem;
    background: var(--primary-brown);
    color: var(--background);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    .nav-links {
        margin-top: 1rem;
    }

    #launch-form input {
        width: 80%;
    }
}
