:root {
--font-primary: 'Jost', sans-serif;
  --font-secondary: "Inter", Arial, sans-serif;
  --font-title: 'Playfair Display', serif;
  --font-Elegant: 'Elegant', serif;

   /* Light Inks (Dark text & accents) */
  --ink: #2c2118;
  --ink-2: #3a2a22;
  --ink-soft: #5c4737;

  --button: #e1b597;


  /* Creams & Light Backgrounds */
  --cream: #f8f2e9;
  --cream-2: #f1e6d6;
  --linen: #fffaf3;
  --smoke: #f4e9db;           /* Soft panels */

  /* Golds & Warm Accents */
  --gold: #c47a3f;
  --gold-soft: #d9a56a;
  --ember: #b86a2f;           /* Strong warm hover */
  --copper: #906749;
  --copper-hover: #906749c7;

  /* Text & Details */
  --body-text: #5c4737;
  --dust: #d8c4ac;            /* Borders / subtle lines */
  --hair: rgba(61, 47, 33, 0.12);

  /* Interactive */
  --hoverA: #a8763f;
  --hovermA: #c9b8a0;
  --button-hover: rgba(196, 122, 63, 0.18);
  --drop-hover: rgba(248, 242, 233, 0.95);

  /* Shadow */
  --shadow: rgba(44, 33, 24, 0.08);

  --gradient-1: linear-gradient(166deg, #ffcbad21 0%, #b24b001c 50%, #bd9974 100%);
  --gradient-hover: linear-gradient(166deg, #ffcbad21 0%, #906648bf 50%, #bd9974 100%);
  
}

:root[data-theme="light"] {
  --font-primary: 'Jost', sans-serif;
  --font-secondary: "Inter", Arial, sans-serif;
  --font-title: 'Playfair Display', serif;
  --font-Elegant: 'Elegant', serif;

   /* Light Inks (Dark text & accents) */
  --ink: #2c2118;
  --ink-2: #3a2a22;
  --ink-soft: #5c4737;

  --button: #e1b597;


  /* Creams & Light Backgrounds */
  --cream: #f8f2e9;
  --cream-2: #f1e6d6;
  --linen: #fffaf3;
  --smoke: #f4e9db;           /* Soft panels */

  /* Golds & Warm Accents */
  --gold: #c47a3f;
  --gold-soft: #d9a56a;
  --ember: #b86a2f;           /* Strong warm hover */
  --copper: #906749;
  --copper-hover: #906749c7;

  /* Text & Details */
  --body-text: #5c4737;
  --dust: #d8c4ac;            /* Borders / subtle lines */
  --hair: rgba(61, 47, 33, 0.12);

  /* Interactive */
  --hoverA: #a8763f;
  --hovermA: #c9b8a0;
  --button-hover: rgba(196, 122, 63, 0.18);
  --drop-hover: rgba(248, 242, 233, 0.95);

  /* Shadow */
  --shadow: rgba(44, 33, 24, 0.08);

  --gradient-1: linear-gradient(166deg, #ffcbad21 0%, #b24b001c 50%, #bd9974 100%);
  --gradient-hover: linear-gradient(166deg, #ffcbad21 0%, #906648bf 50%, #bd9974 100%);
  
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 48px;
    background: var(--copper-hover);
    border-bottom: 1px solid #00000000;
    width: 100%;
        /* starting state */
    backdrop-filter: blur(10px);
    
    transition: filter .7s ease, border-bottom .7s ease, border-backdrop-filter .7s ease;
  
  }
  

  header.scrolled {
     /* darker when scrolled */
    backdrop-filter: blur(25px);    
    border-bottom: 1px solid var(--hair);       /* stronger blur */
    transition: filter .7s ease,border-bottom .7s ease, border-backdrop-filter .7s ease;
    color: var(--cream);
  
  }

  header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.7);
    z-index: -1;
    transform: scale(1.1);
    
    
    transition: filter .7s ease, border-bottom .7s ease, border-backdrop-filter .7s ease;
  
  }




  .logo{
    display:flex;
    align-items:center;
    gap:14px;
    flex-shrink:0;
    text-decoration: none;
    z-index: 500;
  }
  .logo svg{width:38px;height:38px;}
  .logo-text{
    line-height:1.15;
    text-align: center;
  
  }
  .logo-text .brand-of{
    font-size:10px;
    letter-spacing:.3em;
    color: var(--gold-soft);
    display:block;
  }
  .logo-text .brand-name{
    font-size:18px;
    letter-spacing:.12em;
    color: var(--gold-soft);
    
    display:block;
    font-family:'body', serif;
    
  }
  .logo-text .brand-sub{
    font-size:9px;
    letter-spacing:.35em;
    color: var(--gold-soft);
    display:block;
    margin-top:2px;
  }
  .plainlogo {
    width: 52px;
    height: 52px;
  }
  nav.primary-nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--cream-2);
  transform-origin: bottom center;
  transition: transform 0.25s ease-out;
}
nav.primary-nav a:hover::after {
  transform: scaleX(1);
}

  nav.primary-nav{
    display:flex;
    align-items:center;
    gap:40px;
    font-family: var(--font-primary);
  }
  nav.primary-nav ul {
    display: flex;
    gap: 36px;
    list-style: none;
    justify-content: center;
    align-items: center;
  }

  nav.primary-nav a{
    color: var(--dust);
    text-decoration:none;
    font-size:15px;
    letter-spacing:.16em;
    text-transform:uppercase;
    font-weight:400;
    position:relative;
    padding-bottom:10px;
    transition:color .2s ease;
  }
  nav.primary-nav a:hover{color:var(--cream);}
  nav.primary-nav li.active a{color:var(--gold-soft);}
  nav.primary-nav li.active a::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:1px;
    background:var(--drop-hover);
  }
  .has-dropdown{display:flex;align-items:center;gap:6px;margin-top: 3px;}
  .has-dropdown svg{width: 9px;
  height: 9px;
  margin-top: 1px;
  fill: var(--button);}

  .has-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;

    margin-top: 0 !important;
  }
  
  #option {
    font-size: 12px;
  }

  /* hidden state (IMPORTANT) */
