/* ======================================================
   GGA.ie — Main Stylesheet
   An independent LGBTQ+ GAA community hub
   Palette: GAA emerald + warm cream + rainbow accent
   ====================================================== */

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

:root {
    --emerald: #1a5d3b;
    --emerald-dark: #0f3e26;
    --emerald-mid: #2e7d4f;
    --cream: #faf7f0;
    --cream-alt: #f2eadf;
    --ink: #161616;
    --ink-soft: #2a2a2a;
    --text: #33352f;
    --text-soft: #6b6d67;
    --border: #e4dccb;
    --border-dark: #c9bfa7;
    --white: #ffffff;
    --sunrise: #e85a2a;
    --gold: #c08e1a;
    --pride-red:    #e40303;
    --pride-orange: #ff8c00;
    --pride-yellow: #ffcf00;
    --pride-green:  #008026;
    --pride-blue:   #0047a0;
    --pride-violet: #732982;
    --shadow-sm: 0 1px 3px rgba(15,62,38,0.08);
    --shadow-md: 0 6px 18px rgba(15,62,38,0.09);
    --shadow-lg: 0 16px 40px rgba(15,62,38,0.14);
    --radius: 10px;
    --radius-lg: 18px;
    --maxw: 1180px;
    --maxw-read: 740px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--emerald);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
a:hover { color: var(--emerald-dark); border-bottom-color: var(--emerald-mid); }

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

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}
.container.narrow { max-width: var(--maxw-read); }

/* Pride rainbow strip — subtle, used as a thin accent line */
.rainbow-strip {
    height: 4px;
    background: linear-gradient(90deg,
        var(--pride-red) 0 16.66%,
        var(--pride-orange) 16.66% 33.33%,
        var(--pride-yellow) 33.33% 50%,
        var(--pride-green) 50% 66.66%,
        var(--pride-blue) 66.66% 83.33%,
        var(--pride-violet) 83.33% 100%);
}
.rainbow-underline {
    background: linear-gradient(90deg,
        var(--pride-red),
        var(--pride-orange),
        var(--pride-yellow),
        var(--pride-green),
        var(--pride-blue),
        var(--pride-violet));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 4px;
    padding-bottom: 2px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: inherit;
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); font-weight: 700; margin-bottom: .7rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .5rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

p  { margin-bottom: 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .97rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    line-height: 1;
    letter-spacing: .01em;
}
.btn-primary {
    background: var(--emerald);
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--emerald-dark); color:#fff; transform: translateY(-1px); box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.btn-ghost {
    background: transparent;
    color: var(--emerald);
    border-color: var(--emerald);
}
.btn-ghost:hover { background: var(--emerald); color:#fff; border-bottom-color: transparent; }
.btn-large { padding: 18px 32px; font-size: 1.05rem; }

/* Nav */
.navbar {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.2);
}
.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    border-bottom: 0;
}
.logo:hover { color: var(--emerald); border-bottom: 0; }
.logo-icon {
    width: 36px; height: 36px;
    color: var(--emerald);
    flex: 0 0 auto;
}
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-menu a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: .95rem;
    border-bottom: 0;
}
.nav-menu a:hover { background: var(--cream-alt); color: var(--emerald-dark); }
.nav-cta {
    background: var(--emerald);
    color: #fff !important;
}
.nav-cta:hover { background: var(--emerald-dark); color: #fff !important; }
.menu-toggle { display: none; background: transparent; border: 0; width: 34px; height: 34px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px auto; width: 22px; transition: transform .2s ease; }

@media (max-width: 820px) {
    .menu-toggle { display: inline-block; }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
                background: var(--cream); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
                padding: 10px 14px 20px; display: none; }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 12px 10px; border-radius: 8px; }
}

/* Hero */
.hero {
    padding: 80px 22px 72px;
    background:
        radial-gradient(ellipse at 85% -10%, rgba(46,125,79,0.14), transparent 60%),
        radial-gradient(ellipse at 10% 120%, rgba(192,142,26,0.12), transparent 60%),
        var(--cream);
    border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 880px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--ink); }
.hero-subtitle { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--text-soft); max-width: 660px; margin: 0 auto 1.8rem; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
    margin-top: 1.8rem;
    font-size: .9rem;
    color: var(--text-soft);
    letter-spacing: .02em;
}

/* Sections */
section { padding: 64px 0; }
.section-intro { color: var(--text-soft); max-width: 640px; margin: 0 auto 2.2rem; text-align: center; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: .5rem; }

