@font-face {
    font-family: 'Jost';
    src: url('/fonts/Jost-Regular.ttf') format('truetype');
    font-weight: 400;
}

@font-face {
    font-family: 'Jost';
    src: url('/fonts/Jost-SemiBold.ttf') format('truetype');
    font-weight: 600;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
    background: #f2efeb;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: #f2efeb;
    z-index: 1000;
}

.header-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

.header-mobile .logo {
    width: 80px;
    z-index: 2;
}

.header-mobile .hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    width: 50px;
    height: 50px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
}

.header-mobile .hamburger span {
    display: block;
    width: calc(100%-5px);
    height: 2px;
    background: #000;
    margin: 6px 0;
    border-radius: 2px;
}

.header-desktop {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 40px;
}

.header-desktop .logo {
    width: 100px;
}

.header-desktop .nav-items {
    display: flex;
    gap: 20px;
}

.header-desktop .nav-items a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.hero-section-mobile,
.hero-section-desktop {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-section-mobile img,
.hero-section-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 10% center;
}

.hero-section-mobile {
    height: 80vh;
}

.hero-section-desktop {
    display: none;
    height: 100vh;
}

/* HERO OVERLAY */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    /* horizontal centering */
    align-items: flex-end;
    /* push collapsed box to bottom */
    padding-bottom: 4rem;
    /* gap to next section */
    box-sizing: border-box;
}

/* COLLAPSED BOX */
.hero-text-bg {
    height: 12rem;
    /* fixed height */
    width: 90%;
    max-width: 720px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-sizing: border-box;
    overflow-y: auto;
    /* scrollable if text overflows */
    /* margin-top: 2rem; */
    /* top gap */
}

/* LOCK STATE */
body.age-locked {
    overflow: hidden;
}

body.age-locked header,
body.age-locked main {
    filter: blur(6px);
    pointer-events: none;
}

/* OVERLAY */
#age-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(242, 239, 235, 0.85);
}

/* INNER BOX */
.age-gate-inner {
    text-align: center;
    padding: 2rem;
    max-width: 320px;
}

/* TYPOGRAPHY */
.age-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.age-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* BUTTONS */
.age-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.age-actions button {
    background: none;
    border: none;
    cursor: pointer;

    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;

    text-decoration: underline;
    padding: 0.5rem 1rem;
}

/* subtle interaction */
.age-actions button:hover {
    opacity: 0.6;
}

/* EXPANDED BOX */
.hero-text-bg.expanded {
    height: auto;
    /* let content define height */
    /* max-height: calc(100% - 4rem - 2rem); */
    /* hero height minus bottom and top gaps */
    width: 90%;
    max-width: 720px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    box-sizing: border-box;
    overflow-y: auto;
    /* scrollable if content too tall */
    /* margin-top: 2rem; */
    /* top gap preserved */
}
.hero-text-bg h1 {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
}

.hero-text-bg p {
    font-size: 1.2rem;
    margin: 0;
}



.short-text,
.long-text {
    margin: 0;
    text-align: center; /* <-- add this */
}

.long-text {
    display: none;
}

.hero-text-bg.expanded .long-text {
    display: block;
}

.hero-text-bg.expanded .short-text {
    display: none;
}

.toggle-text {
    align-self: flex-end;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    color: inherit;
}

/* section history */
.history-section {
    position: relative;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding-top: calc(clamp(80px, 20vw, 200px) / 2 + 20px);
    padding-bottom: 2rem;
}
.history-text {
    line-height: 1.5;
    text-align: justify; /* <-- left alignment */
}

.short-text {
    display: block;
}

.long-text {
    display: none;
}

.history-content {
    text-align: left;
    margin: 0 auto;
    padding: 0 1rem;
    max-width: 720px; /* limit width so button can align correctly */
}

