/* ===================================
   Global Styles
   =================================== */
:root {
  --bg-dark: #0d0d0d;
  --bg-light: #1a1a1a;
  --accent: #B22222; /* Ändrad till starkare röd (Firebrick) */
  --accent-light: #FF3333; /* Ny starkare röd för hover */
  --accent-gold: #FFD700; /* Guld/gul för kontrast */
  --text-main: #f5f5f5;
  --text-muted: #cccccc;
  --font-main: "Inter", "Helvetica Neue", Arial, sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  font-size: 16px;
  padding-top: 70px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}

/* ===================================
   Links & Buttons
   =================================== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--accent-light);
}

button {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
.cta-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}
button:hover {
  background: var(--accent-light);
}

/* ===================================
   Layout Helpers
   =================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* =========================
   Navigation Menu
========================= */
.site-header {
  position: fixed;      /* always stays visible */
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-dark);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.navbar .logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links li a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--accent);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--accent);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-dark);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 1rem;
    border-radius: 0 0 12px 12px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }
}


/* Section Wrappers */
.section {
  padding: 4rem 0;
  background: var(--bg-dark);
}

.section-alt {
  padding: 4rem 0;
  background: var(--bg-light);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent);
  letter-spacing: 1px;
}


.text-center {
  text-align: center;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.95)),
              url('/assets/mixroom2.jpg') center/cover no-repeat;
  color: var(--text-main);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero .sub-heading { 
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

/* Starkare CTA-knapp i Hero */
.hero .cta-btn {
  background: var(--accent); 
  padding: 1.1rem 2.5rem; 
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease, transform 0.1s ease;
}
.hero .cta-btn:hover {
  background: var(--accent-light); 
  transform: translateY(-2px);
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.about-text {
  font-size: 1rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===================================
   Services Section (NY LAYOUT)
   =================================== */
/* Huvudlayout för att placera galleriet och tjänsterna sida vid sida */
.services-grid-layout {
    display: grid;
    grid-template-columns: 1fr 2fr; 
    gap: 3rem;
    align-items: start;
}

/* Wrapper för de individuella servicekorten (Ersätter gamla .services) */
.services-cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
  background: var(--bg-dark); 
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 25px rgba(178, 34, 34, 0.4); 
}

.service-card h3 {
  color: var(--accent-gold); 
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
}

/* Styling för det lilla galleriet (Proof Grid) till vänster */
.services-proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 kolumner i galleriet */
    gap: 1rem;
    position: sticky; /* Gör att galleriet följer med lite när man scrollar (UX) */
    top: 100px;
    padding: 1rem;
    background: var(--bg-dark); 
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.proof-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.proof-card img:hover {
    transform: scale(1.05);
}


/* RESPONSIVE FÖR SERVICES-SEKTIONEN */
@media (max-width: 900px) {
    .services-grid-layout {
        /* På mindre skärmar staplas galleriet ovanpå tjänsterna */
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-proof-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kort i rad på mobil/tablet */
        position: static; /* Tar bort sticky på mobil */
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
    .services-proof-grid img {
        border-radius: 8px;
    }
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0,0,0,0.7);
  color: var(--text-main);
  font-size: 1rem;
}

/* =========================
   Testimonials Carousel
========================= */
.testimonials-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonials-grid {
  display: flex;
  gap: 2rem;
  transition: transform 0.4s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--bg-dark);
  color: var(--text-main);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.testimonial-card p {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.testimonial-card h4 {
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

.testimonial-prev,
.testimonial-next {
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s ease;
  z-index: 10;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--accent-light);
}

/* Two cards on tablet */
@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Three cards on desktop */
@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}


.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-dark); 
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.contact-form input,
.contact-form textarea,
.contact-form select { 
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.2rem;
  border: none;
  border-radius: 8px;
  background: #222;
  color: var(--text-main);
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--accent);
}

.contact-form button {
  width: 100%;
  background: var(--accent);
  font-size: 1.1rem;
}


/* ===================================
   FAQ Section
   =================================== */
#faq {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

#faq h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent);
  letter-spacing: 1px;
}

.faq-item {
  margin-bottom: 0; 
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0; 
  transition: all 0.3s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Stil för rubriken (klickbara delen) */
.faq-item h3 {
    cursor: pointer; 
    padding: 1rem 0; 
    margin-bottom: 0;
    user-select: none; 
    display: flex; 
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem; 
}

/* Gömmer svaret som standard - JS styr max-height */
.faq-item p {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; 
    
    /* Padding när synlig, men nollställs av overflow när dold */
    padding: 0 1rem 1rem;
    margin: 0;
    
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* När .faq-item är aktiv (kläppen är öppen) */
.faq-item.active p {
    /* Max-height sätts av JS */
    padding: 0 1rem 1rem; 
    margin-bottom: 1rem; 
}


/* Pseudo-element för ikon (+ / -) */
.faq-item h3::after {
  content: "+";
  font-weight: bold;
  font-size: 1.5rem; 
  line-height: 1;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active h3::after {
  content: "-"; 
  color: var(--accent-gold);
}


footer {
  background: #0a0a0a;
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  margin: 0 0.5rem;
}
footer a:hover {
  color: var(--accent-light);
}


/* ===================================
   Responsive
   =================================== */
@media (max-width: 900px) {
    .services-grid-layout {
        /* På mindre skärmar staplas galleriet ovanpå tjänsterna */
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .services-proof-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 kort i rad på mobil/tablet */
        position: static; /* Tar bort sticky på mobil */
        padding: 0;
        box-shadow: none;
        background: transparent;
    }
    .services-proof-grid img {
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.1rem; }

  #faq {
    padding: 1.5rem;
  }
}