/*
    Theme Name: mashariki
    Theme URI: https://example.com/
    Author: You
    Author URI: https://example.com/
    Description: Custom theme converting the M.A.A.F.F static site to WordPress.
    Version: 1.0.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Text Domain: mashariki
    */

:root { 
    --maaff-accent: #BF6D0A; 
    --bg-light: #FEFDFB;
    --bg-secondary: #F9F7F4;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-light: #e8e5df;
}

* {
    box-sizing: border-box;
    border: 0;
    padding: 0;
    margin: 0;
    font-family: "Montserrat", system-ui;
    font-optical-sizing: auto;
}

body {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* ===== NAVBAR ===== */
.navbar {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.navbar .nav-link {
    color: var(--text-secondary);
}

.navbar .nav-link:hover {
    color: var(--maaff-accent);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(191, 109, 10, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ===== TYPOGRAPHY ===== */
.theme-text { 
    color: var(--text-primary);
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
}

.heading-theme-text { 
    color: var(--text-primary);
    background: linear-gradient(to right, #BF6D0A, #FFD700, #BF6D0A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, #BF6D0A, #FFD700);
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text; 
    color: transparent;
}

.sub-heading {
    font-size: 12px;
    color: var(--text-secondary);
}

.small-text {
    font-size: 12px;
}

/* ===== BUTTONS ===== */
.theme-button { 
    background: var(--maaff-accent);
    color: #fff;
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
}

.theme-button:hover { 
    filter: brightness(0.95);
    color: #fff;
}

/* ===== HERO SECTION WITH CAROUSEL ===== */
.mm-hero { 
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.mm-hero__bg { 
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mm-hero__bg .carousel-item { 
    height: 100vh;
}

.mm-hero__bg-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

/* Soft Ken Burns animation for hero images */
.mm-hero__bg-img { 
    animation: kenburns 20s linear infinite alternate;
}

@keyframes kenburns {
    from { transform: scale(1.05); }
    to   { transform: scale(1.12); }
}

/* Light overlay instead of dark - brightens images slightly */
.mm-hero__overlay { 
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.25);
}

.mm-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Carousel controls styling */
.mm-hero .carousel-control-next-icon,
.mm-hero .carousel-control-prev-icon { 
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.mm-hero__panel {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 1.5rem;
    max-width: 900px;
    margin-inline: auto;
    padding: 3rem;
    color: var(--text-primary);
}

.mm-hero__title { 
    font-size: clamp(1.8rem, 3.5vw + .5rem, 3.2rem);
    line-height: 1.1;
    margin: 0;
    color: var(--text-primary);
}

.mm-hero__lead { 
    font-size: clamp(1rem, 1.1vw + .8rem, 1.25rem);
    color: var(--text-secondary);
}

.mm-hero__sub { 
    font-size: clamp(1rem, .8vw + .8rem, 1.15rem);
    color: var(--text-secondary);
}

.hero h1 {
    font-size: 5rem;
}

.hero h3 {
    font-size: 2.5rem;
}

.hero p {
    font-size: 1.2rem;
}

/* ===== CARDS ===== */
.poster-card {
    background-color: #ffffff;
    border-radius: 3rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.poster-card img {
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
}

.poster-card .carousel-inner { 
    border-radius: 3rem;
}

.object-cover { 
    object-fit: cover;
    height: 100%;
    max-height: 480px;
}

@media (max-width: 991.98px) {
    .object-cover { max-height: 320px; }
}

.team-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.team-card img {
    width: 100%;
    height: auto;
    border-radius: 100%;
    border: 3px solid var(--border-light);
}

.program-card {
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.mm-card { 
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.mm-card .card-title { 
    color: var(--text-primary);
}

.mm-card .card-text { 
    color: var(--text-secondary);
}

/* ===== BACKGROUNDS ===== */
.background-theme {
    background: linear-gradient(to right, #BF6D0A, #FFD700, #BF6D0A);
    border-radius: 2rem;
    color: #ffffff;
}

.day-container {
    border-right: 1px solid #FFD700;
}

/* ===== KPI / STATISTICS ===== */
.mm-kpi {
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1;
    margin-bottom: .25rem;
    background: linear-gradient(90deg, #BF6D0A, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== TIMELINE ===== */
.mm-timeline .list-group-item { 
    padding-left: 2rem;
    border-color: var(--border-light);
    background: #ffffff;
}

.mm-timeline .mm-dot {
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: .5rem;
    height: .5rem;
    background: #FFD700;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(255,215,0,0.2);
}

/* ===== PARTNERS ===== */
.mm-partner { 
    filter: grayscale(1) opacity(.6);
    transition: .2s ease;
    max-height: 54px;
}

.mm-partner:hover { 
    filter: none;
    opacity: 1;
}

/* ===== LOGO ===== */
.mash-logo {
    max-width: 160px;
    width: 140px;
    height: auto;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.footer-glass {
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
    border-radius: 1rem;
}

.footer-divider {
    height: 3px;
    background: linear-gradient(90deg, #BF6D0A, #FFD700, #BF6D0A);
    opacity: .7;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: var(--maaff-accent);
    border-color: var(--maaff-accent);
    color: #ffffff;
}

.footer-menu li + li { 
    margin-top: .25rem;
}

.footer-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
}

.footer-menu a:hover {
    color: var(--maaff-accent);
    padding-left: .25rem;
}

.footer-input {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.footer-input::placeholder { 
    color: #999;
}

.footer-input:focus {
    background: #ffffff;
    border-color: var(--maaff-accent);
    box-shadow: 0 0 0 3px rgba(191, 109, 10, 0.1);
}

.footer-btn {
    border: none;
    border-radius: .75rem;
}

.footer-btn:hover {
    filter: brightness(.95);
    color: #fff;
}

.back-to-top {
    color: var(--text-secondary);
}

.back-to-top:hover { 
    color: var(--maaff-accent);
}

/* ===== FULLSCREEN IFRAME ===== */
.fullscreen-iframe {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.fullscreen-iframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}
