/* ==========================================================================
   ROTARY CLUB OF ROXAS - CUSTOM DESIGN SYSTEM (OPTION A: ROYAL BLUE & GOLD)
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --rotary-blue: #003DA5;
    --rotary-gold: #F7A81B;
    --rotary-gold-dark: #D89B00;
    --deep-blue: #0B2240;
    --light-blue-wash: #F0F4FC;
    --text-primary: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --border-color: #E2E8F0;
    
    /* Font stacks */
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Layout heights & spacing */
    --header-height: 80px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,31,84,0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--deep-blue);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--rotary-blue);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--rotary-gold-dark);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-md {
    max-width: 800px;
}

.section-padding {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }

/* Sections Tags and Slogans */
.section-tag {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--rotary-gold-dark);
    letter-spacing: 2px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--rotary-gold);
    padding-bottom: 4px;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
    position: relative;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px auto;
}

/* Button Component */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-header);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--rotary-gold);
    color: var(--deep-blue);
    box-shadow: 0 4px 10px rgba(247, 168, 27, 0.3);
}

.btn-primary:hover {
    background-color: var(--rotary-gold-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(216, 155, 0, 0.4);
}

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

.btn-outline:hover {
    background-color: var(--white);
    color: var(--rotary-blue);
    transform: translateY(-2px);
}

/* Grid Utilities */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

.align-center {
    align-items: center;
}

/* Header & Sticky Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.rotary-logo {
    height: 50px;
    width: auto;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.club-title {
    font-family: var(--font-header);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rotary-blue);
    line-height: 1.2;
}

.club-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--deep-blue);
    position: relative;
    padding: 8px 0;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--rotary-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link.active {
    color: var(--rotary-blue);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--deep-blue);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.open {
        max-height: 400px;
    }
    
    .nav-link {
        padding: 16px 24px;
        border-bottom: 1px solid var(--border-color);
        display: block;
    }
    
    .nav-link:after {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--rotary-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    font-weight: 800;
    margin-bottom: 24px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 60px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-lead {
        font-size: 1.1rem;
    }
}

/* History Section */
.editorial-lead {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--rotary-blue);
    line-height: 1.7;
    margin-bottom: 24px;
    border-left: 4px solid var(--rotary-gold);
    padding-left: 20px;
}

.rich-text-content p {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.history-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.impact-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image-wrapper:hover .impact-image {
    transform: scale(1.03);
}

.image-overlay-card {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--rotary-gold);
}

.card-number {
    font-family: var(--font-header);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rotary-gold);
    line-height: 1;
}

.card-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Focus Areas Section */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 48px;
}

.focus-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: left;
}

.focus-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 61, 165, 0.2);
}

.focus-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--light-blue-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--rotary-blue);
}

.focus-icon {
    stroke-width: 1.5px;
}

.focus-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.focus-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.focus-footer-note {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Officers Section */
.officers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.officer-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--rotary-blue);
    text-align: center;
    transition: var(--transition-smooth);
}

.officer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.officer-img-box {
    padding: 40px 0 20px 0;
    display: flex;
    justify-content: center;
}

.officer-img-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rotary-blue), var(--deep-blue));
    color: var(--rotary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--white);
    outline: 2px solid var(--rotary-gold);
}

.officer-img-placeholder .initials {
    font-family: var(--font-header);
    font-size: 2.2rem;
    font-weight: 800;
}

.officer-info {
    padding: 0 30px 40px 30px;
}

.officer-info h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.officer-info .role {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rotary-gold-dark);
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.officer-info .divider {
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
    margin: 0 auto 16px auto;
}

.officer-info .officer-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.info-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Projects Section */
.projects-placeholder-box {
    background-color: var(--white);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 700px;
    margin: 40px auto 0 auto;
    box-shadow: var(--shadow-sm);
}

.placeholder-icon {
    color: var(--rotary-gold);
    margin-bottom: 20px;
}

.projects-placeholder-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.projects-placeholder-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Meetings Section */
.meeting-details-card {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--rotary-gold);
}

.meeting-info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    width: 48px;
    height: 48px;
    background-color: var(--light-blue-wash);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rotary-blue);
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.info-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.meeting-pitch {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 24px 0;
}

.map-container {
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}

.google-map {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Contact Section */
.contact-form {
    background-color: var(--white);
    padding: 48px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-group label {
    display: block;
    font-family: var(--font-header);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--deep-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rotary-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

.form-status {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.form-status.success {
    color: #2F855A;
}

.form-status.error {
    color: #C53030;
}

/* Footer Styles */
.main-footer {
    background-color: var(--deep-blue);
    color: var(--white);
    padding: 80px 0 0 0;
    border-top: 4px solid var(--rotary-gold);
}

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

@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: 2fr 1fr 1.5fr;
    }
}

.footer-logo {
    height: 60px;
    width: auto;
    border-radius: 50%;
    margin-bottom: 20px;
}

.footer-desc {
    color: #A0AEC0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.main-footer h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 8px;
}

.main-footer h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--rotary-gold);
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: #A0AEC0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--rotary-gold);
    padding-left: 4px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--rotary-gold);
    color: var(--rotary-gold);
}

.facebook-icon {
    flex-shrink: 0;
}

.footer-bottom {
    background-color: #061427;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #718096;
}

@media (min-width: 768px) {
    .footer-bottom-container {
        flex-direction: row;
    }
}

.footer-disclaimer {
    font-style: italic;
}
