/*
 * Ithaca Apple Harvest Festival Stylesheet
 * Author:  Ayotunde EJiko (or Your Name)
 * Last Updated: 2025-04-15
 */

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

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

h1, h2, h3, h4 {
    color: #2c5e2e;
}

a {
    text-decoration: none;
    color: #2c5e2e;
}

a:hover {
    color: #eb6f27;
}

.hidden {
    display: none !important;
}


header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header a:first-child {
    line-height: 0;
}

header img {
    height: 60px;
    margin-right: 1rem;
}

header h1 {
    font-size: 1.5rem;
    margin-right: auto;
    padding-left: 1rem;
}


nav#main-nav {
    display: flex;
    gap: 1.5rem;
    order: 3;
    margin-left: 1rem;
    align-items: center;
    padding: 0;
    background: none;
    border-bottom: none;
}

 nav#main-nav a {
     color: #2c5e2e;
     font-weight: 700;
     padding: 0.5rem 1rem;
     transition: color 0.3s ease;
     border-bottom: 3px solid transparent;
 }

 nav#main-nav a:hover {
    color: #eb6f27;
    border-bottom-color: #eb6f27;
 }

nav#main-nav a.active {
    border-bottom-color: #2c5e2e;
}

#hamburger-button {
    background-color: #2c5e2e;
    color: white;
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
    border: none;
    cursor: pointer;
    display: block;
    border-radius: 4px;
    margin-left: 1rem;
    line-height: 1;
}

#nav-dropdown {
    flex-direction: column;
    background: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 1rem;
    gap: 0.5rem;
    position: absolute;
    top: 80px;
    right: 1.5rem;
    width: 200px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}

#nav-dropdown a {
    color: #2c5e2e;
    font-weight: bold;
    padding: 0.5rem 0;
    width: 100%;
    text-align: left;
}
#nav-dropdown a:hover {
    color: #eb6f27;
}

@media (min-width: 769px) {
    header h1 {
        font-size: 1.8rem;
    }

    #hamburger-button {
        display: none;
    }

    #nav-dropdown {
        display: none !important;
    }

    nav#main-nav {
        display: flex;
        order: 3;
        padding: 0;
        margin-left: 1rem;
    }
}


#modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 999;
}

#modal-overlay.hidden {
    display: none;
}

#modal-content {
    background: white;
    padding: 2rem;
    padding-top: 3.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 550px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

#close-modal {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #555;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.25rem;
    z-index: 1000;
}
#close-modal:hover {
    color: #000;
}

#modal-dynamic-content-area {
    text-align: center;
}

.modal-specific-content {

}

.modal-specific-content h2 {
  font-size: 1.75rem;
  color: #2c5e2e;
  margin-bottom: 1rem;
}

.modal-specific-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
  text-align: left;
}

.modal-specific-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}


