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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: #6ecdae;
    color: #2d2520;
    line-height: 1.6;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    text-align: center;
    padding: 4rem 1.5rem;
}

.logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.tagline {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

/* Description Section */
.description-section {
    padding: 3rem 1.5rem;
}

.card {
    background-color: #f5f1e8;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 48rem;
    margin: 0 auto;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.description-text {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 2rem;
}

.beer-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a430;
}

.stat-label {
    font-size: 0.875rem;
    color: #5a4e47;
    margin-top: 0.25rem;
}

/* Order Section */
.order-section {
    padding: 3rem 1.5rem;
}

.order-container {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    max-width: 64rem;
    margin: 0 auto;
    background-color: #f5f1e8;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.order-image {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.order-image img {
    width: 80%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
}

.order-content {
    flex: 1;
    padding: 3rem;
}

.order-content h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.order-content p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Pricing Section */
.pricing-section {
    padding: 3rem 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background-color: #f5f1e8;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
}

.bottle-container {
    background-color: white;
    padding: 2rem;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottle-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.pricing-content {
    padding: 1.5rem 1.5rem 0;
}

.pricing-cta {
    padding: 0 1.5rem 1.5rem;
}

.pricing-card-media-out-of-stock {
    filter: grayscale(90%) brightness(0.65);
}

.pricing-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-card p {
    margin-bottom: 1rem;
}

.pricing-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.5em * 3);
    line-height: 1.5;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #d4a430;
}

.stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background-color: rgba(45, 37, 32, 0.9);
    color: #f5f1e8;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 0.85rem 1rem;
}

/* Contact Section */
.contact-section {
    padding: 4rem 1.5rem;
}

.contact-card {
    background-color: #f5f1e8;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    max-width: 48rem;
    margin: 0 auto;
}

.contact-info {
    text-align: center;
}

.contact-info > div {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.25rem;
}

.contact-label {
    font-weight: 600;
}

.divider {
    border-top: 1px solid #d4c4af;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
}

.hours {
    font-size: 0.875rem;
    color: #5a4e47;
}

/* Button */
.cta-button {
    display: inline-block;
    background-color: #d4a430;
    color: #2d2520;
    /* Without these, a <button> falls back to the browser's own font and
       border, so it would not match an <a> carrying the same class. */
    font-family: inherit;
    font-size: 1rem;
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #b88a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 164, 48, 0.3);
}

.cta-button:disabled {
    background-color: #cbbfae;
    color: #6b6156;
    cursor: not-allowed;
}

.cta-button:disabled:hover {
    background-color: #cbbfae;
    transform: none;
    box-shadow: none;
}

.delete-button {
    background-color: #b3413a;
    color: #f5f1e8;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-button:hover {
    background-color: #8f312b;
}

.archive-button {
    background-color: #6b6156;
    color: #f5f1e8;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.archive-button:hover {
    background-color: #52493f;
}

/* Row of admin actions (export, archive, back). The row owns the spacing,
   so the buttons inside it drop their own top margin. */
.admin-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.admin-button-row .cta-button {
    margin-top: 0;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.email-link {
    color: inherit;
    text-decoration: underline;
}

.email-link:hover {
    color: #d4a430;
}

/* Admin table */
.tagline-text {
    text-align: center;
    font-size: 1.125rem;
    color: #f5f1e8;
}

.table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #d4c4af;
}

.admin-table th {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2d2520;
}

.admin-table td:last-child,
.admin-table th:last-child {
    text-align: right;
    font-weight: 600;
    color: #d4a430;
}

.admin-table tbody tr:hover {
    background-color: #ece5d4;
}

/* Flash popup */
.flash-popup {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 3rem);
    max-width: 22rem;
    background-color: #f5f1e8;
    border: 4px solid #a8916a;
    border-radius: 0.75rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
    padding: 1.75rem 2.25rem;
    text-align: center;
}

.flash-text {
    margin: 0 0 1rem;
    color: #2d2520;
    font-size: 1rem;
}

.flash-popup .cta-button {
    margin-top: 0;
}

.flash-close {
    position: absolute;
    right: 0.6rem;
    top: 0.6rem;
    background: none;
    border: none;
    color: #5a4e47;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
}

.flash-close:hover {
    color: #2d2520;
}

/* Admin form */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: #2d2520;
}

