/*
© 2026 Heart Mentality
Award-Winning Design System - Pro Edition
*/

:root {
  /* Palette - Professional High-End (Lighter Dark Mode) */
  --color-bg-base: #1c1e22; /* Gunmetal Black */
  --color-bg-surface: #25282e;
  --color-bg-card: #2c3036;

  /* Light Mode Palette (Professional Editorial) */
  --color-bg-light: #f9f8f6; /* Alabaster - Warm, professional white */
  --color-bg-cream: #f0efea; /* Deep Cream - Softer than white */
  --color-bg-white: #ffffff;

  /* Text on Light */
  --color-text-on-light: #1a1c20; /* Charcoal - Sharp contrast */
  --color-text-muted-on-light: #52555a; /* Slate Grey - Readable */

  /* Accents - Lighter Bronze / Champagne Gold */
  --color-accent-light: #f9f1d8;
  --color-accent-main: #dfc288;
  --color-accent-deep: #9e824c;

  /* Text (Dark Mode Defaults) */
  --color-text-main: #ffffff;
  --color-text-muted: #b0b5c0;
  --color-text-dark: #121418;

  /* Spacing */
  --spacing-section: clamp(5rem, 12vh, 10rem);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}



/* --- 3D TEXTURE ENGINE (Concrete/Grunge) --- */

.bg-depth-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* Base gradient acting as the wall color */
  background: radial-gradient(
    circle at 50% 0%,
    #3a3f47 0%,
    var(--color-bg-base) 80%
  );
}

.texture-layer-back {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grungeWall'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.015' numOctaves='5' result='noise'/%3E%3CfeDiffuseLighting in='noise' lighting-color='%23DFC288' surfaceScale='3'%3E%3CfeDistantLight azimuth='45' elevation='35'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grungeWall)'/%3E%3C/svg%3E");
  background-size: cover;
}

.texture-layer-front {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='fineGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23fineGrain)'/%3E%3C/svg%3E");
}

.dynamic-spotlight {
  position: absolute;
  width: 80vw;
  height: 80vw;
  background: radial-gradient(
    circle,
    rgba(223, 194, 136, 0.08) 0%,
    transparent 60%
  );
  filter: blur(100px);
  border-radius: 50%;
  animation: float-spotlight 20s ease-in-out infinite alternate;
  top: -20%;
  right: -20%;
  z-index: 0;
  mix-blend-mode: color-dodge;
}

.dynamic-spotlight.secondary {
  top: 40%;
  left: -30%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    circle,
    rgba(158, 130, 76, 0.05) 0%,
    transparent 60%
  );
  animation-delay: -10s;
}

/* --- LIGHT THEME SECTIONS & FADES --- */

.section-light {
  position: relative;
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
  z-index: 10; /* Covers the fixed dark background */
}

.section-cream {
  position: relative;
  background-color: var(--color-bg-cream);
  color: var(--color-text-on-light);
  z-index: 10;
}

/* 
   FADE OVERLAYS 
   These create a smooth transition from the dark texture to the light solid color.
   Place .fade-top-from-dark inside a light section that follows a dark one.
   Place .fade-bottom-to-dark inside a light section that precedes a dark one.
*/

.fade-top-from-dark {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px; /* Generous height for smooth blend */
  background: linear-gradient(
    to bottom,
    var(--color-bg-base) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.fade-bottom-to-dark {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--color-bg-base) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Overrides for Light Sections */
.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4,
.section-cream h1,
.section-cream h2,
.section-cream h3,
.section-cream h4 {
  color: var(--color-text-on-light);
}

.section-light p,
.section-cream p {
  color: var(--color-text-muted-on-light);
}

/* Glass Panel Adaptation for Light Backgrounds (Professional White Cards) */
.section-light .glass-panel,
.section-cream .glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.section-light .glass-panel:hover,
.section-cream .glass-panel:hover {
  background: #ffffff;
  border-color: var(--color-accent-main);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

/* --- SECTION 3D PARALLAX LAYERS --- */
.section-3d-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.parallax-layer {
  position: absolute;
  left: 0;
  width: 100%;
  background-repeat: repeat;
  background-position: center top;
}

.parallax-layer.back {
  top: -20%;
  height: 150%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 500' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='deepCracks'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.005' numOctaves='4' result='noise'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 1 0' in='noise' result='coloredNoise'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23deepCracks)' opacity='0.3'/%3E%3C/svg%3E");
  opacity: 0.1;
  background-size: cover;
}

/* Clean Pro Cards (Dark Default) */
.glass-panel {
  background: rgba(40, 44, 52, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glass-panel:hover {
  background: rgba(45, 49, 58, 0.7);
  border-color: var(--color-accent-main);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3), 0 0 20px rgba(223, 194, 136, 0.1);
  transform: translateY(-4px);
}

/* Typography & Gradients */
.text-champagne-gradient {
  background: linear-gradient(
    135deg,
    var(--color-accent-light) 5%,
    var(--color-accent-main) 30%,
    var(--color-accent-deep) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 20px rgba(223, 194, 136, 0.2));
}

.bg-champagne-gradient {
  background: linear-gradient(
    135deg,
    var(--color-accent-light) 0%,
    var(--color-accent-main) 100%
  );
  color: var(--color-text-dark);
}

.bg-surface-gradient {
  background: linear-gradient(
    180deg,
    var(--color-bg-surface) 0%,
    var(--color-bg-base) 100%
  );
}

@font-face {
  font-family: "Edo";
  src: url("/fonts/edo.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

h1 {
  font-family: "Edo", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

h2,
h3,
h4,
.display-font {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--color-text-main);
}

p,
.body-font {
  font-family: "Inter", sans-serif;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
}

/* Reveal System */
.reveal-text {
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-hidden {
  opacity: 1;
}

/* Nav */
.nav-blur {
  background: rgba(28, 30, 34, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.btn-magnetic {
  transition: all 0.3s ease;
}
.btn-magnetic:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(223, 194, 136, 0.4);
}

.section-padding {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
}
::selection {
  background: var(--color-accent-main);
  color: var(--color-text-dark);
}

.alive-container {
  position: relative;
}

/* Animations */
@keyframes float-spotlight {
  0% {
    transform: translate(0, 0);
    opacity: 0.6;
  }
  50% {
    transform: translate(-40px, 40px);
    opacity: 0.9;
  }
  100% {
    transform: translate(30px, -30px);
    opacity: 0.6;
  }
}

.service-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(176, 141, 87, 0.15);
  background: rgba(255, 255, 255, 0.02);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(176, 141, 87, 0.3);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 40px rgba(176, 141, 87, 0.15);
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  .dynamic-spotlight,
  .texture-layer-back,
  .texture-layer-front {
    display: none !important;
  }

  :root {
    --spacing-section: 3rem;
  }
}


  html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* TVINGER MOBILMENYEN TIL Å BLI HELT SOLID */
 #mobile-menu {
  background: #121418 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

  /* Sørger for at teksten inni menyen er synlig */
  .mobile-link {
    opacity: 1 !important;
    color: #ffffff !important;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    word-break: break-word;
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }

  .-mt-48 {
    margin-top: -2rem !important;
  }

  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .lg\:col-span-5 {
    width: 100%;
    max-width: 100%;
  }
}