/* Living Springs v3 — Shared Styles */
/* White/light theme with teal-green accents */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
}

:root {
    --primary: #31676e;
    --primary-dark: #21464b;
    --accent: #357880;
    --light-accent: #4a9faa;
    --gradient-light: #91e1e7;
    --gradient-dark: #40adbd;
    --bg: #ffffff;
    --bg-soft: #f5f9f9;
    --bg-section: #eef5f5;
    --text: #2c2c2c;
    --text-mid: #555;
    --text-light: #666;
    --border: #dce8e8;
    --shadow: rgba(49, 103, 110, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    color: var(--primary);
    line-height: 1.3;
}

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

img { max-width: 100%; height: auto; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s;
}
.site-header.scrolled {
    box-shadow: 0 2px 20px var(--shadow);
}
.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}
/* Social icons — top right */
.header-social {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    display: flex;
    gap: 12px;
    align-items: center;
}
.header-social a {
    color: var(--text-light);
    font-size: 1.1rem;
}
.header-social a:hover { color: var(--accent); }

/* Logo — centered */
.site-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    margin-bottom: 0.3rem;
}
.site-logo img {
    height: 50px;
    margin-bottom: 0.4rem;
    animation: spin 15s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.site-logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
}
.site-description {
    font-size: 0.6rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    text-align: center;
    margin-top: 0.2rem;
}

/* Navigation — centered below logo */
.main-nav {
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 0.6rem;
}
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    justify-content: center;
}
.main-nav li {
    position: relative;
}
.main-nav a {
    display: block;
    padding: 0.8rem 1.2rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    transition: color 0.3s, background 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-dark);
    background: var(--bg-section);
}

/* Dropdown menus */
.has-dropdown {
    position: relative;
}
.has-dropdown > .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 8px 30px var(--shadow);
    min-width: 220px;
    z-index: 50;
}
.has-dropdown:hover > .dropdown {
    display: block;
}
.dropdown li {
    list-style: none;
}
.dropdown a {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
    display: block;
    transition: color 0.3s, background 0.3s;
}
.dropdown a:hover {
    background: var(--bg-section);
    color: var(--primary-dark);
}
.dropdown li:last-child a { border-bottom: none; }

/* Mobile toggle — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    position: absolute;
    top: 1.2rem;
    left: 2rem;
    min-width: 48px;
    min-height: 48px;
    padding: 8px;
}

/* Sections */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--bg-soft);
}
.section-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.2rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.section-desc {
    color: var(--text-mid);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    text-align: center;
}
.divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 1.5rem 0;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-body {
    padding: 1.5rem;
}
.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.card-body p {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 2rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    padding: 0.2rem 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}
.footer-powered img {
    height: 14px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    position: relative;
    top: 1px;
    margin: 0 4px;
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Video embed responsive */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Team */
.team-lead {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-soft);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.team-lead img {
    width: 100%;
    border-radius: 8px;
}
.team-lead h3 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.team-lead .role {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
}
.dept-section { margin-bottom: 2.5rem; }
.dept-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.dept-icon {
    font-size: 1.5rem;
}
.dept-header h3 { font-size: 1.1rem; }
.member-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.member-chip {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
}

/* Profile grid */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}
.profile-card {
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
    border-radius: 6px;
}
.profile-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow);
}
.profile-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}
.profile-card h3 { font-size: 0.95rem; margin: 0.6rem 0 0.2rem; }
.profile-card p { font-size: 0.8rem; color: var(--text-mid); margin-bottom: 0.5rem; }

/* Supporters */
.tier-section { margin-bottom: 3rem; }
.tier-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.tier-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
}
.tier-badge {
    background: rgba(71, 155, 167, 0.1);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}
.org-card {
    padding: 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}
.org-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.org-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.org-card p { font-size: 0.85rem; color: var(--text-mid); }
.org-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
    float: left;
    margin-right: 12px;
}

/* Documentary page */
.film-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}
.film-poster {
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; }
    .team-lead { grid-template-columns: 1fr; }
    .film-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav { display: none !important; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 8px 30px var(--shadow); z-index: 100; }
    .main-nav.open { display: block !important; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 0.8rem 2rem; border-bottom: 1px solid var(--border); display: block; }
    .has-dropdown > .dropdown { position: static; box-shadow: none; border: none; border-radius: 0; min-width: 0; display: none; background: var(--bg-soft); }
    .has-dropdown.open > .dropdown { display: block; }
    .dropdown a { padding: 0.6rem 2rem 0.6rem 3rem; font-size: 0.8rem; }
    .header-social { display: none; }
    .site-logo-text { font-size: 1rem !important; }
    .site-description { font-size: 0.5rem !important; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
</style>
