/* Global Styles */
:root {
    --primary-color: #294384;
    --secondary-color: #E6E6E6;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --light-bg: #f2f2f2;
}


body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
}

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

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5em 1.0em;
    text-decoration: none;
    border-radius: 0.3em;
    transition: background-color 0.3s ease;
    border: none; /* reset button border*/
    cursor: pointer; /*change cursor for button elements*/
}

.button:hover {
    background-color: #213566;
}

h1, h2, h3 {
    margin-bottom: 0.8em;
    color: var(--primary-color);
}
h1{
    font-size: 2em;
}

h2 {
    font-size: 1.75em;
}

h3 {
    font-size: 1.25em;
}

.section-title{
  text-align: center;
}


/* Header */
header {
    background: var(--bg-color);
    padding: 1em 0;
    border-bottom: 1px solid var(--secondary-color);
}

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

.header-logo {
    height: 3.5em;
}

.nav-toggle {
    display: none; /* hide on larger screens */
    background: none;
    border: none;
    font-size: 1.75em;
    cursor: pointer;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 10px;
}

.header-nav ul li {
    display: inline;
    margin-left: 1.25em;
}

.header-nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.header-nav ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--light-bg);
    text-align: center;
    padding: 5em 0;
}

.hero-title {
    margin-bottom: 0.5em;
}

.hero-subtitle {
    color: #777;
    font-weight: normal;
    margin-bottom: 1.5em;
}

.hero-button{
    margin-top: 1.5em;
}
/* About Section */
.about-section {
    padding: 3em 0;
    text-align: center;
}

.about-logo{
   max-width: 12.5em;
   margin: 1.25em auto;
    display: block;
}
.about-paragraph{
   margin-bottom: 1.5em;
}

/* Services Section */
.services-section {
    padding: 3em 0;
    background-color: var(--bg-color);
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
    gap: 1.25em;
    margin-top: 1.8em;
}

.service-item {
    padding: 1.25em;
    background-color: white;
    border-radius: 0.3em;
    box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials-section {
    padding: 3em 0;
    text-align: center;
}

.testimonial-container {
    overflow: hidden;
    position: relative;
    max-width: 50em;
    margin: 1.25em auto;
    min-height: 9.375em;
}

.testimonial {
    width: 100%;
    opacity: 0;
    display: none;
    transition: opacity 1s ease-in-out;
}

.testimonial.active {
  opacity: 1;
  display: block;
}

.testimonial p.author {
    text-align: right;
    font-style: italic;
    margin-right: 1em;
}

/* Contact Section */
.contact-section {
    padding: 3em 0;
    background-color: var(--light-bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25em;
}

.contact-info {
    padding: 1.25em;
}

.map-container {
     width: 100%;
    height: auto;
    margin-top: 1em;
}

.map-container iframe {
    width: 100%;
    max-width: 37.5em;
    height: 28.125em;
}

.contact-form {
  padding: 1.25em;

}
.contact-form input,
.contact-form textarea
{
    width: 100%;
    padding: 0.75em;
    margin-bottom: 0.6em;
    border: 1px solid #ddd;
    border-radius: 0.25em;
}
.contact-form textarea {
  resize: vertical;
  height: 9.375em;
}

.captcha-placeholder{
   background-color: #ddd;
    height: 3.125em;
    margin-bottom: 0.6em;
    border-radius: 0.25em;
}

.contact-form-button {
   margin-top: 1em;
}


/* Footer */
footer {
    text-align: center;
    padding: 1.25em 0;
    background-color: #333;
    color: white;
}


/* Mobile Responsive */
@media (max-width: 768px) {

    /* Header */
    .header-container {
        flex-direction: row;
        align-items: center;
        position: relative;
        /* Add relative positioning for absolute children */
    }

    .header-logo {
        margin-bottom: 0;

    }

    /* this prevents logo from growing on mobile*/
    .header-logo {
        flex-shrink: 0;
    }

    .nav-toggle {
        display: block;
        /* show on smaller screens */
        margin-left: auto;
        /*this prevents the nav-toggle from growing on mobile*/
        flex-shrink: 0;
    }

    .header-nav {
        display: none;
        width: 100%;
        margin-top: .6em;
        /* Add absolute positioning for menu */
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-color);
        border-bottom: 1px solid var(--secondary-color);
    }

    .header-nav.active {
        display: block;
        /* show on smaller screens when active*/

    }

    .header-nav ul li {
        margin-left: 0;
        margin-top: 0.6em;
        display: block;
        text-align: center;
    }

    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 18.75em;
    }
}
