/* ========== styles.css — SUI Health Shared Styles ========== */

/* ---------- CSS VARIABLES ---------- */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --light-blue: #3b82f6;
    --accent-blue: #60a5fa;
    --dark-black: #0f172a;
    --medium-black: #1e293b;
    --light-black: #334155;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --section-padding: clamp(60px, 8vw, 100px);
    --container-padding: clamp(16px, 4vw, 20px);
    --element-gap: clamp(20px, 4vw, 30px);
}

/* ---------- RESET & BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
html { font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* ---------- TYPOGRAPHY ---------- */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; margin-bottom: 1rem; }
h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
p { font-size: 1.1rem; line-height: 1.8; color: var(--medium-black); margin-bottom: 1rem; }

/* ---------- CONTAINER ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--container-padding); }

/* ---------- SECTIONS ---------- */
section { width: 100%; padding: var(--section-padding) 0; position: relative; }
section:nth-child(even) { background: var(--light-gray); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-subtitle { color: var(--primary-blue); font-size: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 1rem; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: clamp(12px, 3vw, 14px) clamp(24px, 5vw, 32px);
    font-size: clamp(1rem, 2.5vw, 1.05rem); font-weight: 600; text-decoration: none;
    border-radius: 50px; transition: all 0.3s ease; cursor: pointer; border: none;
    text-align: center; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
    color: var(--white); box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--primary-blue); }
.btn-dark { background: var(--dark-black); color: var(--white); }
.btn-dark:hover { background: var(--medium-black); }

/* ---------- NAVIGATION ---------- */
nav {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(12px);
    z-index: 1000; transition: all 0.3s ease;
}
nav.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(16px, 4vw, 5%);
}
.logo {
    display: flex; align-items: center; gap: 10px; color: var(--white);
    font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; text-decoration: none;
}
.logo-img { height: clamp(24px, 4vw, 32px); width: auto; object-fit: contain; }
.logo-line1, .logo-line2 { display: inline; }

.nav-links { display: flex; gap: clamp(20px, 4vw, 30px); align-items: center; }
.nav-links a {
    color: var(--white); text-decoration: none; font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem); transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--accent-blue); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links .btn-donate {
    background: var(--accent-blue); padding: 8px 20px; border-radius: 25px; margin-left: 10px;
}
.nav-links .btn-donate:hover { background: var(--light-blue); transform: translateY(-1px); }
.mobile-menu { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* ---------- HERO (homepage + page banners) ---------- */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background: 
        linear-gradient(rgba(15,23,42,0.85), rgba(30,64,175,0.75)),
        url('https://suihealth-website.s3.us-east-2.amazonaws.com/photos/17_6_21_vehicle_treated_DAPI_TDP_MAP2_2_MaxIntensity.png') no-repeat center center;
    background-size: cover;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.page-hero p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-hero .section-subtitle {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,0.9); max-width: 700px; margin-left: auto; margin-right: auto; }

/* Full-height hero for homepage */
#home {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    justify-content: center; text-align: center; color: #fff; overflow: hidden;
    background: linear-gradient(rgba(15,23,42,0.6), rgba(30,64,175,0.6)),
        url('https://suihealth-website.s3.us-east-2.amazonaws.com/photos/17_6_21_vehicle_treated_DAPI_TDP_MAP2_2_MaxIntensity.png') no-repeat center center;
    background-size: cover;
}
#home::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2); pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 var(--container-padding); animation: fadeInUp 1s ease; }
.hero-subtitle { color: var(--accent-blue); font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 2px; }
#home h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1rem; }
.hero-description { font-size: 1.2rem; line-height: 1.5; color: rgba(255,255,255,0.9); margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ---------- GRIDS ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--element-gap); margin-top: 3rem; }

/* ---------- VALUE CARDS ---------- */
.value-card {
    background: var(--white); padding: clamp(25px, 4vw, 30px); border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; height: fit-content;
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.value-card i { font-size: clamp(2rem, 5vw, 2.5rem); color: var(--light-black); margin-bottom: 1rem; }
.value-card h4 { color: var(--dark-black); margin-bottom: 0.5rem; }
.value-card p { font-size: clamp(0.95rem, 2.5vw, 1rem); line-height: 1.6; margin: 0; }

/* ---------- ABOUT ---------- */
.about-content { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 8vw, 60px); align-items: center; margin-bottom: 4rem; }
.about-text h3 { color: var(--light-black); margin-bottom: 1.5rem; }
.about-image { position: relative; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); order: 2; }
.about-image img { width: 100%; height: auto; display: block; }
.about-text { order: 1; }
.about-values { text-align: center; margin-bottom: 40px; padding: 0 var(--container-padding); box-sizing: border-box; }
.about-values img { max-width: 100%; max-height: 400px; width: auto; height: auto; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: block; margin: 0 auto; }

