/* AQUA RESIDENCE - Luxury Pool Website */
/* Tailwind is used inline. This file contains supplementary styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;500&display=swap');

:root {
    --accent-gold: #c5a05e;
    --text-primary: #2c2c2c;
    --bg-light: #f8f6f3;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

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

/* Hero */
.hero-bg {
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 20, 0.25) 0%,
        rgba(20, 20, 20, 0.55) 65%,
        rgba(20, 20, 20, 0.75) 100%
    );
    z-index: 1;
}

/* Card hover effects */
.pool-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.pool-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 70px -15px rgb(30 30 30 / 0.3) !important;
}

/* Expandable collection cards */
.pool-card--expandable.pool-card--expanded {
    box-shadow: 0 30px 70px -15px rgb(30 30 30 / 0.22);
    border-color: var(--accent-gold);
}

.pool-card--expandable.pool-card--expanded:hover {
    transform: translateY(-4px);
}

.pool-card--expandable {
    align-self: start;
    width: 100%;
    min-width: 0;
}

.pool-card__expand {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

.pool-card--expanded .pool-card__expand {
    grid-template-rows: 1fr;
}

.pool-card__expand-inner {
    overflow: hidden;
    min-height: 0;
}

.pool-card__chevron {
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.pool-card__chevron:hover {
    background-color: #fff;
}

.pool-card--expanded .pool-card__chevron svg {
    transform: rotate(180deg);
}

.pool-card__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.65rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: rgba(197, 160, 94, 0.1);
    border: 1px solid rgba(197, 160, 94, 0.45);
    border-radius: 9999px;
    transition: opacity 0.35s ease, margin 0.35s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.pool-card--expandable:hover .pool-card__hint {
    background: rgba(197, 160, 94, 0.16);
    border-color: var(--accent-gold);
}

.pool-card--expandable.pool-card--expanded .pool-card__hint {
    opacity: 0;
    margin-top: 0;
    min-height: 0;
    padding: 0;
    border-width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Configurator — unified panel */
.config-panel {
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 1.5rem;
    padding: 1.25rem 1.25rem 0;
    box-shadow: 0 12px 48px -16px rgb(30 30 30 / 0.12);
}

@media (min-width: 768px) {
    .config-panel {
        padding: 1.75rem 1.75rem 0;
    }
}

.config-panel .config-step-panel {
    margin-bottom: 0;
}

.config-panel__footer {
    margin: 1.5rem -1.25rem 0;
    padding: 1.25rem 1.25rem 1.5rem;
    border-top: 1px solid #ebe8e2;
    background: linear-gradient(to bottom, #faf9f7, #fff);
    border-radius: 0 0 1.5rem 1.5rem;
}

@media (min-width: 768px) {
    .config-panel__footer {
        margin: 2rem -1.75rem 0;
        padding: 1.5rem 1.75rem 1.75rem;
    }
}

.config-step-panel {
    margin-bottom: 0;
}

.config-step-panel__body {
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 40px -12px rgb(30 30 30 / 0.1);
}

@media (min-width: 768px) {
    .config-step-panel__body {
        padding: 2.75rem 2.5rem 3rem;
    }
}

.config-step-panel__body--summary {
    padding-bottom: 2.5rem;
}

.config-step-header {
    margin-bottom: 2rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid #ebe8e2;
}

.config-step-header__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.config-step-header__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #2c2c2c;
}

.config-step-header__desc {
    margin-top: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
    max-width: 36rem;
}

.config-step-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.config-included-box {
    padding: 1.25rem 1.5rem;
    background: #f8f6f3;
    border: 1px solid #ebe8e2;
    border-radius: 1rem;
}

.config-info-box {
    padding: 1.25rem 1.5rem;
    background: #f8f6f3;
    border: 1px solid rgba(197, 160, 94, 0.25);
    border-radius: 1rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #555;
}

.config-summary-card {
    margin-top: 0.25rem;
}

.config-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .config-summary-grid {
        grid-template-columns: 1.15fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

.config-summary-media .summary-preview {
    border-radius: 1rem;
    overflow: hidden;
    background: #f8f6f3;
    border: 1px solid #ebe8e2;
}

.config-summary-media .summary-preview img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 14rem;
    max-height: 22rem;
    object-fit: cover;
}

.config-summary-side {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1.75rem 1.5rem;
    background: #f8f6f3;
    border: 1px solid #ebe8e2;
    border-radius: 1.25rem;
}

@media (min-width: 768px) {
    .config-summary-side {
        padding: 2rem 1.75rem;
    }
}

.config-summary-side__label {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.75rem;
}

.config-summary-side__price {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 1.05;
    color: #2c2c2c;
    margin: 0;
}

.config-summary-side__currency {
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.config-summary-side__divider {
    height: 1px;
    margin: 1.5rem 0;
    background: linear-gradient(to right, transparent, #d9d5cc 20%, #d9d5cc 80%, transparent);
}

.config-summary-side__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: 0.875rem;
    line-height: 1.45;
}

.config-summary-side__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(229, 226, 217, 0.7);
}

.config-summary-side__row:last-child {
    border-bottom: none;
}

.config-summary-side__row-label {
    color: #666;
    flex: 1;
    min-width: 0;
}

.config-summary-side__row-value {
    text-align: right;
    font-weight: 500;
    color: #2c2c2c;
    flex-shrink: 0;
}

.config-summary-side__row-value--accent {
    color: var(--accent-gold);
}

.config-summary-side__included {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #e5e2d9;
}

.config-summary-side__included-title {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #999;
    margin: 0 0 0.5rem;
}

.config-summary-side__included-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.5;
}

.config-summary-side__included-list li {
    padding: 0.15rem 0;
}

.config-summary-side__empty {
    font-size: 0.8125rem;
    color: #999;
    margin: 0;
}

.config-summary-side__cta {
    margin-top: 1.75rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: #2c2c2c;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.config-summary-side__cta:hover {
    background: #000;
}

.config-summary-side__cta:active {
    transform: scale(0.99);
}

.config-controls__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.9rem 1.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-controls__btn--secondary {
    background: #fff;
    border-color: #d4d4d4;
    color: #2c2c2c;
}

.config-controls__btn--secondary:hover:not(:disabled) {
    border-color: #2c2c2c;
}

.config-controls__btn--secondary:disabled {
    cursor: not-allowed;
}

.config-controls__btn--primary {
    background: #2c2c2c;
    color: #fff;
    flex: 1;
}

@media (min-width: 640px) {
    .config-controls__btn--primary {
        flex: 0 1 auto;
        min-width: 12rem;
    }
}

.config-controls__btn--primary:hover {
    background: #000;
}

#configurator .config-option {
    min-height: 48px;
}

#configurator #addon-options .config-option {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

#configurator #addon-options .config-option.selected {
    background: rgba(197, 160, 94, 0.06);
}

