/*
   Felles komponenter for bloc.no sine egne Razor-sider (Views/BlocInternalWebsite).
   Grunnoppsett (farger, typografi, knapper, header, footer) ligger i _BlocWebsiteLayout.cshtml.
*/

/* Brødsmuler på undersidene */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* Hero */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 30px; max-width: 520px; }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

/* Skjermbilder */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line);
        box-shadow: 0 24px 48px -20px rgba(15,23,42,.25); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
/* Skjermbildene har sin egen vindusramme, så figuren skal bare gi skygge. */
/* drop-shadow følger bildets kontur, så enhetsbildene (PC + mobil på gjennomsiktig bunn) ikke får en boks rundt seg. */
.shot.natural { border: 0; background: transparent; box-shadow: none; overflow: visible; filter: drop-shadow(0 18px 24px rgba(15,23,42,.16)); }
.kind .showcase .shot.natural { filter: drop-shadow(0 10px 14px rgba(15,23,42,.12)); }
.shot.natural img { height: auto; }
.shot.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px;
                    background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 12px, #f1f5f9 12px, #f1f5f9 24px);
                    border: 2px dashed #94a3b8; box-shadow: none; color: #475569; font-size: .9rem; }
.shot.placeholder div { display: grid; gap: 6px; max-width: 360px; }
.shot.placeholder code { font-size: .78rem; color: #64748b; }

/* Kort med bilde (tre måter å booke på) */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kinds.two { grid-template-columns: repeat(2, 1fr); }
/* Kundeeksempler: enhetsbildet har luft rundt seg, så det trenger en rolig bakgrunn. */
.kind .showcase { background: var(--blue-soft); padding: 28px 28px 20px; border-bottom: 1px solid var(--line); }
.kind .showcase .shot { border-bottom: 0; background: transparent; }
.tag-new { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
           color: #047857; background: #ecfdf5; padding: 2px 8px; border-radius: 999px; }
.kind-body .domain { font-size: .85rem; color: var(--muted); }
.kind { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.kind .shot { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.kind-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kind-body p { color: var(--muted); font-size: .96rem; }
.kind-body a { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.kind-body a:hover { text-decoration: underline; }

/* Kort uten bilde */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue);
             background: var(--blue-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* Funksjonsrader med bilde */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip > :first-child { order: 2; }
.feature h2 { margin-bottom: 16px; }
.feature p { color: var(--muted); font-size: 1.04rem; }
.checks, .feature ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li, .feature li { position: relative; padding-left: 30px; }
.checks li::before, .feature li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
    background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005eb8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* Innstillinger i to kolonner (navn + forklaring) */
.settings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin: 0; }
.settings div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings dt { font-weight: 600; margin-bottom: 4px; }
.settings dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* Steg */
ol.flow { padding: 0; margin: 0; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.flow.three { grid-template-columns: repeat(3, 1fr); }
.flow li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.flow li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
                   border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 14px; }
.flow h3 { margin-bottom: 8px; font-size: 1.02rem; }
.flow p { color: var(--muted); font-size: .93rem; }

/* Produktnytt */
.news-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.news-head .section-head { margin-bottom: 0; }
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px;
             color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.news-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.news-tag { background: #ecfdf5; color: #047857; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.news-tag.improvement { background: var(--blue-soft); color: var(--blue); }
.news-card h3 { font-size: 1.02rem; }
.news-card p { color: var(--muted); font-size: .92rem; }

/* Lenkegrid til de andre bookingtypene */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.more a { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px;
          text-decoration: none; color: var(--ink); font-weight: 500; background: #fff; }
.more a:hover { border-color: var(--blue); color: var(--blue); }

/* Avsluttende oppfordring */
.cta { background: var(--blue); color: #fff; border-radius: 20px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta p { color: #dbeafe; margin-top: 10px; max-width: 520px; }
.cta .btn-primary { background: #fff; color: var(--blue); }
.cta .btn-primary:hover { background: #e0ecf9; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-ghost:hover { border-color: #fff; color: #fff; }

@media (max-width: 960px) {
    .hero-grid, .feature { grid-template-columns: 1fr; gap: 36px; }
    .feature.flip > :first-child { order: 0; }
    .kinds, .kinds.two, .news, .cards { grid-template-columns: 1fr; }
    .flow, .flow.three { grid-template-columns: 1fr 1fr; }
    .more, .settings { grid-template-columns: 1fr; }
    .cta { padding: 36px 24px; }
}
@media (max-width: 560px) {
    .flow, .flow.three { grid-template-columns: 1fr; }
}
