/* AIYF Kannur — aiyf.in inspired theme */

:root {
    --red: #e30613;
    --red-dark: #b8050f;
    --blue: #1a3fb5;
    --purple: #6b2d8f;
    --black: #0a0a0a;
    --dark: #111111;
    --gray-900: #1a1a1a;
    --gray-700: #444;
    --gray-500: #777;
    --gray-300: #d4d4d4;
    --gray-100: #f9f8f8;
    --white: #ffffff;
    --primary: var(--red);
    --secondary: var(--black);
    --background: var(--gray-100);
    --surface: var(--white);
    --text: var(--black);
    --text-muted: var(--gray-500);
    --font-display: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --header-h: 72px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 12px 40px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
.container { width: min(1140px, 90%); margin: 0 auto; }
.text-center { text-align: center; }

/* Loader */
.site-loader {
    position: fixed; inset: 0; z-index: 10000;
    background: var(--black);
    display: grid; place-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.site-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader-logo { width: 88px; height: 88px; margin: 0 auto 20px; border-radius: 50%; object-fit: cover; }
.site-loader .spinner > div {
    width: 10px; height: 10px; margin: 0 3px; display: inline-block;
    background: var(--red); border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}
.site-loader .spinner .bounce2 { background: var(--white); animation-delay: -0.16s; }
.site-loader .spinner .bounce1 { animation-delay: -0.32s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }

/* Marquee */
.marquee-band {
    background: var(--black);
    color: var(--white);
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer .marquee-band {
    margin-bottom: 40px;
    background: transparent;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
}
.marquee-track {
    display: flex; width: max-content;
    animation: marquee 35s linear infinite;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
    padding-right: 48px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 32px; font-family: var(--font-body);
    font-size: 0.8rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; border: 2px solid transparent;
    border-radius: 0; cursor: pointer; transition: var(--transition);
}
.btn-white { background: var(--white); color: var(--black); }
.btn-white:hover { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-brown { background: var(--black); color: var(--white); }
.btn-brown:hover { background: var(--gray-900); }
.btn-glass { background: rgba(255,255,255,0.15); color: var(--white); border-color: rgba(255,255,255,0.4); }

/* Hero — aiyf.in full bleed */
.hero {
    position: relative; min-height: 100vh; min-height: 700px;
    display: flex; flex-direction: column; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg-img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
}
.hero-bg-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        rgba(227,6,19,0.55) 0%,
        rgba(107,45,143,0.45) 45%,
        rgba(26,63,181,0.55) 100%);
}
.site-header {
    position: relative; z-index: 10;
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 5%; gap: 20px;
}
.site-logo img {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; border: 2px solid rgba(255,255,255,0.5);
}
.site-nav { display: flex; gap: 4px; }
.site-nav a {
    color: rgba(255,255,255,0.9); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 1.5px; text-transform: uppercase;
    padding: 10px 14px;
}
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(0,0,0,0.25); }
.hero-center {
    position: relative; z-index: 5; flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 40px 5% 80px;
}
.hero-brand { margin-bottom: 8px; }
.hero-brand-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 9rem);
    color: var(--white); line-height: 0.9;
    letter-spacing: 4px; text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero-brand-sub {
    font-size: clamp(0.75rem, 1.8vw, 1rem);
    color: rgba(255,255,255,0.9); font-weight: 500;
    letter-spacing: 1px; line-height: 1.4; text-transform: uppercase;
}
.hero-slogan {
    display: flex; flex-direction: column; align-items: center;
    margin: 20px 0 12px;
}
.hero-slogan-line {
    font-family: var(--font-display);
    color: var(--white);
    line-height: 0.95;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.hero-slogan-line--1 { font-size: clamp(2rem, 6vw, 4rem); }
.hero-slogan-line--2 { font-size: clamp(3rem, 10vw, 7rem); }
.hero-slogan-line--3 { font-size: clamp(2rem, 6vw, 4rem); }
.hero-district {
    font-size: 0.85rem; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Sticky nav */
.sticky-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transform: translateY(-110%);
    transition: transform 0.4s ease;
    padding: 12px 0;
}
.sticky-nav.visible { transform: translateY(0); }
.sticky-nav-inner { display: flex; align-items: center; justify-content: space-between; }
.sticky-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; }
.sticky-logo img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sticky-nav-links { display: flex; gap: 2px; }
.sticky-nav-links a {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; padding: 8px 12px; color: var(--black);
}
.sticky-nav-links a:hover, .sticky-nav-links a.active { color: var(--red); }

.menu-toggle {
    display: none; background: rgba(0,0,0,0.3); border: none;
    width: 44px; height: 44px; cursor: pointer;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: var(--transition); }
.menu-toggle.active span { background: var(--white); }

