/* =========================================
   COLORS
========================================= */
:root {
    --dark: #040F16;
    --light: #FBFBFF;
    --light-alt: #01BAEF;
    --accent: #B90C09;
    --accent-dark: #0B4F6C;
}

/* =========================================
   GLOBAL
========================================= */
html, body {
    height: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--dark);
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin: 0 auto;
}

/* Heading Colors */
h1 { color: var(--light); }
h2 { color: var(--accent); }
h3 { color: var(--accent-dark); }
p { color: var(--dark); }

/* Heading Weight */
h1, h2, h3, h4 {
    font-weight: 600;
}

/* Footer auto-stick */
.site-footer {
    margin-top: auto;
}

/* =========================================
   GLOBAL LINK STYLES
========================================= */
a {
    color: var(--dark);
    text-decoration: underline;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--light-alt);
}

/* =========================================
   INDENTATION UTILITIES
========================================= */
.indent-2 { text-indent: 2em; }
.indent-4 { text-indent: 4em; }

/* =========================================
   TWO-COLUMN LAYOUT
========================================= */
.two-column {
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
}

.left-container,
.right-container {
    width: 50%;
    max-width: 600px;
    padding: 0 1.5rem;
    text-align: left;
}

.left-container img,
.right-container img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .two-column {
        flex-wrap: wrap;
    }

    .left-container,
    .right-container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .left-container img,
    .right-container img {
        margin-top: 1.5rem;
    }
}

/* =========================================
   NAVIGATION
========================================= */
.site-header {
    background-color: var(--dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.mobile-menu-toggle {
	display: none;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.logo a {
    color: var(--light);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links .active-link {
    color: var(--light-alt);
    cursor: default;
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Underline animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark);
    padding: 0.5rem 0;
    list-style: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    min-width: 180px;
    z-index: 999;
}

.dropdown-menu {
    align-self: flex-start;
}

.dropdown-menu[hidden] {
    display: none !important;
}

.dropdown-menu:not([hidden]) {
    display: block !important;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--light);
    text-decoration: none;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--accent);
    color: var(--light);
}

.dropdown-toggle {
    background: none;
    border: none;
    color: white;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.8rem;
}

.dropdown-toggle[aria-expanded="true"]::after {
    content: " ▲";
}

/* =========================================
   HERO
========================================= */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-align: center;
    flex-shrink: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(251, 251, 255, 0.35);
    z-index: 1;
}

.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-carousel img {
    position: absolute;
    width: 100%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Typography */
.hero-content h1 {
    font-family: DM sans, sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-top: 5rem;
    color: var(--light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInLeftToRight 2.5s ease-out forwards;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    opacity: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    animation: fadeInLeftToRight 3.5s ease-out forwards;
    animation-delay: 1.0s;
}

/* Fade-in animation */
@keyframes fadeInLeftToRight {
    0% {
        opacity: 0;
        transform: translateX(-40px);
        clip-path: inset(0 100% 0 0);
    }
    60% {
        opacity: 1;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   BUTTONS
========================================= */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent);
    color: var(--light);
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    color: var(--light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.15rem;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
    background-color: var(--accent-dark);
    color: var(--light);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Main footer layout */
.footer-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Bottom row: 3 columns */
.footer-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* left | center | right */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left column */
.footer-left-col {
    text-align: left;
}

/* Center column */
.footer-center-col {
    text-align: center;
}

.footer-center-col a {
    color: var(--light);
    text-decoration: none;
}

.footer-center-col a:hover {
    color: var(--dark);
}

/* Right column */
.footer-right-col {
    text-align: right;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Social icons */
.footer-social img {
    width: 28px;
    height: 28px;
    opacity: 0.9;
    transition: opacity 0.25s ease, transform 0.2s ease;
}

.footer-social img:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Footer Disclaimer */
.footer-disclaimer {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border-radius: 4px;
    opacity: 0.9;
}

/* Footer text */
.footer-text {
    color: var(--light);
    margin: 0;
}

/* Contact button */
.footer-contact {
    padding: 0.5rem 1rem;
    white-space: nowrap;
    max-width: fit-content;
}

/* =========================================
   YOUTUBE EMBED
========================================= */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   TIKTOK EMBED
========================================= */
.tiktok-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.tiktok-thumb {
  width: 100%;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  text-shadow: 0 0 10px black;
  pointer-events: none;
}

/* =========================================
   CONTACT FORM
========================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 2px solid var(--dark);
    border-radius: 6px;
    font-size: 1rem;
}

.contact-form button {
    align-self: flex-start;
}

/* =========================================
   ACCESSIBILITY
========================================= */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

:focus {
    outline: 3px solid #ffcc33;
    outline-offset: 3px;
}

a:focus,
button:focus,
.nav-links a:focus,
.dropdown-menu a:focus {
    outline: 3px solid #ffcc33;
    outline-offset: 3px;
}

.dropdown-menu a:focus {
    background-color: rgba(255, 255, 255, 0.15);
}

.site-header a:focus,
.site-header button:focus {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {

    /* Navigation */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        margin-left: auto;
    }

    nav#mobile-nav {
        display: none;
        width: 100%;
        background-color: var(--dark);
        padding: 1rem 0;
    }

    nav#mobile-nav.open {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        background: none;
        padding: 0;
        display: none;
    }

    .dropdown-menu li a {
        display: block;
        padding: 0.5rem 0;
    }

    /* Hero */
    .hero {
        min-height: 40vh;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        letter-spacing: 0.5px;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        letter-spacing: 0.25px;
    }

    .hero-carousel img {
        max-height: 50vh;
        object-fit: cover;
    }

    /* Policy Pillars */
    .indent-2 { text-indent: 1em; }
    .indent-4 { text-indent: 1.5em; }

    .container[aria-label="Policy Pillars Section"] {
        padding: 1.5rem 1rem;
    }

    .container[aria-label="Policy Pillars Section"] h2 {
        margin-bottom: 1rem;
        text-align: center;
    }

    .container[aria-label="Policy Pillars Section"] h3 {
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .container[aria-label="Policy Pillars Section"] p {
        margin-bottom: 1rem;
        line-height: 1.5;
    }

    /* Donation Buttons */
    .donation-buttons {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .donation-buttons a {
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
        text-align: center;
    }

    #donate-box1 .container {
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        padding-top: 0;
    }

    #donate-box2 .container {
        align-items: flex-start;
        justify-content: flex-start;
        height: auto;
        padding-top: 0;
    }

    .two-column {
        display: block;
    }

    .left-container,
    .right-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .two-column h2 {
        margin-top: 1rem;
    }

    .container hr {
        margin: 2rem 0;
    }

    /* Footer */
    .site-footer {
        text-align: center;
        padding: 2rem 1rem;
    }

    .footer-flex {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-social img {
        width: 32px;
        height: 32px;
    }

    .footer-disclaimer {
        width: 100%;
        max-width: 320px;
        margin: 1rem auto 0 auto;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Global Vertical Rhythm */
    section,
    .hero,
    .two-column,
    .site-footer {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Mobile Heading Scaling */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
}


.dropdown-menu[hidden] {
    display: none !important;
}

.dropdown-menu:not([hidden]) {
    display: block !important;
}

#header-placeholder {
    width: 100%;
}
