/* ==================== CSS VARIABLES ==================== */
:root {
  /* Primary Colors - Terracotta */
  --color-primary: #b5602f;
  --color-primary-dark: #8f4a24;
  --color-primary-light: rgba(181, 96, 47, 0.15);

  /* Secondary Colors - Warm Charcoal */
  --color-secondary: #2a2521;
  --color-secondary-light: #3d3630;
  --color-secondary-dark: #1a1613;

  /* Accent - Sage */
  --color-accent: #6b7a5e;
  --color-accent-dark: #55614a;
  --color-accent-light: rgba(107, 122, 94, 0.12);

  /* Neutral Colors - Warm Sand */
  --color-white: #ffffff;
  --color-off-white: #faf6ef;
  --color-light-gray: #f1e9dd;
  --color-gray: #8a7f72;
  --color-border: #e6dccc;

  /* Text Colors */
  --color-text-primary: #2a2521;
  --color-text-secondary: #4a423a;
  --color-text-light: #7a6f62;

  /* Fonts */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Montserrat', sans-serif;

  /* Background Gradients */
  --gradient-hero: linear-gradient(135deg, #6b4226 0%, #b5602f 100%);
  --gradient-services: linear-gradient(135deg, #fbf3e7 0%, #f1e3cb 100%);
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);

  /* Shadows */
  --shadow-sm: 0 4px 15px rgba(42, 37, 33, 0.12);
  --shadow-md: 0 10px 30px rgba(42, 37, 33, 0.1);
  --shadow-lg: 0 20px 50px rgba(42, 37, 33, 0.14);
  --shadow-primary: 0 8px 20px rgba(181, 96, 47, 0.25);
  --shadow-primary-hover: 0 15px 30px rgba(181, 96, 47, 0.35);
  --shadow-accent: 0 8px 20px rgba(107, 122, 94, 0.25);
}

/* ==================== BASE STYLES ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-secondary-light);
  line-height: 1.6;
  background: var(--color-off-white);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(42, 37, 33, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 0;
  transition: padding 0.3s ease;
  flex-direction: column;
  gap: 16px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  height: auto;
}

.logo img {
  height: 70px;
  transition: height 0.3s ease;
}

.logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.3px;
  transition: font-size 0.3s ease, color 0.3s ease;
}

.logo:hover span {
  color: var(--color-primary);
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  position: static;
}

.nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav ul li a {
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 8px 0;
}

.nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav ul li a:hover::after {
  width: 100%;
}

.nav ul li a:hover {
  color: var(--color-primary);
}

/* CTA Button */
.nav-cta {
  padding: 10px 24px !important;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 8px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(181, 96, 47, 0.2);
}

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

.nav-cta:hover {
  background: var(--color-accent);
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--color-white);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
  background: var(--color-primary);
}

/* Active menu state */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Shrink Header on Scroll */
.header.shrink .header-container {
  padding: 10px 0;
}

.header.shrink .logo img {
  height: 38px;
}

.header.shrink .logo span {
  font-size: 1rem;
}


/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 480px;
  max-height: 530px;
  overflow: hidden;
}

.slider {
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px;
  z-index: 2;
}

.hero-text {
  max-width: 600px;
  color: var(--color-white);
  animation: slideInLeft 1s ease-out;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--color-off-white);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  animation: slideInUp 1s ease-out 0.3s both;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.hero-btn svg {
  width: 20px;
  height: 20px;
}

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

.hero-btn.primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-hover);
}

.hero-btn.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-secondary);
  backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
  background: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ==================== OM OSS ==================== */
.om-oss {
  padding: 100px 0;
  background: var(--color-white);
}

.om-oss-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.om-oss-text {
  flex: 1;
}

.om-oss-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 25px;
}

.om-oss-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 18px;
}

.om-oss-badges {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-accent-light);
  color: var(--color-accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 30px;
  letter-spacing: 0.3px;
}

.om-oss-image {
  flex: 1;
}

.om-oss-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ==================== TJÄNSTER ==================== */
.tjanster {
  padding: 100px 0;
  background: var(--gradient-services);
  text-align: center;
}

.tjanster h2 {
  margin-bottom: 15px;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.tjanster-intro {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tjanster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 0 auto;
}

.tjanst {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tjanst::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--color-primary-light) 0%, transparent 70%);
  transition: transform 0.6s ease;
}

