/* Global Styles */
:root {
    --primary-color: #1A5E73;
    /* Teal */
    --accent-color: #F4A261;
    /* Orange/Yellow from logo/sunset */
    --text-color: #333333;
    --light-bg: #F9F9F9;
    --white: #FFFFFF;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    display: block;
}

/* Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px;
    /* Reduced side padding since max-width handles it mostly */
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
    letter-spacing: 1px;
}

/* Main Nav direct child only */
.main-nav>ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 25px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #134656;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 10px 0;
    border-top: 3px solid var(--primary-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: var(--primary-color);
}

/* Subpage Layout */
.page-header-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.page-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-content {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    min-height: 60vh;
}

.page-content h2 {
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.page-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.page-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
    color: #444;
}

/* Pricing Table */
.pricing-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.pricing-cost {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Hero Section */
.hero-section {
    background-image: url('assets/maf-20210817-DSCF7567.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: top;
    text-align: center;
    color: var(--text-color);
}

.hero-content {
    max-width: 1000px;
    padding: 40px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: black;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: 12px;
    margin-bottom: 5px;
    color: black;
}

.hero-subtext {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 40px;
}

.hero-btn {
    background-color: black;
    color: white;
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    border: 2px solid black;
}

.hero-btn:hover {
    background-color: transparent;
    color: black;
    /* Assuming light background might peek through, but solid black is safer */
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
    color: white;
}

/* Services Section */
.services-section {
    scroll-margin-top: 150px;
    padding: 80px 50px;
    background-color: var(--light-bg);
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.service-card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 15px;
    color: #555;
}

.service-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.text-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Story Section */
.story-section {
    scroll-margin-top: 150px;
    padding: 100px 50px;
    background-color: white;
}

.story-container {
    display: flex;
    align-items: center;
    /* Vertically align text and image */
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-text {
    flex: 1;
}

.story-text .section-title {
    text-align: left;
    margin-left: 0;
}

.story-text .section-title::after {
    margin: 15px 0 0;
    /* Align underline left */
}

.story-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}

.story-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.signature {
    margin-top: 40px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
}

.badges-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.digits-badge {
    height: 75px;
    width: auto;
}

.story-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.story-image img {
    max-width: 100%;
    height: auto;
}

/* Footer */
.site-footer {
    background-color: #F0F0F0;
    padding: 60px 20px;
    text-align: center;
}

.site-footer h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.site-footer p {
    margin-bottom: 10px;
    color: #666;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        padding: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .story-container {
        flex-direction: column;
    }

    .story-image {
        order: -1;
        /* Image first on mobile? Or keep bottom. Let's keep normal flow for now */
        order: 0;
    }
}

/* Accordion Styles */
.accordion {
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    border-bottom: 1px solid #ddd;
    text-align: left;
    outline: none;
    font-size: 1.2rem;
    font-weight: 700;
    transition: 0.4s;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.active,
.accordion:hover {
    background-color: #f1f1f1;
}

.accordion:after {
    content: '\002B';
    /* Plus sign */
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.accordion.active:after {
    content: "\2212";
    /* Minus sign */
}

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.panel p {
    margin: 15px 0;
    line-height: 1.6;
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.form-row {
    display: flex;
    gap: 20px;
}

.half-width {
    flex: 1;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #134656;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}