/* ---------- TEAM ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--element-gap); }
.team-member { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-member:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); }
.team-member-image { height: 300px; background: linear-gradient(135deg, var(--light-black), var(--secondary-blue)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.team-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-member-content { padding: clamp(20px, 4vw, 30px); }
.team-member-role { color: var(--light-black); font-weight: 600; margin-bottom: 1rem; }
.team-member-bio { color: var(--gray); line-height: 1.6; margin-bottom: 0; font-size: clamp(0.95rem, 2.5vw, 1rem); }

/* ---------- GET INVOLVED ---------- */
.involvement-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--element-gap); }
.involvement-card { background: linear-gradient(135deg, var(--dark-black), var(--medium-black)); color: var(--white); padding: clamp(30px, 5vw, 40px) clamp(20px, 4vw, 30px); border-radius: 20px; text-align: center; transition: transform 0.3s ease; }
.involvement-card:hover { transform: scale(1.02); }
.involvement-card i { font-size: clamp(2.5rem, 5vw, 3rem); color: var(--accent-blue); margin-bottom: 1.5rem; }
.involvement-card h3 { margin-bottom: 1rem; }
.involvement-card p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.5rem; font-size: clamp(0.95rem, 2.5vw, 1rem); }
.involvement-card .btn { width: 100%; max-width: 250px; }
.involvement-buttons { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.involvement-buttons .btn { flex: 1; min-width: 120px; max-width: 200px; }

/* ---------- DONATION ---------- */
.sui-donation-section { max-width: 900px; margin: 0 auto; background: var(--white); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1); overflow: hidden; }
.donation-content-wrapper { padding: clamp(30px, 5vw, 50px) clamp(20px, 4vw, 40px); }
.impact-message { text-align: center; margin-bottom: clamp(30px, 6vw, 50px); }
.impact-message h3 { color: var(--dark-black); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.3; margin-bottom: 1.5rem; }
.impact-message p { font-size: clamp(1rem, 2.5vw, 1.1rem); line-height: 1.7; color: var(--medium-black); margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.impact-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(20px, 4vw, 25px); margin-top: 30px; }
.impact-point { display: flex; align-items: center; gap: 15px; padding: clamp(15px, 3vw, 20px); background: var(--light-gray); border-radius: 15px; border-left: 4px solid var(--primary-blue); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.impact-point:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(37, 99, 235, 0.1); }
.impact-point i { font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--primary-blue); min-width: 24px; flex-shrink: 0; }
.impact-point span { font-size: clamp(0.95rem, 2.5vw, 1rem); font-weight: 500; color: var(--dark-black); }
.secure-donation { text-align: center; margin: clamp(30px, 6vw, 50px) 0; }
.security-badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(16, 185, 129, 0.1); color: var(--success); padding: 12px clamp(20px, 4vw, 28px); border-radius: 30px; font-weight: 600; font-size: clamp(0.9rem, 2.5vw, 1rem); margin-bottom: clamp(25px, 5vw, 35px); border: 1px solid rgba(16, 185, 129, 0.2); }
.security-badge i { font-size: 1.1rem; }
.paypal-container { margin: 30px 0; }
.custom-donate-btn {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-blue) 100%);
    color: var(--white); border: none; border-radius: 50px;
    padding: clamp(18px, 4vw, 24px) clamp(30px, 6vw, 50px);
    font-size: clamp(1.1rem, 2.5vw, 1.2rem); font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
    min-width: clamp(280px, 50vw, 320px); display: inline-flex; align-items: center;
    justify-content: center; gap: 15px; font-family: 'Inter', sans-serif;
    position: relative; overflow: hidden;
}
.custom-donate-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; }
.custom-donate-btn:hover::before { left: 100%; }
.custom-donate-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(37, 99, 235, 0.4); background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); }
.custom-donate-btn i { font-size: 1.3rem; }
.btn-content { display: flex; flex-direction: column; align-items: center; }
.btn-text { font-size: clamp(1.1rem, 2.5vw, 1.2rem); line-height: 1.2; }
.btn-content small { font-size: clamp(0.75rem, 2vw, 0.8rem); font-weight: 400; opacity: 0.9; margin-top: 4px; }
.nonprofit-credentials { background: var(--light-gray); border-radius: 20px; padding: clamp(25px, 5vw, 40px); margin: clamp(30px, 6vw, 50px) 0; }
.credentials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: clamp(20px, 4vw, 30px); }
.credential-item { display: flex; align-items: center; gap: clamp(15px, 3vw, 20px); background: var(--white); padding: clamp(18px, 4vw, 25px); border-radius: 15px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.credential-item:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.credential-icon { width: clamp(50px, 8vw, 60px); height: clamp(50px, 8vw, 60px); background: linear-gradient(135deg, var(--light-blue) 0%, var(--accent-blue) 100%); border-radius: 15px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.credential-icon i { font-size: clamp(1.25rem, 3vw, 1.5rem); color: var(--white); }
.credential-text { flex: 1; }
.credential-text strong { display: block; color: var(--dark-black); font-size: clamp(1rem, 2.5vw, 1.1rem); font-weight: 600; margin-bottom: 5px; }
.credential-text span { color: var(--gray); font-size: clamp(0.9rem, 2vw, 0.95rem); }

/* ---------- CONTACT ---------- */
.contact-container { display: grid; grid-template-columns: 1fr; gap: var(--element-gap); max-width: 1000px; margin: 0 auto; }
.contact-info { background: linear-gradient(135deg, var(--dark-black), var(--medium-black)); color: var(--white); padding: clamp(25px, 5vw, 40px); border-radius: 20px; order: 2; }
.contact-info img { max-width: 300px; width: 100%; height: auto; border-radius: 15px; margin-top: 20px; display: block; margin-left: auto; margin-right: auto; }
.contact-form { background: var(--white); padding: clamp(25px, 5vw, 40px); border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); order: 1; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.contact-item i { font-size: 1.5rem; color: var(--accent-blue); width: 30px; margin-top: 2px; flex-shrink: 0; }
.contact-item-content h4 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--accent-blue); }
.contact-item-content p { color: rgba(255, 255, 255, 0.9); margin: 0; font-size: clamp(0.95rem, 2.5vw, 1rem); }
.contact-item-content a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.form-group { margin-bottom: clamp(15px, 3vw, 20px); }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--dark-black); font-size: clamp(0.95rem, 2.5vw, 1rem); }
.form-group input, .form-group textarea { width: 100%; padding: clamp(10px, 2.5vw, 12px); border: 2px solid var(--light-gray); border-radius: 10px; font-size: clamp(0.95rem, 2.5vw, 1rem); font-family: inherit; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-blue); }
.form-group textarea { resize: vertical; min-height: clamp(100px, 20vw, 120px); }
.form-submit { width: 100%; padding: clamp(12px, 3vw, 15px); font-size: clamp(1rem, 2.5vw, 1.1rem); }

