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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    background-color: #1f1f1f;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Logo container in header with two logos */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Individual logo sizes */
/* Base sizes for the logos; adjust individually below */
.logo-container img {
    width: auto;
}

/* Slightly larger Falcon logo to match visual weight with the Epique logo */
.falcon-logo {
    height: 48px;
}

/* Epique logo is wide; use a smaller height to balance its visual footprint */
.epique-logo {
    height: 42px;
}

/* Falcon group name text next to the icon */
.falcon-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-left: 0.25rem;
    margin-right: 0.5rem;
}

/* For responsiveness on small screens reduce logo size */
@media screen and (max-width: 768px) {
    /* Reduce logo sizes on small screens */
    .falcon-logo {
        height: 40px;
    }
    .epique-logo {
        height: 34px;
    }

    .falcon-name {
        font-size: 0.9rem;
        margin-left: 0.2rem;
        margin-right: 0.3rem;
    }
}

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

.logo img {
    height: 40px;
    width: auto;
}

.nav a {
    margin-left: 1.5rem;
    color: #fff;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #c62828;
}

/* Hero */
/* Hero section with carousel background */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 6rem 0 5rem;
    text-align: center;
}

/* Dark overlay over the hero background to improve text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

/* Container for hero background images, swapped via JS */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    z-index: 0;
    opacity: 1;
}

/* Ensure hero content is above overlay and background */
.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-inner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-inner .highlight {
    color: #c62828;
}

.tagline {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero service area line */
.service-area {
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: #eaeaea;
}

/* Secondary CTA button in hero */
.hero-cta {
    margin-left: 1rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.primary-btn {
    background-color: #c62828;
    color: #fff;
}

.primary-btn:hover {
    background-color: #a61d1d;
}

.secondary-btn {
    background-color: #ffffff;
    color: #c62828;
    border: 2px solid #c62828;
    margin-top: 1rem;
}

.secondary-btn:hover {
    background-color: #c62828;
    color: #fff;
}

/* Testimonials & Trust section */
.testimonials {
    background-color: #f8f8f8;
    padding: 4rem 0;
}

.testimonials-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    color: #1f1f1f;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 0.75rem;
    color: #333;
}

.testimonial-author {
    font-weight: 600;
    color: #c62828;
    font-size: 0.9rem;
}

.trust-signals {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.trust-item {
    font-size: 0.9rem;
    color: #555;
}

/* Features */
.features {
    background-color: #ffffff;
    padding: 5rem 0;
}

.features-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    color: #1f1f1f;
}

.feature-grid {
    display: grid;
    /* Use auto-fill so that items stretch evenly across the row. A minimum width keeps
       the cards from shrinking too small on wide screens, and remaining space is
       distributed evenly across available columns. */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    /* Center items so that incomplete rows (like the last row with fewer items) are centered */
    justify-content: center;
}

.feature-item h3 {
    font-size: 1.25rem;
    color: #c62828;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Programs */
.programs {
    background-color: #f8f8f8;
    padding: 5rem 0 6rem;
}

.programs h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: #1f1f1f;
}

.program-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 2rem;
    margin-bottom: 3rem;
}

.program-card h3 {
    color: #c62828;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.program-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.slider-container {
    margin: 1rem 0;
}

.slider-container label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 3px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #c62828;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

input[type=range]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #c62828;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.results {
    margin-top: 1rem;
    background-color: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.results .number {
    font-weight: 600;
    color: #c62828;
}

.small-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Contact */
.contact {
    background-color: #ffffff;
    padding: 5rem 0;
}

.contact-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1f1f1f;
}

.contact-container p {
    text-align: center;
    margin-bottom: 2rem;
    color: #555;
}

form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* No custom styles needed for embedded Google Form container anymore */

.form-response {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #1f1f1f;
}

/* Footer */
.footer {
    background-color: #1f1f1f;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Styling for license and brokerage information in footer */
.license-info {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #ddd;
    text-align: center;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-inner h1 {
        font-size: 2.25rem;
    }
    .program-card {
        padding: 1.5rem;
    }
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    form {
        padding: 1.5rem;
    }
}