.history-content .toggle-history {
    display: inline-block;          /* makes it flow with text width */
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 200;               /* light font */
    font-size: 0.85rem;             /* smaller font */
    text-decoration: underline;
    color: #fff;                     /* visible on black background */
    margin-top: 0.5rem;             /* spacing from text */
    float: right;                   /* right-align inside container */
    clear: both;                    /* prevent overlap with text */
}
.history-logo {
    display: block;
    margin: 0 auto;
    width: clamp(80px, 20vw, 200px);
    height: auto;

    margin-top: calc(-1.15* clamp(80px, 20vw, 200px));

    z-index: 2;
}

.history-content {
    text-align: left;
    margin: 0 auto;
    padding: 0 1rem;
}

.history-sun-container {
    display: flex;
    justify-content: center;
    /* center horizontally */
    margin-top: 4rem;
    /* space above logo */
}

/* Sun logo itself */
.history-sun-logo {
    width: clamp(132px, 33vw, 330px);   
    height: auto;
}

.lukasowka-lot-img-container {
    width: 100%;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.lukasowka-lot-img {
    display: block;
    /* removes inline gap */
    width: 100%;
    height: auto;
    /* preserves proportions */
}
.lukasowka-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* WINA SECTION */
.wina-section {
    position: relative;
    background-color: #f2efeb;
    text-align: center;
    padding-top: calc(clamp(80px, 20vw, 200px) / 2);
    /* keeps overlap with Historia */
    padding-bottom: 4rem;
}

/* container allows absolute positioning */
.wina-logo-container {
    position: absolute;
    top: 0;
    /* starts at top of section */
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    /* moves logo up by half its height */
    z-index: 2;
}

.wina-logo {
    width: clamp(80px, 20vw, 200px);
    height: auto;
}

/* image starts immediately at section top (under logo) */
.wina-image {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    top: calc(-0.5 * clamp(80px, 20vw, 200px));
    /* lift image up by half logo height */
    z-index: 1;
    /* ensure image stays below the logo */
}
.wine-types-container {
    margin: 0.5rem;
    /* wrapper margin around all wine-type blocks */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* spacing between wine types */
}
.kolory{
	text-align: left;
	margin-left: 1rem;
}
.kolory-kontakt{
	margin-top: -3rem;
	text-align: left;
	margin-left: 1rem;
}

.wine-type {
    display: flex;
    flex-direction: column;
}

.wine-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    /* remove any default gap */
}

.wine-logo-text {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    /* spacing below image */
}

.wine-logo {
    width: clamp(180px, 33.75vw, 337.5px);
    /* 50% larger than previous size */
    height: auto;
    margin-left: -0.5rem;
    margin-bottom: 0;
    /* removed bottom margin so spacing comes only from text margin */
    align-self: flex-start;
    /* left-aligned */
}
.wine-text-container {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* pushes child elements (button) to the right */
}

.toggle-wine {
    background: none;
    border: none;
    color: #000;           /* black color */
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

.wine-text.long-text {
    display: none;
	text-align: justify;
}
 .footer-text{
    text-align: center;
    font-size: 11px;
  }
.wine-text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0.5rem 0 2rem 1rem;
    /* added 0.5rem spacing above text */
    text-align: left;
    /* text aligned to left */
}
/* Mobile menu */
.mobile-full-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: #f2efeb;
    display: flex;
    flex-direction: column;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.galeria-section {
    position: relative;
    background-color: #000;
    text-align: center;
    padding-top: 0.5rem;
    padding-bottom: 5rem;
}

.galeria-logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0); /* top of logo aligns with section top */
    z-index: 2;
}

.galeria-logo {
    width: clamp(80px, 20vw, 200px);
    height: auto;
}

.galeria-images {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: calc(0.5 * clamp(80px, 20vw, 200px));
    /* first image starts so bottom half of logo overlaps it */
}

.galeria-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 1px 0;
    /* 1px margin above and below each image */
}

/* KONTAKT SECTION */
.kontakt-section {
    position: relative;
    background-color: #f2efeb;
    /* same as Wina section */
    text-align: center;
    padding-top: calc(clamp(80px, 20vw, 200px) / 2);
    /* space for logo overlap */
    padding-bottom: 4rem;
}

.kontakt-logo-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 2;
}

