/* ============================================
   AVALON ADVENTURES - Nautical Theme
   Color Palette:
   - Navy:       #0f1d33, #1a2d4a, #243b5e
   - Dark Gray:  #2c2c2c, #3a3a3a
   - Lime Green: #5ebd3e (accent)
   - White:      #ffffff, #f0f4f8
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0f1d33;
    color: #f0f4f8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    max-width: 1440px;
    margin: 0 auto;
    min-height: 100vh;
}

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

a {
    color: #f0f4f8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #5ebd3e;
}

/* --- Header / Hero --- */
header, .hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 520px;
    background-color: #1a2d4a;
    background-image: url(../images/Stjohns.png);
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 40px 40px;
    overflow: hidden;
}

header::before, .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,29,51,0.75) 0%, rgba(15,29,51,0.5) 50%, rgba(15,29,51,0.85) 100%);
    z-index: 1;
}

header > *, .hero > * {
    position: relative;
    z-index: 2;
}

#logo {
    margin-bottom: 10px;
}

#logo img {
    height: 140px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

#tagline {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #c8d6e5;
    max-width: 600px;
    margin-bottom: 25px;
}

#push, .btn-primary {
    display: inline-block;
    background-color: #5ebd3e;
    color: #0f1d33;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 14px rgba(94,189,62,0.3);
}

#push:hover, .btn-primary:hover {
    background-color: #4da832;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94,189,62,0.45);
}

/* --- Navigation --- */
nav {
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    height: 52px;
    border-bottom: 3px solid #5ebd3e;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

nav a {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 22px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

nav a:hover, nav a.active {
    color: #5ebd3e;
    background-color: rgba(94,189,62,0.1);
}

/* --- Main Content --- */
main {
    padding: 50px 40px 60px;
}

#Introduction {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #c8d6e5;
}

/* --- Package Card Grid (Homepage) --- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 28px;
    max-width: 1360px;
    margin: 0 auto;
}

.package-card {
    position: relative;
    background-color: #1a2d4a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(94,189,62,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(94,189,62,0.35);
}

.card-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, #1a2d4a, transparent);
}

.card-body {
    padding: 24px 28px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-body p {
    font-size: 0.95rem;
    color: #a4b8cc;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 18px;
}

.btn-outline {
    display: inline-block;
    color: #5ebd3e;
    border: 2px solid #5ebd3e;
    background: transparent;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    align-self: flex-start;
}

.btn-outline:hover {
    background-color: #5ebd3e;
    color: #0f1d33;
}

.btn-outline a {
    color: inherit;
}

/* --- Sub-Page Hero --- */
.page-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 440px;
    background-color: #1a2d4a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 40px;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,29,51,0.7) 0%, rgba(15,29,51,0.5) 50%, rgba(15,29,51,0.8) 100%);
    z-index: 1;
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
    letter-spacing: 1px;
}

/* --- Content Sections (Tour Pages) --- */
.content-section {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    min-height: 380px;
    overflow: hidden;
}

.content-section:nth-child(even) {
    flex-direction: row-reverse;
}

.section-image {
    flex: 1;
    min-width: 45%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-text {
    flex: 1;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #1a2d4a;
}

.content-section:nth-child(even) .section-text {
    background-color: #162640;
}

.section-text p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #c8d6e5;
}

.section-text .btn-primary {
    align-self: flex-start;
    margin-top: 25px;
}

/* --- About Us Page --- */
.about-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 50px 40px;
}

.about-block {
    margin-bottom: 50px;
}

.about-block h2 {
    font-size: 1.8rem;
    color: #5ebd3e;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(94,189,62,0.25);
}

.about-block p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #c8d6e5;
    margin-bottom: 18px;
}

.about-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0 30px;
    border: 2px solid rgba(94,189,62,0.15);
}

/* --- Staff Bios Page --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 40px;
}

.staff-card {
    background-color: #1a2d4a;
    border-radius: 12px;
    padding: 32px;
    border: 1px solid rgba(94,189,62,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    border-color: rgba(94,189,62,0.3);
}

.staff-card .role {
    display: inline-block;
    background-color: rgba(94,189,62,0.15);
    color: #5ebd3e;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.staff-card h3 {
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 14px;
}

.staff-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #a4b8cc;
}

/* --- Contact Form --- */
.contact-wrapper {
    max-width: 700px;
    margin: 50px auto;
    background-color: #1a2d4a;
    border-radius: 12px;
    padding: 40px 45px;
    border: 1px solid rgba(94,189,62,0.12);
}