/* Alt backgrounds */
.bg-cream-alt { background: var(--cream-alt); }
.bg-emerald {
    background: var(--emerald-dark);
    color: #e9ead1;
}
.bg-emerald h2, .bg-emerald h3 { color: #fff; }
.bg-emerald p { color: #d7dccd; }
.bg-emerald a { color: #fff; border-bottom-color: rgba(255,255,255,0.45); }
.bg-emerald a:hover { color: #fff; border-bottom-color: #fff; }

/* Pillars grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}
.pillar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-icon { width: 44px; height: 44px; color: var(--emerald); margin-bottom: 6px; }
.pillar-card h3 { color: var(--ink); }
.pillar-card p { color: var(--text); font-size: .97rem; }
.pillar-card .link-arrow {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 600;
    color: var(--emerald);
    border-bottom: 0;
}
.pillar-card .link-arrow:hover { color: var(--emerald-dark); }

/* Club / resource cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 22px 20px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 6px;
}
.card-tag {
    align-self: flex-start;
    background: var(--cream-alt);
    color: var(--emerald-dark);
    border: 1px solid var(--border-dark);
    font-size: .78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.card h3 { color: var(--ink); }
.card .card-meta { color: var(--text-soft); font-size: .88rem; }
.card p { font-size: .96rem; }
.card .link-arrow {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 600;
    border-bottom: 0;
}
.link-arrow:hover { border-bottom: 0; }

/* Fiction cards */
.fiction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.fiction-card {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--emerald);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 6px;
}
.fiction-card .card-meta { color: var(--text-soft); font-size: .85rem; }
.fiction-card h3 { color: var(--ink); }
.fiction-card .link-arrow { margin-top: auto; padding-top: 10px; font-weight: 600; }

/* Article body (fiction pages, blog) */
.article-body {
    max-width: var(--maxw-read);
    margin: 0 auto;
    padding: 0 22px;
}
.article-body h2 { margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.8rem; }
.article-body p  { font-size: 1.06rem; color: var(--ink-soft); }
.article-body ul, .article-body ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    color: var(--ink-soft);
}
.article-body li { margin-bottom: .4rem; }
.article-body blockquote {
    border-left: 4px solid var(--emerald);
    padding: 6px 18px;
    margin: 18px 0;
    color: var(--text);
    background: var(--cream-alt);
    border-radius: 0 10px 10px 0;
    font-style: italic;
}
.article-meta {
    color: var(--text-soft);
    font-size: .9rem;
    margin-bottom: 12px;
}
.article-tag-row {
    display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.tag {
    background: var(--cream-alt);
    color: var(--emerald-dark);
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 500;
}

/* Disclaimer banner */
.fiction-notice, .notice {
    background: #fff8e7;
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 14px 18px;
    color: var(--ink-soft);
    font-size: .95rem;
    margin: 14px 0 22px;
}
.notice.danger {
    background: #fff0ec;
    border-left-color: var(--sunrise);
}
.notice strong { color: var(--ink); }

/* Resource / support block */
.support-block {
    background: var(--emerald-dark);
    color: #e4e9d9;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 20px 0;
}
.support-block h3 { color: #fff; }
.support-block a { color: #fff; border-bottom-color: rgba(255,255,255,.4); }

/* Enquiry form */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-md);
    max-width: 620px;
    margin: 0 auto;
}
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 14px; }
.form-field label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 5px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1.5px solid var(--border-dark);
    background: var(--cream);
    font: inherit;
    color: var(--ink);
    transition: border-color .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none;
    border-color: var(--emerald);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-honeypot { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-footnote { font-size: .82rem; color: var(--text-soft); margin-top: 10px; }

/* News / blog index */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-row {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 18px;
    align-items: start;
}
.news-row .news-date { color: var(--text-soft); font-size: .9rem; white-space: nowrap; }
.news-row h3 { margin-bottom: .35rem; }
.news-row p { font-size: .96rem; margin-bottom: 0; }
@media (max-width: 620px) { .news-row { grid-template-columns: 1fr; } }

/* Pride quote block — small wink of colour */
.quote-strip {
    border-left: 4px solid var(--pride-green);
    padding: 8px 14px;
    font-style: italic;
    color: var(--ink-soft);
    background: #fff;
    border-radius: 0 10px 10px 0;
}

/* Footer */
.footer {
    background: var(--emerald-dark);
    color: #cfd5c1;
    padding: 48px 22px 36px;
    font-size: .92rem;
    margin-top: 40px;
}
.footer a { color: #fff; border-bottom-color: rgba(255,255,255,.3); }
.footer a:hover { border-bottom-color: #fff; }
.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 28px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand h4 { color: #fff; margin-bottom: .35rem; }
.footer-brand p  { color: #b9c4a6; font-size: .92rem; }
.footer-col h5 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-copy {
    max-width: var(--maxw);
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    color: #9aa68a;
    font-size: .86rem;
}

/* Breadcrumbs */
.crumbs { color: var(--text-soft); font-size: .88rem; margin-bottom: 14px; }
.crumbs a { color: var(--emerald); }
.crumbs span { color: var(--text-soft); }

/* Utility */
.page-title { padding: 48px 0 28px; text-align: center; }
.page-title h1 { margin-bottom: .5rem; }
.page-title p { color: var(--text-soft); max-width: 640px; margin: 0 auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.link-arrow::after { content: " →"; }

@media (max-width: 720px) {
    section { padding: 48px 0; }
    .hero { padding: 60px 22px 52px; }
}
