/* ============================================================
   BASE VARIABLES & RESET
   ============================================================ */
:root {
    --bg-dark: #121212;
    --bg-card: #1e1e1e;
    --text-light: #f5f5f5;
    --text-muted: #b0b0b0;
    --accent-primary: #d4af37;
    --accent-hover: #b5952f;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover { color: var(--accent-primary); }

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h2.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 4rem 0 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(0, 0, 0, 0.92);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
    backdrop-filter: blur(8px);
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 1rem;
    background: linear-gradient(rgba(18,18,18,0.8), rgba(18,18,18,0.9)),
                url('https://static.wixstatic.com/media/f3e2b9_32110f5a7012419ab409d56c7a1eeff9~mv2.jpg/v1/fill/w_1920,h_1080,q_90/bg.jpg') center/cover no-repeat;
    min-height: 70vh;
}

.hero h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Hero CTA button */
.hero-cta-btn {
    margin-top: 0.5rem;
    padding: 0.9rem 2.5rem;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 4px;
    background-color: var(--accent-primary);
    color: #000;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    background-color: var(--accent-primary);
    color: #000;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================================
   SERVICES GRID & CARDS
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}
.service-card h3 { color: var(--accent-primary); font-size: 1.3rem; }
.service-card ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    color: var(--text-muted);
}
.service-card ul li { margin-bottom: 0.5rem; }

/* Service detail cards (Tjänster page) */
.service-detail-card {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border-left: 4px solid transparent;
    transition: border-color 0.3s ease;
}
.service-detail-card:hover {
    border-left-color: var(--accent-primary);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    background: linear-gradient(135deg, rgba(212,175,55,0.07), rgba(255,255,255,0.04));
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212,175,55,0.5);
}
.testimonial-stars {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}
.testimonial-text {
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.2rem;
}
.testimonial-author {
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 0.9rem;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-row {
    text-align: center;
    margin-bottom: 2.5rem;
}
.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.5px;
}
.contact-value {
    font-size: 1.2rem;
    font-weight: bold;
}
.contact-value a {
    color: var(--accent-primary);
    transition: color 0.3s ease;
}
.contact-value a:hover { color: var(--accent-hover); }

.social-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1rem;
    gap: 6px;
    transition: color 0.3s ease, transform 0.2s ease;
}
.social-link:hover {
    color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ============================================================
   GALLERY
   ============================================================ */
.portfolio-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 0 5%;
}
.gallery img {
    width: 100%;
    max-width: 450px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background-color: #050505;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Section-level fade in (used on container divs) */
.fade-in-section {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-section.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Tab switch animation */
.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}
.tab-content.active-tab {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Hero slide animation */
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.hero-slide.active { opacity: 1; }

/* ============================================================
   NAVIGATION TABS
   ============================================================ */
.nav-tab {
    cursor: pointer;
    padding-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.25s ease;
}
.nav-tab.active {
    color: var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
}
.nav-tab:hover { color: var(--accent-primary); }

/* ============================================================
   HAMBURGER MENU
   ============================================================ */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    z-index: 1001;
    padding: 8px;
    -webkit-tap-highlight-color: transparent;
}
.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}
.hamburger .menu-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-top: -2px;
    transition: opacity 0.3s ease;
}

/* ============================================================
   SHOP / SWISH / CART STYLES
   ============================================================ */
.buy-btn {
    margin-top: 1.5rem;
    width: 100%;
    text-align: center;
}
.swish-btn {
    background-color: #fff;
    color: #000;
    width: 100%;
    margin-top: 1rem;
    border: 2px solid #333;
}
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--accent-primary);
}
.close-btn {
    position: absolute;
    top: 10px; right: 20px;
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-btn:hover { color: var(--text-light); }
.swish-instructions {
    background-color: #fff;
    color: #000;
    padding: 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    border-left: 5px solid #00A5DC;
}
.form-group { display: flex; flex-direction: column; }

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0; right: -400px;
    width: 100%; max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-card);
    border-left: 1px solid var(--accent-primary);
    box-shadow: -5px 0 15px rgba(0,0,0,0.8);
    z-index: 3000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}
.cart-header h2 { margin: 0; color: var(--accent-primary); }
.close-cart-btn {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}
.close-cart-btn:hover { color: var(--text-light); }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}
.cart-item-info h4 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.cart-item-info p  { margin: 0; color: var(--accent-primary); font-weight: bold; }
.remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}
.cart-footer {
    padding: 1.5rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #333;
    background-color: #1a1a1a;
}
.cart-footer h3 {
    margin: 0;
    display: flex;
    justify-content: space-between;
}
.cart-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.6);
    z-index: 2500;
    display: none;
    backdrop-filter: blur(4px);
}
.cart-overlay.show { display: block; }

/* Fly to cart animation */
.flying-img {
    position: fixed;
    z-index: 9999;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.25,1,0.5,1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}
@keyframes cartBounce {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.cart-bounce { animation: cartBounce 0.3s ease-in-out; }

/* ============================================================
   RESPONSIVE – MOBILE
   ============================================================ */
@media (max-width: 860px) {
    .hamburger { display: none; }

    nav .nav-links {
        position: static;
        height: auto;
        width: auto;
        background: none;
        backdrop-filter: none;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: 0.1rem;
        border: none;
        box-shadow: none;
    }

    nav .nav-links li {
        width: auto;
        text-align: center;
    }
    nav .nav-links li a {
        font-size: 0.6rem;
        display: block;
        padding: 4px 5px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero p  { font-size: 1.1rem; }

    h2.section-title { font-size: 1.8rem; }

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

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; padding: 0 4%; }
}

/* Custom content helpers */
.custom-content ul { margin-left: 1.5rem; margin-bottom: 1rem; }
