/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

p {
    margin-bottom: .5rem;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Home Section */
#home {
    background-image: url('assets/maroon-bells-lake-peaks-elk-mountains-north-maroon-peak-1920x1200.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Aviation page specific hero background */
.aviation-page #home {
    background-image: url('assets/bi-plane-wallpaper.jpg');
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Quotes Section */
#quotes {
    padding: 0.75rem 10%;
    background: linear-gradient(to right, #f8f8f8, #e8e8e8);
    max-width: 1400px;
    margin: 0.75rem auto;
}

.quote-slider {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.quote-slider blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    margin: 0.25rem 0;
    padding: 0.25rem 1rem;
    /* border-left: 4px solid #666; */
    color: #555;
    line-height: 1.4;
}

.quote-slider blockquote.active {
    opacity: 1;
}

/* Areas of Focus Section */
#areas-of-focus {
    padding: 1rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.professional-approach {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 2rem;
    background-color: rgba(230, 245, 255, 0.5);
    border-radius: 10px;
}

.professional-approach p {
    margin-bottom: 1rem;
}

.focus-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.focus-list li {
    padding: 1.5rem;
    background-color: rgba(230, 245, 255, 0.5);
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

.focus-list li:hover {
    transform: translateY(-5px);
}

/* Treatment Approaches Section */
#treatment-approaches {
    padding: 0.5rem 10% 4rem;
    max-width: 1400px;
    margin: -0.5rem auto;
}

.treatment-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.treatment-list li {
    padding: 1.5rem;
    background-color: rgba(230, 245, 255, 0.5);
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease;
}

.treatment-list li:hover {
    transform: translateY(-5px);
}

/* About Section */
#about {
    padding: 4rem 10%;
    background-color: rgba(230, 245, 255, 0.5);
    max-width: 1400px;
    margin: 0 auto;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.about-image img.loaded {
    opacity: 1;
}

.licenses {
    margin-top: 2rem;
}

.licenses ul {
    list-style: none;
    margin-top: 1rem;
}

.licenses li {
    margin-bottom: 0.5rem;
}

/* Specialties Section */
#specialties {
    padding: 4rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.specialty-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.specialty-item {
    padding: 2rem;
    background-color: rgba(230, 245, 255, 0.5);
    border-radius: 10px;
}

.specialty-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

.specialty-item h4 {
    margin: 1.5rem 0 1rem;
    color: #333;
}

.specialty-item ul {
    list-style: none;
    margin-top: 1rem;
}

.specialty-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.specialty-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* FAQ Section */
#faq {
    padding: 4rem 10%;
    background-color: rgba(230, 245, 255, 0.5);
    max-width: 1400px;
    margin: 0 auto;
}

.faq-content {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Contact Section */
#contact {
    padding: 4rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    padding-top: 10px;
}

.calendly-widget {
    margin-top: 2rem;
}

/* Contact Form Styling */
#contactForm {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#contactForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: #0069ff;
    box-shadow: 0 0 0 3px rgba(0, 105, 255, 0.1);
}

#contactForm textarea {
    resize: vertical;
    min-height: 120px;
}

#contactForm button {
    background-color: #0069ff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto;
    display: inline-block;
}

#contactForm button:hover {
    background-color: #0056d3;
    transform: translateY(-1px);
}

#contactForm button:active {
    transform: translateY(0);
}

/* Form validation error styles */
#contactForm input.error,
#contactForm textarea.error {
    border-color: #ff4444;
    background-color: #ffebee;
}

#formResponse {
    max-width: 600px;
    margin: 1rem auto;
    padding: 1rem;
    text-align: center;
    border-radius: 4px;
}

#formResponse p {
    margin: 0;
    font-weight: 500;
}

/* Contact info styling */
.contact-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-details {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background-color: rgba(230, 245, 255, 0.3);
    border-radius: 8px;
}

.contact-details p {
    font-size: 18px;
    margin: 0;
    color: #333;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: rgba(230, 245, 255, 0.5);
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

footer p {
    margin: 0;
}

/* Aviation Section */
#aviation {
    padding: 4rem 10%;
    max-width: 1400px;
    margin: 0 auto;
}

#aviation h2 {
    text-align: center;
    margin-bottom: 2rem;
}

#aviation .specialty-content {
    max-width: 1200px;
    margin: 0 auto;
}

#aviation .specialty-item {
    padding: 2rem;
    background-color: rgba(230, 245, 255, 0.5);
    border-radius: 10px;
}

#aviation .specialty-item h3 {
    margin-bottom: 1rem;
    color: #333;
}

#aviation .specialty-item h4 {
    margin: 1.5rem 0 1rem;
    color: #333;
}

#aviation .specialty-item ul {
    list-style: none;
    margin-top: 1rem;
}

#aviation .specialty-item li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

#aviation .specialty-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* Aviation Link */
.aviation-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.aviation-link:hover {
    color: #004d99;
    border-bottom-color: #004d99;
}

/* Contact form section layout */
.contact-form-section {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-photo {
    flex: 0 0 300px;
    text-align: center;
}

.tara-contact-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.contact-form-container {
    flex: 1;
    min-width: 0;
}

/* Responsive design for contact form */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .quote-slider blockquote {
        font-size: 1.2rem;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 1rem;
    }

    .specialty-content {
        grid-template-columns: 1fr;
    }

    .contact-form-section {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-photo {
        flex: none;
        align-self: center;
    }
    
    .tara-contact-photo {
        max-width: 250px;
    }
}