/* ---------- FOOTER ---------- */
footer { background: var(--dark-black); color: var(--white); padding: clamp(40px, 8vw, 60px) 0 30px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--element-gap); margin-bottom: 40px; }
.footer-about h3 { margin-bottom: 1rem; color: var(--accent-blue); }
.footer-about p { color: rgba(255, 255, 255, 0.8); line-height: 1.8; font-size: clamp(0.95rem, 2.5vw, 1rem); }
.footer-column h4 { margin-bottom: 1.5rem; color: var(--white); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column ul li a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.3s ease; font-size: clamp(0.9rem, 2.5vw, 1rem); }
.footer-column ul li a:hover { color: var(--accent-blue); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; color: rgba(255, 255, 255, 0.6); font-size: clamp(0.875rem, 2vw, 0.95rem); }

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ---------- LOADER ---------- */
.loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--dark-black); display: flex; align-items: center; justify-content: center; z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner { width: 60px; height: 60px; border: 4px solid rgba(255, 255, 255, 0.1); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- RESPONSIVE ---------- */
@media (min-width: 768px) {
    .about-content { grid-template-columns: 1fr 1fr; }
    .about-text { order: 1; }
    .about-image { order: 2; }
    .contact-container { grid-template-columns: 1fr 1fr; }
    .contact-info { order: 1; }
    .contact-form { order: 2; }
    .hero-buttons { justify-content: center; flex-direction: row; }
}

@media (max-width: 767px) {
    .about-image { order: 1; }
    .about-text { order: 2; }
}

@media (max-width: 767px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; max-width: 280px; margin: 0 auto; }
    .impact-points { grid-template-columns: 1fr; }
    .credentials-grid { grid-template-columns: 1fr; }
    .custom-donate-btn { max-width: 100%; min-width: 100%; }
    #home { background-attachment: scroll; }
    .programs-grid, .team-grid, .involvement-options { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
    #home h1 { font-size: 2.2rem; }
    #home .hero-description { font-size: 1rem; }
}

@media (max-width: 480px) {
    :root { --container-padding: 15px; --section-padding: 60px; }
    .logo-line2::before { content: "\A"; white-space: pre; }
    .logo { font-size: 1rem; line-height: 1.3; }
    .impact-point { flex-direction: column; text-align: center; gap: 10px; }
    .credential-item { flex-direction: column; text-align: center; gap: 15px; }
    section { padding: 60px 20px; }
    .container { padding: 0 15px; }
    .btn { padding: 12px 24px; font-size: 1rem; }
    #home h1 { font-size: 1.8rem; }
    #home .hero-description { font-size: 0.9rem; }
}