#thedropdown {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: padding 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
  padding: 10px 20px 10px 20px;
  display: flex;
  flex-direction: row;
  gap: 0.5px;
  justify-content: space-between;
  background: rgba(201, 147, 104, 0.85);
  border: solid 1px var(--hoverA);
  color: var(--hovermA) !important;
  align-items: center;
  width: 13rem !important;
  height: 13rem;
  position: absolute;
  top: 8%;
}


  #logoimg {
    width: auto;
    height: 8rem;
  } 


  #dropdowncontainer {
    width: 11rem;
    height: auto;
    position: absolute;
    top: 90%;
    display: flex;
    flex-direction: column;
    min-height: 155px;
    justify-content: center;
    left: -10%;
  }


  #dropdowndiv {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }


  #thedropdown li:hover {
  
    padding-left: 7px;
    transition: padding 0.2s linear, opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 0 5px #fff, 0 0 0px #e2bd60, 0 0 0px #e2bd60, 0 0 1px #e2bd60;
  }c

  #thedropdown li {
    color: var(--cream-2) !important;
    transition: padding 0.2s linear, opacity 0.3s ease, transform 0.3s ease;
  }


    
  #behand a::after{

    margin-bottom: 6px;
  }



  #behand {
    display: flex;
    justify-content: center;
    align-content: center;
    gap: 10px;
    align-items: baseline;
    padding-bottom: 0px;
  }


  ul, ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
  }
 
  
  a:hover {
    color: var(--hovermA) !important;
  }

  nav.primary-nav li.active a:hover{
    color: var(--hoverA) !important;
    
  }



  /* hover state */
  .has-dropdown:hover #thedropdown,
  .has-dropdown.open #thedropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  .headline {
    margin-left: 2rem;
  }

  .header-actions{
    display:flex;
    align-items:center;
    gap:26px;
  }
  .socials{display:flex;gap:16px;}
  .socials a{
    width:34px;height:34px;
    border:1px solid var(--hair);
    border-radius:50%;
    display:flex;align-items:center;justify-content:center;
    color:var(--cream);
    transition:border-color .2s ease, background .2s ease;
  }
  .socials a:hover{border-color:var(--gold-soft); background:rgba(201,160,92,.12);}
  .socials svg{width:15px;height:15px;}

  .menu-toggle{
    display:none;
    flex-direction:column;
    gap:5px;
    background:none;
    border:none;
    cursor:pointer;
    padding:6px;
  }
  .menu-toggle span{
    width:24px;height:1px;background:var(--cream);
  }
  .rightarrow {
    height: 20px!important;

  }


