/* ============================================
   MON PETIT Atelier - Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #1A1A1A;
    --color-accent: #8B7355;
    --color-accent-light: #D4C4A8;
    --color-bg-cream: #F5F0E8;
    --color-bg-light: #FAFAF8;
    --color-text: #1A1A1A;
    --color-text-muted: #4A4A4A;
    --color-text-light: #6B6B6B;
    --color-border: #E5E0D8;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 48px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

.nav-link:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: white !important;
    border: 2px solid var(--color-accent);
    text-shadow: none !important;
    border-radius: 3px;
}

.nav-cta:hover {
    background: transparent;
    border-color: white;
    color: white !important;
}

.navbar.scrolled .nav-cta {
    background: var(--color-accent);
    color: white !important;
    border-color: var(--color-accent);
}

.navbar.scrolled .nav-cta:hover {
    background: transparent;
    color: var(--color-accent) !important;
    border-color: var(--color-accent);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: currentColor;
    left: 0;
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 1.5rem;
    max-width: 800px;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent-light);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    font-weight: 300;
    color: #E8E0D5;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-btn {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    border: 2px solid white;
    color: white;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero-btn:hover {
    background: white;
    color: var(--color-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.scroll-indicator:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.section-divider {
    width: 80px;
    height: 1px;
    background: var(--color-accent);
    margin: 0 auto 2rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-header-light .section-label {
    color: var(--color-accent-light);
}

.section-header-light .section-title {
    color: white;
}

.section-header-light .section-divider {
    background: var(--color-accent);
}

/* ============================================
   Studio Section
   ============================================ */
.section-studio {
    background: white;
}

.studio-intro {
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.studio-intro-main {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.studio-intro-text {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--color-bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-light);
}

/* ============================================
   Services Section
   ============================================ */
.section-uslugi {
    background: var(--color-bg-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
    font-size: 1.125rem;
}

.service-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.service-card-full {
    margin-top: 2rem;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.service-header h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.service-subtitle {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.service-list li::before {
    content: '•';
    color: var(--color-accent);
    flex-shrink: 0;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.service-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.service-list-item::before {
    content: '•';
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ============================================
   Pricing Section
   ============================================ */
.section-cennik {
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    font-size: 1.125rem;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 500;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.pricing-list {
    display: flex;
    flex-direction: column;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--color-border);
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item strong {
    color: var(--color-accent);
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   Standards Section
   ============================================ */
.section-standardy {
    background: var(--color-primary);
    color: white;
}

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

.standard-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: 1.5rem;
}

.standard-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.standard-list li {
    display: flex;
    gap: 1rem;
}

.standard-bullet {
    color: var(--color-accent);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.standard-list li strong {
    color: white;
    font-weight: 500;
    font-size: 1.125rem;
}

.standard-list li p {
    color: #B8B8B8;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-top: 0.25rem;
}

.standards-footer {
    border-top: 1px solid #333;
    padding-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.standard-box {
    border: 1px solid #333;
    padding: 1.5rem;
}

.standard-box h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-accent-light);
    margin-bottom: 0.75rem;
}

.standard-box p {
    color: #B8B8B8;
    font-size: 1.125rem;
    line-height: 1.7;
}

.standard-box .highlight {
    color: white;
}

/* ============================================
   Contact Section
   ============================================ */
.section-kontakt {
    background: var(--color-bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--color-bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

.contact-card small {
    font-size: 0.875rem;
}

.contact-phone {
    font-size: 1.375rem;
    color: var(--color-accent);
    font-weight: 500;
    transition: var(--transition);
}

.contact-phone:hover {
    color: #6B5A45;
}

.contact-cta {
    text-align: center;
    margin-top: 3rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 3rem;
    background: var(--color-accent);
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.btn-contact:hover {
    background: transparent;
    color: var(--color-accent);
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.15);
}

.btn-primary {
    display: inline-block;
    padding: 1.125rem 2.75rem;
    background: var(--color-primary);
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: none;
    transition: var(--transition);
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 0 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr auto 1fr;
        gap: 3rem;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: #888;
    letter-spacing: 0.05em;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
}

.footer-nav a {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--color-accent-light);
}

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

@media (min-width: 768px) {
    .footer-info {
        text-align: right;
    }
}

.footer-info p {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: #999;
    line-height: 1.8;
}

.footer-phone {
    color: var(--color-accent-light);
    font-weight: 500;
    transition: var(--transition);
}

.footer-phone:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: #666;
}

/* ============================================
   Gallery Section
   ============================================ */
.section-galeria {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
}

.gallery-item-tall {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: white;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
    }
    
    .gallery-item-tall {
        grid-row: span 1;
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        justify-content: flex-start;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: block;
        color: var(--color-primary);
        z-index: 1001;
    }

    .navbar:not(.scrolled) .nav-toggle {
        color: white;
    }

    .navbar.scrolled .nav-toggle {
        color: var(--color-primary);
    }

    .nav-toggle.active {
        color: var(--color-primary) !important;
    }

    .nav-link {
        color: var(--color-text);
        padding: 0.75rem 0;
        font-size: 1rem;
        text-shadow: none !important;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
        padding: 1rem;
    }

    .hero {
        min-height: 600px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .standards-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Smooth scroll behavior for older browsers */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