#configurator #variant-options .config-option.selected {
    background: rgba(197, 160, 94, 0.04);
}

/* Configurator option cards */
.config-option {
    transition: all 0.4s cubic-bezier(0.23, 1.0, 0.32, 1.0);
    border-color: #e5e2d9;
}

.config-option:hover {
    border-color: var(--accent-gold);
    transform: scale(1.015);
}

.config-option.selected {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 94, 0.15);
}

/* Progress indicators */
.step-indicator {
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #e5e2d9;
    top: 50%;
    left: 50%;
    z-index: -1;
}

/* Micro animations */
.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button styles */
.luxury-btn {
    position: relative;
    overflow: hidden;
}

.luxury-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 40%;
    height: 300%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-25deg);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(400%);
    }
}

/* Scroll indicator */
.scroll-hint {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20% { transform: translateY(0); }
    50% { transform: translateY(12px); }
    80%, 100% { transform: translateY(0); }
}

/* Mobile menu */
#mobile-menu {
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer link accent */
footer a[href*="humbak.com.pl"] {
    color: #c5a05e;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Utility for large typography */
.display-text {
    font-size: clamp(2.75rem, 8vw, 6rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* Ensure images look premium */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #c5a05e;
    outline-offset: 4px;
}

/* Subtle section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d4c9b0, transparent);
}

/* Konfigurator — krok 4: podgląd w podsumowaniu */
#step-4 .summary-preview {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e2d9;
    box-shadow: 0 18px 40px -24px rgba(44, 44, 44, 0.35);
    transition: box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

#step-4 .summary-preview:hover {
    box-shadow: 0 24px 48px -20px rgba(44, 44, 44, 0.35);
    transform: translateY(-2px);
}

#step-4 .summary-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(22rem, 52vh);
    object-fit: cover;
    object-position: center;
}

