/* ============================================
   Gruvan Second hand & Retro — Modern Refresh
   ============================================ */

:root {
    --primary: #3a5a40;
    --primary-light: #4a6e50;
    --primary-dark: #2b4030;
    --primary-darker: #1e2e22;
    --accent: #c4956a;
    --accent-light: #d4ab84;
    --accent-dark: #a87a52;
    --surface: #f8f6f3;
    --surface-dim: #edeae5;
    --text-on-dark: #f0ede8;
    --text-muted: rgba(240, 237, 232, 0.65);
    --text-on-light: #2b4030;
    --text-on-light-muted: #5a7060;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.1);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ---------- Reset & Base ---------- */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-on-dark);
    background-color: var(--primary-dark);
    line-height: 1.7;
    font-weight: 400;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
}

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

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

/* ---------- Scroll Animations ---------- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ---------- Navigation ---------- */

.navbar {
    padding: 1rem 0;
    transition: background-color .4s ease, padding .4s ease, backdrop-filter .4s ease;
    background-color: transparent;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: rgba(30, 46, 34, .92) !important;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    padding: .6rem 0;
    box-shadow: 0 1px 30px rgba(0,0,0,.2);
}

.navbar-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.6rem;
    color: var(--accent) !important;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.brand-icon {
    font-size: 1.2rem;
    opacity: .7;
}

.navbar-nav .nav-link {
    color: var(--text-on-dark) !important;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin: 0 .2rem;
    padding: .5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all var(--transition);
    transform: translateX(-50%);
    border-radius: 1px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler {
    border: none;
    padding: .4rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ---------- Hero Section ---------- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: var(--primary-darker);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url('/images/hero-bg.jpg') center/cover no-repeat;
    opacity: .55;
    filter: saturate(.5) brightness(.9);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(30, 46, 34, .45) 0%, transparent 25%, transparent 65%, rgba(30, 46, 34, .65) 100%),
        radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(30, 46, 34, .3) 100%);
    z-index: 1;
}

.hero > .container {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.hero-logo {
    max-width: 420px;
    margin: 0 auto 2.5rem;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 30px rgba(196, 149, 106, .15));
}

.hero .lead-text {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 1.2rem;
    color: var(--text-on-dark);
    opacity: .9;
    line-height: 1.8;
}

.hero .subtitle {
    font-size: 1rem;
    color: var(--text-on-dark);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.hero .eco-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(196, 149, 106, .1);
    border: 1px solid rgba(196, 149, 106, .2);
    padding: .5rem 1.2rem;
    border-radius: 50px;
    font-size: .9rem;
    color: #f0e8e1;
    margin-top: .5rem;
}

/* ---------- Info Cards ---------- */

.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.info-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.2rem;
    text-align: center;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(196, 149, 106, .2);
    transform: translateY(-4px);
}

.info-card .icon {
    font-size: 1.6rem;
    color: var(--accent);
    margin-bottom: .8rem;
    display: block;
}

.info-card h4 {
    font-size: 1.1rem;
    color: var(--accent-light);
    margin-bottom: .4rem;
}

.info-card p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

/* ---------- Section Shared ---------- */

.section-heading {
    font-size: 2.4rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: .6rem;
}