/* FOOTER */
.divider-fleuron{
    max-width:80%;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:18px;
    padding:44px 48px;
  }
  .divider-fleuron .line{flex:1;height:1px;background:var(--gold);opacity:.6;}
  .divider-fleuron .fleuron{width:30px;height:30px;flex-shrink:0;}

.divider-fleuron-smaller{
    max-width:80%;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:7px;
    
  }
  .divider-fleuron-smaller .line{flex:1;height:1px;background:var(--gold);opacity:.6;}
  .divider-fleuron-smaller .fleuron{width:15px;height:15px;flex-shrink:0;}


footer {
    
    background: var(--button-hover);
    border-top: 3px solid var(--hair);
    padding: 72px 48px 0;
}
.footerico {
  display: flex;
}
.footerico2 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

.responsivedrop #dropdowndiv #option {
  padding: 0;
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1fr 1.3fr;
  gap:48px;
  max-width:1240px;
  margin:0 auto;
  padding-bottom:56px;
  font-family: var(--font-primary);
}
.footer-brand p{
  color:var(--body-text);
  font-size:14px;
  line-height:1.7;
  margin-top:18px;
  max-width:280px;
  
}
.footer-brand .logo{margin-bottom:4px;}
footer h4{
  font-family: var(--font-primary);
    color: var(--body-text);
    font-weight: bolder;
  font-size:15px;
  letter-spacing:.05em;
  
  margin-bottom:20px;
  
}
footer ul{list-style:none;width: 200px;display: flex;
flex-direction: column;}
footer ul li{margin-bottom:12px;}
footer ul a{
  color:#7d6a54;
  text-decoration:none;
  font-size:13.5px;
  transition:color .2s ease;
}
footer ul a:hover{color:var(--gold-soft);}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:1240px;
  margin:0 auto;
  padding:26px 0;
  flex-wrap:wrap;
  gap:14px;
  font-family: var(--font-primary);
}
.footer-bottom p{font-size:12.5px;color:var(--body-text);letter-spacing:.02em;}
.footer-bottom .socials a{width:30px;height:30px;}
.footer-bottom .socials svg{width:13px;height:13px;}

/* ---------- Buttons ---------- */
.btn {
display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  background: var(--button);
  border: 1px solid var(--copper);
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--copper);
}

.btn__text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.2em;
  will-change: opacity, transform;
}

.btn__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
  pointer-events: none;
}

.btn__label--default {
  opacity: 1;
  transform: translateY(0);
}

.btn__label--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1) 0.12s, transform 0.7s cubic-bezier(.22,.61,.36,1) 0.12s;
}


.btn:hover, .btn:focus-visible {
  background: var(--button-hover);
  color: var(--cream);
  border-color: var(--cream);
  transform: translateY(-1px);
  transition: background-color 0.5s ease, color 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}

.btn:hover .btn__label--default,
.btn:focus-visible .btn__label--default {
  opacity: 0;
  transform: translateY(-10px);
}

.btn:hover .btn__label--hover,
.btn:focus-visible .btn__label--hover {
  opacity: 1;
  transform: translateY(0);
}

