/* Common Styles for EcoClassica Prototype */

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #708269; /* Move Sage green here */
    color: #1b4003;
}

/* Navigation Bar removed */

/* =========================================
   Global Base
   ========================================= */

/* Site Header */
.site-header {
    background-color: rgba(255, 255, 255, 0.9);
    height: 135px;
    padding: 0 100px 0 112px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1001;
    overflow: visible;  /* allow logo to extend beyond the bar */
    transition: all 0.3s ease-in-out;
}

.site-header .logo-img {
    height: 125px !important;
    width: 125px !important;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
    align-self: center;
    margin: auto 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 40px;
    text-decoration: none;
}

.logo-text {
    font-size: 2.3rem;
    font-weight: 300;
    color: #111111;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.015em;
    display: inline-block;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 25px;
    background: none;
    padding: 0;
    position: static;
}

.lang-switcher {
    display: flex;
    gap: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

/* Tablet */
@media (max-width: 900px) {
    .site-header {
        height: 90px;
        padding: 0 30px;
    }
    .site-header .logo-img {
        height: 80px !important;
        width: 80px !important;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .site-header {
        flex-direction: column !important;
        height: auto !important;
        padding: 15px !important;
        gap: 15px !important;
    }
    .logo a {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
    .logo-text {
        font-size: 1.8rem !important;
    }
    .site-header .logo-img {
        height: 70px !important;
        width: 70px !important;
    }
    .main-nav {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
        background: none !important;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
        max-height: 150px;
        opacity: 1;
        overflow: hidden;
    }
    .lang-switcher {
        justify-content: center !important;
        margin-top: 5px !important;
        transition: max-height 0.3s ease-in-out, opacity 0.3s ease;
        max-height: 100px;
        opacity: 1;
        overflow: hidden;
    }

    /* Shrink Header on Scroll */
    .header-scroll .main-nav, 
    .header-scroll .lang-switcher {
        max-height: 0 !important;
        opacity: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .header-scroll .logo a {
        flex-direction: row !important;
        gap: 10px !important;
    }
    .header-scroll .logo-text {
        display: none !important;
    }
    .header-scroll .site-header {
        padding: 5px 15px !important;
        gap: 0 !important;
    }
    .header-scroll .site-header .logo-img {
        height: 45px !important;
        width: 45px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .site-header {
        height: 70px;
        padding: 0 16px;
    }
    .site-header .logo-img {
        height: 60px !important;
        width: 60px !important;
    }
}
/* Global Container (if needed) */
.container {
    max-width: 1000px; /* Restrict width */
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: 5% !important;
        box-sizing: border-box !important;
    }
    .carousel-item {
        padding: 5% !important;
    }
    .main-content {
        padding: 5% !important;
    }
    
    /* Reset side margins/paddings that stack that make the viewport thin */
    .content p, .accordion-content p, .action-block, .accordion-content, .content li, .accordion-content li {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
}

/* Footer */
footer {
    background-color: #1B4003;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

footer a {
    color: #f8d996;
    text-decoration: none;
}

/* Include specific styles from individual pages if they don't conflict */
/* Carousel (Welcome Page) */
.carousel {
    background: linear-gradient(to right, #1B4003, #38611f);
    padding: 5px;
    margin-top: 1em;
    position: relative;
    overflow: hidden;
    text-align: left;
    border-radius: 10px;
    margin-bottom: 0;
}
.carousel-inner { display: flex; transition: transform 0.5s ease; }
.carousel-item { width: 100%; flex-shrink: 0; padding: 20px; display: flex; flex-direction: column; align-items: center; }
.carousel-content-wrapper { max-width: 90%; text-align: center; }
.carousel-content-wrapper h1 {
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    margin-top: 0px !important;
    color: #ffffff !important;
}

.carousel-content-wrapper p {
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    color: #ffffff !important;
}

.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); font-size: 3em; color: white; border: none; background: transparent; cursor: pointer; }
.carousel-control.prev { left: 10px; }
.carousel-control.next { right: 10px; }

/* Accordion (Welcome Page) */
.accordion-content { display: none; padding: 10px; }
.accordion-content.active { display: block; }
h3 { cursor: pointer; }

/* Accordion Triangle Animation */
.content h3::before {
    display: inline-block;
    margin-right: 8px;
    font-size: 0.8em;
    transition: transform 0.3s ease;
    color: #1B4003;
    content: '▶';
}

.content h3:has(+ .accordion-content.active)::before {
    transform: rotate(90deg);
}

/* Accordion Title Hover Effect */
.content h3 {
    transition: color 0.2s ease;
}

.content h3:hover {
    color: #38611f !important; /* Lighter theme green on hover for feedback */
}

/* Team Cards (About Us) */
.team-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 20px; }
.team-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 8px rgba(0,0,0,0.1); width: 300px; text-align: center; padding-bottom: 20px; transition: transform 0.3s; }
.team-card:hover { transform: translateY(-5px); }
.team-card img { width: 100%; height: 300px; object-fit: cover; border-top-left-radius: 12px; border-top-right-radius: 12px; }
.team-card h3 { margin: 10px 0 5px; font-size: 1.4em; color: #1a1a1a; }
.team-card .role { display: inline-block; background-color: #f8d996; font-size: 0.9em; padding: 5px 12px; border-radius: 8px; }
.team-card p { font-size: 0.9em; color: #444; padding: 0 15px; }

/* Added Background for Readability and Match */
.main-content {
    background-color: transparent; /* Transparent to show stave behind */
    padding: 30px;
    min-height: 80vh;
    position: relative;
    z-index: 1; /* Above stave */
}

/* Harmonious Spacing Polishes */
p {
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}

h2, h3 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.8rem !important;
}

.carousel-item {
    justify-content: center !important; /* Center text vertically */
}

.carousel-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    height: 100% !important; /* Forces inner flexbox to fill item height for centered titles/paragraphs */
}

.content {
    padding-top: 2px !important; /* Reduce top space before secondary titles */
}

.action-block {
    margin-bottom: 1rem !important;
}

img {
    margin-bottom: 2rem;
    border-radius: 8px;
}

/* Restrict Text Container width inside 1000px container */
.container p, .container .action-block, .container li {
    max-width: 850px !important; /* Constrain text only */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Swirling Music Staff Animation */
.stave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Above body background, below content */
    pointer-events: none;
    opacity: 0.15;
    overflow: hidden;
    will-change: transform;
}

.stave-svg {
    width: 6000px; /* Very wide for continuous wave */
    height: 100%;
    animation: waveMove 40s linear infinite;
}

.stave-svg path {
    stroke: #1B4003;
    stroke-width: 1.2;
    fill: none;
    animation: swirl 8s ease-in-out infinite;
}

/* Offset paths for depth */
.stave-svg path:nth-child(2) { animation-delay: -2s; opacity: 0.7; }
.stave-svg path:nth-child(3) { animation-delay: -4s; opacity: 0.5; }
.stave-svg path:nth-child(4) { animation-delay: -6s; opacity: 0.3; }

@keyframes waveMove {
    from { transform: translateX(-3000px); }
    to { transform: translateX(0); }
}

@keyframes swirl {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(20px) scaleY(1.1); }
}

/* Fluid Titles for automatic resizing */
.carousel-content-wrapper h1, 
.page-title-banner h1 {
    font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

