/* ==========================================================================
   SpillLine | Pure Finish Solutions — V8 Light Theme & Italian Design
   PHP 8.2+ Stylesheet (assets/css/style.css)
   ========================================================================== */

:root {
    --bg-light: #FAF8F5;
    --bg-white: #FFFFFF;
    --bg-dark: #141518;
    --text-primary: #1E2024;
    --text-secondary: #524F49;
    --text-muted: #78736A;
    --gold: #B8894A;
    --gold-hover: #9D7339;
    --gold-soft: rgba(184, 137, 74, 0.12);
    --border-light: #E6E2DC;
    --border-gold: rgba(184, 137, 74, 0.35);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.light-v8-body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    padding-bottom: 52px; /* space for sticky bottom bar */
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.8rem;
}

.btn-full {
    width: 100%;
}

.btn-gold {
    background-color: var(--gold);
    color: #FFFFFF;
}

.btn-gold:hover {
    background-color: var(--gold-hover);
}

.btn-dark {
    background-color: var(--text-primary);
    color: #FFFFFF;
}

.btn-dark:hover {
    background-color: #2E3138;
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    border-color: var(--gold);
    background-color: rgba(255, 255, 255, 0.18);
}

/* 1. Header Bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    width: 48px;
    height: 40px;
    border-radius: 6px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.brand-sub {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-phone {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-phone:hover {
    color: var(--gold);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.45rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
}

.mobile-nav {
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 1.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.6rem 0;
    font-weight: 500;
    border-bottom: 1px solid var(--bg-light);
}

/* 2. Hero Section (Czysta Odsłonięta Wizytówka Zdjęciowa + Teksty i Katalogi Poniżej) */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-white);
    color: var(--text-primary);
    overflow: hidden;
}

.hero-media {
    position: relative;
    width: 100%;
    background-color: var(--bg-dark);
    line-height: 0;
    overflow: hidden;
}

.hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 78vh;
    object-fit: cover;
    object-position: center;
    opacity: 1;
}

.hero-below-content {
    background-color: var(--bg-white);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--border-light);
    padding: 3.5rem 0;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.kicker-line {
    width: 28px;
    height: 2px;
    background-color: var(--gold);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 1.15rem;
    color: var(--text-primary);
}

.hero-subheadline {
    font-size: 1.06rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 1.85rem;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Italian Catalog Box (obok tekstów pod zdjęciem głównym) */
.catalog-floating-box {
    background: var(--text-primary);
    border: 1px solid rgba(212, 175, 106, 0.45);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgba(30, 32, 36, 0.12);
}

.catalog-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.catalog-box-title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E2B87E;
}

.catalog-box-badge {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.55);
}

.catalog-box-items {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.catalog-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.9rem 1rem;
}

.catalog-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
}

.catalog-item-sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 0.2rem 0 0.65rem;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #E2B87E;
    background: rgba(184, 137, 74, 0.18);
    border: 1px solid rgba(212, 175, 106, 0.45);
    border-radius: 4px;
}

.catalog-btn:hover {
    background: var(--gold);
    color: #FFFFFF;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.section-white {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.section-header {
    max-width: 720px;
    margin-bottom: 3rem;
}

.section-kicker {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* 3. Services Grid (6 Tiles on Light Background) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 10px 26px rgba(30, 32, 36, 0.06);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    background: var(--gold-soft);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
}

.service-gold-bar {
    width: 32px;
    height: 2px;
    background: var(--gold);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.service-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
}

/* 4. Materials Cards + 18mm Joinery Showcase */
.materials-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.material-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
}

.material-card-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.material-card-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.material-bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.material-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.bullet-dot {
    color: var(--gold);
    font-weight: 700;
}

.material-card-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.secondary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: var(--text-secondary);
}

.chip-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.joinery-showcase {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
}

.joinery-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

.joinery-copy h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin: 0.35rem 0 0.75rem;
}

.joinery-copy p {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.joinery-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.joinery-badges span {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    padding: 0.45rem 0.85rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

/* 5. Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.portfolio-img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.portfolio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-cat-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.portfolio-body {
    padding: 1.35rem;
}

.portfolio-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.portfolio-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.portfolio-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    border-top: 1px solid var(--border-light);
    padding-top: 0.65rem;
}

/* 6. Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.contact-card-item {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.contact-card-item:hover {
    border-color: var(--gold);
}

.contact-card-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.contact-card-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-top: 0.15rem;
}

.contact-form-box {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 2.25rem;
}

.contact-form-box h3 {
    font-family: var(--font-display);
    font-size: 1.65rem;
    margin-bottom: 0.35rem;
}

.form-sub {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #D8D3CA;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-feedback {
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

/* Footer */
.site-footer {
    background: #F2EFE9;
    border-top: 1px solid var(--border-light);
    padding: 2.5rem 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-secret-trigger {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 7. Sticky Bottom Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: var(--text-primary);
    color: #FFFFFF;
    border-top: 1px solid rgba(184, 137, 74, 0.4);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

.sticky-bar-inner {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    font-size: 0.82rem;
}

.sticky-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #FFFFFF;
}

.sticky-bar-link:hover {
    color: #E2B87E;
}

.sticky-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
}

.sticky-divider {
    color: rgba(255, 255, 255, 0.25);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.lightbox-modal[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 21, 24, 0.85);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
}

.lightbox-content img {
    width: 100%;
    max-height: 65vh;
    object-fit: cover;
}

.lightbox-caption {
    padding: 1.25rem 1.5rem;
}

.lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .materials-cards-grid,
    .joinery-showcase,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-nav,
    .header-phone {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

@media (max-width: 640px) {
    .services-grid,
    .portfolio-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .sticky-label {
        display: none;
    }
}
