/* =============================================================
   Irish Wildlife Society — main.css
   Plain CSS, no frameworks.
   Flexbox: header + homepage cards + contact 2-col.
   Floats: in-page images on content pages.
   ============================================================= */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #2d3748;
    background: #f7fafc;
}

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

a { color: #2b6cb0; }
a:hover { color: #1a4a8a; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

h2 { font-size: 1.75rem; margin-bottom: 0.75rem; color: #1a202c; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: #1a202c; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }

strong { font-weight: 700; }

/* --- Site header ------------------------------------------- */
header {
    background: #fff;
    padding: 0.6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.brand img { width: 64px; height: auto; }

.brand-name { font-size: 1.2rem; font-weight: 700; color: #1a202c; }

nav a {
    margin-left: 1.25rem;
    text-decoration: none;
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
}
nav a:hover { color: #2b6cb0; }

/* --- Nav dropdown ------------------------------------------ */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    list-style: none;
    padding: 0.4rem 0;
    min-width: 160px;
    z-index: 100;
}

.nav-dropdown .dropdown li a {
    display: block;
    padding: 0.4rem 1rem;
    margin: 0;
    white-space: nowrap;
    color: #2d3748;
    font-weight: 400;
}
.nav-dropdown .dropdown li a:hover { background: #edf2f7; color: #2b6cb0; }

/* Show on hover and keyboard focus */
.nav-dropdown:hover .dropdown,
.nav-dropdown:focus-within .dropdown { display: block; }

/* --- Buttons ----------------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.55rem 2rem;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid;
    cursor: pointer;
    font-family: inherit;
}

.btn-hero {
    border-color: #fff;
    color: #fff;
    background: rgba(0,0,0,0.2);
    font-size: 1.5rem;
    padding: 0.6rem 3rem;
}
.btn-hero:hover, .btn-hero:focus { background: #fff; color: #333; }

.btn-outline {
    border-color: #2b6cb0;
    color: #2b6cb0;
    background: transparent;
}
.btn-outline:hover, .btn-outline:focus { background: #2b6cb0; color: #fff; }

/* --- Hero (homepage only) ---------------------------------- */
.hero {
    background-size: cover;
    background-position: 29% 40%;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 6rem 1.5rem;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.2;
    text-shadow:
        0 0 20px rgba(0,0,0,0.95),
        0 0 50px rgba(0,0,0,0.85),
        0 0 100px rgba(0,0,0,0.6);
    margin-bottom: 0.5rem;
}

.hero-content .tagline {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    margin-bottom: 2.5rem;
    text-shadow:
        0 0 15px rgba(0,0,0,0.95),
        0 0 40px rgba(0,0,0,0.8),
        0 0 80px rgba(0,0,0,0.55);
}

/* --- Cards (homepage 3-column) ----------------------------- */
.cards {
    background: #fff;
    padding: 2.5rem 1.5rem 5rem;
}

.cards-inner {
    display: flex;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card { flex: 1; text-align: center; }

.card img { width: 100%; margin-bottom: 1rem; }

.card h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.card h2 a { text-decoration: none; color: #1a202c; }
.card h2 a:hover { color: #2b6cb0; }

.card p { color: #4a5568; margin-bottom: 1.25rem; }

/* --- Page title strip (inner pages) ------------------------ */
.page-title {
    background: #edf2f7;
    padding: 1.25rem 1.5rem;
    text-align: center;
}
.page-title h1 { font-size: 2rem; font-weight: 700; color: #1a202c; }

/* --- Content wrapper (inner pages) ------------------------- */
.content-wrap { padding: 0 1.5rem 3rem; }

.content-box {
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
    box-shadow: 0 15px 15px -10px rgba(0,0,0,0.05);
}

/* Centred intro text */
.intro { text-align: center; font-weight: 700; margin-bottom: 1.5rem; }

/* Floated images */
.img-left  { float: left;  margin: 0.25rem 2rem 1rem 0; max-width: 300px; }
.img-right { float: right; margin: 0.25rem 0 1rem 2rem; max-width: 300px; }

.clearfix::after { content: ''; display: table; clear: both; }

/* --- Contact 2-column (image | form) ----------------------- */
.contact-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}
.contact-img { flex: 0 0 35%; }
.contact-img img { width: 100%; }
.contact-form { flex: 1; }

/* --- Forms ------------------------------------------------- */
.form-group { margin-bottom: 1.25rem; }

label { display: block; margin-bottom: 0.3rem; font-weight: 600; }

.required { color: #c53030; }

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: 1px solid #cbd5e0;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #2d3748;
}

textarea { min-height: 8rem; resize: vertical; }

.btn-submit {
    background: #2b6cb0;
    color: #fff;
    border: none;
    padding: 0.6rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
}
.btn-submit:hover, .btn-submit:focus { background: #215387; }

.form-notice {
    background: #ebf8ff;
    border-left: 4px solid #2b6cb0;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.form-notice.success { background: #f0fff4; border-color: #38a169; }
.form-notice.error   { background: #fff5f5; border-color: #c53030; }

/* --- Footer ----------------------------------------------- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #718096;
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}
footer a { color: #718096; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 767px) {
    .hero { min-height: 40vh; padding: 4rem 1rem; }

    .cards-inner { flex-direction: column; }

    .content-box { padding: 1.5rem; }

    /* Float images drop below text on mobile */
    .img-left, .img-right {
        float: none;
        display: block;
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }

    /* Contact layout stacks */
    .contact-layout { flex-direction: column; }
    .contact-img { flex: none; width: 100%; max-width: 320px; margin: 0 auto 1.5rem; }

    /* Nav wraps under logo */
    nav a:first-child { margin-left: 0; }
}
