/* ============================================
   NATA Website - Professional CSS Styling
   Nigerian Automobile Technicians Association
   ============================================ */

/* Root Variables - Brand Colors */
:root {
    /* Primary Brand Colors (matched to official NATA logo) */
    --primary-dark: #052a56;      /* Dark navy */
    --primary-main: #0b4da1;      /* Royal/strong blue */
    --primary-light: #3b79c1;     /* Light blue */
    
    /* Secondary Colors */
    --secondary-dark: #155e3d;    /* Deep Green */
    --secondary-main: #1b7e48;    /* Professional Green */
    --secondary-light: #2d9b5e;   /* Light Green */
    
    /* Accent Colors */
    --accent-gold: #f2b04a;       /* Gold Accent */
    --accent-orange: #ff7a00;     /* NATA orange accent */
    
    /* Neutrals */
    --text-dark: #1a1a1a;         /* Dark Text */
    --text-gray: #444444;         /* Gray Text */
    --text-light: #666666;        /* Light Gray Text */
    --text-muted: #999999;        /* Muted Text */
    
    --bg-light: #f6f8fb;          /* Light Background */
    --bg-white: #ffffff;          /* White */
    --border-color: #e0e0e0;      /* Border Color */
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-dark);
    font-weight: 600;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

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

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

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 90, 160, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-main);
    border: 2px solid var(--primary-main);
}

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

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo image */
.logo-image {
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-text {
    color: #fff;
    line-height: 1;
}

.logo-text div:first-child {
    font-weight: 700;
    letter-spacing: 0.4px;
}

.logo-text div:last-child {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: #fff;
    font-weight: 600;
    position: relative;
    padding: 0.35rem 0.5rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-orange);
    transition: width 0.22s ease;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
    color: var(--bg-white);
    padding: 6rem var(--spacing-md);
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-title {
    color: var(--bg-white);
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-slogan {
    font-size: 1.75rem;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECTION STYLES
   ============================================ */

section {
    padding: 4rem var(--spacing-md);
}

section:nth-child(odd) {
    background-color: var(--bg-white);
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-main);
    margin-top: var(--spacing-lg);
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-placeholder {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-main) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.placeholder-icon {
    display: block;
}

/* ============================================
   LEADERSHIP SECTION
   ============================================ */

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leadership-card {
    background: var(--bg-white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.leadership-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.leadership-image-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--secondary-main) 0%, var(--secondary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.leadership-info {
    padding: 2rem;
}

.leadership-info h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.leadership-position {
    color: var(--accent-orange);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.leadership-bio {
    color: var(--text-light);
}

/* ============================================
   ACTIVITIES SECTION
   ============================================ */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.activity-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    border-top: 4px solid var(--primary-main);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-top-color: var(--accent-orange);
}

.activity-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.activity-card h3 {
    color: var(--primary-dark);
    margin-bottom: var(--spacing-sm);
}

.activity-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ============================================
   PRESENCE SECTION
   ============================================ */

.presence-content {
    max-width: 800px;
    margin: 0 auto;
}

.presence-content p {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.presence-highlight {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-main) 100%);
    color: var(--bg-white);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-top: 2rem;
}

.presence-highlight p {
    color: var(--bg-white);
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.news-card h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-dark);
}

.news-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-empty-state {
    grid-column: 1 / -1;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 2px dashed var(--border-color);
}

.news-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.news-empty-state p {
    margin-bottom: var(--spacing-sm);
}

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

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: linear-gradient(135deg, var(--primary-main) 0%, var(--secondary-main) 100%);
    color: var(--bg-white);
    padding: 4rem var(--spacing-md);
    text-align: center;
}

.cta h2 {
    color: var(--bg-white);
    font-size: 2.25rem;
    margin-bottom: var(--spacing-md);
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-dark);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.75rem;
    min-width: 40px;
    display: flex;
    align-items: flex-start;
}

.contact-label {
    font-weight: 600;
    color: var(--primary-main);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-main);
    box-shadow: 0 0 0 3px rgba(45, 90, 160, 0.1);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    padding: 3rem var(--spacing-md) 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-slogan {
    font-style: italic;
    color: var(--accent-gold);
    font-weight: 600;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: flex;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-slogan {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 2.5rem var(--spacing-md);
    }

    .section-title {
        font-size: 1.75rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar-container {
        padding: 0.75rem var(--spacing-sm);
    }

    .logo-text {
        font-size: 1.25rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .hero {
        padding: 3rem 1rem;
        min-height: 400px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-slogan {
        font-size: 1.25rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .activity-card,
    .leadership-card {
        padding: 1.5rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta h2 {
        font-size: 1.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-item {
        justify-content: center;
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */

@media print {
    .navbar,
    .hero-cta,
    .contact-form {
        display: none;
    }

    body {
        background-color: var(--bg-white);
    }

    section {
        page-break-inside: avoid;
    }
}

/* Focus states for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-main);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    --primary-dark: #0f2438;
    --text-gray: #222222;
    --border-color: #999999;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Subtle scroll reveal for sections */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s cubic-bezier(.2,.9,.2,1), transform 0.6s cubic-bezier(.2,.9,.2,1);
    will-change: opacity, transform;
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox styles */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    z-index: 20000;
}

.lightbox-overlay[aria-hidden="false"] { display: flex; }

.lightbox-image {
    max-width: 90%;
    max-height: 80%;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.75rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 0.5rem;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