.contact-wrapper h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.contact-wrapper .form-subtitle {
    text-align: center;
    color: #a4b8cc;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8d6e5;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #0f1d33;
    border: 1px solid #243b5e;
    border-radius: 6px;
    color: #f0f4f8;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #5ebd3e;
    box-shadow: 0 0 0 3px rgba(94,189,62,0.15);
}

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

#error_message {
    background-color: #c0392b;
    color: #ffffff;
    padding: 0;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    overflow: hidden;
}

#error_message:empty {
    display: none;
}

.form-submit {
    text-align: center;
    margin-top: 10px;
}

/* --- Price Info Bar --- */
.price-bar {
    background-color: #2c2c2c;
    text-align: center;
    padding: 16px 40px;
    font-size: 1rem;
    color: #c8d6e5;
    border-top: 2px solid #5ebd3e;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.price-bar strong {
    color: #5ebd3e;
}

/* --- Contact Info Bar --- */
.contact-bar {
    background-color: #2c2c2c;
    text-align: center;
    padding: 16px 40px;
    font-size: 0.95rem;
    color: #c8d6e5;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.contact-bar span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contact-bar strong {
    color: #5ebd3e;
}

/* --- Footer --- */
footer {
    background-color: #2c2c2c;
    text-align: center;
    padding: 28px 40px;
    border-top: 3px solid #5ebd3e;
    margin-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.social-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(94,189,62,0.12);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
    background-color: #5ebd3e;
    transform: translateY(-2px);
}

.social-links img {
    height: 18px;
    width: 18px;
    filter: brightness(0) invert(1);
}

.footer-text {
    font-size: 0.85rem;
    color: #7a8b9e;
}

/* --- Brewery List --- */
.brewery-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    list-style: none;
    margin: 20px 0;
}

.brewery-list li {
    position: relative;
    padding-left: 22px;
    color: #c8d6e5;
    font-size: 1rem;
}

.brewery-list li::before {
    content: '\2693'; /* anchor symbol */
    position: absolute;
    left: 0;
    color: #5ebd3e;
    font-size: 0.85rem;
}

/* --- Utility --- */
.text-center {
    text-align: center;
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: #5ebd3e;
    margin: 0 auto 30px;
    border-radius: 3px;
}

@media (max-width: 1024px) {
    .package-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    /* Fix full-bleed sections on mobile */
    header, .hero, nav, .page-hero,
    .price-bar, .contact-bar, footer {
        width: 100%;
        margin-left: 0;
    }

    /* Hero */
    header, .hero {
        min-height: 380px;
        padding: 80px 24px 40px;
    }

    #tagline {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Nav */
    nav {
        gap: 0;
        padding: 0;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 0.82rem;
        padding: 12px 14px;
        letter-spacing: 0.8px;
    }

    /* Main padding */
    main {
        padding: 32px 20px 48px;
    }

    /* Package grid */
    .package-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Content sections -- stack vertically */
    .content-section,
    .content-section:nth-child(even) {
        flex-direction: column;
    }

    .section-image {
        min-width: 100%;
        height: 240px;
    }

    .section-text {
        padding: 32px 24px;
    }

    /* Staff grid */
    .staff-grid {
        grid-template-columns: 1fr;
        padding: 32px 20px;
        gap: 20px;
    }

    /* About */
    .about-content {
        padding: 32px 20px;
    }

    /* Contact form */
    .contact-wrapper {
        margin: 32px 20px;
        padding: 28px 24px;
    }

    /* Contact bar */
    .contact-bar {
        gap: 16px;
        padding: 16px 20px;
        flex-direction: column;
        align-items: center;
    }

    /* Footer */
    footer {
        padding: 24px 20px;
    }

    /* Page hero */
    .page-hero {
        min-height: 280px;
        padding: 24px 20px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    /* Brewery list */
    .brewery-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    #tagline {
        font-size: 1.5rem;
    }

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

    #push, .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
    }
}