/* News section — aiyf.in blog list */
.news-section { padding: 80px 0; background: var(--background); }
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-card { border-bottom: 1px solid var(--gray-300); }
.news-card:first-child { border-top: 1px solid var(--gray-300); }
.news-card-link {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 40px; align-items: center;
    padding: 36px 0; transition: var(--transition);
}
.news-card-link:hover { background: rgba(0,0,0,0.02); padding-left: 12px; padding-right: 12px; }
.news-card-image {
    aspect-ratio: 16/10; overflow: hidden; background: var(--black);
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.news-card-body h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: 0.5px; line-height: 1.15;
    margin-bottom: 12px; text-transform: uppercase;
    transition: color 0.2s;
}
.news-card-link:hover h2 { color: var(--red); }
.news-card-body p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; }
.news-meta { font-size: 0.78rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

/* About */
.welcome-section { padding: 100px 0; background: var(--white); }
.about-split {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: start;
}
.about-eyebrow {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--black); line-height: 1; letter-spacing: 2px;
}
.about-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase; letter-spacing: 1px;
    margin: 12px 0 20px; line-height: 1;
}
.about-lead { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.about-sub { color: var(--text-muted); font-style: italic; margin-bottom: 0; }
.about-split-right h3 {
    font-family: var(--font-display);
    font-size: 1.8rem; text-transform: uppercase;
    margin-bottom: 16px; letter-spacing: 0.5px;
}
.about-split-right p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.75; font-size: 0.95rem; }
.about-tagline { font-weight: 700; color: var(--red) !important; margin-top: 16px !important; }

/* Stats band */
.stats-band { background: var(--black); color: var(--white); padding: 72px 0; }
.stats-band-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.stats-text p { font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; opacity: 0.8; }
.stats-year {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1; display: block; color: var(--white);
    letter-spacing: 2px;
}
.stats-sub { margin-top: 8px; font-style: italic; opacity: 0.7; }
.stats-logo img {
    width: 140px; height: 140px; border-radius: 50%;
    object-fit: cover; border: 3px solid rgba(255,255,255,0.2);
}

/* Sections common */
section { padding: 88px 0; }
.section-label {
    font-size: 0.72rem; font-weight: 800; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--red); margin-bottom: 12px; display: block;
}
.section-label--light { color: rgba(255,255,255,0.7); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase; letter-spacing: 1px;
}

/* Focus */
.focus-section { background: var(--background); }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.focus-card {
    background: var(--white); padding: 32px 24px; text-align: center;
    border: 1px solid rgba(0,0,0,0.06); transition: var(--transition);
}
.focus-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.focus-icon {
    width: 52px; height: 52px; margin: 0 auto 16px;
    background: var(--black); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.focus-card h3 { font-size: 0.88rem; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; }
.focus-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* Committee */
.committee-section { background: var(--black); color: var(--white); }
.section-head--light h2 { color: var(--white); }
.section-head--light p { color: rgba(255,255,255,0.65); }
.committee-members-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px; max-width: 720px; margin: 0 auto;
}
.member-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 32px 24px; text-align: center; transition: var(--transition);
}
.member-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.member-photo {
    width: 120px; height: 120px; margin: 0 auto 18px;
    border-radius: 50%; overflow: hidden; border: 2px solid var(--red);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-role { font-size: 0.68rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }
.member-card h3 { font-size: 1.2rem; margin: 8px 0; font-weight: 700; }
.member-phone { color: rgba(255,255,255,0.85); font-weight: 600; }
.member-phone:hover { color: var(--red); }

/* Youth corner */
.youth-corner-section { background: var(--white); }
.youth-corner-wrap {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
    align-items: center; padding: 48px; background: var(--background);
    border: 1px solid rgba(0,0,0,0.06);
}
.youth-corner-content h2 {
    font-family: var(--font-display); font-size: 2rem;
    text-transform: uppercase; margin-bottom: 14px;
}
.youth-corner-contact { background: var(--white); padding: 16px 20px; margin: 20px 0; border-left: 3px solid var(--red); }
.youth-corner-icon {
    width: 160px; height: 160px; margin: 0 auto; border-radius: 50%;
    background: var(--black); color: var(--white);
    display: flex; align-items: center; justify-content: center; font-size: 4rem;
}

/* Activities */
.activities-section { background: var(--background); }
.activities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.activity-item {
    display: flex; gap: 12px; align-items: center;
    background: var(--white); padding: 18px 20px;
    border: 1px solid rgba(0,0,0,0.06); font-weight: 600; font-size: 0.9rem;
    transition: var(--transition);
}
.activity-item:hover { border-color: var(--red); padding-left: 24px; }
.activity-item i { color: var(--red); }

/* Kannur */
.kannur-section { padding: 0 0 88px; }
.kannur-banner {
    background: linear-gradient(135deg, var(--red), var(--purple), var(--blue));
    color: var(--white); padding: 64px 48px; text-align: center;
}
.kannur-banner h2 {
    font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-transform: uppercase; margin-bottom: 16px;
}
.kannur-banner blockquote {
    font-family: var(--font-display); font-size: 1.4rem;
    font-style: italic; opacity: 0.9; margin-top: 20px;
}

/* Join */
.join-section { padding: 0 0 88px; }
.join-banner {
    background: var(--black); color: var(--white);
    padding: 72px 48px; text-align: center;
}
.join-banner h2 {
    font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
    text-transform: uppercase; margin-bottom: 16px;
}
.join-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Contact */
.contact-section { background: var(--white); }
.contact-unified {
    display: grid; grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(0,0,0,0.08);
}
.contact-location, .contact-form-wrap { padding: 44px; }
.contact-form-wrap { background: var(--background); border-left: 1px solid rgba(0,0,0,0.08); }
.contact-col-title {
    font-family: var(--font-display); font-size: 1.5rem;
    text-transform: uppercase; margin-bottom: 8px;
}
.contact-col-desc { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.location-detail { display: flex; gap: 14px; margin-bottom: 18px; }
.location-detail i { color: var(--red); width: 20px; margin-top: 4px; }
.location-detail h6 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); font-weight: 800; }
.location-detail p { font-size: 0.92rem; }
.map-wrap { height: 220px; overflow: hidden; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border: 1px solid var(--gray-300);
    font-family: inherit; font-size: 0.92rem; background: var(--white);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--black); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-message { margin-top: 12px; padding: 12px; font-size: 0.88rem; display: none; font-weight: 600; }
