/* Shared Moments - site.css (FULL FILE) */

/* ---------- Base tokens ---------- */
:root{
  --sm-bg:#ffffff;
  --sm-surface:#ffffff;
  --sm-soft:#f6f7f8;
  --sm-text:#111214;
  --sm-muted:#6b6f76;
  --sm-border:rgba(0,0,0,.10);
  --sm-shadow: 0 14px 40px rgba(0,0,0,.10);
}

/* ---------- Global ---------- */
html,body{background:var(--sm-bg); color:var(--sm-text);}
a{color:inherit; text-decoration:none;}
a:hover{color:inherit; text-decoration:none;}
.section-muted{color:var(--sm-muted);}
.section-lg{padding:4rem 0;}
.bg-light{background:var(--sm-soft) !important;}

/* Make Bootstrap buttons feel a bit less “default” */
.btn{border-radius:999px;}
.btn-outline-dark{border-color:rgba(0,0,0,.25);}

/* ---------- NAV / HEADER (light glass) ---------- */
/* This expects your nav include to have a <header class="site-header"> ... */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Optional: when scrolled add class "is-scrolled" via small JS (see note below) */
.site-header.is-scrolled{
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(0,0,0,.10);
}

/* Nav links */
.site-header a{color: var(--sm-text);}
.site-header .nav-link{color: var(--sm-text); opacity:.80;}
.site-header .nav-link:hover{opacity:1;}
.site-header .brand{font-weight:700; letter-spacing:.2px;}

/* If your nav uses Bootstrap navbar */
.navbar{
  padding-top:.45rem;
  padding-bottom:.45rem;
}
.navbar-toggler{border:0;}
.navbar-toggler:focus{box-shadow:none;}

/* ---------- HERO / CAROUSEL ---------- */
.hero{
  position:relative;
  overflow:hidden;
  background:#e9eaed;
}

/* HERO – optimal høyde for panorama */
.hero .carousel-item{
  height: 68vh;
  min-height: 480px;
  max-height: 720px;

  background-size: cover;
  background-position: center bottom; /* ⬅️ dette er hele trikset */
  position: relative;
}

.link-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #f5f5f5;
  text-decoration: none;
  color: #111;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.link-card::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.2s ease;
}

.link-card:hover {
  background: #e9e9e9;
}

.link-card:hover::after {
  transform: translateX(4px);
}

/* Tablet */
@media (max-width: 991px){
  .hero .carousel-item{
    height: 58vh;
    min-height: 360px;
  }
}

/* Mobile */
@media (max-width: 575px){
  .hero .carousel-item{
    height: 42vh;
    min-height: 280px;
  }
}


/* Overlay for readable text */
.hero-slide-overlay{
  position:absolute; inset:0;
  display:flex; align-items:flex-end;
  padding: 2.25rem 0;
  background: linear-gradient(180deg,
    rgba(0,0,0,.00) 0%,
    rgba(0,0,0,.10) 35%,
    rgba(0,0,0,.55) 100%);
}

.hero-text{
  color:#fff;
  max-width: 820px;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hero-kicker{
  font-size:.80rem;
  letter-spacing:.10em;
  text-transform:uppercase;
  opacity:.92;
  margin-bottom:.5rem;
}
.hero-title{
  margin:0 0 .6rem 0;
  font-weight:800;
  line-height:1.05;
}
.hero-lead{
  margin:0 0 1rem 0;
  font-size:1.05rem;
  opacity:.95;
}
.hero-actions .btn{margin-right:.5rem; margin-top:.25rem;}

/* Carousel indicators (dots) */
.carousel-indicators{margin-bottom: 1.15rem;}
.carousel-indicators [data-bs-target]{
  width:10px; height:10px;
  border-radius:50%;
  opacity:.55;
}
.carousel-indicators .active{opacity:1;}

/* Make arrows visible on bright images */
.carousel-control-prev-icon,
.carousel-control-next-icon{
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.45));
}

/* ---------- SECTION TITLES ---------- */
.section-title{
  font-weight:800;
  letter-spacing:.2px;
}
.section-subtitle{
  color:var(--sm-muted);
}

/* ---------- CATEGORY CARDS (FINAL) ---------- */
.category-card{
  border:1px solid var(--sm-border);
  border-radius: 18px;
  overflow:hidden;
  background:#ffffff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.category-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.category-card img{
  width:100%;
  height: 230px;
  object-fit: cover;
  display:block;
}

@media (min-width: 992px){
  .category-card img{ height: 260px; }
}
@media (max-width: 575px){
  .category-card img{ height: 200px; }
}

.category-card .card-body{
  padding: 14px 18px 16px 18px;
}

