:root {
    --tauley-accent: #b03a00;
    --tauley-light: #fffff1;
    --tauley-dark: #2d2d2d;
    --header-height: 104px;
    --greca-height: 84px;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--tauley-light);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    padding-top: var(--header-height);
}

body.has-cookie-notice {
    overflow: hidden;
}

body.has-cookie-notice > :not(.cookie-notice-modal):not(.modal-backdrop) {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

h1::after {
	content: "";
	display: block;
	width: 5rem;
	height: 3px;
	margin-top: 0.6rem;
	background-color: var(--tauley-accent);
	border-radius: 999px;
}

h2::after {
	content: "";
	display: block;
	width: 3rem;
	height: 2px;
	margin-top: 0.5rem;
	background-color: var(--tauley-accent);
	border-radius: 999px;
}

.page-shell {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

.layout-shell {
    max-width: 1320px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: var(--tauley-accent);
    transition: box-shadow 0.25s ease;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 18px;
    background: linear-gradient(to bottom, rgba(176, 58, 0, 0.18), rgba(176, 58, 0, 0));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.site-header.is-scrolled::after {
    opacity: 0.65;
}

.navbar {
    min-height: var(--header-height);
}

.modal-backdrop.show {
    background-color: rgba(45, 45, 45, 0.5);
    backdrop-filter: blur(2px);
    opacity: 1;
}

.cookie-notice-modal {
    --bs-modal-width: min(1100px, calc(100vw - 2rem));
}

.cookie-notice-modal__dialog {
    min-height: calc(100% - 2rem);
    margin: 1rem auto max(1rem, env(safe-area-inset-bottom));
    display: flex;
    align-items: flex-end;
}

.cookie-notice-modal__content {
    border: 0;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--tauley-accent);
    color: #fff;
    box-shadow: 0 -18px 36px rgba(0, 0, 0, 0.22);
}

.cookie-notice-modal__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
}

.cookie-notice-modal__text-block {
    max-width: 56rem;
}

.cookie-notice-modal__title {
    margin: 0 0 0.65rem;
}

.cookie-notice-modal__title::after {
    background-color: rgba(255, 255, 255, 0.72);
}

.cookie-notice-modal__text {
    line-height: 1.7;
}

.cookie-notice-modal__actions {
    flex-shrink: 0;
}

.cookie-notice-modal__button {
    padding: 0.7rem 1.4rem;
    border: 0;
    border-radius: 999px;
    background-color: #fff;
    color: var(--tauley-accent);
    font-weight: 700;
    white-space: nowrap;
}

.cookie-notice-modal__button:hover,
.cookie-notice-modal__button:focus,
.cookie-notice-modal__button:active {
    background-color: #ffe5d9;
    color: #8f2f00;
}

.navbar-brand img {
    height: 72px;
    width: auto;
    display: block;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.2);
}

