/* ============================================
   Domki z natury — Design System
   ============================================ */

:root {
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --sand-50: #faf9f6;
    --sand-100: #f5f3ee;
    --sand-200: #e8e4db;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1f2937;
    background: #fff;
    line-height: 1.6;
}

::selection { background: var(--green-200); color: var(--green-900); }

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

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

/* ============================================
   Typography
   ============================================ */

.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.heading-md {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
}

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

.text-balance { text-wrap: balance; }

/* ============================================
   Navigation
   ============================================ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav.transparent {
    background: transparent;
}

.site-nav.solid {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

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

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    transition: color 0.3s;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-700);
    transition: width 0.3s;
}

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

.nav-cta {
    padding: 0.625rem 1.5rem;
    background: var(--green-800);
    color: #fff !important;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(22, 101, 52, 0.3);
}

.nav-cta:hover {
    background: var(--green-900);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.4);
}

.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-mobile-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #f3f4f6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.nav-mobile-menu.open { display: block; }

.nav-mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.nav-mobile-menu a:last-child { border: none; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-mobile-btn { display: block; }
}

/* Colors for transparent/solid nav */
.site-nav.transparent .nav-logo { color: #fff; }
.site-nav.transparent .nav-links a { color: rgba(255,255,255,0.9); }
.site-nav.transparent .nav-links a:hover { color: #fff; }
.site-nav.transparent .nav-mobile-btn svg { stroke: #fff; }

.site-nav.solid .nav-logo { color: var(--green-900); }
.site-nav.solid .nav-links a { color: #4b5563; }
.site-nav.solid .nav-links a:hover { color: var(--green-800); }
.site-nav.solid .nav-mobile-btn svg { stroke: #374151; }

/* Always solid nav (for subpages) */
.site-nav.always-solid {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-nav.always-solid .nav-logo { color: var(--green-900); }
.site-nav.always-solid .nav-links a { color: #4b5563; }
.site-nav.always-solid .nav-links a:hover { color: var(--green-800); }
.site-nav.always-solid .nav-mobile-btn svg { stroke: #374151; }

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    line-height: 1;
}

.btn-primary {
    background: var(--green-800);
    color: #fff;
    box-shadow: 0 2px 12px rgba(22, 101, 52, 0.3);
}

.btn-primary:hover {
    background: var(--green-900);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 101, 52, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.8);
}

.btn-white {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* ============================================
   Layout
   ============================================ */

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

.section { padding: 6rem 0; }

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

.section-sand { background: var(--sand-50); }

/* ============================================
   Cards
   ============================================ */

.card {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 8px 16px rgba(0,0,0,0.04);
}

.card-img {
    overflow: hidden;
    aspect-ratio: 3/2;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover .card-img img {
    transform: scale(1.06);
}

.card-body { padding: 1.5rem; }

/* ============================================
   Hero (homepage only)
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 26, 16, 0.92) 0%, rgba(10, 26, 16, 0.75) 40%, rgba(10, 26, 16, 0.15) 70%, transparent 100%),
        linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 640px;
    padding: 8rem 1.5rem 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 1;
    margin-left: auto;
    margin-right: 0;
    padding-left: 3rem;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--green-200);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    width: fit-content;
}

.hero-location svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.hero-accent {
    width: 48px;
    height: 3px;
    background: var(--green-600);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: rgba(255,255,255,0.75);
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 480px;
    margin-top: 1.5rem;
}

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

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.hero-stat-value span {
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-content {
        max-width: 100%;
        padding: 8rem 1.5rem 4rem;
        margin: 0;
    }
    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(10, 26, 16, 0.85) 0%, rgba(10, 26, 16, 0.6) 50%, rgba(10, 26, 16, 0.4) 100%);
    }
}

@media (max-width: 640px) {
    .hero-stats {
        gap: 1.5rem;
    }
    .hero-stat-value {
        font-size: 1.5rem;
    }
}

/* Page header (subpages) */
.page-header {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--green-900) 0%, #1a3a2a 100%);
}

.page-header-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-content {
    position: relative;
    z-index: 10;
}

/* ============================================
   Gallery
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) { .gallery-grid { gap: 1rem; } }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    position: relative;
}

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

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

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 60%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ============================================
   Feature Grid
   ============================================ */

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
    background: #0f1f17;
    color: #9ca3af;
    padding: 4rem 0 2rem;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.site-footer a {
    transition: color 0.2s;
}

.site-footer a:hover { color: var(--green-200); }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
}

/* ============================================
   Animations
   ============================================ */

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

.animate-fade-up {
    animation: fadeUp 0.7s ease-out forwards;
}

/* Staggered */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Scroll bounce arrow */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.animate-float { animation: float 2.5s ease-in-out infinite; }

/* ============================================
   Utilities
   ============================================ */

.text-green { color: var(--green-700); }
.bg-green-soft { background: var(--green-50); }
.rounded-2xl { border-radius: 1rem; }
.shadow-soft { box-shadow: 0 4px 24px rgba(0,0,0,0.06); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