.category-card h5{
  margin:0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.category-card .small{
  color: var(--sm-muted);
  line-height: 1.4;
}
.category-card h5{ padding-left:4px; }

/* ---------- “Project / B2B” callout box ---------- */
.callout{
  background: var(--sm-soft);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  padding: 1.25rem;
}

/* ---------- Footer ---------- */
.site-footer{
  border-top: 1px solid rgba(0,0,0,.08);
  background: #fff;
  padding: 2.5rem 0;
  color: var(--sm-muted);
}

/* ---------- FLOATING NAVBAR ---------- */
.navbar-floating{
  position: absolute;
  top:0; left:0; right:0;
  z-index: 20;
  background: transparent;
}

.navbar-floating .nav-link,
.navbar-floating .navbar-brand{
  color:#fff;
}

.navbar-floating .nav-link:hover{
  opacity:.85;
}
/* ---------- QUALITY STRIP ---------- */
.quality-strip{
  background:#f4f5f6;
  padding: 3.5rem 0;
  border-bottom:1px solid var(--sm-border);
}

.quality-strip strong{
  display:block;
  font-weight:700;
  margin-bottom:.25rem;
}

.quality-strip div{
  font-size:.9rem;
  color:var(--sm-muted);
}

/* =========================
   PHOTO VIEW
========================= */

.photo-view img{
  display:block;
  width:100%;
  max-width:1600px;   /* test: kan justeres */
  margin:0 auto;
}

.photo-meta{
  max-width:720px;
  margin:0 auto;
  text-align:left;
}

.photo-title{
  font-size:1.6rem;
  font-weight:600;
  margin-bottom:.75rem;
}

.photo-description{
  color:#555;
  font-size:1rem;
  line-height:1.6;
  margin-bottom:1rem;
}

.photo-tags{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  gap:.5rem;
}

.photo-tags li{
  font-size:.8rem;
  color:#777;
}
/* =========================
   NAVBAR – GLOBAL BASE
========================= */

.navbar{
  transition: background-color .2s ease, color .2s ease;
}

.navbar-brand img{
  height:48px;   /* 38–48px etter smak */
  width:auto;
}




.hero{
  margin-top:0;
}


/* =========================
   HERO MODE (default)
   – brukes når body IKKE har .content-page
========================= */

body:not(.content-page) .navbar{
  background: transparent;
}

body:not(.content-page) .navbar .navbar-brand,
body:not(.content-page) .navbar .nav-link{
  color: #fff;
}

body:not(.content-page) .navbar .nav-link:hover{
  color: rgba(255,255,255,.8);
}

/* =========================
   CONTENT MODE
   – ALLE undersider
========================= */

body.content-page .navbar{
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
}

body.content-page .navbar .navbar-brand,
body.content-page .navbar .nav-link{
  color: #111;
}

body.content-page .navbar .nav-link:hover{
  color: #000;
}

/* Fjern Bootstrap-dark override */
body.content-page .navbar.navbar-dark .navbar-brand,
body.content-page .navbar.navbar-dark .nav-link{
  color:#111;
}

body:not(.content-page) .site-header{
  background: transparent;
  border-bottom:none;
}
body.has-hero .site-header{
  position:absolute;
  background:transparent;
  border-bottom:none;
}

body.has-hero .navbar-brand,
body.has-hero .nav-link{
  color:#fff;
}




/* ================= SEARCH – EMPHASIS ================= */
.search-strip{
  background:#f7f8f9;
  padding:2rem 0;
  border-top:1px solid rgba(0,0,0,.05);
  border-bottom:1px solid rgba(0,0,0,.08);
}

.search-strip form{
  background:#fff;
  padding:1rem;
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}

.search-strip input.form-control{
  height:52px;
  font-size:1.05rem;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.15);
}

.search-strip button{
  height:52px;
  border-radius:14px;
  font-weight:600;
}



 
/* =========================
   KEYWORDS
   – Små knapper
========================= */


.keyword-list {
  margin-top: 1rem;
}

.keyword {
  display: inline-block;
  margin: 0 .35rem .35rem 0;
  padding: .35rem .7rem;
  font-size: .8rem;
  border: 1px solid #ccc;
  border-radius: 999px;
  color: #555;
  text-decoration: none;
  background: #fff;
}

.keyword:hover {
  border-color: #000;
  color: #000;
  text-decoration: none;
}




/* =========================
   PHOTO VIEW – responsive scaling
========================= */

/* Standard (2.8K / 4K) – behold som i dag */
.photo-view img{
  width:100%;
  max-width:1600px;
}

/* 1920px og ned */
@media (max-width: 2000px){
  .photo-view img{
    max-width:1300px;
  }
}

/* Typisk laptop / HD */
@media (max-width: 1400px){
  .photo-view img{
    max-width:1100px;
  }
}

/* Smal laptop */
@media (max-width: 1200px){
  .photo-view img{
    max-width:950px;
  }
}



/* =========================
   CONTENT TYPOGRAPHY
========================= */

body.content-page h1,
body.content-page h2,
body.content-page h3{
  font-weight:600;
  letter-spacing:-0.01em;
}

body.content-page h1{
  font-size:2.1rem;
  margin-bottom:1.2rem;
}

body.content-page h2{
  font-size:1.6rem;
  margin-top:3.2rem;
  margin-bottom:1rem;
}

body.content-page h3{
  font-size:1.25rem;
  margin-top:2rem;
  margin-bottom:.75rem;
}

body.content-page p{
  line-height:1.65;
}
/* =========================
   CONTENT LAYOUT UTILITIES
========================= */

.content-narrow{
  max-width:820px;
}

.section-spacing-1{ margin-top:60px; }
.section-spacing-2{ margin-top:80px; }
.section-spacing-sm{ margin-top:40px; }

