/* =========================
   BASE
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
        background: #f3f1ec;
    color: #222;
    line-height: 1.6;
}

/* =========================
   HERO
========================= */

.hero {
    height: 380px;
    min-height: 320px;

    background: #16202a;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    text-align: center;
}

/* IMAGE */
.hero::before {
    content: "";
    position: absolute;
    inset: 18px;

    background: url('images/banner.jpg') center/contain no-repeat;

    opacity: 0.95;
}
.hero {
    border-bottom: 4px solid rgba(0,0,0,0.15);
}
/* VIGNETTE */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(31,42,54,0.2),
        rgba(31,42,54,0.65)
    );
}

/* TITLE */
.hero-content {
    position: relative;
    z-index: 2;

    padding: 14px 22px;
}

.hero h1 {
    color: #fff;
    font-size: 2.2rem;
    letter-spacing: 3px;
    margin: 0;

    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* =========================
   SECTIONS
========================= */

.section {
    padding: 75px 20px;
}

.section + .section {
    padding-top: 60px;
}

.section.dark {
    background: #1f2a36;
    color: #f4f4f4;
}

.section.light {
    background: #ffffff;
}

/* headings */
h2 {
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 1px;
    font-weight: normal;
    font-size: 1.6rem;
    text-transform: uppercase;
}

/* text */
.section p {
    max-width: 760px;
    margin: 0 auto 18px auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =========================
   TWO COLUMN LAYOUT
========================= */

.two-column {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* image */
.two-column img {
    width: 340px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* text */
.two-column div {
    flex: 1;
    min-width: 0;
}

/* reverse */
.two-column.reverse {
    flex-direction: row-reverse;
}

/* =========================
   DOWNLOADS
========================= */

.downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.downloads a {
    padding: 10px 14px;
    background: #f2f2f2;
    color: #1f2a36;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;

    border: 1px solid rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}

.downloads a:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* =========================
   FOOTER
========================= */

footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}

footer a {
    color: #d4b06a !important;
    text-decoration: none !important;
    font-weight: bold;
}

footer a:hover {
    color: #f2d28a !important;
    text-decoration: underline !important;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* === SECTION SPACING === */
    .section {
        padding: 50px 15px;
    }

    /* === HERO TEXT === */
    .hero h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
        text-align: center;
    }

    /* === TWO COLUMN FIX === */
    .two-column {
        flex-direction: column !important;
        text-align: center;
        gap: 15px;
    }

    .two-column.reverse {
        flex-direction: column !important;
    }

    .two-column img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .two-column div {
        width: 100%;
    }

    /* === TEXT READABILITY === */
    .section p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* === DOWNLOAD BUTTONS === */
    .downloads a {
        width: 100%;
        text-align: center;
    }
}

/* =========================
   GALLERY
========================= */

.gallery {
    max-width: 1000px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.gallery img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery img.contain {
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
}
.gallery img:hover {
    transform: scale(1.03);
    filter: brightness(1.05);
}

/* =========================
   ANIMATIONS
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* apply to sections */
.section {
    animation: fadeUp 0.6s ease-out both;
}

/* slight stagger for visual rhythm */
.section:nth-of-type(1) { animation-delay: 0.05s; }
.section:nth-of-type(2) { animation-delay: 0.15s; }
.section:nth-of-type(3) { animation-delay: 0.25s; }

/* =========================
   WIGTOWN VOICES RECORDINGS PAGE
========================= */

.cd-cover {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

.recording-intro {
    max-width: 900px;
    margin: auto;
}

.track-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.track {
    padding: 20px;
    border-radius: 10px;
}

.track h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.track p {
    margin: 5px 0;
}

.track audio {
    width: 100%;
    margin-top: 10px;
}

/* Existing download link style (for any links without the new class) */
.track a[download] {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 14px;
    background: #f2f2f2;
    color: #1f2a36;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    font-size: 14px;
}

.track a[download]:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
}

@media (max-width: 700px) {
    .track-list {
        grid-template-columns: 1fr;
    }
}

/* =========================
   NAVIGATION (FIXED)
========================= */

nav {
    text-align: center;
}

.home-nav {
    margin: 25px 0;
}

/* =========================
   HOME BUTTON
========================= */

.home-button {
    text-align: center;
    margin: 40px 0;
}

/* =========================
   CUSTOM DOWNLOAD BUTTON (NEW!)
   This is the blue button that matches your site
========================= */

.download-btn {
    display: inline-block;
    background-color: #2c6b9e;
    color: #ffffff;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    margin-top: 5px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
    background-color: #1a4a6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}