/* =======================
   Base Styles & Reset
======================= */
body {
    margin: 0;
    background: #FAEDCD;
    color: #2b2b1a;
    font-family: 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
ul, li { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }

html {
    scroll-behavior: smooth;
  }
h2.section-title {
    font-size: 2rem; text-align: left; margin: 40px 80px 30px 50px; color: #3a3a2b;
    font-weight: 700;
} 
.section-title.section-title--bright{
    background-color: #fce8bdde;
}

.section-title--bright {
    color: #ffb703; 
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* =======================
   Header
======================= */
.site-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 12px; gap: 8px;
    background: #FEFAE0; border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 40px; }
.brand-logo { height: 90px; width: auto; }

/* Nav */
.nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; width: 28px; height: 28px;
    border-radius: 12px; background: #E9EDC9; border: 1px solid rgba(0,0,0,0.1);
    cursor: pointer;
}
.nav-toggle .bar { width: 32px; height: 3px; background: #3a3a2b; }

.primary-nav {
    position: absolute; inset: auto 0 0 0;
    background: #FEFAE0; border-top: 1px solid rgba(0,0,0,0.05);
    transform: translateY(100%); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
}
.primary-nav.open { opacity: 1; pointer-events: auto; }
.primary-nav ul { display: flex; flex-direction: column; gap: 12px; }
.primary-nav a {
    display: flex; align-items: center; justify-content: center;
    padding: 14px 18px; font-weight: 700; font-size: 1.4rem;
    border-radius: 14px; background: #CCD5AE;
    border: 2px solid rgba(0,0,0,0.08); box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: background 0.3s;
}
.primary-nav a:hover { background: #E9EDC9; }
.primary-nav a:focus-visible { outline: 3px solid #A3B18A; outline-offset: 2px; }

/* Search */
.site-search { display: flex; gap: 8px; }
.site-search input { padding: 25px 26px; border-radius: 18px; border: 1px solid rgba(0,0,0,0.12); font-size: 1.2rem; }
.site-search button { padding: 16px 28px; border-radius: 18px; border: 1px solid rgba(0,0,0,0.1); background: #CCD5AE; cursor: pointer; font-size: 25px;}

/* =======================
   Hero
======================= */
.hero { padding: 24px 16px; text-align: center; }
.hero-title { font-size: 1.8rem; margin-bottom: 16px; line-height: 1.1; }
.hero-text { font-size: 1.3rem; max-width: 600px; margin: 0 auto; color: #3a3a2b; }

/* =======================
   Slider
======================= */
.slider {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px;
}

.slider-viewport {
    display: flex;          /* essential for JS */
    gap: 12px;              /* must match JS slideWidth gap */
    overflow: hidden;       /* hides overflow for scrolling */
}

.slider-track {
    display: flex;          /* essential for JS transform */
    gap: 12px;              /* same gap */
    transition: transform 0.3s ease;
}

.slide {
    flex: 0 0 calc((100% - 48px)/5); /* 5 slides visible */
    height: 250px;
    border-radius: 12px;
    background: #E9EDC9;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    align-items: stretch; /* stretch images vertically */
    justify-content: center;
}

.slide img {
    width: 100%;      /* fill slide horizontally */
    height: 100%;     /* fill slide vertically */
    object-fit: cover; /* crop if needed to avoid empty space */
    border-radius: 12px;
}


.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 13px 20px;
    cursor: pointer;
    z-index: 1;
    border-radius: 80%;
    font-size: 18px;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
.slider-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@media (min-width: 800px) {
    .slide { height: 300px; }
}


/* =======================
   Footer
======================= */
footer {
    background: #918f4f; color: #ecf0f1; padding: 50px 10px 110px 50px; font-family: Arial, sans-serif;
}

.youtube-video {
   display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 0 auto;
    border: 0;
}
/* =======================
   Information items
======================= */
.information { background: #e6dd85; padding: 28px 40px ; margin-top: 70px;}
.information-item { color: #2a2a18; }
.information-item h2 { color: #2a2a18;}
.information-item p { color: #1f1f12; margin-left: calc(42px + 10px); }
.information-item .section-title { display: inline-flex; align-items: center; gap: 10px; }
.information-icon { width: 42px; height: 42px; fill: #2e7d32; display: inline-flex; align-items: center; justify-content: center;}
.footer-container { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 20px; }
.footer-container > div { flex: 1; min-width: 200px; }
.footer-container h3 { margin-bottom: 15px; font-size: 18px; }
.footer-container p, .footer-container ul, .footer-container li { margin:0; padding:0; line-height:1.6; }
.footer-container a { color:#ecf0f1; text-decoration:none; transition: color 0.3s; }
.footer-container a:hover { color:#FEFAE0; }
.footer-bottom { text-align: center; border-top: 1px solid #ce8e68; font-size:14px; margin-top:20px; }

/* =======================
   Media Queries
======================= */
@media (min-width: 800px) {
    .site-header { gap: 16px; padding: 14px 24px; }
    .nav-toggle { display: none; }
    .primary-nav { position: static; transform: none; opacity: 1; pointer-events: auto; background: transparent; border: 0; }
    .primary-nav ul { flex-direction: row; gap: 12px; flex-wrap: wrap; }
    .primary-nav a { padding: 16px 22px; font-size: 1.6rem; border-radius: 16px; }
    .site-search input { width: 440px; }
    .brand-logo { height: 180px; }
    .hero { padding: 36px 24px; }
    .hero-title { font-size: 3rem; }
    .slide { height: 300px; }
}
@media (max-width: 768px) {
    .footer-container { flex-direction: column; align-items: flex-start; }
}

/* =======================
   Figure Row (two figures in one row)
======================= */
.figure-row {
    display: flex;           /* arrange children in a row */
    gap: 100px;               /* optional: space between figures */
    flex-wrap: wrap;         /* allows wrapping on smaller screens */
    justify-content: center; /* optional: center the figures horizontally */
}

.figure {
    width: 800px;            /* smaller width so both fit in one row */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.figure:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.figure-row::before{
    width: 700px;
}


/* =======================
   Mobile Slider Tweaks
======================= */
@media (max-width: 900px) {
    .figure {
        width: 100%;       /* full width on small screens */
        flex-direction: column;
    }
    .figure-row{
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .brand {
        display: none;
    }
}