.bigbtn {
  margin-left: 3%;
  width: 90%;
  margin-bottom: 4rem;
  height: 5rem;
  font-size: x-large;
  letter-spacing: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .btn__text,
  .btn__label {
    transition: none;
  }
}
.btn--ghost{background:transparent;border:1px solid var(--gold-soft);color:var(--cream);}
.btn--ghost:hover{background:var(--gold-soft);color:var(--ink);}


.btn--sm{
  opacity:0;
  padding:13px 24px;
  font-size:11px;
  
  animation: fadeIn 0.8s ease forwards;
}

.responsivedrop {
  position: absolute;
  z-index: 9999999999999999999;
  width: 90%;
  background: rgba(196, 148, 110, 0.94);
  top: 4rem;
  height: 10rem;
  padding: 15px;
  border: 1px solid var(--hoverA);
  color: var(--smoke);
  display: grid;
  grid-template-columns: 1fr 1fr;
  display: none;
}
.responav {
  height: inherit;
  font-size: 13px;
}
.responsivedrop #dropdowndiv {
  height: inherit;
  justify-content: flex-start;
}



.btn--block{width:100%;}

@media (max-width:1100px){
	.footer-grid{grid-template-columns:1fr 1fr;gap:40px;margin: 0;}
	footer{display: flex;
		background: var(--button-hover)!important;
		border-top: 3px solid var(--hair)!important;
    
	}
  .divider-fleuron {
    max-width: 80%;
    margin: 0 auto 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0px;
  }
}

@media (max-width:890px){
	footer{padding:48px 20px 0;display: flex;
    flex-direction: column;}
  .footer-grid{grid-template-columns:1fr;gap:36px;}
}


/* ============================================================
   RESPONSIVE HEADER — collapse the full nav into a hamburger
   menu that opens a full-height dropdown panel, and turn the
   "Behandlinger" submenu into an inline accordion instead of a
   floating fixed-size box.
   ============================================================ */
@media (max-width:890px){
  li {
    display: flex;
    justify-content: space-between;
  }
  header{
    padding:12px 20px;
    flex-wrap:wrap;
    height: 4rem;
    display: flex;
    flex-direction: row !important;
  }
  .logo svg,
  .plainlogo{width:40px;height:40px;}
  .logo-text .brand-name{font-size:15px;}
  .logo-text .brand-of{font-size:8.5px;}
  .logo-text .brand-sub{font-size:8px;}

  .menu-toggle{
    display:flex;
    position:relative;
    z-index:110;
    top: 0rem;
  }

  nav.primary-nav{
    width:100%;
  }

  /* Full nav list becomes a slide-down/overlay panel, toggled by .open */
  nav.primary-nav ul{
    display:none;
  }
  nav.primary-nav.open ul{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    width:100%;
  }
  nav.primary-nav ul > li{
    width:100%;
    border-bottom:1px solid var(--hair);
  }
  nav.primary-nav ul > li > a{
    width:100%;
    padding:16px 4px;
  }
  nav.primary-nav a::after{display:none;}

  .header-actions{
    width:100%;
  }
  .header-actions .socials{display:none;}

  /* "Behandlinger" — inline accordion instead of a floating box */
  .has-dropdown{
    position:static;
    width:100%;
    justify-content:space-between;
    padding:16px 4px;
  }
  nav.primary-nav ul > li .has-dropdown a{
    width:auto;
    padding:0;
  }
  #dropdowncontainer{
    position:static;
    width:100%;
    left:0;
    top:0;
    min-height:0;
    display:none;
  }
  .has-dropdown.open #dropdowncontainer{
    display:flex;
  }
  #thedropdown{
    position:static;
    width:100% !important;
    height:auto;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:4px 0 12px 12px;
    background:transparent;
    border:none;
    opacity:1;
    transform:none;
    pointer-events:auto;
  }
  #dropdowndiv{
    display:flex;
    flex-direction:column;
    gap:2px;
  }
  #option{
    font-size:13px;
    padding:10px 0;
  }
}