@media (max-width: 749px) {
    header {
        position: relative !important;
        top: auto !important;
    }

    #hero {
        height: auto !important;
        min-height: calc(100vh - 96px);
    }

    header a[href="#configurator"] {
        display: none !important;
    }

    .hero-scroll-indicator,
    .hero-trust-bar {
        display: none !important;
    }

    .config-summary-side__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .config-summary-side__row-value {
        text-align: left;
        width: 100%;
    }

}

/* About — wyrównanie tekstu z kwadratem zdjęcia */
@media (min-width: 768px) {
    .about-grid {
        align-items: stretch;
    }

    .about-grid__content {
        display: flex;
        align-items: center;
        align-self: stretch;
    }

    .about-grid__content-inner {
        width: 100%;
    }

    .about-grid__hero {
        align-self: start;
    }
}

/* Sauna section */
.sauna-media {
    box-shadow: 0 24px 60px -20px rgb(30 30 30 / 0.18);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s ease;
}

.sauna-media:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 70px -18px rgb(30 30 30 / 0.22);
}

.sauna-media img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Contact form */
.contact-form {
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 8px 40px -12px rgb(30 30 30 / 0.08);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 2.25rem 2rem;
    }
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .contact-form__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.5rem;
}

.contact-field__input {
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1rem;
    font-size: 0.9375rem;
    color: #2c2c2c;
    background: #f8f6f3;
    border: 1px solid #e5e2d9;
    border-radius: 0.875rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.contact-field__input::placeholder {
    color: #aaa;
}

.contact-field__input:hover {
    border-color: #ccc;
}

.contact-field__input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(197, 160, 94, 0.15);
}

.contact-field__textarea {
    min-height: 8rem;
    resize: vertical;
}

.contact-form__submit {
    margin-top: 1.5rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: #2c2c2c;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form__submit:hover {
    background: #000;
}

.contact-form__submit:active {
    transform: scale(0.99);
}

.contact-form__submit:focus-visible,
.config-inquiry-modal__close:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

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

.contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.25rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #555;
    cursor: pointer;
}

.contact-consent input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--accent-gold);
}

.contact-consent a {
    color: var(--accent-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-consent a:hover {
    color: #2c2c2c;
}

.contact-form-message {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
}

.contact-form-message.hidden {
    display: none;
}

.contact-form-message.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
}

.contact-form-message.is-error {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
}

.config-inquiry-form .contact-form-message {
    margin-top: 0.75rem;
}

.config-inquiry-form__summary {
    background: #f8f6f3;
    color: #444;
    font-size: 0.875rem;
    line-height: 1.6;
    resize: none;
}

/* Configurator inquiry modal */
body.config-inquiry-open {
    overflow: hidden;
}

.config-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.config-inquiry-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.config-inquiry-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.55);
    backdrop-filter: blur(6px);
}

.config-inquiry-modal__panel {
    position: relative;
    width: min(100%, 28rem);
    max-height: min(92vh, 40rem);
    overflow-y: auto;
    padding: 2rem 1.75rem 1.75rem;
    background: #fff;
    border: 1px solid #e5e2d9;
    border-radius: 1.5rem;
    box-shadow: 0 28px 80px -24px rgb(20 20 20 / 0.45);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.config-inquiry-modal[aria-hidden="false"] .config-inquiry-modal__panel {
    transform: translateY(0) scale(1);
}

.config-inquiry-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0.75rem;
    background: #f8f6f3;
    color: #666;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.config-inquiry-modal__close:hover {
    background: #ebe8e2;
    color: #2c2c2c;
}

.config-inquiry-modal__eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.config-inquiry-modal__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #2c2c2c;
    margin-bottom: 0.75rem;
    padding-right: 2.5rem;
}

.config-inquiry-modal__desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #666;
    margin-bottom: 1.5rem;
}

.config-inquiry-form__grid {
    display: grid;
    gap: 1rem;
}

.config-inquiry-form__req {
    color: var(--accent-gold);
}

.config-inquiry-form__error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #b45309;
}

.config-inquiry-form__error.hidden {
    display: none;
}

.config-inquiry-form__submit {
    margin-top: 1.25rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    background: #2c2c2c;
    border: none;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.config-inquiry-form__submit:hover {
    background: #000;
    box-shadow: 0 12px 32px -16px rgb(0 0 0 / 0.35);
}

.config-inquiry-form__submit:active {
    transform: scale(0.99);
}

.config-inquiry-form__submit:focus-visible,
.config-inquiry-modal__close:focus-visible,
.contact-details__link:focus-visible,
.contact-form__submit:focus-visible,
.config-controls__btn:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}