/* ======================
   Font‐faces
   ====================== */
@font-face {
  font-family: 'ARS';
  src: url('https://materiell.fosterhjem.no/create/_common/_base/ars-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'ARS';
  src: url('https://materiell.fosterhjem.no/create/_common/_base/ars-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
}

/* ======================
   Global reset & body
   ====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root{
  --bg: #f0f2ee;
  --text: #3a3a3a;
  --purple: #5e4b7e;
  --accent: #D96E4A;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 10px rgba(0,0,0,0.06);

  --bufdir-purple: #7b679f;
  --bufdir-yellow: #d1c43b;
  --bufdir-green : #6cc78e;
  --bufdir-orange: #d77455;
}


.header-heading span { color: var(--bufdir-purple); }


body {
  font-family: 'ARS', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;   /* fint for korte sider */
  justify-content: center;
  flex-direction: column;
}
body.project {
  display: block;  /* prosjekt-side */
}

body.page--scroll {      /* bruk på sider med mye innhold */
  align-items: flex-start;
}

/* ======================
   Container & Heading
   ====================== */
.container {
  display: flex;
  gap: 30px;
  /* flex-direction: column; */
  /* align-items: stretch; */
  padding: 2rem;
  padding-top: 4em;
  width: 100%;
  max-width: 1160px;
  margin: 0 .5em;
  justify-content: center;
}
body.page--scroll .container {
  display: flex;
  flex-direction: column;
  /* align-items: stretch; */
  padding: 2rem;
  padding-top: 4em;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  justify-content: unset;
}
body.ferdig .container {
  flex-direction: column;
  padding-bottom: 9em;
}


.fosterhjem_logo_bottom {
  width: 300px;
  margin-top: 9em;
}

.heading-container {
  margin-bottom: 3rem;

}
.heading-container p {
  text-align: left;
  max-width: 590px;
}
.heading {
  font-weight: 700;
  font-size: 3.0rem;
  color: var(--purple);
  text-align: center;
  /* margin-top: 2em;
  margin-bottom: 1em; */
    
}

body.ferdig .heading {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 0.5em;
    margin-top: 2em;
    line-height: 1.25;
    text-align: left;
}

.lead {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto 1.5rem;
  color: #555;
  line-height: 1.45;
}

/* ======================
   Responsivt grid
   ====================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin-top: 2em;
}

/* Vanlig kort */
.card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card .content {
  padding: 1rem 1.1rem 1.25rem;
}
.card .tile-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--purple);
  margin-bottom: .5rem;
}
.card .meta {
  font-size: .9rem;
  color: #666;
  margin-bottom: .3rem;
}
.card .text {
  font-size: .95rem;
  color: #333;
  line-height: 1.4;
  margin-bottom: .8rem;
}
.card .link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.card .link:hover { text-decoration: underline; }

.tile {
  text-decoration: none;
}
/* Forside – klikkbare «fliser» uten bilde */
.tile-title {
  background: transparent;
  border-radius: 62px;
  min-height: 90px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  /* box-shadow: var(--card-shadow); */
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.tile-title:hover {
  transform: translateY(-4px);
  background: var(--accent);
  color: #fff;
}
 .tile-title {
  font-weight: 400;
  font-size: 1.6rem;
  text-decoration: none;
  margin-bottom: .55rem;
}
.tile .tile-sub {
  font-size: .95rem;
  opacity: .9;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  margin-top: 22px;
}

.main .tile-title {

    background: var(--accent);
    color: white;
}
.main.tile {
    width: 40%;
    max-width: 700px;
} 
/* ======================
   Footer (valgfritt)
   ====================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

.footer-logo { width: 220px; margin-bottom: .5rem; }
.footer-text { font-weight: 700; font-size: 1rem; color: var(--purple); }





/* ======================
   FERDIG MATERIELL (katalog)
   ====================== */

/* Grid: maks 3 kolonner på desktop */
.catalog-grid{
  display:grid;
  grid-template-columns: 1fr;   /* mobil */
  gap: 2rem 2.25rem;
}
@media (min-width: 700px){
  .catalog-grid{ grid-template-columns: repeat(2, 1fr); }  /* nettbrett */
}
@media (min-width: 1080px){
  .catalog-grid{ grid-template-columns: repeat(3, 1fr); }  /* desktop */
}

/* Hele kortet er lenka */
.catalog-card{
  /* display:block; */
  text-decoration:none;
  color:inherit;
  padding: 1.75em;
  background-color: white;
  border-radius: 28px;
    display: flex;
  flex-direction: column;
  justify-content: top; /* ← vertikal sentrering */
}

.catalog-card:hover {
    /* box-shadow: 0 0 0 4px #1570EF inset;   */
    background-color: rgba(0,0,0,0.04);
    border-radius: 25px;
}

/* Kvadratisk thumb med avrunda hjørner, fokus/hover-ring */
.catalog-thumb{
  width:100%;
  aspect-ratio: 1/1;
  object-fit:cover;
  border-radius:28px;
  background:#dedede;              /* “lysegrå placeholder” som i skissen */
  transition: box-shadow .2s ease, transform .2s ease;
}
.catalog-card:hover .catalog-thumb,
.catalog-card:focus-visible .catalog-thumb{

}

/* Tekst under bildet – ingen bakgrunn */
.catalog-title{
  margin-top:0.85em;
  margin-bottom: .85em;
  font-weight:300;
  font-size:1.5rem;
  /* color: var(--purple); */
  line-height:1.25;
  margin-top: 0;
}

.catalog-desc {
  margin-top:.25rem;
  margin-bottom: .25em;
  font-size:1em;
  color: #656565ff;
  line-height:1.4;
}

/* Sekundær info (målgruppe/budskap) – mindre og lysere */
.catalog-meta{
  margin-top:.4rem;
  font-size:.85rem;
  color:#666;
  line-height:1.4;
  display: none;
}
.catalog-meta strong{
  color: #bababaff;
  font-weight:200;
  display: block;
}

/* ======================
   NYTTESTIL FOR FLEX-KORT
   ====================== */
.section-heading {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text);
  text-align: center;
  margin: 4rem 0 2rem;
}

.catalog-content {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.catalog-icon {
  flex-shrink: 0;
  width: 60px;
  height: 70px;
  object-fit: contain;
}

.catalog-text {
  flex: 1;
}

.catalog-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.catalog-desc {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}




#rotatedBoxContainer {
  position: fixed;
  overflow: hidden;
  width: 100%;
  right: 0;
  bottom: 0;
  height: 300px;
}


#rotatedBox {
    position: absolute;
    bottom: -400px;
    right: -290px;
    transform: rotate(-11deg);
    background-color: var(--purple);
    width: 1000px;
    height: 500px;
}