.form-message.success { display: block; background: #e8f5e9; color: #1b5e20; }
.form-message.error { display: block; background: #ffebee; color: var(--red); }

/* Footer */
.site-footer { background: var(--black); color: rgba(255,255,255,0.6); padding: 0 0 120px; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px; padding: 48px 0 32px;
}
.footer-brand img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; }
.footer-brand h3 { font-family: var(--font-display); color: var(--white); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 8px; }
.footer-tagline { color: var(--red); font-weight: 700; font-size: 0.82rem; }
.footer-col h4 { font-family: var(--font-display); color: var(--white); font-size: 1rem; text-transform: uppercase; margin-bottom: 16px; letter-spacing: 1px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 0.8rem;
}

/* Animations */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Floating buttons */
.com-container { position: fixed; bottom: 56px; right: 28px; z-index: 9999; }
.com-stack {
    position: relative; display: flex; flex-direction: column;
    align-items: flex-end; gap: 14px;
    padding-bottom: 0;
}
.com-button {
    width: 58px; height: 58px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.25);
    transition: var(--transition); color: var(--white);
}
.com-button:hover { transform: scale(1.08); }
.wa-button { background: linear-gradient(135deg, #25D366, #128C7E); }
.call-button { background: linear-gradient(135deg, var(--red), var(--red-dark)); font-size: 20px; }
.tech-button { background: linear-gradient(135deg, var(--blue), var(--purple)); }
.wa-button img { width: 30px; height: 30px; }
.tech-button img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.top-button {
    position: relative;
    background: var(--black);
    display: none;
    font-size: 20px;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    order: 4;
}
.top-button.visible {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.com-options {
    position: absolute; bottom: calc(100% + 12px); right: 0; width: 270px;
    background: var(--white); border-radius: 16px; padding: 14px;
    box-shadow: var(--shadow); transform: scale(0.9); opacity: 0;
    pointer-events: none; transition: var(--transition); transform-origin: bottom right;
}
.com-options.active { transform: scale(1); opacity: 1; pointer-events: auto; }
.com-option { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; cursor: pointer; }
.com-option:hover { background: var(--background); }
.com-option i {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: 14px; flex-shrink: 0;
}
.wa-option i { background: #25D366; }
.call-option i { background: var(--red); }
.tech-option i { background: var(--blue); }
.com-option-text h4 { font-size: 14px; font-weight: 800; }
.com-option-text p { font-size: 12px; color: var(--gray-500); }

/* Artliery credit — right align, reserve space above floating buttons */
.artliery-credit {
    position: fixed; bottom: 12px; right: 12px; left: auto;
    z-index: 2147483646;
    background: rgba(17,17,17,0.85); color: #fff;
    font: 500 12px/1 system-ui, sans-serif;
    padding: 7px 12px; border-radius: 9999px;
    text-decoration: none; opacity: 0.85;
    max-width: calc(100vw - 100px);
}
.artliery-credit:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .marquee-track { animation: none; }
    .fade-up { opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
    .about-split, .youth-corner-wrap, .contact-unified, .stats-band-inner { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
    .stats-band-inner { flex-direction: column; }
    .news-card-link { grid-template-columns: 1fr; gap: 20px; }
    .sticky-nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-wrap { border-left: none; border-top: 1px solid rgba(0,0,0,0.08); }
}
@media (max-width: 768px) {
    section { padding: 64px 0; }
    .site-nav {
        position: fixed; inset: 0; z-index: 999;
        background: rgba(10,10,10,0.98);
        flex-direction: column; justify-content: center;
        transform: translateX(100%); transition: var(--transition);
        padding: 80px 32px;
    }
    .site-nav.open { transform: translateX(0); }
    .site-nav a { font-size: 1rem; padding: 14px; width: 100%; text-align: center; }
    .menu-toggle { display: flex; }
    .hero-center { padding-bottom: 60px; }
    .youth-corner-wrap { padding: 32px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .com-container { bottom: 20px; right: 18px; }
    .com-button { width: 52px; height: 52px; }
    .com-options { width: 250px; }
    .site-footer { padding-bottom: 110px; }
    .artliery-credit { display: none !important; }
}
