/* FMS Website Stylesheet */
/* ------------------------- */

/* 1. SETUP & VARIABLES */
:root {
    --trust-blue: #005EB8;
    --growth-teal: #2A9D8F;
    --desert-sand: #F2E4D5;
    --slate-gray: #333333;
    --light-gray: #F5F5F5;
    --sunset-gold: #C79F4B;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--slate-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* 2. GENERAL & REUSABLE COMPONENTS */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

h1, h2, h3 {
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    color: var(--trust-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { /* For Hero Titles */
    font-size: 3.5rem;
    font-weight: 700;
}

h2 { /* For Section Titles */
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

h3 { /* For Card/Item Titles */
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.highlight-teal {
    color: var(--growth-teal);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--trust-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--sunset-gold);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: var(--growth-teal);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--trust-blue);
    transform: translateY(-3px);
}

/* 3. HEADER & NAVIGATION */
header {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--slate-gray);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--sunset-gold);
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--slate-gray);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 4. HERO SECTIONS */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    animation: zoom-in 20s ease-out forwards;
}

@keyframes zoom-in {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--desert-sand);
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-content p {
    font-size: 1.25rem;
    margin: 1.5rem 0 2rem;
    font-weight: 300;
}

/* Page-specific hero styles */
.hero-about, .hero-approach {
    height: 50vh;
    min-height: 400px;
}

.hero-about .hero-overlay, .hero-approach .hero-overlay {
    background-color: rgba(0, 94, 184, 0.2); /* Trust Blue at 20% */
}

/* 5. PAGE-SPECIFIC SECTIONS */
/* Home Page */
.bg-light {
    background-color: var(--light-gray);
}
.bg-sand {
    background-color: var(--desert-sand);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.advantage-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--growth-teal);
}

.advantage-card h3 {
    color: var(--slate-gray);
}

.founder-note {
    background: url(./images/hero-desert.jpg) no-repeat center center/cover;
    position: relative;
    color: var(--white);
    text-align: center;
}

.founder-note-overlay {
    background-color: rgba(0, 94, 184, 0.85); /* Trust Blue overlay */
    padding: 6rem 2rem;
    border-radius: 8px;
}

.founder-note blockquote {
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    border-left: 4px solid var(--sunset-gold);
    padding-left: 2rem;
}
.founder-note p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* About Page */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.value-card {
    text-align: center;
}

.value-card .icon {
    font-size: 3rem;
    color: var(--growth-teal);
    margin-bottom: 1rem;
}

/* Approach Page */
.approach-steps {
    position: relative;
    margin-top: 4rem;
}
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--light-gray);
    transform: translateX(-2px);
}
.step {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}
.step:last-child {
    margin-bottom: 0;
}
.step-content {
    width: 45%;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.step:nth-child(odd) .step-content {
    margin-right: 10%;
    text-align: right;
}
.step:nth-child-even) .step-content {
    margin-left: 10%;
    order: 2;
}
.step-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--trust-blue);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 5px solid var(--white);
    box-shadow: 0 0 0 4px var(--trust-blue);
}
.step:nth-child(2) .step-number { background-color: var(--growth-teal); box-shadow: 0 0 0 4px var(--growth-teal); }
.step:nth-child(3) .step-number { background-color: var(--sunset-gold); box-shadow: 0 0 0 4px var(--sunset-gold); }

/* Contact Page (from user's code, integrated) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info-box {
    background: var(--desert-sand);
    padding: 2.5rem;
    border-radius: 10px;
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-item strong {
    color: var(--trust-blue);
}

.contact-form-box {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--light-gray);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 5px; font-family: 'Poppins', sans-serif; font-size: 1rem; transition: border-color 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--trust-blue);
}
.form-message { padding: 1rem; border-radius: 5px; margin-bottom: 1rem; text-align: center; display: none; }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }
.loading { display: inline-block; width: 20px; height: 20px; border: 3px solid #ffffff; border-radius: 50%; border-top-color: transparent; animation: spin 1s ease-in-out infinite; margin-left: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 6. FOOTER */
footer {
    background: var(--slate-gray);
    color: var(--white);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-grid h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-grid p, .footer-grid a {
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.95rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links a {
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--sunset-gold);
}
.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 2rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* 7. ANIMATIONS */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. RESPONSIVE DESIGN */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .two-col-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    nav ul {
        position: fixed;
        top: 75px; /* Matches header height */
        right: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: right 0.4s ease-in-out;
    }
    nav ul.nav-active {
        right: 0;
    }
    nav a { font-size: 1.2rem; }
    .menu-toggle { display: flex; }

    .menu-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    
    .footer-grid { grid-template-columns: 1fr; }

    .timeline-line { left: 30px; }
    .step-number { left: 30px; }
    .step-content { width: calc(100% - 80px); margin-left: auto; }
    .step:nth-child(odd) .step-content,
    .step:nth-child(even) .step-content {
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
        order: 2;
    }
}