/*
Theme Name: Aksell - Skien Vekst
Description: WordPress-tema bygget på Elementor Pro for Skien Vekst
Version: 1.0
Author: Kai Aurbekkholen og Alf Otto Fagermo
Author URI: https://aksell.no
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Requires Plugins: elementor, advanced-custom-fields, admin-site-enhancements
*/
/* Generelle stiler */

html {
	overflow-x: hidden;
}

body {
	max-width: 100vw;
	overflow-x: hidden;
	margin: 0 auto;
	margin-top: 0px !important;

--primary: #2a343a;
--secondary: #40535D;
--cta: #c46a3a;
--accent: #f06d4f;
--bg-white: #f8f5f3;
--bg-beige: #e9d8cf;

	font-family: "Roboto", sans-serif;
font-size: 16px;
line-height: 1.65;
color: var(--primary);
	background: var(--hvit);
	
}

@media (max-width: 600px) {
	body {
	max-width: 100vw;
	overflow-x: hidden !important;
	overflow: overlay;
}
}

@media (min-width: 1025px) and (max-width: 1600px) {
header .header-wrapper {
	padding-left: 36px !important;
	padding-right: 16px !important;	
}	

footer .footer-content {
	padding-left: 36px !important;
	padding-right: 36px !important;
}
	
}


header aside {
  top: var(--wp-admin--admin-bar--height, 0px) !important;
}




h1 {
font-family: "Source Serif 4", serif;
font-size: 56px;
font-weight: 600;
line-height: 1.1;
letter-spacing: -0.3px;
}
h2 {
font-family: "Source Serif 4", serif;
font-size: 34px;
font-weight: 500;
}
h3 {
font-family: "Source Serif 4", serif;
font-size: 24px;
font-weight: 500;
}
.button {
font-family: "Roboto", sans-serif;
font-weight: 500;
letter-spacing: 0.3px;
}

.elementor-widget:not(:last-child) {
	margin-bottom: 0px !important;
}

a {
	color: var(--primary);
	font-family: 'Roboto', sans-serif !important;
      text-decoration: none !important;
}

a:hover {
	text-decoration: underline !important;
}

.content-width p a {
  color: var(--cta);
}


.content-width p a:hover {
  color: var(--accent);
}

.vedtekt-tekst p {
  text-indent: 32px hanging;
}

.vedtekt-tekst ol {
  margin-left: 64px;
  text-indent: 0px hanging;
}



  


/* Brødsmuler */

.aks-breadcrumbs {
	font-size: 1rem;
	margin-left: 3px;
}

.aks-breadcrumbs a:hover {
	color: var(--cta);
	text-decoration: underline;
}

.aks-breadcrumbs .aks-home-icon svg {
	position: relative;
	top: 4px;
}

.aks-breadcrumbs .aks-breadcrumb-separator svg {
	position: relative;
	top: 3px;
}


.aks-breadcrumbs svg path {
stroke: var(--primary);
}

.aks-breadcrumbs a:hover svg path {
stroke: var(--cta);	
}

@media (max-width: 960px) {
  .aks-breadcrumbs {
	font-size: 12px;
	line-height: 1.5;
	margin-bottom: 24px;
}
  
}

.aks-breadcrumbs .current {
  color: var(--cta);
}


.innhold p {
	max-width: 750px;
	@media (max-width: 960px) {
	max-width: 75ch;
}
}

@media (max-width: 960px) {
  
.innhold p, .innhold ul li {
font-size: 1rem;
  
}
}




.innhold {
	margin-block-end: 20px;
}

.forside-boks #boks-1 svg, .forside-boks #boks-3 svg {
  stroke: var(--accent);
}

.forside-boks #boks-2 svg {
  stroke: var(--blaa);
}

.forside-boks:hover .elementor-button {
  text-decoration: underline;
}

.acf-info-list {
    display: flex;
    flex-direction: column;
}

.acf-info-row {
    display: grid;
    grid-template-columns: 28px 180px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px 0;
}

.acf-info-row:not(:last-child) .acf-info-label,
.acf-info-row:not(:last-child) .acf-info-value {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.acf-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
}

.acf-info-icon img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

@media (max-width: 767px) {
    .acf-info-icon img {
        width: 20px;
        height: 20px;
    }
}
.acf-info-label {
    font-weight: 600;
    color: var(--primary);
}

.acf-info-value {
    color: var(--primary);
    margin-left: -16px;
}

@media (max-width: 767px) {

    .acf-info-row {
        grid-template-columns: 22px 110px 1fr;
        gap: 12px;
        padding: 14px 0;
    }

    .acf-info-icon svg {
        width: 18px;
        height: 18px;
    }

    .acf-info-label,
    .acf-info-value {
        font-size: 14px;
    }

    .acf-info-row:not(:last-child) .acf-info-label,
    .acf-info-row:not(:last-child) .acf-info-value {
        padding-bottom: 10px;
    }
}


/* Wrapper (legges på Elementor-container) */
.eiendom-cta {
    background:#C75B2D;
    border-radius:20px;
    overflow:hidden;
    color:var(--bg-white);
    align-items:stretch;
}


.eiendom-cta-info p{
    margin:0 0 30px;
    font-size:18px;
    line-height:1.6;
    color:var(--bg-white);
}

.eiendom-cta-kontakt{
    display:grid;
    gap:14px;
    margin-bottom:30px;
}

.eiendom-cta-rad{
    display:flex;
    align-items:center;
    gap:12px;
}

.eiendom-cta-rad a{
    color:var(--bg-white);
    text-decoration:none;
}

.eiendom-cta-rad svg{
    flex-shrink:0;

}

.eiendom-cta-rad svg path {
      fill:var(--bg-white);
    }
    

.eiendom-cta-bilde{
    height:100%;

}

.eiendom-cta-personbilde{
    width:100%;
    height:100%;
    max-height: 400px;
    display:block;
    object-fit:cover;
    border-radius: 8px !important;
}

@media(max-width:767px){

    .eiendom-cta{
        grid-template-columns:1fr;
    }

    .eiendom-cta-bilde{
        order:-1;
        height:320px;
    }

    .eiendom-cta-info{
        padding:30px;
    }

}

.om-oss-styret h3:first-of-type {
  margin-top: 0px;
}

.grid-eiendom:hover a {
  text-decoration: underline !important;
}

.grid-eiendom-navn {
  height: 60px;
  overflow: hidden;
}

.grid-eiendom-ingress {
  height: 105px;
  overflow: hidden;
}



footer a {
color: var(--bg-white);
  
}

footer a:hover {
color: var(--cta);
text-decoration: underline;  
}

footer .elementor-icon-list-text a {
  display: inline !important;
}










.skip-to-content {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 99999;
  text-decoration: none;
  width: max-content;
  min-width: 128px;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  color: var(--bg-hvit);
  padding-block-start: 8px;
  padding-block-end: 8px;
  padding-inline-start: 24px;
  padding-inline-end: 24px;
  border-radius: 29px;
  background-color: var(--cta);
  transition: top 0.25s ease;
}

/* Kun synlig når brukeren tabber seg dit */
.skip-to-content:focus {
  top: 20px;
  outline: none;
}
