/* --- style.css - UYGHUR FLORAL TILE EDITION --- */

/* 1. GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Amiri:wght@400;700&display=swap');

/* 2. VARIABLES */
:root {
    --uyghur-blue: #006c8a; 
    --light-navy: #4a7c9d; 
    --uyghur-gold: #d4af37; 
    --white-bg: #ffffff;
    --dark-text: #2c3e50;
    
    /* Floral Pattern Colors */
    --flower-bg: #f0f6fa;       /* Very pale blue background */
    --flower-petal: #dbe9f2;    /* The flower shape color */
    --flower-center: #4a7c9d;   /* The dot in the middle */
}

/* 3. BASIC RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* 4. GEOMETRIC FLOWER BACKGROUND 
   This code overlaps circles to create a 4-petal "Tile Flower" look.
*/
body {
    font-family: 'Amiri', serif; 
    color: var(--dark-text);
    line-height: 1.8;
    background-color: var(--flower-bg);
    
    /* THE FLORAL PATTERN CODE */
    background-image: 
        /* The Center Dot (Navy) */
        radial-gradient(circle at 50% 50%, var(--flower-center) 2px, transparent 2.5px),
        /* The Petals (Light Blue) */
        radial-gradient(circle at 0% 50%, transparent 40%, var(--flower-petal) 41%, var(--flower-petal) 50%, transparent 51%),
        radial-gradient(circle at 100% 50%, transparent 40%, var(--flower-petal) 41%, var(--flower-petal) 50%, transparent 51%),
        radial-gradient(circle at 50% 0%, transparent 40%, var(--flower-petal) 41%, var(--flower-petal) 50%, transparent 51%),
        radial-gradient(circle at 50% 100%, transparent 40%, var(--flower-petal) 41%, var(--flower-petal) 50%, transparent 51%);
        
    background-position: 0 0;
    background-size: 50px 50px; /* Adjust size of flowers here */
}

/* English Override */
body.lang-en-active, 
body.lang-en-active h1, body.lang-en-active h2, body.lang-en-active p, 
body.lang-en-active a, body.lang-en-active button, body.lang-en-active input {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* 5. HEADER (Clean White with Floral Border) */
header {
    background-color: var(--white-bg);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(74, 124, 157, 0.15);
    border-bottom: 5px solid var(--light-navy);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-img { max-height: 60px; width: auto; }
.site-title {
    color: var(--uyghur-blue);
    font-size: 1.4rem; font-weight: 700; line-height: 1.1;
}

/* Nav Links */
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: #555; font-weight: 700; font-size: 1.1rem; transition: 0.3s; }
.nav-links a:hover { color: var(--light-navy); }

.btn-donate-nav {
    background-color: var(--uyghur-gold); color: white !important;
    padding: 0.5rem 1.5rem; border-radius: 50px; font-weight: 700;
}

.lang-switch {
    background: white; border: 1px solid var(--light-navy); color: var(--light-navy);
    padding: 0.3rem 0.8rem; border-radius: 20px; cursor: pointer; font-weight: 700;
}
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--light-navy); }

/* 6. HERO SECTION */
.hero {
    position: relative; 
    background-color: var(--uyghur-blue); 
    color: white;
    padding: 7rem 0 9rem 0; text-align: center;
    border-bottom: 8px solid var(--uyghur-gold);
    border-bottom-left-radius: 40% 4rem; 
    border-bottom-right-radius: 40% 4rem;
    box-shadow: 0 10px 30px rgba(0, 108, 138, 0.2);
}
.hero h2 { font-size: 2.8rem; font-weight: 700; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 800px; margin: 0 auto 2.5rem auto; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; }
.btn-hero-primary { background-color: var(--uyghur-gold); color: #333; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700; text-decoration: none; }
.btn-hero-secondary { border: 2px solid white; color: white; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 700; text-decoration: none; }

/* 7. SECTIONS & BOXES */
.section-padding { padding: 4rem 0; }
.section-title { 
    color: var(--light-navy); font-weight: 800; font-size: 2.5rem; 
    margin-bottom: 2rem; text-align: center; 
    text-shadow: 2px 2px 0px white;
}

/* CONTENT BOXES - Clean White with Navy Accents */
.form-box, .donate-box, .grid-item, div[style*="background: white"] {
    background: white !important;
    padding: 2.5rem; 
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(74, 124, 157, 0.15); 
    border: 1px solid #dae8f0;
    border-top: 6px solid var(--light-navy) !important;
}

.form-input { 
    width: 100%; padding: 1rem; border: 2px solid #dae8f0; border-radius: 10px; 
    font-size: 1.1rem; margin-top: 0.5rem;
}
.btn-submit {
    width: 100%; background-color: var(--light-navy); color: white; padding: 1rem;
    border: none; border-radius: 50px; font-size: 1.2rem; font-weight: 700; margin-top: 2rem; cursor: pointer;
}
.btn-submit:hover { background-color: var(--uyghur-blue); }

/* 8. FOOTER */
footer { 
    background-color: var(--uyghur-blue); 
    color: white; padding: 3rem 0; text-align: center;
    border-top: 6px solid var(--uyghur-gold);
}

/* 9. MOBILE RESPONSIVE */
@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 75px; left: 0; width: 100%; background-color: white;
        flex-direction: column; padding: 2rem 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: none;
    }
    .nav-links.active { display: flex; }
    .hero h2 { font-size: 2.2rem; }
}

/* 10. LANGUAGE UTILS */
.content-en { display: none; }
.content-ug { display: block; }
body.lang-en-active .content-en { display: block; }
body.lang-en-active .content-ug { display: none; }
body.lang-en-active span.content-en { display: inline; }
body.lang-en-active span.content-ug { display: none; }