:root {
  --txt: #6d5036; /* Solid varm brun för allt varumärkesinnehåll */
  --txt-alpha: rgba(109, 80, 54, 0.88);
  --bg-color: #fcfbfa; /* Krispig, mjuk skandinavisk vit */
  --font-main: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --spacing-xl: clamp(80px, 12vw, 140px);
  --spacing-l: clamp(40px, 8vw, 90px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--txt-alpha);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* === HEADER (Nu helt synlig och brun!) === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px clamp(20px, 5vw, 50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.brand {
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 2px;
  color: var(--txt);
}
.brand strong { font-weight: 600; }
.brand span { font-weight: 300; opacity: 0.8; }

.skip-link { position: absolute; top: -100px; }

/* === HAMBURGER === */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 101;
}

.hamburger span {
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--txt); /* Tvingar linjerna att vara bruna */
  transition: transform 0.3s ease, opacity 0.3s ease;
  left: 0;
}
.hamburger span:first-child { top: 4px; }
.hamburger span:last-child { bottom: 4px; }

.hamburger.active span:first-child { transform: translateY(5px) rotate(45deg); }
.hamburger.active span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* === FULLSCREEN NAV === */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background-color: rgba(252, 251, 250, 0.98);
  backdrop-filter: blur(15px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.fullscreen-nav.active { opacity: 1; pointer-events: auto; }

.nav-links { list-style: none; text-align: center; }
.nav-links li { margin: 2.5vh 0; transform: translateY(15px); opacity: 0; transition: all 0.4s ease; }
.fullscreen-nav.active .nav-links li { transform: translateY(0); opacity: 1; }
.fullscreen-nav.active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.fullscreen-nav.active .nav-links li:nth-child(2) { transition-delay: 0.15s; }
.fullscreen-nav.active .nav-links li:nth-child(3) { transition-delay: 0.2s; }
.fullscreen-nav.active .nav-links li:nth-child(4) { transition-delay: 0.25s; }

.nav-links a {
  text-decoration: none;
  color: var(--txt);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 0.4; }

.nav-footer { position: absolute; bottom: 40px; display: flex; gap: 30px; font-size: 0.85rem; letter-spacing: 1px; }

/* === MODERN HERO 2026 (Text & transparenta knappar på bilden) === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 720px;
  text-align: center;
  background: rgba(252, 251, 250, 0.75); /* Ultramodern scandi-transparens */
  backdrop-filter: blur(12px);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 50px);
  border: 1px solid rgba(109, 80, 54, 0.1);
  border-radius: 2px;
}

.hero-content h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; margin-bottom: 20px; color: var(--txt); font-weight: 300; }
.hero-content p { font-size: clamp(1rem, 1.8vw, 1.25rem); opacity: 0.9; margin-bottom: 35px; }

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Transparenta Knappar 2026 */
.btn-transparent-brown, .btn-transparent-white {
  padding: 16px 36px;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 2px;
}

.btn-transparent-brown {
  background-color: rgba(109, 80, 54, 0.22);
  color: var(--txt);
  border: 1px solid rgba(109, 80, 54, 0.5);
}
.btn-transparent-brown:hover { background-color: rgba(109, 80, 54, 0.4); transform: translateY(-2px); }

.btn-transparent-white {
  background-color: rgba(255, 255, 255, 0.45);
  color: var(--txt);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.btn-transparent-white:hover { background-color: rgba(255, 255, 255, 0.8); transform: translateY(-2px); }

.btn-text { display: inline-block; padding: 5px 0; text-decoration: none; border-bottom: 1px solid var(--txt); font-size: 0.95rem; margin-top: 10px; transition: opacity 0.3s; }
.btn-text:hover { opacity: 0.6; }

/* === CORE LAYOUT PARTS === */
.philosophy, .page-header, .gallery-section, .services-section, .contact-section {
  padding: var(--spacing-xl) clamp(20px, 5vw, 50px) var(--spacing-l);
  max-width: 1400px;
  margin: 0 auto;
}

.page-header { text-align: center; padding-bottom: 40px; }
.page-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 300; color: var(--txt); }
.page-header p { font-size: 1.1rem; opacity: 0.7; margin-top: 15px; }

.philosophy { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 992px) { .philosophy { grid-template-columns: 1fr 1.5fr; gap: 80px; } }
.philosophy h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 300; color: var(--txt); }

/* === MODERN TEKNISKT GALLERI (PROJEKT) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 50px;
}

.gallery-item {
  text-decoration: none;
  display: block;
}

.img-container {
  position: relative;
  aspect-ratio: 4 / 5; /* Strikt teknisk/magasins-look */
  overflow: hidden;
  background-color: #f3f1ef;
  margin-bottom: 15px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover .img-container img { transform: scale(1.04); }

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(109, 80, 54, 0.15);
  padding-bottom: 8px;
}

.project-info h2 { font-size: 1.1rem; font-weight: 400; color: var(--txt); }
.project-info span { font-size: 0.85rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 1px; }

/* === SERVICES LAYOUT === */
.services-list { max-width: 900px; margin: 0 auto; }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 50px 0;
  border-bottom: 1px solid rgba(109, 80, 54, 0.15);
}
.service-number { font-size: 1.5rem; font-weight: 300; opacity: 0.4; font-family: monospace; }
.service-details h2 { font-size: 1.6rem; font-weight: 400; color: var(--txt); margin-bottom: 15px; }
.service-details p { font-size: 1.1rem; opacity: 0.8; max-width: 700px; }

/* === CONTACT LAYOUT === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 60px; margin-top: 40px; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 100px; } }

.contact-info-col h2 { font-size: 1.8rem; font-weight: 300; margin-bottom: 30px; color: var(--txt); }
.contact-detail { margin-bottom: 25px; }
.contact-detail label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.5; margin-bottom: 5px; }
.contact-detail p, .contact-detail a { font-size: 1.2rem; text-decoration: none; }

/* Minimalistiskt formulär 2026 (Bara linjer, inga fula boxar) */
.contact-form { display: flex; flex-direction: column; gap: 35px; }
.form-group { position: relative; }
.form-group input, .form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(109, 80, 54, 0.3);
  background: transparent;
  padding: 10px 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--txt);
  transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-bottom-color: var(--txt); }
.form-group textarea { height: 100px; resize: none; }

/* === FOOTER === */
.site-footer { padding: var(--spacing-l) clamp(20px, 5vw, 50px); border-top: 1px solid rgba(109, 80, 54, 0.08); background: transparent; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1400px; margin: 0 auto 50px; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 15px; opacity: 0.5; }
.footer-col a, .footer-col p { display: block; text-decoration: none; margin-bottom: 8px; font-size: 0.95rem; opacity: 0.8; }
.footer-bottom { border-top: 1px solid rgba(109, 80, 54, 0.08); padding-top: 20px; font-size: 0.8rem; opacity: 0.5; text-align: center; }

/* === WHATSAPP === */
.whatsapp-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background-color: var(--bg-color); color: var(--txt); border: 1px solid rgba(109, 80, 54, 0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 90; transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(109, 80, 54, 0.08); }
.whatsapp-btn svg { width: 22px; height: 22px; }
.whatsapp-btn:hover { background-color: var(--txt); color: #fff; transform: translateY(-3px); }

/* === ANIMATIONER === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === EXTRA STIL FÖR STARTSIDANS GALLERI OCH RUBRIKER === */
.section-header { text-align: center; margin-bottom: clamp(40px, 8vw, 60px); }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; color: var(--txt); }

@media (min-width: 768px) {
  .homepage-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}