/* ============================================================================
   Interact Club Conakry — styles.css
   Design system inspired by rotary.org official brand language
   Palette: Rotary Azure #17458F / Gold #F7A81B / Sky #00A2E0
   ============================================================================ */

:root {
    --azure: #17458F;
    --azure-dark: #0D2D5E;
    --azure-light: #2E63B8;
    --gold: #F7A81B;
    --gold-dark: #D68F0C;
    --sky: #00A2E0;
    --ink: #1B1F27;
    --gray-700: #4A5160;
    --gray-500: #7A828F;
    --gray-200: #E4E7EC;
    --gray-100: #F4F6F9;
    --white: #FFFFFF;
    --radius: 10px;
    --shadow-sm: 0 2px 6px rgba(23, 69, 143, 0.08);
    --shadow-md: 0 8px 24px rgba(23, 69, 143, 0.12);
    --shadow-lg: 0 16px 40px rgba(23, 69, 143, 0.18);
    --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px 0;
    color: var(--azure-dark);
}

p { margin: 0 0 16px 0; color: var(--gray-700); }

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

a { color: var(--azure); }

.skip-link {
    position: absolute;
    top: -48px;
    left: 8px;
    background: var(--gold);
    color: var(--azure-dark);
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    z-index: 200;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 8px; }

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

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 999px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }

.btn-gold {
    background: var(--gold);
    color: var(--azure-dark);
}
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow-md); }

.btn-primary {
    background: var(--azure);
    color: var(--white);
}
.btn-primary:hover { background: var(--azure-dark); box-shadow: var(--shadow-md); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

/* ============================================================================
   Header
   ============================================================================ */

#site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--azure-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--white);
}

.brand-text {
    color: var(--white);
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
}
.brand-text strong { color: var(--gold); font-weight: 700; }

/* Nav toggle (hamburger) — mobile only */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

nav#primary-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav#primary-nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
}

nav#primary-nav a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
}
nav#primary-nav a:hover,
nav#primary-nav a:focus-visible {
    background: rgba(255,255,255,0.1);
    color: var(--gold);
}

.nav-cta { white-space: nowrap; padding: 10px 22px; font-size: 14px; }

/* Mobile nav (< 900px) */
@media (max-width: 899px) {
    .nav-toggle { display: flex; }

    nav#primary-nav {
        position: fixed;
        inset: 0 0 0 30%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        background: var(--azure-dark);
        padding: 88px 24px 24px;
        gap: 16px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 30px rgba(0,0,0,0.3);
    }
    nav#primary-nav.is-open { transform: translateX(0); }

    nav#primary-nav ul {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    nav#primary-nav a {
        display: block;
        padding: 14px 16px;
        font-size: 16px;
    }
    .nav-cta { margin-top: 8px; width: 100%; }
}

/* ============================================================================
   Hero
   ============================================================================ */

.hero {
    position: relative;
    background: linear-gradient(135deg, var(--azure) 0%, var(--azure-dark) 100%);
    padding: 100px 0 80px;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(247,168,27,0.25) 0%, transparent 70%);
}

.hero-content { position: relative; max-width: 720px; }

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow.center { display: block; text-align: center; }

.hero h1 {
    color: var(--white);
    font-size: 34px;
    margin-bottom: 20px;
}
.hero h1 span { color: var(--gold); }

.hero-lead {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

@media (min-width: 640px) {
    .hero h1 { font-size: 46px; }
}
@media (min-width: 900px) {
    .hero { padding: 140px 0 110px; }
    .hero h1 { font-size: 56px; }
}

/* ============================================================================
   Stats bar
   ============================================================================ */

.stats {
    background: var(--gold);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 32px 20px;
    text-align: center;
}
@media (min-width: 640px) {
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-number {
    display: block;
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 800;
    color: var(--azure-dark);
}
.stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--azure-dark);
    opacity: 0.85;
    margin-top: 4px;
}

/* ============================================================================
   Sections
   ============================================================================ */

.section { padding: 64px 0; }
.section-alt { background: var(--gray-100); }

@media (min-width: 900px) {
    .section { padding: 96px 0; }
}

.section h2 { font-size: 28px; }
.section h2.center, .section-lead.center, .eyebrow.center { text-align: center; }
.section-lead {
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 40px;
}
.section-lead.center { text-align: center; }

@media (min-width: 900px) {
    .section h2 { font-size: 36px; }
}

.center { text-align: center; }

/* About */
.about-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14.5px;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--azure);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.link-arrow {
    display: inline-block;
    color: var(--azure);
    font-weight: 700;
    text-decoration: none;
    font-family: var(--font-head);
}
.link-arrow:hover { color: var(--gold-dark); }

/* Cards (projects) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.card {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--gold);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 32px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin: 0; }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.team-member {
    text-align: center;
    background: var(--white);
    padding: 28px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease;
}
.team-member:hover { box-shadow: var(--shadow-md); }
.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--gray-100);
}
.team-member h3 { font-size: 17px; margin-bottom: 2px; }
.team-member .role {
    color: var(--gold-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.team-member p:not(.role) { font-size: 14px; margin: 0; }

/* Events */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}
.event-card {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.event-date {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    background: var(--azure);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
}
.event-date .day { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: 1; }
.event-date .month { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.event-info h3 { font-size: 17px; margin-bottom: 6px; }
.event-info p { margin-bottom: 8px; font-size: 14.5px; }

/* Member area & Contact panels */
.member-columns, .contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}
.panel {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.panel h3 { font-size: 19px; margin-bottom: 20px; }
.panel-footnote { margin: 16px 0 0; font-size: 14px; text-align: center; }
.panel-footnote a { font-weight: 600; text-decoration: none; }
.panel-footnote a:hover { text-decoration: underline; }

.resources-panel { margin-top: 28px; }
.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { border-bottom: 1px solid var(--gray-200); }
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
    display: block;
    padding: 14px 4px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: 14.5px;
    transition: color 0.2s ease;
}
.resource-list a:hover { color: var(--azure); }

.contact-info p { font-size: 14.5px; }
.contact-info a { text-decoration: none; font-weight: 600; }
.contact-info a:hover { text-decoration: underline; }

/* Forms */
form { display: flex; flex-direction: column; gap: 14px; }
label {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--azure-dark);
}
input, textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--azure);
    box-shadow: 0 0 0 3px rgba(23,69,143,0.12);
}
textarea { resize: vertical; min-height: 110px; }
form .btn { margin-top: 6px; align-self: flex-start; }

/* ============================================================================
   Footer
   ============================================================================ */

footer { background: var(--azure-dark); color: rgba(255,255,255,0.75); padding: 48px 0 0; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.footer-brand > span:first-of-type { display: none; }
.footer-brand { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px 12px; }
.footer-brand .brand-logo { width: 40px; height: 40px; }
.footer-brand span { color: var(--white); font-family: var(--font-head); font-weight: 500; }
.footer-brand span strong { color: var(--gold); }
.footer-brand p { grid-column: 1 / -1; font-size: 13.5px; color: rgba(255,255,255,0.6); margin: 4px 0 0; }

footer nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
footer nav a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 14px; font-weight: 600; }
footer nav a:hover { color: var(--gold); }

.footer-copy {
    text-align: center;
    font-size: 13px;
    padding: 20px 0;
    margin: 0;
    color: rgba(255,255,255,0.5);
}

/* ============================================================================
   Accessibility
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
