/* ===========================
   CSS Variables & Reset
   =========================== */

/* lato-300 - latin */
@font-face {
font-display: swap;
font-family: 'Lato';
font-style: normal;
font-weight: 300;
src: url('../fonts/lato-v25-latin-300.woff2') format('woff2');
}

/* lato-regular - latin */
@font-face {
font-display: swap;
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2');
}

/* lato-700 - latin */
@font-face {
font-display: swap;
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: url('../fonts/lato-v25-latin-700.woff2') format('woff2');
}

:root {
    --color-text: #333333;
    --color-primary: #218e71;
    --color-secondary: #9ed3cb;
    --color-background: #e0e0e0;
    --color-white: #ffffff;
    --font-size-base: 21px;
    --font-family: 'Lato', sans-serif;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

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

/* ===========================
   Base Styles
   =========================== */

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

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--color-primary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--color-text);
    text-decoration: underline;
}

/* ===========================
   Header & Navigation
   =========================== */

header {
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin: 0;
}

.logo a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo a:hover,
.logo a:focus {
    color: var(--color-text);
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.main-nav a {
    color: var(--color-text);
    font-weight: 400;
    padding: var(--spacing-xs) var(--spacing-sm);
    display: block;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: var(--color-primary);
    text-decoration: none;
    background-color: var(--color-secondary);
    border-radius: 4px;
}

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

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 2.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* ===========================
   Main Content Sections
   =========================== */

main section {
    padding: var(--spacing-xl) 0;
}

main section:nth-child(even) {
    background-color: var(--color-background);
}

.intro {
    text-align: center;
}

.intro p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   Services Grid
   =========================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.service-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.service-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

/* ===========================
   Info Grid
   =========================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.info-item h3 {
    color: var(--color-primary);
}

/* ===========================
   CTA Section
   =========================== */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
}

.cta-container {
    text-align: center;
    margin-top: var(--spacing-md);
}

/* ===========================
   Buttons
   =========================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--color-primary);
}

.btn:hover,
.btn:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1.1rem;
}

.cta-section .btn {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.cta-section .btn:hover,
.cta-section .btn:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-white);
}

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

footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--spacing-lg) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.footer-col h4 {
    color: var(--color-secondary);
    margin-bottom: var(--spacing-sm);
}

footer a {
    color: var(--color-white);
}

footer a:hover,
footer a:focus {
    color: var(--color-secondary);
}

/* ===========================
   Forms
   =========================== */

.form-group {
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 700;
    color: var(--color-text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--color-background);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ===========================
   Content Pages
   =========================== */

.page-header {
    background-color: var(--color-background);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.content-section {
    padding: var(--spacing-xl) 0;
}

.content-section ul {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.content-section li {
    margin-bottom: var(--spacing-xs);
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.profile-image {
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.profile-content {
    flex: 1;
}

/* Contact & Map */
.contact-info {
    background-color: var(--color-background);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
}

.map-container {
    margin-top: var(--spacing-md);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: transparent;
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    text-decoration: none;
    z-index: 2000;
}

.skip-link:focus {
    top: 0;
}

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

@media (max-width: 768px) {
    :root {
        --font-size-base: 18px;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    header .container {
        position: relative;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo-image {
        height: 40px;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: var(--spacing-sm) 0;
    }

    .main-nav a {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-base: 16px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .btn-large {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    header,
    footer,
    .menu-toggle,
    .btn {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        text-decoration: underline;
    }
}
