:root {
    --primary: #fde997;
    --accent: #c0392b;
    --bg: #ffffff;
    --text: #2b2b2b;
    --font-primary: 'Oleo Script', cursive;
    --font-secondary: 'Abhaya Libre', serif;
    --social-size: 38px;
    --banner: url("/assets/images/banner.webp");
}

body {
    margin: 0;
    font-family: var(--font-secondary);
    font-size-adjust: 0.52;
    background: var(--bg);
    color: var(--text);
}

h1,
h2,
#title {
    font-family: var(--font-primary);
}

body.dark {
    background: #1c1c1c;
    color: #eeeeee;
}

body.dark header,
body.dark footer {
    background: var(--text);
    color: var(--bg);
}

body.dark .agenda-item {
    background: #c0392b26; /* 15% opacity */
    color: var(--bg);
}

header {
    background: var(--primary);
    padding: 1rem;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 70px;
}

.controls {
    margin-left: auto;
    display: flex;
    gap: 0.3rem;
}

button {
    cursor: pointer;
    background: transparent;
    border: none;
}

.flag {
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    border: 2px solid transparent;
    background: transparent;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.flag:hover {
    background: var(--bg);
    border-color: var(--accent);
}

.flag:focus-visible {
    outline: none;
    border-color: var(--accent);
    background: var(--bg);
}

body.dark .flag {
    color: var(--bg);
}

body.dark .flag:hover {
    background: var(--text);
    border-color: var(--primary);
}

body.dark .flag:focus-visible {
    background: var(--text);
    border-color: var(--accent);
}

.theme-toggle {
    width: var(--social-size);
    height: var(--social-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
}

.theme-toggle .theme-icon {
    width: 20px;
    height: 20px;
}

.theme-toggle:hover {
    background: #00000014; /* rgba(0,0,0,0.08) in hex */
    transform: scale(1.1);
}

body.dark .theme-toggle {
    color: var(--primary);
}

body.dark .theme-toggle:hover {
    background: #ffffff1a; /* rgba(255,255,255,0.1) in hex */
}

.banner {
    height: 280px;
    background: var(--banner) center/cover no-repeat;
}

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

.business-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.business-info img {
    flex: 1;
    max-width: 25%;
    border-radius: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.business-info>div {
    flex: 2;
}

.support-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Base style for circular social icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--social-size);
    height: var(--social-size);
    border-radius: 50%;
    color: var(--bg);
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Platform specific styles */
.instagram {
    background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
}

.whatsapp {
    background: #25d366;
}

.email {
    background: #0072c6;
}

.linkedin {
    background: #0077b5;
}

.gofundme {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #02a95c;
    color: #0b2e1c;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.gofundme i {
    font-size: 1.1rem;
}

.gofundme:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.agenda h2 {
    margin-bottom: 0.5rem;
}

.agenda-item {
    background: #c0392b26; /* 15% opacity */
    border-left: 6px solid var(--accent);
    color: var(--text);
    padding: 1rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.agenda-item strong {
    display: block;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

footer {
    background: var(--primary);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: #00000099; /* rgba(0,0,0,0.6) in hex */
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: var(--bg);
    padding: 1.5rem;
    max-width: 850px;
    width: 95%;
    border-radius: 12px;
}

body.dark .modal-content {
    background: var(--text);
    color: var(--bg);
}

.modal-body {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-text {
    flex: 1;
}

.modal iframe {
    width: 350px;
    height: 250px;
    border: 0;
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: var(--bg);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.close:hover {
    background: #a93226;
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 0.5rem;
    }

    .controls {
        margin: 0.5rem 0 0;
    }

    .logo {
        width: 60px;
    }

    .business-info {
        flex-direction: column;
        text-align: center;
    }

    .business-info img {
        max-width: 33%;
    }

    .banner {
        height: 180px;
    }

    .support-links {
        justify-content: center;
        width: 100%;
    }

    .agenda-item {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .modal-body {
        flex-direction: column;
    }

    .modal iframe {
        width: 100%;
        height: 200px;
    }

    footer {
        padding: 1rem;
    }
}

/* Extra small screens (mobile portrait) */
@media (max-width: 480px) {
    .theme-toggle {
        font-size: 1.2rem;
        padding: 0.3rem;
    }

    .flag {
        font-size: 1rem;
    }

    .support-links {
        gap: 0.75rem;
    }

    .gofundme {
        padding: 0.4rem 0.7rem;
        font-size: 0.85rem;
    }

    .business-info img {
        max-width: 50%;
    }

    .banner {
        height: 140px;
    }
}

/* Fix avatar stretching on small screens (iPhone 12 mini) */
@media (max-width: 414px) {
    .business-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .business-info img {
        flex: none;
        width: 150px;
        height: 150px;
        max-width: 80%;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 1rem;
    }
}
