/* ===========================
   CSS Reset & Base Styles
   =========================== */

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

/* ===========================
   Color Palette Variables
   =========================== */

:root {
    --primary-blue: #1F416F;      /* Deep blue - primary */
    --cream: #F9EBE0;             /* Cream - backgrounds */
    --sage-green: #7F9172;        /* Sage green - accents */
    --forest-green: #567568;      /* Forest green - secondary */
    --orange: #F08700;            /* Orange - highlights */
    --white: #FFFFFF;
    --text-dark: #2C2C2C;
    --text-light: #666666;
}

/* ===========================
   Typography
   =========================== */

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: normal;
    line-height: 1.3;
    color: var(--primary-blue);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* ===========================
   Layout & Containers
   =========================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===========================
   Header
   =========================== */

header {
    background-color: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--cream);
}

.logo-container {
    text-align: center;
}

.logo-container img {
    max-width: 250px;
    height: auto;
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    background-color: var(--cream);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.intro {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--primary-blue);
}

/* ===========================
   Services Section
   =========================== */

.services {
    padding: 4rem 0;
    background-color: var(--white);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--cream);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(31, 65, 111, 0.1);
}

.service-item h3 {
    color: var(--sage-green);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.service-item p {
    font-size: 0.95rem;
}

/* Matching Service Highlight */
.matching-service {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.matching-service h3 {
    color: var(--orange);
    margin-bottom: 1rem;
}

.matching-service p {
    color: var(--cream);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   Contact Form Section
   =========================== */

.contact-form {
    padding: 4rem 0;
    background-color: var(--cream);
}

.contact-form h2 {
    text-align: center;
    color: var(--forest-green);
}

.form-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.form-wrapper iframe {
    border: 2px solid var(--sage-green);
    border-radius: 8px;
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Footer
   =========================== */

footer {
    background-color: var(--primary-blue);
    color: var(--cream);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--cream);
    margin: 0;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .form-wrapper iframe {
        width: 100%;
        max-width: 640px;
        height: 450px;
    }
    
    .logo-container img {
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .intro {
        font-size: 1rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .matching-service {
        padding: 1.5rem;
    }
    
    .form-wrapper iframe {
        height: 500px;
    }
}

/* ===========================
   Accessibility
   =========================== */

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
iframe:focus {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .service-item:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-item {
        border: 2px solid var(--primary-blue);
    }
}
