/*
Theme Name: SF Digitalbyrå 2026
Theme URI: https://www.sfdigitalbyraa.no/
Description: Designlag for SF Digitalbyrå. Brukes sammen med Hello Elementor og Elementor Pro.
Author: SF Digitalbyrå
Version: 1.1.0
Template: hello-elementor
Text Domain: sfdi
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --sfdi-bg: #f4f1ea;
  --sfdi-paper: #fffdf8;
  --sfdi-ink: #101114;
  --sfdi-muted: #65666b;
  --sfdi-line: #d8d1c5;
  --sfdi-red: #e3342f;
  --sfdi-red-dark: #bf2724;
  --sfdi-blue: #1647d7;
  --sfdi-blue-dark: #092b7a;
}

html { scroll-behavior: smooth; }
body {
  background: var(--sfdi-bg);
  color: var(--sfdi-ink);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.sfdi-page, .sfdi-header, .sfdi-footer { overflow: hidden; }
.sfdi-page h1, .sfdi-page h2, .sfdi-page h3,
.sfdi-header h1, .sfdi-header h2, .sfdi-header h3,
.sfdi-footer h1, .sfdi-footer h2, .sfdi-footer h3 {
  color: var(--sfdi-ink);
  font-family: "Manrope", Arial, sans-serif;
  letter-spacing: -0.04em;
}
.sfdi-page .elementor-heading-title,
.sfdi-header .elementor-heading-title,
.sfdi-footer .elementor-heading-title {
  color: var(--sfdi-ink) !important;
  font-family: "Manrope", Arial, sans-serif !important;
}

.sfdi-header {
  background: rgba(244, 241, 234, .94);
  border-bottom: 1px solid rgba(16, 17, 20, .12);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 50;
}
.sfdi-logo img { width: 162px; height: auto; }
.sfdi-nav a { color: var(--sfdi-ink) !important; font: 600 14px/1 "Manrope", sans-serif; }
.sfdi-nav a:hover { color: var(--sfdi-red) !important; }
.sfdi-nav .elementor-button { background: transparent !important; min-height: auto; padding: 10px 4px !important; }

.sfdi-btn .elementor-button {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  gap: 10px;
  min-height: 56px;
  padding: 16px 25px;
  transition: transform .22s ease, background .22s ease, color .22s ease, border .22s ease;
}
.sfdi-btn .elementor-button:hover { transform: translateY(-2px); }
.sfdi-btn-primary .elementor-button { background: var(--sfdi-red) !important; color: #fff !important; }
.sfdi-btn-primary .elementor-button:hover { background: var(--sfdi-red-dark) !important; }
.sfdi-btn-dark .elementor-button { background: var(--sfdi-ink) !important; color: #fff !important; }
.sfdi-btn-outline .elementor-button { background: transparent !important; border: 1px solid var(--sfdi-ink) !important; color: var(--sfdi-ink) !important; }
.sfdi-btn-outline .elementor-button:hover { background: var(--sfdi-ink) !important; color: #fff !important; }

.sfdi-hero {
  background-color: var(--sfdi-bg);
  background-image: radial-gradient(circle at 84% 22%, rgba(22,71,215,.10), transparent 29%), radial-gradient(circle at 74% 74%, rgba(227,52,47,.10), transparent 27%);
  min-height: 770px;
}
.sfdi-eyebrow .elementor-heading-title {
  font: 700 12px/1.2 "Manrope", sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--sfdi-ink) !important;
}
.sfdi-hero-title .elementor-heading-title {
  color: var(--sfdi-ink) !important;
  font-size: clamp(58px, 7.5vw, 112px) !important;
  font-weight: 800 !important;
  line-height: .94 !important;
}
.sfdi-hero-title .sfdi-mark { color: var(--sfdi-red) !important; }
.sfdi-lead, .sfdi-lead p { color: var(--sfdi-muted) !important; font-size: 19px !important; line-height: 1.65 !important; max-width: 660px; }
.sfdi-hero-art { min-height: 590px; position: relative; }
.sfdi-art-blue, .sfdi-art-red, .sfdi-art-paper, .sfdi-art-dark {
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(16,17,20,.12);
  min-height: 150px;
  overflow: hidden;
  position: absolute;
}
.sfdi-art-blue { background: var(--sfdi-blue); color: #fff; right: 2%; top: 2%; width: 64%; }
.sfdi-art-red { background: var(--sfdi-red); bottom: 5%; left: 1%; width: 48%; }
.sfdi-art-dark { background: var(--sfdi-ink); bottom: 13%; right: 0; width: 48%; }
.sfdi-art-paper { background: var(--sfdi-paper); left: 0; min-height: 260px; top: 29%; width: 73%; z-index: 3; }
.sfdi-art-label .elementor-heading-title { color: inherit !important; font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; }
.sfdi-art-number .elementor-heading-title { color: inherit !important; font-size: clamp(42px, 5vw, 74px) !important; font-weight: 800 !important; }
.sfdi-art-copy, .sfdi-art-copy p { color: inherit !important; font-size: 14px !important; line-height: 1.5 !important; }
.sfdi-art-paper:after {
  background-image: linear-gradient(rgba(16,17,20,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(16,17,20,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  content: "";
  inset: 0;
  opacity: .45;
  pointer-events: none;
  position: absolute;
}

.sfdi-proof { border-bottom: 1px solid var(--sfdi-line); border-top: 1px solid var(--sfdi-line); }
.sfdi-client .elementor-heading-title { color: #57585d !important; font-size: 14px !important; font-weight: 700 !important; letter-spacing: -.01em; }
.sfdi-section-title .elementor-heading-title { font-size: clamp(42px, 5vw, 72px) !important; font-weight: 800 !important; line-height: 1.02 !important; }
.sfdi-section-intro, .sfdi-section-intro p { color: var(--sfdi-muted) !important; font-size: 18px !important; line-height: 1.65 !important; }

.sfdi-service-card {
  background: var(--sfdi-paper);
  border: 1px solid rgba(16,17,20,.10);
  border-radius: 22px;
  min-height: 300px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.sfdi-service-card:hover { border-color: rgba(16,17,20,.28); box-shadow: 0 22px 55px rgba(16,17,20,.09); transform: translateY(-6px); }
.sfdi-service-number .elementor-heading-title { color: var(--sfdi-red) !important; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .1em; }
.sfdi-service-title .elementor-heading-title { font-size: 27px !important; font-weight: 700 !important; line-height: 1.12 !important; }
.sfdi-service-copy, .sfdi-service-copy p { color: var(--sfdi-muted) !important; font-size: 15px !important; line-height: 1.65 !important; }
.sfdi-link a { color: var(--sfdi-ink) !important; font-family: "Manrope", sans-serif; font-size: 14px; font-weight: 700; text-decoration: none; }
.sfdi-link a:hover { color: var(--sfdi-red); }

.sfdi-dark { background: var(--sfdi-ink); color: #fff; }
.sfdi-dark h2, .sfdi-dark h3, .sfdi-dark .elementor-heading-title { color: #fff !important; }
.sfdi-dark .sfdi-section-intro, .sfdi-dark .sfdi-section-intro p, .sfdi-dark .sfdi-service-copy { color: rgba(255,255,255,.68) !important; }
.sfdi-stat { border-left: 1px solid rgba(255,255,255,.2); }
.sfdi-stat-number .elementor-heading-title { font-size: clamp(52px, 5vw, 78px) !important; font-weight: 800 !important; }
.sfdi-stat-label, .sfdi-stat-label p { color: rgba(255,255,255,.64) !important; font-size: 14px !important; }

.sfdi-case-card { border-top: 1px solid var(--sfdi-line); }
.sfdi-case-title .elementor-heading-title { font-size: clamp(34px, 4vw, 58px) !important; font-weight: 800 !important; }
.sfdi-case-meta, .sfdi-case-meta p { color: var(--sfdi-muted) !important; font-size: 14px !important; }
.sfdi-case-visual { border-radius: 24px; min-height: 330px; overflow: hidden; }
.sfdi-case-blue { background: linear-gradient(135deg, #0b1d37, var(--sfdi-blue)); }
.sfdi-case-red { background: linear-gradient(135deg, #bf2724, var(--sfdi-red)); }
.sfdi-case-visual .elementor-heading-title { color: #fff !important; font-size: clamp(34px, 5vw, 68px) !important; font-weight: 800 !important; }

.sfdi-quote { background: var(--sfdi-blue); border-radius: 26px; color: #fff; }
.sfdi-quote .elementor-heading-title { color: #fff !important; font-size: clamp(30px, 4vw, 54px) !important; font-weight: 700 !important; line-height: 1.17 !important; }
.sfdi-quote-copy, .sfdi-quote-copy p { color: rgba(255,255,255,.78) !important; }

.sfdi-process-step { border-top: 1px solid var(--sfdi-line); }
.sfdi-process-title .elementor-heading-title { font-size: 24px !important; font-weight: 700 !important; }
.sfdi-process-copy, .sfdi-process-copy p { color: var(--sfdi-muted) !important; }

.sfdi-contact { background: var(--sfdi-red); color: #fff; }
.sfdi-contact h2, .sfdi-contact h3, .sfdi-contact .elementor-heading-title { color: #fff !important; }
.sfdi-contact .sfdi-section-intro, .sfdi-contact .sfdi-section-intro p { color: rgba(255,255,255,.78) !important; }
.sfdi-form .elementor-field { background: rgba(255,255,255,.96) !important; border: 0 !important; border-radius: 12px !important; min-height: 52px; }
.sfdi-form .elementor-button { background: var(--sfdi-ink) !important; border-radius: 12px !important; color: #fff !important; font-family: "Manrope", sans-serif; font-weight: 700; min-height: 54px; }

.sfdi-footer { background: #0b0c0e; color: rgba(255,255,255,.72); }
.sfdi-footer .elementor-heading-title { color: #fff !important; }
.sfdi-footer a { color: rgba(255,255,255,.78); }
.sfdi-footer a:hover { color: #fff; }

@media (max-width: 1024px) {
  .sfdi-hero { min-height: auto; }
  .sfdi-hero-art { min-height: 500px; }
  .sfdi-nav-links { display: none; }
  .sfdi-service-card { width: calc(50% - 10px) !important; }
}

@media (max-width: 767px) {
  .sfdi-logo img { width: 132px; }
  .sfdi-header-cta .elementor-button { min-height: 44px; padding: 11px 15px; }
  .sfdi-hero-title .elementor-heading-title { font-size: clamp(48px, 15vw, 70px); }
  .sfdi-lead { font-size: 17px; }
  .sfdi-hero-art { min-height: 430px; }
  .sfdi-art-paper { min-height: 220px; top: 24%; width: 82%; }
  .sfdi-art-blue { width: 68%; }
  .sfdi-art-red { width: 56%; }
  .sfdi-art-dark { width: 52%; }
  .sfdi-hero > .e-con-inner,
  .sfdi-services-head,
  .sfdi-case-card,
  .sfdi-process-grid,
  .sfdi-contact > .e-con-inner,
  .sfdi-footer-row { flex-direction: column !important; }
  .sfdi-hero > .e-con-inner > .e-con,
  .sfdi-services-head > .e-con,
  .sfdi-case-card > .e-con,
  .sfdi-process-grid > .e-con,
  .sfdi-contact > .e-con-inner > .e-con,
  .sfdi-footer-row > .e-con { width: 100% !important; }
  .sfdi-service-card { min-height: auto; width: 100% !important; }
  .sfdi-stats-grid { flex-direction: column !important; }
  .sfdi-stat { width: 100% !important; }
  .sfdi-client:nth-child(n+5) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