.kontakt-logo {
    width: clamp(80px, 20vw, 200px);
    height: auto;
}
.kontakt-text{
    margin-bottom: 1rem;
}

/* Content wrapper */
.kontakt-content {
    margin-top: calc(0.5 * clamp(80px, 20vw, 200px));
    /* align below logo bottom */
    max-width: 800px;
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.map-container iframe {
    filter: brightness(0.89) contrast(2) saturate(10);
    border-radius: 0;
}

.map-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f2efeb;
    /* replace with your header menu color */
    mix-blend-mode: color;
    /* applies the color to the iframe below */
    pointer-events: none;
    /* lets map interactions through */
}

/* Text */
.kontakt-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.kontakt-subtitle {
    font-weight: 400;
    font-size: 1rem;
    margin: 0;
}

/* Contact info */
.kontakt-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kontakt-winery {
    font-weight: 600;
}

.kontakt-address {
    font-weight: 400;
}

.kontakt-people {
    font-weight: 400;
}

.kontakt-people .bold {
    font-weight: 600;
}

.kontakt-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.kontakt-social {
    display: flex;
    justify-content: center;   /* center instead of pushing apart */
    align-items: center;
    gap: 1rem;                 /* controls space between icons */
    margin: 10px 0;
}

.kontakt-social img {
    width: 50%;
    max-width: 50px;           /* slightly tighter cap */
    height: auto;
}
/* Last logo */
.kontakt-last-logo img {
    width: clamp(80px, 20vw, 200px);
    height: auto;
    margin-top: 1rem;
}

.mobile-full-menu.active {
    transform: translateX(0);
}

.menu-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
}

.lang-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    gap: 10px;
}

.pl-container,
.eng-container {
    display: inline-block;
    width: 30px;
    text-align: center;
}

.lang-switch .pl,
.lang-switch .eng {
    cursor: pointer;
    color: #888;
    font-weight: 400;
    transition: color 0.2s, font-weight 0.2s;
}

.lang-switch .pl.selected,
.lang-switch .eng.selected {
    color: #000;
    font-weight: 600;
}

.lang-switch .divider {
    display: inline-block;
    width: 1px;
    height: 36px;
    background: #000;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
}

.menu-buttons .menu-item {
    display: flex;
    flex-direction: column;
}

.menu-buttons a {
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-weight: 600;
    padding: 28px 0;
}

.menu-buttons hr {
    width: 100%;
    border: none;
    border-top: 0.5px solid #999;
    margin: 0;
}

.contact-info {
    text-align: center;
    font-size: 16px;
}

.pawel {
    font-size: 1.1em;
    font-weight: 600;
}

.rotary-phone {
    font-size: 0.95em;
    font-weight: 400;
    color: transparent;
    -webkit-text-stroke: 1px #000;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(-2px);
}

.phone-number {
    font-weight: 600;
    margin-left: 10px;
}

.menu-bottom-image {
    display: flex;
    justify-content: center;
}

.menu-bottom-image img {
    width: auto;
    height: auto;
    transform: scale(0.85);
    transform-origin: center;
}

@media (min-width:1024px) {
    .header-mobile {
        display: none;
    }

    .header-desktop {
        display: flex;
    }

    .mobile-full-menu {
        display: none;
    }

    .hero-section-mobile {
        display: none;
    }

    .hero-section-desktop {
        display: block;
    }

  /* LOCK STATE */
body.age-locked {
    overflow: hidden;
}

body.age-locked header,
body.age-locked main {
    filter: blur(6px);
    pointer-events: none;
}

/* OVERLAY */
#age-gate {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(242, 239, 235, 0.85);
}

/* INNER BOX */
.age-gate-inner {
    text-align: center;
    padding: 2rem;
    max-width: 320px;
}

/* TYPOGRAPHY */
.age-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.age-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* BUTTONS */
.age-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.age-actions button {
    background: none;
    border: none;
    cursor: pointer;

    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    font-weight: 600;

    text-decoration: underline;
    padding: 0.5rem 1rem;
}

/* subtle interaction */
.age-actions button:hover {
    opacity: 0.6;
}

 
}