
/*
CSS code © copyright by Mac Pompeius Wolontis, Sweden - @ Macpw.com
- MOBILE FIRST (desktop second)
- No media queries
- Responsive design (everything from Mobile to TV)
*/



/* ==============  HTML, BODY, IMAGE  ============== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}


body {
margin: 0;
background-color: #FFFFFF;
color: #000000;
font-family: Verdana, Helvetica, sans-serif;
font-size: 1rem;
line-height: 1.5;
letter-spacing: 0px;
font-weight: 400;
}


img, picture, video, svg {
max-width: 100%;
display: block;
}

.image {
margin: 0 auto;
}



/* ==============  BOX & TEXT  ============== */


.box {
width: 100%;
background-color: #FFFFFF;
padding: 0px 0px 0px 0px;
}
/* <div class= "box terracotta"> </div> */


.text 
{
max-width: 700px; 
margin: 0 auto;
padding: 30px 30px 30px 30px;
overflow-wrap: break-word;
}
/* <div class= "text blacktext right"> </div> */


/* ==============  BOX:  BACKGROUND COLOR   ============== */

.white			{background: #FFFFFF ;}	
.snow			{background:rgb(100% 100% 100% / 70%);}
.black			{background: #000000 ;}
.glass			{background:rgb(0% 0% 0% / 40%);}
.grey			{background: #666666 ;}
.purple			{background: #681942 ;}
.ling			{background: #678F1A ;}
.papyrus		{background: #FAF5E8 ;} 
.terracotta		{background: #C2450D ;} 
.blue			{background: #0070A3 ;}
.sky			{background: #4FC7ED ;}
.gold			{background: #EBC266 ;}
.lion			{background: #E09D04 ;}
.cream			{background: #F5EDE0 ;}
.yellow			{background: #FFCC05 ;}



/* ==============  TEXT:  TEXT COLOR  ============== */

.blacktext			{color: #000000 ;}
.whitetext			{color: #FFFFFF ;}
.greytext			{color: #666666 ;}
.lingtext			{color: #678F1A ;}
.redtext			{color: #CC0000 ;}
.bluetext			{color: #0070A3 ;}
.yellowtext			{color: #FFCC05 ;}
.indigotext			{color: #002494 ;}
.goldtext			{color: #EBC266 ;}
.liontext			{color: #E09D04 ;}
.terracottatext		{color: #C2450D ;}
.purpletext			{color: #681942 ;} 
.papyrustext		{color: #FAF5E8 ;}
.creamtext			{color: #F5EDE0 ;} 
.skytext			{color: #4FC7ED ;}



/* ==============  FONT SIZE  ============== */


h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 3.5rem;   /* 56px */   
  font-weight: 700; 
  letter-spacing: -0.8px; 
  line-height: 120%;
  padding: 10px 0px 20px 0px;
  overflow-wrap: break-word;
}


h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 3rem; 
  font-weight: 700; 
  letter-spacing: -0.2px; 
  line-height: 110%;		
  overflow-wrap: break-word;
}


h3 {
  font-size: 2rem;              /* 32px */
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 120%;
  font-family: Verdana, Helvetica, sans-serif;
}


h4 {
  font-size: 1.5rem;            /* 24px */
  font-weight: 700;
  letter-spacing: 0px;
  line-height: 130%;
  font-family: Verdana, Helvetica, sans-serif;
}


/* ==============  FONT & SPACE  ============== */

.center { text-align: center; }
.right  { text-align: right; }
.left   { text-align: left; }


/*  <div class="space2"></div>  */
.space1 { margin-bottom: 1rem; }
.space2 { margin-bottom: 2rem; }
.space3 { margin-bottom: 3rem; }

a 
{
color: #000000;
text-decoration:underline;
}

a:hover { 
font-weight: bolder;
text-decoration:underline;
}


/* ==============  STICKY HEAD   ============== */

/* The bar itself is always pinned to the top - search/logo/hamburger are visible from the start */
.sticky-head {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 0 30px;
  z-index: 300;
}

/* The contrasting black background slides down between 0 and 100px scroll
   and sits BEHIND the search/logo/hamburger thanks to z-index: -1 */
.sticky-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: -1;
  transform: translateY(-100%);
  animation: slide-in linear both;
  animation-timeline: scroll(root block);
  animation-range: 0 100px;
}

@keyframes slide-in {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}



/* ==============  SEARCH-BUTTON (left)   ============== */
.search-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #FFFFFF;
  display: flex;       
  align-items: center;
}



/*  ==============  LOGOTYPE (middle)   ==============  */


.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0px;
  color: #FFFFFF;
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  text-decoration: none; 
}

.logo:hover {   
  text-decoration: none;
}



/* ==============  HAMBURGER (right)   ============== */

.ham-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.ham {
  display: block;
  width: 35px;
  height: 5px;
  background-color: #FFFFFF;
  margin: 6px 0;
}


/* ==============  MENU   ============== */

.menu-background {
  position: fixed;
  inset: 0;
  background: rgba(0%, 0%, 0%, 50%);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: rgb(76% 27% 5% / 100%);
  z-index: 500;
  overflow-y: auto;
  padding: 50px 0 30px 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -2px 0 20px rgba(0%, 0%, 0%, 20%);
}

.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu li a {
  display: block;
  padding: 14px 24px;
  color: rgba(100%, 100%, 100%, 100%);
  border-bottom: 1px solid rgba(0%, 0%, 0%, 8%);
  font-size: 16px;
  text-decoration: none;
}

.menu li a:hover {
  background: rgba(80% 30% 8% / 90%);
  text-decoration: none;
}


.menu-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7); 
  line-height: 1;
}

.menu-close:hover {
  color: rgba(255, 255, 255, 1);   
}


body.menu-open .menu {
  transform: translateX(0);
}

body.menu-open .menu-background {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;   /* Lock background scrolling when menu is open */
}



/* ===========  SEARCH  =====================  SEARCH  ====================================== */

/* The magnifying glass in sticky-head is now an <a> link.
   These tweaks keep the icon clean and remove the default a:hover underline. */
.search-button:hover { text-decoration: none; }
.search-button:focus-visible {
  outline: 2px solid #EBC266;
  outline-offset: 2px;
}


/* ----- Drawer search form (inside the terracotta menu) ----- */

.menu-search {
  padding: 0 24px 18px 24px;
  margin: 0 0 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 15%);
}

.menu-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 8%);
  border: 1px solid rgba(255, 255, 255, 25%);
  transition: border-color 0.15s ease-out;
}

.menu-search-wrap:focus-within {
  border-color: #EBC266;
}

.menu-search-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 16px;
  padding: 10px 12px;
}

.menu-search-input::placeholder {
  color: rgba(255, 255, 255, 60%);
  font-style: italic;
}

.menu-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.menu-search-btn {
  background: none;
  border: none;
  color: #EBC266;
  cursor: pointer;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease-out;
}

.menu-search-btn:hover {
  color: #FFFFFF;
}


/* ----- Shared suggestion items (drawer + search page) ----- */

.search-suggestion {
  border-bottom: 1px solid rgba(0, 0, 0, 8%);
  transition: background-color 0.15s ease-out;
}

.search-suggestion:last-child {
  border-bottom: none;
}

.search-suggestion a {
  display: block;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.search-suggestion a:hover {
  text-decoration: none;
}

.search-suggestion:hover,
.search-suggestion.is-active {
  background-color: rgba(235, 194, 102, 18%);
}

.search-suggestion__title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.search-suggestion__snippet {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-suggestion__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #000000;
  background: #EBC266;
  padding: 1px 6px;
  margin-right: 5px;
  vertical-align: 2px;
}

.search-suggestion--empty {
  padding: 16px 12px;
  font-style: italic;
  opacity: 0.75;
  font-size: 0.95rem;
}

.search-suggest-line {
  padding: 10px 12px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(0, 0, 0, 8%);
  opacity: 0.85;
}

.search-suggest-line a {
  color: #C2450D;
  border-bottom: 1px solid currentColor;
}


/* ----- <mark> highlight on the search results page ----- */

mark {
  background-color: rgba(235, 194, 102, 45%);
  color: inherit;
  padding: 0 2px;
  box-shadow: inset 0 -2px 0 #EBC266;
  border-radius: 0;
}


/* ----- Subtle highlight on destination pages (?highlight=...) ----- */

.search-highlight {
  background-color: rgba(235, 194, 102, 30%);
  color: inherit;
  padding: 0 2px;
  box-shadow: inset 0 -2px 0 #EBC266;
  border-radius: 0;
}


/* ----- Search results page (searching.php) ----- */

.search-page-form {
  display: flex;
  gap: 12px;
  margin: 20px 0 30px 0;
  flex-wrap: wrap;
  align-items: flex-start;
}

.search-page-input-wrap {
  flex: 1;
  min-width: 240px;
}

.search-page-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #C2450D;
  color: #000000;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 16px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease-out;
}

.search-page-input:focus {
  border-color: #E09D04;
}

.search-page-input::placeholder {
  color: #999999;
  font-style: italic;
}

.search-submit {
  background: #C2450D;
  color: #FFFFFF;
  border: 1px solid #C2450D;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.search-submit:hover {
  background: #A03808;
  border-color: #A03808;
}


/* ----- Inline suggestions dropdown on the search page -----
   The dropdown lives in normal document flow under the input.
   That keeps it scrolling naturally with the page, never covering
   the input, and behaving identically on mobile and desktop. */

.search-page-suggestions {
  background: #FAF5E8;      /* papyrus */
  border: 1px solid #C2450D;
  border-top: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.15s ease-out;
  opacity: 0;
}

.search-page-suggestions.is-visible {
  max-height: 600px;
  overflow-y: auto;
  opacity: 1;
}

/* Thin terracotta scrollbar */
.search-page-suggestions {
  scrollbar-width: thin;
  scrollbar-color: #C2450D transparent;
}
.search-page-suggestions::-webkit-scrollbar { width: 6px; }
.search-page-suggestions::-webkit-scrollbar-track { background: transparent; }
.search-page-suggestions::-webkit-scrollbar-thumb {
  background: #C2450D;
  border-radius: 3px;
}


/* ----- Line and Search results list ----- */

.search-suggest {
  margin: 16px 0;
  font-size: 1rem;
  opacity: 0.85;
}

.search-suggest a {
  color: #C2450D;
  border-bottom: 1px solid currentColor;
}

.search-results {
  list-style: none;
  margin: 30px 0 0 0;
  padding: 0;
}

.search-result {
  border-bottom: 1px solid rgba(0, 0, 0, 12%);
  padding: 18px 0;
}

.search-result:first-child {
  border-top: 1px solid rgba(0, 0, 0, 12%);
}

.search-result__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.search-result__link:hover { text-decoration: none; }

.search-result__link:hover .search-result__title {
  color: #C2450D;
}

.search-result__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 700;
  margin-bottom: 4px;
  transition: color 0.15s ease-out;
}

.search-result__url {
  font-size: 0.8rem;
  opacity: 0.65;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  word-break: break-all;
}

.search-result__snippet {
  font-size: 0.95rem;
  line-height: 1.5;
}

.search-result__type {
  display: inline-block;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #000000;
  background: #EBC266;
  padding: 2px 7px;
  margin-right: 8px;
  vertical-align: middle;
  font-style: normal;
}



/* ==============  CONTACT FORM  ============== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #000000;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #4FC7ED;
  color: #000000;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 16px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s ease-out;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: #E09D04;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: #999999;
  font-style: italic;
}

.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
  font-family: Verdana, Helvetica, sans-serif;
}

.contact-form__submit {
  align-self: flex-start;
  background: #0070A3;
  color: #FFFFFF;
  border: 1px solid #0070A3;
  font-family: Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 30px;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

.contact-form__submit:hover {
  background: #4FC7ED;
  border-color: #4FC7ED;
}

/* Osynligt för de med förhöjd okulär funktion */
.contact-form__company {
  position: absolute;
  left: -9570px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Status-meddelanden efter inskickat formulär */
.form-status {
  padding: 12px 16px;
  margin: 0 0 20px 0;
  font-size: 16px;
  border-left: 4px solid #C2450D;
  background: rgba(235, 194, 102, 15%);
}

.form-status--success {
  border-left-color: #4a7d3a;
  background: rgba(74, 125, 58, 10%);
}

.form-status--error {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, 10%);
}

/* Obfuskerad e-postlänk */
.contact-email {
  color: #EBC266;
  font-size: 1.1rem;
  border-bottom: 0px solid currentColor;
}

.contact-email:hover {
  color: #FFFFFF;
}
