/*
Theme Name: Kadence Od1n
Theme URI: https://od1n.no
Description: Light mode Nordic AI theme - Clean, minimalist, powerful
Author: Markus Fasting
Template: kadence
Version: 2.1 (Light Mode - Final)
*/

/* ===== COLOR TOKENS ===== */
:root {
  --od1n-white: #FFFFFF;
  --od1n-light-gray: #F5F5F5;
  --od1n-gray: #E0E0E0;
  --od1n-dark-gray: #6B6B6B;
  --od1n-black: #000000;
  --od1n-red: #D14242;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--od1n-white) !important;
  color: var(--od1n-black) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', sans-serif !important;
  line-height: 1.7;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif !important;
  color: var(--od1n-black) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem) !important; font-weight: 800 !important; }
h2 { font-size: clamp(2rem, 4vw, 3rem) !important; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem) !important; }

p, li, a {
  color: var(--od1n-black) !important;
  font-size: 1.0625rem;
  line-height: 1.7;
  font-family: 'Inter', sans-serif !important;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--od1n-white) !important;
  border-bottom: 1px solid var(--od1n-gray) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 0 !important;
}

.site-branding img,
.custom-logo {
  max-height: 107px !important;
  width: auto !important;
  filter: none !important;
  background: transparent !important;
}

.site-title {
  display: none !important;
}

/* ===== NAVIGATION ===== */
.primary-navigation a,
.main-navigation a {
  color: var(--od1n-black) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
}

.primary-navigation a:hover,
.main-navigation a:hover {
  color: var(--od1n-red) !important;
}

/* ===== BUTTONS ===== */
.btn-primary,
.wp-block-button__link,
.wp-element-button {
  background: var(--od1n-red) !important;
  color: var(--od1n-white) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  padding: 1.125rem 2.75rem !important;
  border-radius: 8px !important;
  border: none !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 14px rgba(209, 66, 66, 0.3);
  text-decoration: none !important;
}

.btn-primary:hover,
.wp-block-button__link:hover {
  background: #B83737 !important;
  transform: translateY(-2px);
  color: var(--od1n-white) !important;
}

.btn-secondary {
  background: transparent !important;
  color: var(--od1n-black) !important;
  border: 2px solid var(--od1n-black) !important;
  padding: 1.125rem 2.75rem !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: var(--od1n-black) !important;
  color: var(--od1n-white) !important;
}

/* ===== FOOTER - WHITE BACKGROUND ===== */
.site-footer {
  background: var(--od1n-white) !important;
  border-top: 1px solid var(--od1n-gray) !important;
  padding: 4rem 2rem 2rem !important;
  margin-top: 0 !important;
}

