/* BASICS */
/* ============================== */

:root { 
    --purple-dark: #2A1B3D; 
    --purple-medium: #443152; 
    --greenbg:#d5f6e0;
    --green-light: #80E3A2; 
    --green-accent: #22C55E; 
    --bg-light: #F4F6F8; 
    --bg-card: #FFFFFF; 
    --text-dark: #1F2937; 
    --text-light: #4B5563; 
    --gray-light:#999999;
}

* { box-sizing: border-box; margin: 0; padding: 0; height: auto; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; }

body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
img {width:100%; height: auto;}
ul, ol { padding:20px 20px; }
section { margin:20px 0px;}
h1 {font-size: 3rem; line-height: 3.3rem;}
h2 {font-size: 2rem; line-height: 2.2rem;}
p {margin:10px auto 30px auto}
.center {text-align: center;}


/* SIDETOPP */
/* ============================== */

/* Header */
header { background-color: #ffffff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }

/* Logo */
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--purple-dark); font-weight: 800; font-size: 1.6rem; }
.logo img { height: 40px; width: auto; }

/* Navigasjon */
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
ul.nav-menu { display: flex; list-style: none; gap: 20px; }
ul.nav-menu li a { text-decoration: none; font-weight: bold; color:black;}
ul.nav-menu li a:hover { text-decoration: underline;  color:var(--green-accent);}
.btn-header { background-color: var(--purple-dark); color: #ffffff; padding: 0.6rem 1.4rem; border-radius: 6px; text-decoration: none; font-weight: 600; transition: background-color 0.2s; }
.btn-header:hover { background-color: var(--green-accent); color: var(--purple-dark); }
ul.nav-menu li a.cta-pc { color:var(--purple-dark); background: var(--green-light); padding:10px 25px; border-radius:6px; margin-top: -10px;}
ul.nav-menu li a.cta-pc:hover { color:var(--green-light); background: var(--purple-dark);} 
a.cta-phone { color:var(--purple-dark); background: var(--green-light); padding:6px 15px; border-radius:6px; }
a.cta-phone:hover { color:var(--green-light); background: var(--purple-dark);} 

/* skjul mobilknapp og mobil cta */
.menu-btn,
a.cta-phone {display: none;}


/* HJEMMESIDE */
/* ============================== */

/* Hero-seksjon */
section.hero { height: 90vh; background: linear-gradient(rgba(42, 27, 61, 0.65), rgba(42, 27, 61, 0.65)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 0 2rem; margin:0px 0px; }
.hero-content { max-width: 850px; }
.hero-subtitle { color: var(--green-light); font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: 3rem; line-height: 1.25; margin-bottom: 1.5rem; font-weight: 800; }
.hero p { font-size: 1.3rem; margin-bottom: 2.5rem; color: #e2e8f0; }
.btn-primary { display: inline-block; background-color: var(--green-light); color: var(--purple-dark); padding: 0.9rem 2.2rem; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1.1rem; transition: all 0.2s; }
.btn-primary:hover { color: var(--green-light); background-color: var(--purple-dark); transform: translateY(-2px); }

/* Hovedinnhold / Grid Layout */
.content-container { max-width: 1200px; margin: 0px auto; padding: 0 20px; display: flex; flex-direction: column; }
.content-container h1 { margin: 40px 0px 20px 0px; }

/* 2-kolonne seksjoner */
.grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background-color: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e5e7eb; }
.grid-row.reverse .text-box { order: 2; }
.grid-row.reverse .image-box { order: 1; }

.text-box { padding: 3rem; }
.text-box h2 { color: var(--purple-dark); font-size: 2rem; margin-bottom: 1.2rem; }
.text-box p { color: var(--text-light); margin-bottom: 1.2rem; }
.text-box ul { margin: 1rem 0 1.5rem 1.25rem; color: var(--text-light); }
.text-box li { margin-bottom: 0.5rem; }
.image-box { height: 100%; min-height: 380px; position: relative; }
.image-box img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

/* Kontaktseksjon */
.contact-section { max-width: 1200px; margin: 0px auto; padding: 20px 0px; color: white; text-align: left; position: relative; }
.contact-section .contact-grid {display: grid; grid-template-columns: 1fr 1fr; gap:40px; padding: 40px 40px;  background-color: var(--purple-dark); border-radius: 12px; }
.contact-section h2 { color: var(--green-light); font-size: 2.2rem; margin-bottom: 1rem; }
.contact-section p { font-size: 1.2rem; color: #e2e8f0; max-width: 600px; margin: 0 auto 2.5rem auto; }
.contact-details { display: block; font-size: 1.1rem; font-weight: 600; }
.contact-item { display: block;  background: rgba(255, 255, 255, 0.08); padding: 0.8rem 1.5rem; margin-bottom: 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.1); }
.contact-item a { text-decoration: none; color: white; }
.contact-item a:hover { text-decoration: underline; }

/* Kontaktskjema */
label {display:none;}
input,
textarea { display: block; border:none;  width: 100%; margin:10px 0px; padding: 18px 0px; text-indent: 15px; border-radius: 6px; }
textarea { min-height:146px;}
input[type=submit] {background: var(--green-light); color:var(--purple-dark); font-size: 20px; font-weight: bold; cursor: pointer; }


/* TJENESTER */
/* ============================== */

.services-accordion-section {margin: 20px; border-radius: 20px; overflow: hidden;}

/* Page header */
section.page-header {display:block; margin:20px 20px; }

/* Accordion item */
.accordion-item {background: white; margin-bottom: 2px;}

/* Accordion button */
.accordion-item .accordion-header {display: block; width: stretch; padding: 20px 20px; font-size: 20px; font-weight: bold; text-align: left;border:none; background: none;  cursor: pointer; position: relative;}
.accordion-item .accordion-header i {position: absolute; right:20px;}
.accordion-item .accordion-header:hover {background: var(--greenbg); }
.accordion-item.active .accordion-header {background: var(--greenbg);  }
/* Accordion */
.accordion-item .accordion-content {max-height: 0px; overflow: hidden; padding:0px 20px ; background: var(--greenbg); transition: .3s;}
.accordion-item.active .accordion-content {max-height: 750px!important; padding: 20px 20px 30px 20px; transition: .3s;}
.accordion-item  ul {list-style-type: none;}

/* ARTIKLER */
/* ============================== */

/* Startside / Grid Layout */
#artikler-liste.content-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; margin:0px auto; }
.artikkel-kort { background: white; border-radius: 8px; margin-bottom: 2rem; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.05);}
.post-image img {height: 240px; object-fit: cover;}
.featured-image img {width: 100%; height: 100%; object-fit: cover;}
.texts  { padding:20px 20px;}
.texts h3 a {color: var(--purple-dark); text-decoration: none;}
.texts .preview-date {color: var(--text-light); font-size: 0.9rem; margin: 0.5rem 0;}
.texts .preview-desc {color: var(--text-dark);}
.texts .btn-primary {margin-top: 1rem; display: inline-block; font-size: 0.9rem; padding: 0.5rem 1rem;}

/* Artikkelside */
.content-section { padding:20px 20px;}
.content-section a[href="/artikler/"] { display: block; text-decoration: none; color:var(--text-light); margin-bottom:20px; }
.content-section a[href="/artikler/"]:before { content:'‹'; font-size:24px; display: inline-block; margin-right: 10px; }
.content-section a[href="/artikler/"]:hover { text-decoration: underline; color:var(--text-dark);}
.content-section img.featured-image { height: 60vh; object-fit: cover;}
h1#artikkel-tittel { padding:20px 0px;}
#artikkel-innhold { max-width: 700px; margin:20px auto; }
#artikkel-innhold h2 { margin:20px 0px; }
.publisert-dato {color:var(--gray-light); max-width: 700px;}


/* OM OSS */
/* ============================== */

/* Hero-seksjon */
.about-hero { height: 90vh; background: linear-gradient(rgba(42, 27, 61, 0.65), rgba(42, 27, 61, 0.65)), url('/om-oss.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: white; padding: 0 2rem; }
.about-hero-content { max-width: 850px; }
.about-hero-subtitle { color: var(--green-light); font-size: 1.1rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; }
.about-hero h1 { font-size: 3rem; line-height: 1.25; margin-bottom: 1.5rem; font-weight: 800; }
.about-hero p { font-size: 1.3rem; margin-bottom: 2.5rem; color: #e2e8f0; }

.about-content .container {padding: 40px 40px; }
.about-content .container.nopadding { padding: 40px 0px }
.bento-grid {display: grid; grid-template-columns: 1fr 1fr 1fr; gap:20px; margin:30px 0px; }
.bento-item {background: white; padding: 20px 20px; border-radius: 10px; }
.bento-item i { font-size: 22px; background: var(--green-accent); color:white; width:50px; height: 50px; text-align: center; padding-top:13px; border-radius:6px; margin-bottom:20px;}

.container.spesialister {height: 65vh; background-position:center center; background: url(spesialister.png); background-size: cover; background-repeat: no-repeat;}

.why-us-grid { display:grid; grid-template-columns: 1fr 1fr; margin:0px 0px; }
.why-us-grid div { display: inline-block; vertical-align: top; }
.why-us-grid .service { padding:0px 10px 5px 40px;}
.why-us-grid .service:before { content:''; display: inline-block; width: 18px; background: url(check.png) center center no-repeat var(--green-light); padding:5px; border-radius: 6px; background-size: 18px; height: 18px; margin-left: -40px; margin-bottom: -38px;}

.white { background: white; border-radius: 20px; }


/* KONTAKT */
/* ============================== */

/* Hero-seksjon */
.kontakt-hero { height: auto; display: flex; align-items: center; justify-content: center; text-align: center; margin:40px 0px; padding: 0px 0px; }
.kontakt-hero .container { max-width: 850px; }
.kontakt-hero .container h1 { font-size: 3rem; line-height: 1.25; margin-bottom: 1.5rem; font-weight: 800; }

section.content-container.skjema { max-width: 1160px; margin-top:100px; padding:30px; border-radius:12px; border:1px solid #999;}

/* skjul footer skjema */
body.kontakt section.content-container.skjema { display: none; }


/* TAKK */
/* ============================== */

.takk-grid { display:grid; grid-template-columns: 1fr 1fr; gap:40px; margin:30px 0px;  }
.text-item.tip { padding:30px; background: var(--green-light); }


/* 404 */
/* ============================== */
.fourofour-grid {display: grid; grid-template-columns: 1fr 1fr; gap:40px; padding: 40px 40px;  color: var(--purple-dark); border-radius: 12px; }

/* ============================== */
/* bottom CTA*/
/* ============================== */
.content-container.hide {display:none; }
.content-container.hide.show {display:block; }

/* Footer */
footer { background-color: var(--purple-medium); color: white; text-align: center; padding: 2rem; margin-top: 100px; }
footer .container.footer-grid {display: grid; grid-template-columns: 2fr 1fr 1fr; gap:30px; text-align: left;     max-width: 1200px;
    margin: 0px auto; padding:20px 20px;}
footer ul, 
footer ol { padding: 20px 0px;}
footer .container.footer-grid li { list-style: none; }
footer .container.footer-grid li a { color:white; text-decoration: none;}
footer .container.footer-grid li a:hover { color:white; text-decoration: underline;}
footer .container.footer-grid .footerlogo {font-size: 30px; font-weight: bold;}
footer .container.footer-grid img {width: 40px; height: auto; filter: invert(1); }

/* Mobilanpasning stor*/
@media (max-width: 900px) {

    body {overflow-x:hidden;}
    
    /* Logo */ 
    .logo { font-size: 1.3rem;}

    /* NAV */
    /* vis mobilknapp og kontakt knapp*/
    .menu-btn {display: inline-block; position: absolute; right:20px; font-size: 30px; line-height:30px; cursor: pointer; padding: 3px 10px 10px 10px; border-radius: 6px;}
    .menu-btn:hover {background-color: var(--green-light);}
    a.cta-phone  {display: inline-block; position: absolute; right:80px; }

    /* skjul skjerm kontakt knapp*/
    a.cta-pc  {display: none;}
    

    ul.nav-menu { display: block; right:-100vw; height: 100vh; padding:20px 100px; position: absolute; background: white; top:60px; transition: 0.2s; }
    ul.nav-menu.active { display: block; right:0px; height: 100vh; padding:20px 100px; position: absolute; background: white; top:60px; transition: 0.2s; }

    /* Artikler */
    .grid-row, .grid-row.reverse { grid-template-columns: 1fr; }
    .grid-row.reverse .text-box { order: 1; }
    .grid-row.reverse .image-box { order: 2; }
    .image-box { min-height: 250px; }
    .hero h1 { font-size: 2.2rem; }
    .text-box { padding: 2rem; }

    /* ARTIKLER */
    /* ============================== */

    /* Hovedinnhold / Grid Layout */
    #artikler-liste.content-container { grid-template-columns: 1fr 1fr; gap: 30px; }
    .content-section img.featured-image { height: 30vh; }

    
    /* OM OSS */
    /* ============================== */

    /* About Grid Layout */
    .bento-grid {grid-template-columns: 1fr; }

    /* Why us */
    .why-us-grid { grid-template-columns: 1fr; }
    .why-us-grid .service {  width:90%; }
    .about-content .container { padding: 0px 20px 40px 20px;}

    /* KONTAKT */
    /* ============================== */
    
    
    section.content-container.skjema { margin:60px 20px; padding:20px;}
    .container.contact-grid { grid-template-columns: 1fr; }

    /* TAKK */
    /* ============================== */
    .takk-grid { grid-template-columns: 1fr;}

    /* 404 */
    /* ============================== */

    .fourofour-grid { grid-template-columns: 1fr;padding: 40px 0px;}

    /* FOOTER */
    footer { padding: 20px;}
    footer .container.footer-grid {grid-template-columns: 1fr; }


}

/* Mobilanpasning liten */
@media (max-width: 580px) {
    /* ARTIKLER */
    /* ============================== */

    /* Hovedinnhold / Grid Layout */
    #artikler-liste.content-container { grid-template-columns: 1fr; gap: 0px; }

}