.admin-form label:has(input[type="checkbox"]) {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form input[type="date"],
.admin-form select,
.admin-form textarea {
    font: inherit;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d4c4af;
    border-radius: 0.5rem;
    background-color: white;
    color: #2d2520;
}

.admin-form textarea {
    resize: vertical;
}

.admin-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

/* Two fields side by side inside an admin form (name/kind, postcode/city). */
.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.admin-subheading {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.stock-fieldset {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid #d4c4af;
    border-radius: 0.5rem;
    padding: 1rem;
}

.stock-fieldset legend {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    padding: 0 0.4rem;
}

/* Order form */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.order-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 600;
    color: #2d2520;
}

.order-form .checkbox-label {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.order-form input[type="text"],
.order-form input[type="email"] {
    font: inherit;
    font-weight: 400;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d4c4af;
    border-radius: 0.5rem;
    background-color: white;
    color: #2d2520;
}

.order-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.order-form button {
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.form-section-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #5a4e47;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: -0.5rem;
}

.field-error {
    font-weight: 400;
    font-size: 0.85rem;
    color: #b3261e;
}

.field-error-general {
    text-align: center;
    margin-bottom: 1rem;
}

.product-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid #d4c4af;
}

.product-row {
    display: grid;
    grid-template-columns: 1fr auto 4.5rem auto;
    align-items: center;
    gap: 1rem;
}

.product-row-label {
    font-weight: 600;
}

.product-row-price {
    color: #5a4e47;
}

.qty-input {
    font: inherit;
    width: 100%;
    padding: 0.4rem 0.5rem;
    border: 1px solid #d4c4af;
    border-radius: 0.5rem;
    background-color: white;
    color: #2d2520;
    text-align: center;
}

.product-row-subtotal {
    font-weight: 600;
    color: #d4a430;
    text-align: right;
    min-width: 4.5rem;
}

.product-row-disabled {
    opacity: 0.5;
}

.product-row-note {
    margin: -0.5rem 0 0;
    font-size: 0.85rem;
    color: #b3261e;
}

.product-row-note a {
    color: inherit;
    font-weight: 600;
}

.preorder-notice {
    margin: -0.5rem 0 0;
    font-size: 0.85rem;
    color: #7a5b12;
    background-color: #f3e3c4;
    border: 1px solid #d4a430;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    padding-top: 0.75rem;
    border-top: 1px solid #d4c4af;
}

.order-total span:last-child {
    color: #d4a430;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: #5a4e47;
    font-size: 0.875rem;
}

/* Site navigation */
.logo-link {
    display: block;
    text-decoration: none;
}

/* The header carries 4rem of bottom padding for the standalone logo. When
   the nav follows it, that gap is too wide, so tighten it. */
header:has(+ .site-nav) {
    padding-bottom: 1.5rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 2rem;
    padding: 0 1.5rem 1rem;
}

.site-nav-link {
    color: #2d2520;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.site-nav-link:hover {
    border-bottom-color: #2d2520;
}

.site-nav-link[aria-current="page"] {
    border-bottom-color: #d4a430;
}

/* The nav row owns its own spacing, so the CTA drops the top margin it
   carries everywhere else. */
.site-nav-cta {
    margin-top: 0;
    padding: 0.5rem 1.5rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1rem;
}

.footer-nav a {
    color: #5a4e47;
    text-decoration: none;
    font-weight: 600;
}

.footer-nav a:hover {
    color: #2d2520;
    text-decoration: underline;
}

/* Story Section */
.story-section {
    padding: 3rem 1.5rem;
}

.story-card p {
    font-size: 1.0625rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.story-mark {
    display: block;
    width: 4.5rem;
    height: auto;
    margin: 0 auto 1rem;
}

/* Scoped to .story-card so it outranks the `.story-card p` size above. */
.story-card .story-closing {
    text-align: center;
    font-size: 1.5rem;
    color: #d4a430;
    margin-top: 2rem;
    margin-bottom: 0;
}

.order-aside {
    font-size: 1rem;
    color: #5a4e47;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Distributors */
.distributor-city {
    margin-top: 2.5rem;
}

.distributor-city-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4a430;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #d4c4af;
}

.distributor-list {
    list-style: none;
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.distributor {
    border-left: 3px solid #d4a430;
    padding: 0.25rem 0 0.25rem 1rem;
}

.distributor-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.75rem;
}

.distributor-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.distributor-kind {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a4e47;
    background-color: #ece5d4;
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
}

.distributor-address {
    color: #5a4e47;
    margin-top: 0.15rem;
}

.distributor-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.35rem;
    font-size: 0.9rem;
}

.distributor-outro {
    font-size: 1rem;
    color: #5a4e47;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        max-width: 400px;
    }

    .tagline {
        max-width: 350px;
    }

    h2 {
        font-size: 2rem;
    }

    .card,
    .contact-card {
        padding: 2rem;
    }

    .beer-stats {
        gap: 2rem;
    }

    .order-container {
        flex-direction: column;
    }

    .order-content {
        padding: 2rem;
    }

    .order-content h2 {
        text-align: center;
    }

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

    .order-form .form-row {
        grid-template-columns: 1fr;
    }

    .product-row {
        grid-template-columns: 1fr auto 3.5rem;
        row-gap: 0.25rem;
    }

    .product-row-subtotal {
        grid-column: 1 / -1;
    }

    .site-nav {
        gap: 0.5rem 1.25rem;
    }

    .footer-nav {
        gap: 0.5rem 1rem;
    }

    .admin-form-row {
        grid-template-columns: 1fr;
    }
}