.site-footer h2,
.site-footer h3,
.site-footer .widget-title {
  color: var(--od1n-black) !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.site-footer a {
  color: var(--od1n-dark-gray) !important;
}

.site-footer a:hover {
  color: var(--od1n-red) !important;
}

.site-footer .footer-bottom {
  color: var(--od1n-dark-gray) !important;
}

/* ===== FULL WIDTH CONTENT ===== */
.entry-content,
.content-area {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-branding img {
    max-height: 70px !important;
  }
}

/* ===== FOOTER FIX - SUPER IMPORTANT ===== */
.site-footer,
.site-footer *,
footer,
footer *,
.site-footer-wrap,
.site-footer-wrap *,
.site-below-footer-inner-wrap,
.site-bottom-footer,
.site-middle-footer,
.site-top-footer {
  background: var(--od1n-white) !important;
  background-color: var(--od1n-white) !important;
  border-top: 1px solid var(--od1n-gray) !important;
}

.site-footer,
.site-footer-wrap,
footer {
  background: white !important;
  background-color: white !important;
}

.site-footer *,
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.site-footer p,
.site-footer span,
.site-footer div {
  color: var(--od1n-dark-gray) !important;
}

.site-footer a {
  color: var(--od1n-dark-gray) !important;
}

.site-footer a:hover {
  color: var(--od1n-red) !important;
}

/* Remove any dark overlays */
.site-footer::before,
.site-footer::after {
  display: none !important;
}

/* ===== MAKE ALL PAGES LOOK LIKE HOMEPAGE ===== */
body {
  background: #FFFFFF !important;
}

.entry-content,
.content-area,
.site-content,
.wp-site-blocks {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #FFFFFF !important;
}

/* Remove weird sidebar padding */
.content-wrap,
.site-main {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Full width container */
.entry-content > *,
.wp-block-group {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Hero sections full width */
.about-hero,
.products-hero,
.generic-page h1:first-child {
  max-width: 100% !important;
  padding: 6rem 2rem !important;
  background: #FFFFFF !important;
  text-align: center;
}

/* Content blocks */
.story-block,
.product-card {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Remove Kadence's weird beige sidebar areas */
.content-bg,
.site-content-contain {
  background: #FFFFFF !important;
  padding: 0 !important;
}

/* Alternativ: Hvis mix-blend-mode ikke fungerer */
.site-branding a,
.site-branding {
  background: #FFFFFF !important;
}
/* ===== KONSISTENT TYPOGRAFI - SPACE GROTESK + INTER ===== */

/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap");

/* Global font variables */
:root {
  --font-heading: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ALL HEADINGS - Space Grotesk */
h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.wp-block-heading,
.kadence-heading,
.hero-heading,
.section-heading {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
}

/* H1 specific */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

/* H2 specific */
h2 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

/* H3 specific */
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

/* ALL BODY TEXT - Inter */
body,
p,
li,
a,
span,
div,
.entry-content,
.wp-block-paragraph,
input,
textarea,
select,
button {
  font-family: var(--font-body) !important;
}

/* Body text specific */
p, li, span {
  font-weight: 400 !important;
  line-height: 1.6 !important;
}

/* Navigation - Space Grotesk medium */
.primary-navigation a,
.menu-item a,
.nav-link {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

/* Buttons - Space Grotesk medium */
.btn-primary,
.btn-secondary,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.kb-button {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

/* Footer - Inter */
.site-footer,
.site-footer p,
.site-footer a,
.site-footer span {
  font-family: var(--font-body) !important;
  font-weight: 400 !important;
}
/* ===== PREMIUM FOOTER ===== */
.od1n-premium-footer {
  background: var(--od1n-white) !important;
  border-top: 2px solid var(--od1n-gray) !important;
  padding: 4rem 2rem 2rem !important;
  margin-top: 6rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

/* Logo section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  max-width: 120px !important;
  height: auto !important;
}

.footer-tagline {
  color: var(--od1n-dark-gray) !important;
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* Navigation columns */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-heading) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  color: var(--od1n-black) !important;
  margin-bottom: 1rem !important;
  letter-spacing: -0.01em;
}

.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-col ul li {
  margin-bottom: 0.75rem !important;
}

.footer-col ul li a {
  color: var(--od1n-dark-gray) !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  transition: color 0.2s ease !important;
}

.footer-col ul li a:hover {
  color: var(--od1n-red) !important;
}

/* Bottom bar */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--od1n-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--od1n-dark-gray) !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
}

.footer-badges {
  display: flex;
  gap: 1.5rem;
}

.footer-badges span {
  font-size: 0.85rem !important;
  color: var(--od1n-dark-gray) !important;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-badges {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== FIX FOR TEKNOLOGI PAGE ===== */
.tech-content,
.tech-hero,
.performance-metrics {
  position: relative !important;
  z-index: 1 !important;
  background: var(--od1n-white) !important;
}

.tech-hero {
  background: linear-gradient(135deg, #000000 0%, #1A1A1A 100%) !important;
  color: var(--od1n-white) !important;
}

.performance-metrics {
  background: var(--od1n-black) !important;
  color: var(--od1n-white) !important;
}

/* Ensure content is visible */
body.page-template-template-teknologi .tech-content,
body.page-template-template-teknologi .tech-hero,
body.page-template-template-teknologi .performance-metrics {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ===== SUPER STRONG FIXES FOR ALL DARK SECTIONS ===== */

/* Tech Hero - WHITE TEXT on BLACK */
.tech-hero,
.tech-hero * {
  color: var(--od1n-white) !important;
  background: transparent !important;
}

.tech-hero {
  background: linear-gradient(135deg, #000000 0%, #1A1A1A 100%) !important;
}

/* Performance Metrics - WHITE TEXT on BLACK */
.performance-metrics,
.performance-metrics *,
.performance-metrics h2,
.performance-metrics p,
.performance-metrics span {
  color: var(--od1n-white) !important;
}

.performance-metrics {
  background: var(--od1n-black) !important;
}

/* Demo CTA (Contact page) - WHITE TEXT on BLACK */
.demo-cta,
.demo-cta *,
.demo-cta h2,
.demo-cta p {
  color: var(--od1n-white) !important;
}

.demo-cta {
  background: var(--od1n-black) !important;
}

/* CTA Section (Business page) - WHITE TEXT on BLACK */
.cta-section,
.cta-section *,
.cta-section h2,
.cta-section p {
  color: var(--od1n-white) !important;
}

.cta-section {
  background: var(--od1n-black) !important;
}

/* Newsletter Section - WHITE TEXT on BLACK */
.newsletter-section,
.newsletter-section *,
.newsletter-section h3,
.newsletter-section p {
  color: var(--od1n-white) !important;
}

.newsletter-section {
  background: var(--od1n-black) !important;
}

/* Ensure links in dark sections are WHITE */
.tech-hero a,
.performance-metrics a,
.demo-cta a,
.cta-section a,
.newsletter-section a {
  color: var(--od1n-white) !important;
}

/* Buttons in dark sections */
.tech-hero .btn-primary,
.demo-cta .btn-primary,
.cta-section .btn-primary,
.newsletter-section button {
  background: var(--od1n-red) !important;
  color: var(--od1n-white) !important;
}

/* Secondary buttons in dark sections */
.cta-section .btn-secondary {
  background: var(--od1n-white) !important;
  color: var(--od1n-black) !important;
  border: 2px solid var(--od1n-white) !important;
}
/* ===== FIX TEKNOLOGI HERO - HVIT SOM HJEM/OM/FOR BEDRIFTER ===== */

/* Override the dark hero on Teknologi page */
.tech-hero {
  background: linear-gradient(135deg, #FFFFFF 0%, #F5F5F5 100%) !important;
  color: var(--od1n-black) !important;
  border-bottom: 1px solid var(--od1n-gray) !important;
}

.tech-hero h1 {
  color: var(--od1n-black) !important;
}

.tech-hero .tagline {
  color: var(--od1n-dark-gray) !important;
}

/* Keep performance metrics dark (bottom section) */
.performance-metrics {
  background: var(--od1n-black) !important;
}

.performance-metrics,
.performance-metrics *,
.performance-metrics h2,
.performance-metrics p,
.performance-metrics span {
  color: var(--od1n-white) !important;
}