.section-subtext {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.section-divider {
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* ---------- Gallery Section ---------- */

.gallery-section {
    padding: 6rem 0;
    background: var(--primary-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    aspect-ratio: 4/3;
    background: rgba(0,0,0,.2);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 46, 34, .6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

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

/* ---------- Lightbox ---------- */

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(10, 16, 12, .96);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    animation: fadeIn .3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: rgba(255,255,255,.7);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10000;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: all var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,.15);
    color: white;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: .8rem;
    user-select: none;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    transition: all var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,.15);
    color: white;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Map Section ---------- */

.map-section {
    padding: 6rem 0;
    background: var(--primary);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Content Section (Om Oss) ---------- */

.content-section {
    padding: 6rem 0;
    background: var(--primary);
}

.content-section h2 {
    color: var(--accent);
    margin-bottom: 2rem;
    font-size: 2.2rem;
    text-align: center;
}

.content-section p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: center;
    opacity: .9;
}

/* ---------- Page Header ---------- */

.page-header {
    position: relative;
    overflow: hidden;
    background: var(--primary-darker);
    padding: 10rem 0 4rem;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-bg.jpg') center/cover no-repeat;
    opacity: .15;
    filter: saturate(.3) brightness(.6);
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30, 46, 34, .4) 0%, rgba(30, 46, 34, .8) 100%);
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    color: var(--accent);
    font-size: 3.2rem;
    letter-spacing: 2px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* ---------- Page Content ---------- */

.page-content {
    padding: 5rem 0;
    background: var(--primary);
}

.page-content h2 {
    color: var(--accent);
    font-size: 1.9rem;
    margin-bottom: 1.2rem;
    margin-top: 2.5rem;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    line-height: 1.8;
    opacity: .9;
}

.page-content ul {
    margin-left: 0;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.page-content li {
    font-size: 1.05rem;
    margin-bottom: .7rem;
    padding-left: 1.6rem;
    position: relative;
    opacity: .9;
}

.page-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55rem;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ---------- Info Box ---------- */

.info-box {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 700px;
    backdrop-filter: blur(8px);
}

.info-box h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.info-box p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    opacity: .9;
}

/* ---------- Contact Section ---------- */

.contact-section {
    padding: 5rem 0;
    background: var(--primary-dark);
}

.contact-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    height: 100%;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: rgba(196, 149, 106, .15);
    background: rgba(255, 255, 255, .06);
}

.contact-card h3 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.contact-card p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    opacity: .9;
}

.contact-card a {
    color: var(--accent-light);
    transition: color var(--transition);
}

.contact-card a:hover {
    color: var(--text-on-dark);
}

/* ---------- SEO Box ---------- */

.seo-box {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(8px);
}

.seo-box h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.seo-box h4 {
    color: var(--accent-light);
    font-size: 1.15rem;
    margin-top: 1.5rem;
    margin-bottom: .8rem;
}

/* ---------- Buttons ---------- */

.btn-primary {
    background: var(--accent) !important;
    border: 2px solid var(--accent) !important;
    color: var(--primary-darker) !important;
    font-weight: 600;
    font-size: .9rem;
    letter-spacing: .5px;
    padding: .75rem 2rem;
    border-radius: 50px;
    transition: all var(--transition);
    text-transform: uppercase;
}

.btn-primary:hover {
    background: transparent !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 149, 106, .2);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.15);
    color: var(--text-on-dark);
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .5px;
    padding: .75rem 2rem;
    border-radius: 50px;
    transition: all var(--transition);
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* ---------- Social Links ---------- */

.social-links {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--text-on-dark);
    font-size: 1.2rem;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-darker);
    transform: translateY(-3px);
}

/* ---------- Footer ---------- */

.footer {
    background: var(--primary-darker);
    padding: 5rem 0 2rem;
    color: var(--text-on-dark);
    border-top: 1px solid rgba(255,255,255,.05);
}

.footer h4 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.footer p {
    margin-bottom: .6rem;
    font-size: .95rem;
    opacity: .75;
}

.footer a {
    color: var(--text-on-dark);
    opacity: .75;
    transition: all var(--transition);
}

.footer a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .85rem;
    opacity: .5;
}

/* ---------- Utility ---------- */

.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.ms-2 { margin-left: .5rem !important; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(30, 46, 34, .98);
        backdrop-filter: blur(16px);
        border-radius: var(--radius-md);
        padding: 1rem;
        margin-top: .5rem;
    }

    .navbar-nav .nav-link {
        padding: .7rem 1rem !important;
    }

    .navbar-nav .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 6rem 1rem 3rem;
    }

    .hero .lead-text {
        font-size: .95rem;
        line-height: 1.7;
    }

    .hero .subtitle {
        font-size: .9rem;
    }

    .hero-logo {
        max-width: 240px;
        margin-bottom: 1.5rem;
    }

    .page-header {
        padding: 8rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: .75rem;
    }

    .gallery-item {
        border-radius: var(--radius-sm);
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }

    .info-box,
    .contact-card,
    .seo-box {
        padding: 1.8rem;
    }

    .gallery-section,
    .map-section,
    .content-section,
    .page-content,
    .contact-section {
        padding: 4rem 0;
    }

    .map-container {
        height: 320px;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
    }

    .hero .lead-text {
        font-size: 1rem;
    }
}
