@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary-color: #2d5a27; /* Forest Green */
    --secondary-color: #283a43; /* Dark Navy Blue */
    --accent-color: #d4a373; /* Earthy Tan */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --white: #ffffff;
    --container-width: 1100px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 15px;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    color: var(--white);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('img/main-background.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    margin-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 900px;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-shadow: none;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #1e3d1a;
}

/* Mission Section */
#mission {
    padding: 80px 0; /* Normalized padding */
    background: linear-gradient(135deg, #f0f7ff 0%, #fffbf2 100%);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden; /* Clear floats */
}

.mission-device-figure {
    float: right;
    width: 175px;
    margin-left: 30px;
    margin-top: 10px;
    text-align: center;
}

.mission-device-image {
    width: 100%;
    height: auto;
}

.mission-device-figure figcaption {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: 5px;
}

.mission-content p {
    font-size: 1.35rem;
    color: #444;
    margin-bottom: 2.5rem;
    text-align: left;
    line-height: 1.9;
}

.mission-content p:last-child {
    margin-bottom: 0;
}

.mission-content p strong {
    color: var(--primary-color);
    font-weight: 800;
}

/* Features */
#features {
    padding: 100px 0;
    background: #f4f4f4; /* Neutral gray background */
    color: var(--text-color);
}

#features h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    padding: 35px 25px;
    background: var(--white); /* White cards on gray background */
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.feature-item h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.3rem;
}

.feature-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Gallery */
#gallery {
    padding: 100px 0;
    background: #e5e5e5;
}

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

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, filter 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Status & Newsletter Side-by-Side */
#status-newsletter {
    padding: 100px 0;
    background: var(--light-bg);
}

.status-newsletter-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.status-column h2 {
    margin-bottom: 30px;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

.field-report {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    margin-top: 30px;
    text-align: left;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.field-report h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.field-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.field-report p {
    margin-bottom: 20px;
}

.newsletter-column {
    position: sticky;
    top: 120px;
}

.contact-card {
    background: var(--white);
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-radius: 12px;
}

.contact-card h2 {
    margin-bottom: 20px;
    text-align: center;
}

.form-intro {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #1e2b32;
}

.hidden {
    display: none;
}

#form-response {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.success-msg {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .status-newsletter-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero-tagline {
        font-size: 2.2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    #mission, #features, #gallery, #status-newsletter {
        padding: 60px 0;
    }

    .mission-device-figure {
        float: none;
        display: block;
        margin: 0 auto 30px auto;
        width: 100%;
        max-width: 175px;
    }
}