main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.content-block {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.text-content, .image-content {
    flex: 1;
    min-width: 280px;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.hero {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}

.hero-overlay h2 {
    margin-bottom: 0.75rem;
    color: white;
    font-size: 2.5rem;
}

.hero-overlay p {
    font-size: 1.2rem;
    color: white;
    max-width: 600px;
}

.highlights {
    margin-bottom: 3rem;
}

.highlights .highlight-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.highlight-card {
    background: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.highlight-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.highlight-card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    margin-bottom: 0;
}

.highlight-card p {
    padding: 0 1rem 1rem 1rem;
    flex-grow: 1;
}

.featured-vendors, .vendor-categories {
    margin: 3rem 0;
}

.featured-vendors h2, .vendors-intro h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.vendor-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.vendor-card {
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.vendor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vendor-info, .vendor-details {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.vendor-info h3, .vendor-details h4 {
    margin-bottom: 0.5rem;
}

.vendor-details h4 {
    font-size: 1.2rem;
}

.vendor-offerings {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 1rem 0;
    text-align: left;
    font-size: 0.9rem;
}

.vendor-offerings li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #eee;
}

.vendor-offerings li:last-child {
    border-bottom: none;
}

.open-modal {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2c5e2e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    margin-top: auto;
    align-self: center;
}
.open-modal:hover {
    background: #1e401f;
}


.countdown {
    background: linear-gradient(to bottom, #a0a4a0, #2c5e2e);
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 8px;
}

.countdown h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 4px;
    min-width: 80px;
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-main { }

.schedule-header {
    text-align: center;
    margin-bottom: 2rem;
}
.schedule-header h2 {
    margin-bottom: 0.5rem;
}

.schedule-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.schedule-content {
    flex: 2;
    min-width: 300px;
}

.schedule-aside {
    flex: 1;
    min-width: 280px;
}

.schedule-days {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.schedule-day {
    background: #f8f8f8;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}
.schedule-day:last-child {
    margin-bottom: 0;
}

.day-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}
.day-header h3 {
    margin: 0;
}

.day-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: auto;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.time-block {
    display: flex;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
}

.time {
    flex: 0 0 80px;
    font-weight: bold;
    color: #2c5e2e;
    text-align: left;
    font-size: 0.9rem;
    padding-top: 0.1em;
}

.event {
    flex: 1;
}

.event h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.event p {
    margin: 0.1rem 0;
    font-size: 0.9rem;
    color: #555;
}
.event p:first-of-type {
    font-style: italic;
}


.schedule-aside .map-container, .schedule-aside .featured-performer {
    margin-bottom: 2rem;
}
.schedule-aside h3 {
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.festival-map {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-top: 0;
    display: block;
}

.featured-performer {
    background: #f8f8f8;
    padding: 1.5rem;
    border-radius: 8px;
}

.performer-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.performer-info h4 {
    margin-bottom: 0.25rem;
}
.performer-info p {
    font-size: 0.9rem;
    color: #555;
}

.vendors-main { }

.vendors-intro p {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

.vendor-categories { }

.vendor-category {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.category-header img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.category-info {
    flex: 1;
}
.category-info h3 {
    margin-bottom: 0.25rem;
}
.category-info p {
    font-size: 0.9rem;
    color: #555;
}


.vendor-map {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}
.vendor-map h3 {
    margin-bottom: 1.5rem;
}

.map-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto 1.5rem auto;
    display: block;
    border: 1px solid #ddd;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-item span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.food-color { background: #d32f2f; }
.crafts-color { background: #1976d2; }
.produce-color { background: #388e3c; }

.visit-main { }

.visit-hero {
    position: relative;
    margin-bottom: 3rem;
    border-radius: 8px;
    overflow: hidden;
}
.visit-hero .hero-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}
.visit-hero .hero-content {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
}
.visit-hero .hero-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.visit-hero .hero-content p {
    color: white;
    font-size: 1.2rem;
}


.location-info, .parking-info, .accessibility-info, .faq-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f8f8;
    border-radius: 8px;
}
.location-info h3, .parking-info h3, .accessibility-info h3, .faq-section h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    text-align: left;
}
.info-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.transport-options {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.option h4 {
    margin-bottom: 0.5rem;
}
.option ul {
    list-style: none;
    padding-left: 0;
}
.option li {
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.accessibility-features {
    list-style: disc;
    padding-left: 1.5rem;
    columns: 2;
    column-gap: 2rem;
}
.accessibility-features li {
    margin-bottom: 0.5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.faq-item:last-child {
    border-bottom: none;
}
.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.2em;
    color: #2c5e2e;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding-top: 0.5rem;
    padding-left: 0.5rem;
    color: #555;
}


footer {
    background: #2c5e2e;
    color: rgba(255, 255, 255, 0.9);
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-content a {
    color: white;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.footer-content a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 1rem;
}

.social-links a img {
    width: 28px;
    height: 28px;
    transition: opacity 0.3s ease;
    filter: brightness(0) invert(1) opacity(0.9);
}

.social-links a img:hover {
    opacity: 0.8;
    filter: brightness(0) invert(1) opacity(1);
}


@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }
    header img {
        height: 50px;
    }
    header h1 {
        font-size: 1.2rem;
        padding-left: 0.5rem;
    }
    main {
        padding: 0 1rem;
    }

    .content-block, .content-block.reverse {
        flex-direction: column;
    }
    .accessibility-features {
        columns: 1;
    }

    .footer-content {
        text-align: center;
    }
    .social-links {
        justify-content: center;
    }
}