.navbar-toggler-icon {
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle,
.navbar-nav .dropdown-item {
    color: #fff;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .dropdown-toggle:hover,
.navbar-nav .dropdown-toggle:focus {
    color: #ffe5d9;
}

.navbar-nav .nav-link.active,
.navbar-nav .dropdown-toggle.active {
    color: #ffe5d9;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.language-switcher__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.language-switcher__link {
    --switcher-link-color: #fff;
    --switcher-link-border-color: rgba(255, 255, 255, 0.35);
    --switcher-link-hover-background: rgba(255, 255, 255, 0.12);
    --switcher-link-hover-border-color: rgba(255, 255, 255, 0.5);
    --switcher-link-active-background: rgba(255, 255, 255, 0.18);
    --switcher-link-active-border-color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--switcher-link-border-color);
    border-radius: 999px;
    color: var(--switcher-link-color);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus {
    color: var(--switcher-link-color);
    background-color: var(--switcher-link-hover-background);
    border-color: var(--switcher-link-hover-border-color);
}

.language-switcher__link.is-active {
    background-color: var(--switcher-link-active-background);
    border-color: var(--switcher-link-active-border-color);
}

.dropdown-menu {
    background-color: #8f2f00;
    border: 0;
    border-radius: 0.75rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.18);
}

.simple-section {
    padding: 3rem 0 2rem;
}

.sx-image-section,
.dx-image-section,
.beer-section {
    padding: 3rem 0 2rem;
}

.profile-cards-section {
    padding: 3rem 0 2rem;
}

.contacts-section {
    padding: 3rem 0 2rem;
}

.contacts-map-section {
    padding: 3rem 0 2rem;
}
	
.not-first-section {
	padding-top: 0px !important;
}

.content-card {
    background: rgba(255, 255, 255, 0.9);
    border: 0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 36px rgba(176, 58, 0, 0.15);
}

.content-card p {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.sx-image-section__card {
    overflow: hidden;
}

.sx-image-section__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    object-position: center;
}

.sx-image-section__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.beer-section__card {
    overflow: hidden;
}

.beer-section__media {
    height: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beer-section__stamp {
    width: 280px;
    height: 280px;
    flex: 0 0 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beer-section__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.beer-section__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.profile-card {
    overflow: hidden;
}

.profile-card__image {
    display: block;
    width: 100%;
    height: auto;
}

.profile-card__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contacts-card {
    height: 100%;
}

.site-main a {
    color: var(--tauley-accent);
    text-decoration: none;
}

.contacts-section__lead {
    margin-bottom: 1.5rem;
}

.contact-form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contacts-section__info p:last-child {
    margin-bottom: 0;
}

.contacts-form textarea.form-control {
    min-height: 220px;
    resize: vertical;
}

.contacts-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contacts-form__privacy .form-check-input {
    flex: 0 0 auto;
    margin-top: 0.3rem;
}

.contacts-form__privacy .form-check-label {
    line-height: 1.6;
}

.contacts-form__privacy-link {
    color: var(--tauley-accent);
    font-weight: 600;
}

.contacts-form__privacy-link:hover,
.contacts-form__privacy-link:focus {
    color: #8f2f00;
}

.contacts-map-card {
    overflow: hidden;
}

.contacts-map-frame {
    border-radius: 1.25rem;
    overflow: hidden;
    background-color: rgba(176, 58, 0, 0.08);
}

.contacts-map-frame iframe {
    display: block;
    width: 100%;
    min-height: 460px;
    border: 0;
}

.gallery-section {
    padding: 3rem 0 2rem;
}

.gallery-filter__options {
    gap: 0.65rem;
}

.gallery-filter__link {
    --switcher-link-color: var(--tauley-accent);
    --switcher-link-border-color: rgba(176, 58, 0, 0.28);
    --switcher-link-hover-background: rgba(176, 58, 0, 0.08);
    --switcher-link-hover-border-color: rgba(176, 58, 0, 0.42);
    --switcher-link-active-background: rgba(176, 58, 0, 0.14);
    --switcher-link-active-border-color: rgba(176, 58, 0, 0.52);
}

.gallery-grid {
    column-width: 18rem;
    column-gap: 1.5rem;
}

.gallery-grid__item {
    margin: 0 0 1.5rem;
    break-inside: avoid;
}

.gallery-grid__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 18px 36px rgba(176, 58, 0, 0.15);
}

.privacy-policy__section + .privacy-policy__section {
    margin-top: 2.5rem;
}

.privacy-policy__list {
    margin: 0;
    padding-left: 1.25rem;
}

.privacy-policy__list li + li {
    margin-top: 0.75rem;
}

.site-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
	font-size: 0.9em;
	padding-top: 10px;
}

.footer-greca {
    height: var(--greca-height);
    background-image: url("../images/GrecaPodereTauleySmall.png");
    background-repeat: repeat-x;
    background-position: center top;
    background-size: auto 100%;
    flex-shrink: 0;
}

.footer-main {
    background-color: var(--tauley-dark);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 2.5rem 0;
}

.footer-main h2,
.footer-main h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-main p {
    line-height: 1.8;
    margin-bottom: 0;
}

.footer-main a {
	text-decoration: none;
    color: #fff;
}

.footer-main a:hover {
    color: var(--tauley-accent);
}

@media (max-width: 991.98px) {
    :root {
        --header-height: 90px;
    }

    body {
        padding-top: calc(var(--header-height) + 10px);
    }

    .navbar-brand img {
        height: 58px;
    }

    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: rgba(0, 0, 0, 0.12);
        border-radius: 1rem;
    }

    .language-switcher {
        margin-top: 1.25rem;
    }

    .sx-image-section__media {
        max-height: 280px;
        overflow: hidden;
        display: flex;
        align-items: center;
    }

    .sx-image-section__image {
        height: auto;
        min-height: 0;
    }

    .beer-section__media {
        padding: 1.5rem 1.5rem 0;
    }

    .beer-section__stamp {
        width: min(100%, 280px);
        margin: 0 auto;
    }
}

@media (min-width: 992px) {
    .language-switcher {
        margin-top: 0;
        margin-left: 1rem;
    }
}

@media (max-width: 575.98px) {
    .simple-section {
        padding: 2rem 0 1.5rem;
    }

    .sx-image-section,
    .dx-image-section,
    .beer-section,
    .gallery-section {
        padding: 2rem 0 1.5rem;
    }

    .profile-cards-section {
        padding: 2rem 0 1.5rem;
    }

    .contacts-section,
    .contacts-map-section {
        padding: 2rem 0 1.5rem;
    }
	
	.not-first-section {
		padding-top: 0px !important;
	}

    .content-card {
        border-radius: 1rem;
    }

    .beer-section__media {
        padding: 0.5rem 0.25rem 0;
    }

    .gallery-grid {
        column-gap: 1rem;
    }

    .gallery-grid__item {
        margin-bottom: 1rem;
    }

    .gallery-grid__image {
        border-radius: 1rem;
    }
}

@media (max-width: 767.98px) {
    .cookie-notice-modal {
        --bs-modal-width: calc(100vw - 1.5rem);
    }

    .cookie-notice-modal__dialog {
        min-height: calc(100% - 1.5rem);
        margin: 0.75rem auto max(0.75rem, env(safe-area-inset-bottom));
    }

    .cookie-notice-modal__content {
        border-radius: 1.25rem;
    }

    .cookie-notice-modal__body {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-notice-modal__actions,
    .cookie-notice-modal__button {
        width: 100%;
    }

    .footer-main h2::after {
        margin-left: auto;
        margin-right: auto;
    }
}
