/* ============================================
   DWOREK W KLUKOWIE - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    /* Colors */
    --burgundy: #681C34;
    --burgundy-dark: #4a1425;
    --gold: #B29158;
    --gold-2: #CEB070;
    --gold-light: #d4bc8a;
    --beige: #D2BCA4;
    --cream: #EBE0CB;
    --cream-light: #F5F0E6;
    --white: #FAFAF3;
    --text: #2D2926;
    --text-light: #5a5652;
    
    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Lato', -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(45, 41, 38, 0.06);
    --shadow-md: 0 4px 20px rgba(45, 41, 38, 0.08);
    --shadow-lg: 0 8px 40px rgba(45, 41, 38, 0.12);
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

address {
    font-style: normal;
}

/* Focus states for accessibility */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 2rem + 3vw, 5rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
h4 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container--narrow {
    max-width: 800px;
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--cream-light);
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-md);
    max-width: 1400px;
    margin: 0 auto;
}

.header__logo img {
    height: 60px;
    width: auto;
}

/* Navigation */
.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav__link {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link:focus::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--burgundy);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle__bar {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--cream-light);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--transition-base);
    }
    
    .nav.is-open {
        transform: translateX(0);
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .nav__link {
        font-size: 1.25rem;
    }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-transform: uppercase;
}

.btn--primary {
    background: var(--burgundy);
    color: var(--white);
    border: 2px solid var(--burgundy);
}

.btn--primary:hover {
    background: var(--burgundy-dark);
    border-color: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--burgundy);
    text-shadow: none;
}

.btn--full {
    width: 100%;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 var(--space-md);
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.875rem, 0.8rem + 0.5vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: translateY(20px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 2.5rem + 4vw, 6rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: var(--space-sm);
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero__text {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    color: var(--white);
}

.hero__cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin-top: var(--space-sm);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}


/* ---------- Sections ---------- */
.section {
    padding: var(--space-xl) 0;
}

.section--light {
    background: var(--white);
}

.section--cream {
    background: var(--cream-light);
}

.section--burgundy {
    background: var(--burgundy);
}

.section__header {
    margin-bottom: var(--space-lg);
}

.section__header--center {
    text-align: center;
}

.section__header--light {
    color: var(--white);
}

.section__header--light .section__title,
.section__header--light .section__desc {
    color: var(--white);
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.section__title {
    margin-bottom: var(--space-sm);
}

.section__desc {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- About ---------- */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

.about__lead {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.about__image {
    position: relative;
}

.about__image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.about__image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* USP List */
.usp-list {
    margin-top: var(--space-md);
}

.usp-list__item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--beige);
}

.usp-list__item:last-child {
    border-bottom: none;
}

.usp-list__icon {
    color: var(--gold);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 0.35em;
}

.usp-list__item strong {
    color: var(--burgundy);
}

/* ---------- Offer Grid ---------- */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.offer-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.offer-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.offer-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.offer-card:hover .offer-card__image img {
    transform: scale(1.05);
}

.offer-card__content {
    padding: var(--space-md);
}

.offer-card__title {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--burgundy);
}

.offer-card__content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---------- Rooms ---------- */
.rooms {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.room {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.room--reverse {
    direction: rtl;
}

.room--reverse > * {
    direction: ltr;
}

@media (max-width: 900px) {
    .room,
    .room--reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

.room__image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.room__image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.room__title {
    color: var(--burgundy);
    margin-bottom: var(--space-sm);
}

.room__desc {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.room__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs) var(--space-md);
}

.room__features li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text);
    font-size: 0.95rem;
}

.room__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* ---------- Tables Grid ---------- */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.table-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    color: var(--white);
    transition: transform var(--transition-base), background var(--transition-base);
}

.table-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.table-card__icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-left: auto;
    margin-right: auto;
}

.table-card__icon svg {
    width: 100%;
    height: 100%;
}

.table-card__title {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: var(--space-sm);
}

.table-card p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ---------- Gallery ---------- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-sm);
}

.gallery__item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
}

.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(104, 28, 52, 0.4), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover::after {
    opacity: 1;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.08);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.lightbox__image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    color: var(--white);
    font-size: 2rem;
    padding: 1rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
    background: none;
    border: none;
    cursor: pointer;
}

.lightbox__close {
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
}

.lightbox__prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    color: var(--gold);
}

/* ---------- FAQ ---------- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition-fast);
    list-style: none;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question:hover {
    color: var(--burgundy);
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
    margin-left: var(--space-sm);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    background: var(--gold);
    transition: transform var(--transition-base);
}

.faq-item__icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-item__icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-item[open] .faq-item__icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-item__answer {
    padding: 0 var(--space-md) var(--space-md);
    color: var(--text-light);
}

/* ---------- Contact ---------- */
.contact {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .contact {
        grid-template-columns: 1fr;
    }
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact__card {
    background: var(--cream-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.contact__card-title {
    color: var(--burgundy);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
}

.contact__item {
    margin-bottom: var(--space-md);
}

.contact__item:last-child {
    margin-bottom: 0;
}

.contact__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-xs);
}

.contact__value {
    color: var(--text);
}

.contact__value a {
    color: var(--burgundy);
    transition: color var(--transition-fast);
}

.contact__value a:hover {
    color: var(--gold);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.contact__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--text);
    color: var(--cream);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    font-weight: 500;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.footer__brand p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer__links h4 {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__links a {
    opacity: 0.7;
    transition: opacity var(--transition-fast), color var(--transition-fast);
    font-size: 0.95rem;
}

.footer__links a:hover {
    opacity: 1;
    color: var(--gold);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

.footer__bottom a:hover {
    color: var(--gold);
    opacity: 1;
}

/* ---------- Animations (GSAP controlled) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal--left {
    transform: translateX(-40px);
}

.reveal--right {
    transform: translateX(40px);
}

/* Gold shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--gold-light) 50%,
        var(--gold) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

/* Stagger animation helper */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
}