.tjanst:hover::before {
  transform: translate(-25%, -25%);
}

.tjanst h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.tjanst p {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.7;
}

.tjanst:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

/* ==================== KOMPETENSER ==================== */
.kompetenser {
  padding: 100px 0;
  background: var(--color-white);
}

.kompetenser-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.kompetenser-list {
  flex: 1.2;
}

.kompetenser-list h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 30px;
}

.kompetenser-list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kompetenser-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.kompetenser-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent-light);
  border: 2px solid var(--color-accent);
}

.kompetenser-list li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-accent-dark);
  border-bottom: 2px solid var(--color-accent-dark);
  transform: rotate(-45deg);
}

.kompetenser-cert {
  flex: 1;
  background: var(--color-light-gray);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.kompetenser-cert img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.kompetenser-cert p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==================== GALLERI PREVIEW ==================== */
.galleri-preview {
  padding: 100px 0;
  background: var(--color-off-white);
  text-align: center;
}

.galleri-preview h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 15px;
}

.galleri-intro {
  font-size: 1.1rem;
  color: var(--color-gray);
  margin-bottom: 50px;
}

.galleri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 45px;
}

.galleri-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
}

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

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

.btn-offert {
  display: inline-block;
  padding: 16px 40px;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-accent);
}

.btn-offert:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

.galleri-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-instagram:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-hover);
}

/* ==================== KONTAKT ==================== */
.kontakt {
  padding: 100px 0;
  background: var(--color-secondary);
  text-align: center;
}

.kontakt h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 15px;
}

.kontakt-intro {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 55px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.kontakt-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.kontakt-card:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-primary-hover);
}

.kontakt-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-accent);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
}

.kontakt-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
}

.kontakt-card span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--color-secondary-dark);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 380px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ==================== RESPONSIVE STYLES ==================== */

/* Tablet (1025px and above) - Logo left, Nav right */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    backdrop-filter: none;
    padding: 0;
    transition: none;
    box-shadow: none;
    z-index: auto;
    display: flex;
    flex-direction: row;
  }

  .nav ul {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    width: auto;
  }

  .nav ul li {
    width: auto;
    border-bottom: none;
  }

  .nav ul li a {
    display: inline;
    width: auto;
    padding: 8px 0;
    font-size: 0.95rem;
  }

  .nav ul li a::after {
    display: block;
  }

  .nav-cta {
    margin-top: 0;
    text-align: left;
    padding: 10px 24px !important;
  }

  .header-container {
    padding: 18px 0;
  }

  .logo img {
    height: 50px;
  }

  .logo span {
    font-size: 1.15rem;
  }

  .header.shrink .logo img {
    height: 38px;
  }

  .header.shrink .logo span {
    font-size: 1rem;
  }
}

/* Tablet and below (768px and below) */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(42, 37, 33, 0.98);
    backdrop-filter: blur(12px);
    padding: 80px 30px 30px;
    transition: right 0.4s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    display: flex;
    flex-direction: column;
  }

  .header.shrink .nav {
    padding: 70px 30px 30px;
  }

  .nav.active {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav ul li a {
    display: block;
    width: 100%;
    padding: 18px 0;
    font-size: 1rem;
  }

  .nav ul li a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 20px;
    text-align: center;
    border-radius: 10px !important;
    padding: 14px 24px !important;
  }

  .header-container {
    padding: 16px 0;
  }

  .logo img {
    height: 42px;
  }

  .logo span {
    font-size: 0.95rem;
  }

  .header.shrink .logo img {
    height: 30px;
  }

  .header.shrink .logo span {
    font-size: 0.85rem;
  }

  /* Prevent scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

  /* Om oss / Kompetenser */
  .om-oss-content,
  .kompetenser-content {
    flex-direction: column;
    gap: 40px;
  }

  .om-oss-image img {
    height: 320px;
  }

  .galleri-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .om-oss,
  .kompetenser,
  .galleri-preview,
  .kontakt {
    padding: 70px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}

/* Small mobile (480px and below) */
@media (max-width: 480px) {
  .hero-content {
    padding: 20px;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .om-oss-text h2,
  .tjanster h2,
  .kompetenser-list h2,
  .galleri-preview h2,
  .kontakt h2 {
    font-size: 1.9rem;
  }

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