/* ---------------------------------------------------------------
   Theme
--------------------------------------------------------------- */
:root {
    --amber: #d97706;
    --amber-dark: #b45309;
    --ink: #1f2937;
    --muted: #6b7280;
    --bg: #f4f4f5;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}

h1 {
    font-size: 2rem;
    margin: 0 0 8px;
}


/* ---------------------------------------------------------------
   Top navigation bar
--------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 28px;
    background: var(--card);
    box-shadow: var(--shadow-md);
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

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

.nav-btn {
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: #f3f4f6;
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nav-btn:hover {
    background: #fde9d0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-btn.active {
    background: var(--amber);
    color: #fff;
}


/* ---------------------------------------------------------------
   Layout / views
--------------------------------------------------------------- */
main {
    max-width: 1100px;
    margin: auto;
    padding: 40px 28px 60px;
}

.hidden {
    display: none;
}

.view-intro {
    color: var(--muted);
    margin-top: 0;
    margin-bottom: 28px;
}


/* ---------------------------------------------------------------
   Hero / search
--------------------------------------------------------------- */
.hero {
    text-align: center;
    background: var(--card);
    padding: 48px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
}

.hero h1 {
    font-size: 2.4rem;
}

.hero p {
    color: var(--muted);
    margin-bottom: 24px;
}

.search-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-bar input {
    padding: 14px 18px;
    width: 300px;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.search-bar input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.search-bar button {
    padding: 14px 26px;
    border: none;
    border-radius: 12px;
    background: var(--amber);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.search-bar button:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.searching {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
}


/* ---------------------------------------------------------------
   Search results grid (4 across)
--------------------------------------------------------------- */
#results,
#find-results {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.beer-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
}

.beer-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.beer-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.beer-card h2 {
    font-size: 1.1rem;
    margin: 14px 0 6px;
}

.beer-style {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 2px 0;
}

.beer-hops {
    font-size: 0.9rem;
    margin: 6px 0;
}

.beer-price {
    font-weight: 700;
    margin: 6px 0 14px;
}


/* Supermarket selector */
.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 4px;
}

.store-btn {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.store-btn:hover {
    border-color: var(--amber);
    color: var(--ink);
}

.store-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}


/* Pack-size toggle (single / 4-pack / case) */
.opt-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.opt-row:empty {
    margin: 0;
}

.opt-btn {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #f9fafb;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.opt-btn:hover {
    border-color: var(--amber);
    transform: translateY(-1px);
}

.opt-btn.active {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}

.beer-card img {
    transition: opacity 0.15s ease;
}

.buy-btn {
    margin-top: auto;
    display: inline-block;
    text-align: center;
    padding: 10px 14px;
    background: var(--amber);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s ease, transform 0.15s ease;
}

.buy-btn:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
}


/* ---------------------------------------------------------------
   Hops / Brewery list cards
--------------------------------------------------------------- */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.list-card {
    background: var(--card);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.list-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.list-card h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--amber-dark);
}

.list-card .count {
    color: var(--muted);
    font-size: 0.85rem;
    margin: 0 0 10px;
}

.list-card ul {
    margin: 0;
    padding-left: 18px;
}

.list-card li {
    margin: 4px 0;
    font-size: 0.92rem;
}


/* ---------------------------------------------------------------
   Contact
--------------------------------------------------------------- */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
}

.contact-info,
.contact-form {
    background: var(--card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.contact-info h2 {
    margin-top: 0;
}

.contact-info p {
    margin: 10px 0;
}

.contact-info a {
    color: var(--amber-dark);
    text-decoration: none;
}

.socials {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    font-size: 1.5rem;
}

.socials a {
    text-decoration: none;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.contact-form button {
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--amber);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s ease, transform 0.15s ease;
}

.contact-form button:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
}

.contact-status {
    color: var(--amber-dark);
    font-weight: 600;
    min-height: 1.2em;
    margin: 0;
}


/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */
.footer {
    background: var(--card);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 28px 20px;
    color: var(--muted);
    font-size: 0.9rem;
}

.footer a {
    color: var(--amber-dark);
    text-decoration: none;
}


/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 900px) {
    #results,
    #find-results {
        grid-template-columns: repeat(2, 1fr);
    }
    .list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    #results,
    #find-results,
    .list-grid {
        grid-template-columns: 1fr;
    }
    .nav {
        padding: 14px 16px;
    }
    .nav-btn {
        padding: 8px 12px;
    }
}


/* ---------------------------------------------------------------
   Find your beer — flavour chips
--------------------------------------------------------------- */
.flavour-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 10px 0 24px;
}

.flavour-chip {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.flavour-chip:hover {
    transform: translateY(-2px);
    border-color: var(--amber);
    box-shadow: var(--shadow-md);
}

.flavour-chip.active {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}

.find-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 8px 0 32px;
}

.find-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    background: var(--amber);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.15s ease, transform 0.15s ease;
}

.find-btn:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
}

.clear-btn {
    padding: 14px 22px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    color: var(--muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.clear-btn:hover {
    border-color: var(--amber);
    color: var(--ink);
}


/* ---------------------------------------------------------------
   Adverts
--------------------------------------------------------------- */
.ad-slot {
    margin: 24px auto;
    max-width: 970px;
    text-align: center;
    overflow: hidden;
}

/* Hide the ad box entirely when there's no ad in it, so no empty gap. */
.ad-slot:empty {
    display: none;
    margin: 0;
}

.ad-label {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}


/* ---------------------------------------------------------------
   Privacy page
--------------------------------------------------------------- */
.privacy {
    max-width: 760px;
    background: var(--card);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-md);
    line-height: 1.65;
}

.privacy h2 {
    font-size: 1.15rem;
    margin: 22px 0 6px;
}

.privacy p {
    color: var(--ink);
    margin: 0 0 10px;
}

.privacy a {
    color: var(--amber-dark);
}
