/* ===========================
   GUISELEY RANGERS ARLFC
   Modern Community Rugby Site
   =========================== */

/* --- CSS VARIABLES --- */
:root {
    --primary: #1a5e3a;
    --primary-dark: #0e3d24;
    --primary-light: #2a7d50;
    --accent: #d4a843;
    --accent-light: #f0d078;
    --dark: #0a0f0d;
    --dark-card: #111916;
    --dark-surface: #151d19;
    --text: #e8ede9;
    --text-muted: #8fa396;
    --text-dark: #1a1a1a;
    --white: #ffffff;
    --border: rgba(255,255,255,0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul { list-style: none; }

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

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

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

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 67, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.25);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-full {
    width: 100%;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 15, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 1001;
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-highlight {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--accent) !important;
    color: var(--dark) !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600 !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary-dark) 50%, var(--dark) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 94, 58, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 67, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5" width="60" height="60"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 168, 67, 0.12);
    border: 1px solid rgba(212, 168, 67, 0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease;
}

.title-line:first-child {
    font-size: clamp(3rem, 10vw, 7rem);
    color: var(--white);
}

.title-outline {
    font-size: clamp(3.5rem, 12vw, 8rem);
    -webkit-text-stroke: 2px var(--accent);
    color: transparent;
    animation-delay: 0.1s;
}

.title-small {
    font-size: clamp(1rem, 3vw, 1.8rem);
    color: var(--text-muted);
    letter-spacing: 0.3em;
    font-weight: 600;
    margin-top: 8px;
    animation-delay: 0.2s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    animation: fadeInUp 0.8s ease 0.5s both;
}

.stat { text-align: center; }

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-scroll span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.5; transform: scaleY(0.6); }
}

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

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

/* --- SECTION HEADERS --- */
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.section-header-center .section-desc {
    margin: 0 auto;
}

/* --- ABOUT --- */
.about {
    padding: 120px 0;
    background: var(--dark);
}

.about .section-header {
    margin-bottom: 60px;
}

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

.about-lead {
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--white);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value {
    text-align: center;
    padding: 24px 16px;
    background: var(--dark-surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value:hover {
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.value h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--white);
}

.value p {
    font-size: 0.8rem;
    color: var(--text-muted) !important;
    margin-bottom: 0 !important;
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: var(--dark-surface);
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-placeholder span {
    font-size: 3rem;
}

/* --- TEAMS --- */
.teams {
    padding: 120px 0;
    background: var(--dark-surface);
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 168, 67, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.team-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.team-card:hover .team-card-accent {
    opacity: 1;
}

.team-card-featured {
    border-color: rgba(212, 168, 67, 0.2);
    background: linear-gradient(135deg, var(--dark-card) 0%, rgba(26, 94, 58, 0.1) 100%);
}

.team-card-featured .team-card-accent {
    opacity: 1;
}

.team-age {
    display: inline-block;
    background: rgba(212, 168, 67, 0.12);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.team-card h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--white);
}

.team-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-details {
    margin-bottom: 24px;
}

.team-details li {
    position: relative;
    padding-left: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.team-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.team-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.team-link:hover {
    color: var(--accent-light);
    letter-spacing: 0.02em;
}

/* --- FIXTURES --- */
.fixtures {
    padding: 120px 0;
    background: var(--dark);
}

.fixtures-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.fixtures-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.fixture-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fixture-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--dark-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.fixture-item:hover {
    border-color: rgba(212, 168, 67, 0.2);
}

.fixture-month {
    background: rgba(212, 168, 67, 0.12);
    color: var(--accent);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
    height: fit-content;
    text-align: center;
    min-width: 70px;
}

.fixture-detail h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.fixture-detail p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius);
    padding: 40px;
    position: sticky;
    top: 100px;
}

.cta-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.cta-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    font-size: 0.95rem;
}

.cta-location {
    line-height: 1.9 !important;
}

.cta-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 24px 0;
}

.cta-card .btn-primary {
    margin-top: 24px;
}

/* --- NEWS --- */
.news {
    padding: 120px 0;
    background: var(--dark-surface);
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.news-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 168, 67, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.news-card-large {
    grid-column: 1;
    grid-row: 1 / 3;
}

.news-card-large .news-image {
    height: 300px;
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image .image-placeholder {
    min-height: 100%;
    border: none;
    border-radius: 0;
}

.news-content {
    padding: 24px;
}

.news-tag {
    display: inline-block;
    background: rgba(26, 94, 58, 0.2);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.news-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--white);
    line-height: 1.4;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- CONTACT --- */
.contact {
    padding: 120px 0;
    background: var(--dark);
}

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

.contact-info p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 168, 67, 0.08);
}

.contact-form-wrapper {
    background: var(--dark-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(143, 163, 150, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    padding: 16px;
    font-size: 1rem;
    margin-top: 8px;
}

/* --- FOOTER --- */
.footer {
    background: var(--dark-card);
    border-top: 1px solid var(--border);
    padding: 80px 0 40px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-charity {
    font-size: 0.8rem !important;
    color: rgba(143, 163, 150, 0.5) !important;
}

.footer-links-col h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

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

.footer-links-col ul a,
.footer-links-col p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links-col ul a:hover {
    color: var(--accent);
}

.footer-socials {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    font-size: 1.3rem;
}

.footer-socials a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: rgba(143, 163, 150, 0.4);
}

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

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 15, 13, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--white);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .about-grid,
    .fixtures-split,
    .contact-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-large {
        grid-column: 1;
        grid-row: auto;
    }

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

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-values {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .hero-scroll {
        display: none;
    }

    .image-placeholder {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .cta-card {
        padding: 28px;
    }
}
