/* Zmienne CSS określające markę */
:root {
    --bg-color: #FAFAFA;
    /* Off-white / Bardzo Jasny Krem */
    --text-graphite: #2C3539;
    /* Głęboki Grafit */
    --primary-sage: #9AB28A;
    /* Szałwiowa Zieleń */
    --accent-sand: #E3D9C6;
    /* Ciepły Piasek */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition-slow: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: all 0.3s ease;
}

/* Reset bazowy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-graphite);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typografia */
h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    color: var(--text-graphite);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #4A5559;
}

.accent-text {
    color: var(--primary-sage);
    font-style: italic;
}

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

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

/* Kontenery i Układ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-color);
}

.bg-sand {
    background-color: var(--accent-sand);
    position: relative;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

/* Nawigacja */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition-slow);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 40px;
    /* logo-poziom dopasowane do nav */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-sage);
    transition: var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-graphite);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero-bg.png') center/cover no-repeat;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.8) 0%, rgba(227, 217, 198, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-sage);
    color: white;
    box-shadow: 0 4px 15px rgba(154, 178, 138, 0.4);
}

.btn-primary:hover {
    background-color: #88A07A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(154, 178, 138, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-graphite);
    border-color: var(--text-graphite);
}

.btn-secondary:hover {
    background-color: var(--text-graphite);
    color: white;
}

/* Glassmorphism Cards */
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-slow);
}

.glass-card.image-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1;
}

.card-image-wrapper {
    width: 100%;
    height: 66.66%;
    /* Zamiast aspect-ratio, sztywno 2/3 wysokości karty */
    overflow: hidden;
    flex-shrink: 0;
    /* Zapobiega zwijaniu się obrazka przez flexbox */
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.glass-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.2rem;
    /* Zmniejszony padding */
    height: 33.33%;
    /* Sztywno pozostala 1/3 wysokosci */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.card-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.4;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(154, 178, 138, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

/* Lista Chips dla Rodzajów Biżuterii */
.types-list {
    margin-top: 4rem;
}

.chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.chips li {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--accent-sand);
    transition: var(--transition-fast);
}

.chips li:hover {
    border-color: var(--primary-sage);
    color: var(--primary-sage);
}

/* Custom Orders Section */
.custom-orders {
    margin-top: 4rem;
    text-align: center;
    background: white;
    padding: 4rem;
    border-radius: 20px;
}

.sygnet-icon {
    width: 60px;
    margin-bottom: 1rem;
}

/* O Mnie Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.process-steps {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step strong {
    display: block;
    color: var(--primary-sage);
    margin-bottom: 0.3rem;
}

.rounded-img {
    border-radius: 20px;
    width: 100%;
}

.shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Pielęgnacja */
.care-rules {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 3rem;
}

.rule {
    background: rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.rule h4 {
    color: var(--primary-sage);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

/* Stopka */
.footer {
    background-color: var(--text-graphite);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer p {
    color: #A0AAB0;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    /* Zmieniamy logo na białe dla ciemnego tła stopki */
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-sage);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    font-family: var(--font-body);
}

.newsletter-form button {
    border-radius: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #A0AAB0;
    font-size: 0.9rem;
}

/* Animacje (Fade) */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* Responsywność */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition-slow);
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    .menu-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .about-container {
        grid-template-columns: 1fr;
    }
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    /* Start outside the screen */
    left: 0;
    width: 100%;
    background-color: var(--text-graphite);
    color: white;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transition: bottom 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    /* Override fade-in init state since we use bottom to animate */
    transform: none;
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    color: #e0e0e0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--primary-sage);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}