/* 
    HAWAII AMERICA EVANGELICAL UNIVERSITY 
    Premium CSS Stylesheet
*/

:root {
    --primary-color: #1A3A5C; /* Deep navy/royal blue */
    --accent-color: #C8A951;  /* Gold */
    --secondary-color: #E8F4FD; /* Light blue */
    --bg-color: #FAFAFA;
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
    --heading-font: 'EB Garamond', serif;
    --body-font: 'Source Sans Pro', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 { font-size: 64px; margin-bottom: 20px; }
h2 { font-size: 48px; margin-bottom: 30px; }
h3 { font-size: 28px; margin-bottom: 15px; }
h4 { font-size: 22px; margin-bottom: 10px; }

p { margin-bottom: 15px; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

img { max-width: 100%; height: auto; display: block; }

.img-responsive { width: 100%; }
.rounded-shadow { border-radius: 8px; box-shadow: var(--shadow); }
.text-center { text-align: center; }
.section-title { position: relative; padding-bottom: 15px; margin-bottom: 40px; }
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}
.text-center.section-title::after { left: 50%; transform: translateX(-50%); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-block { width: 100%; text-align: center; }

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.org-name {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--white);
    max-width: 300px;
    line-height: 1.1;
}

header.scrolled .org-name { color: var(--primary-color); }

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    color: var(--white);
    font-weight: 600;
}

header.scrolled .desktop-nav a { color: var(--primary-color); }

.desktop-nav a:hover { color: var(--accent-color); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

header.scrolled .mobile-menu-toggle span { background-color: var(--primary-color); }

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content { max-width: 800px; }

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero p { font-size: 1.2rem; margin-bottom: 40px; }

.hero-btns { display: flex; gap: 20px; justify-content: center; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Stats Bar */
.stats-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--heading-font);
    color: var(--accent-color);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* About Section */
.about-section { padding: 80px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.mission-statement {
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-family: var(--heading-font);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.value-item {
    display: flex;
    gap: 15px;
}

.value-icon {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Programs Section */
.programs-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.program-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.program-card:hover {
    transform: translateY(-10px);
}

.program-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Events Section */
.events-section { padding: 80px 0; }

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.event-list { margin-top: 30px; }

.event-list li {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.event-date {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

/* Get Involved Section */
.involved-section { padding: 80px 0; background-color: var(--bg-color); }

.involved-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.involved-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.involved-img-wrapper { height: 250px; overflow: hidden; }

.involved-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.involved-card:hover .involved-img-wrapper img { transform: scale(1.1); }

.involved-body { padding: 30px; flex-grow: 1; }

.involved-card.highlight { border: 2px solid var(--accent-color); }

/* Contact Section */
.contact-section { padding: 80px 0; background-color: var(--white); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details { margin-top: 30px; }

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item svg { color: var(--accent-color); }

.prominent-email {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.contact-form {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 { color: var(--accent-color); margin-bottom: 25px; }

.footer-col p { margin-bottom: 10px; opacity: 0.8; }

.footer-links li { margin-bottom: 10px; }

.footer-links a { opacity: 0.8; }

.footer-links a:hover { opacity: 1; color: var(--accent-color); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
}

.mobile-nav-content {
    background-color: var(--primary-color);
    height: 100%;
    max-width: 300px;
    margin-left: auto;
    border-radius: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.mobile-nav a {
    color: var(--white);
    font-size: 1.5rem;
    font-family: var(--heading-font);
}

.success-icon { margin-bottom: 20px; }

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 900;
    transition: var(--transition);
}

.scroll-to-top.visible { display: flex; }

.scroll-to-top:hover { transform: translateY(-5px); background-color: var(--primary-color); color: var(--white); }

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 48px; }
    h2 { font-size: 36px; }
    .about-grid, .events-grid, .contact-grid { gap: 40px; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .org-name { font-size: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .events-grid, .contact-grid, .involved-grid, .footer-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .events-image { order: -1; }
    .programs-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
    .hero-btns { flex-direction: column; }
}
