/* 1. Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. Global Font */
body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
}

/* 3. Main Layout */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700 !important; /* force bold weight */
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600 !important; /* slightly less bold than h1 */
  margin-bottom: 0.75rem;
  line-height: 1.3;
}


/* ---------------------------------------------------- */
.site-wrapper {
  transition: transform 0.3s ease-in-out;
  /* overflow-x: hidden;  <-- Only apply if body.menu-open is toggled */
}

/* The off-canvas nav (mobile) fixed on the right, hidden offscreen by default */
.offcanvas-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 250px; /* menu width */
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.2);
  padding: 2rem 1rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  z-index: 9999; /* above everything else */
}

.offcanvas-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.offcanvas-nav li {
  margin-bottom: 1rem;
}
.offcanvas-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

/* If you have submenus on mobile, nested inside .dropdown-menu */
.offcanvas-nav .dropdown-menu {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

/* When body.menu-open is toggled, push site left and reveal nav */
body.menu-open .site-wrapper {
  overflow-x: hidden;  /* only while the menu is open */
  transform: translateX(-250px);
}
body.menu-open .offcanvas-nav {
  transform: translateX(0px);
}

/* ---------------------------------------------------- */
/* HEADER (fetched partial) - "logo + desktop nav" */
/* ---------------------------------------------------- */

.site-header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}
.header-wrapper {
  position: relative;
  z-index: 2000;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  max-height: 26px;
}
@media (max-width: 768px) {
  .header-logo img {
    max-height: 20px;
  }
}

/* Desktop Nav */
.desktop-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; /* horizontal on desktop */
  gap: 1rem;
}

/* Nav links for desktop nav */
.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  padding: 0.5rem 0;
}
.desktop-nav a:hover {
  text-decoration: underline;
}

/* Submenus on desktop nav (hover) */
.desktop-nav .dropdown {
  position: relative;
}
.desktop-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  min-width: 150px;
  padding: 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 9999;
}
.desktop-nav .dropdown-menu li {
  display: block;
}
.desktop-nav .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}
.desktop-nav .dropdown-menu a:hover {
  background-color: #f2f2f2;
}
.desktop-nav .dropdown:hover .dropdown-menu {
  display: block;
}

/* Hamburger button (hidden on desktop if you want) */
.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  margin-left: auto;
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none; 
  }
}

/* ---------------------- */
/* ACCORDION (Digitalproduksjon) */
/* ---------------------- */

.digital-produksjon {
  margin-bottom: 2rem;
}
.digital-produksjon h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.accordion-item {
  background-color: #fff;
  margin-bottom: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.accordion-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  background-color: #e9e9e9;
  color: #333;
  padding: 1rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  outline: none;
  text-align: left;
}
.accordion-title:hover {
  background-color: #ddd;
}
.price {
  color: #005396;
  font-weight: bold;
}
.accordion-content {
  display: none; 
  padding: 1rem;
  background-color: #fff;
  font-size: 0.95rem;
  line-height: 1.5;
}
.accordion-item.active .accordion-title {
  background-color: #ccc;
}
.accordion-item.active .accordion-content {
  display: block;
}

/* ---------------------- */
/* PRINTPRODUKSJON SECTION */
/* ---------------------- */
.print-produksjon {
  margin-bottom: 2rem;
  background-color: #fff;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.print-produksjon h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.print-price-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
}
.print-price-list li {
  margin-bottom: 0.5rem;
}
.print-produksjon a {
  color: #0066cc;
  text-decoration: underline;
}
.print-produksjon a:hover {
  text-decoration: none;
}
.print-produksjon h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.print-produksjon p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ---------------------- */
/* FRISTER TABLE */
/* ---------------------- */
.frister {
  margin-bottom: 2rem;
}
.frister h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.frister p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.deadline-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9f9f9;
  margin-top: 1rem;
}
.deadline-table th,
.deadline-table td {
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}
.deadline-table th {
  background-color: #eee;
  font-weight: bold;
}

/* ---------------------- */
/* KONTAKTINFORMASJON */
/* ---------------------- */
.kontaktinformasjon {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.kontaktinformasjon h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.kontaktinformasjon p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.kontaktinformasjon a {
  color: #0066cc;
  text-decoration: underline;
}
.kontakt-person {
  margin-bottom: 1.5rem;
}
.kontakt-person h3 {
  margin-bottom: 0.25rem;
  font-size: 1.2rem;
}

/* ---------------------- */
/* FOOTER (fetched partial) */
/* ---------------------- */
.site-footer {
  width: 100%;
  background-color: #f7f7f7;
  margin-top: 2rem;
  border-top: 1px solid #ddd;
}
.footer-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  font-size: 0.95rem;
  color: #333;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.footer-col {
  flex: 1 1 150px;
}
.footer-addresses h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}
.footer-addresses p {
  margin-bottom: 1rem;
  line-height: 1.4;
}
.footer-links h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.3rem;
}
.footer-links a {
  text-decoration: none;
  color: #333;
}
.footer-links a:hover {
  text-decoration: underline;
}
.footer-bottom {
  text-align: right;
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
  padding-top: 1.0rem;
  margin-top: 1.0rem;
}

@media (max-width: 768px) {
  .footer-bottom  {
    font-size: 0.65rem;
  }
}

.footer-logo img {
  max-height: 40px;
  margin-bottom: 0.5rem;
}

/* FRONT PAGE STYLES */

/* 1. Overall container for the front page */
.front-page-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* 2. Hero Section */
.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 3rem;
  gap: 2rem;
}
.hero-text {
  flex: 1 1 400px;
}
.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero-text p {
  line-height: 1.5;
  max-width: 600px;
}
.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  max-width: 100%;
  height: auto;
}

/* 3. Bestilling Section */
.bestilling-section {
  text-align: center;
  margin-bottom: 3rem;
}
.bestilling-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.bestilling-section p {
  max-width: 600px;
  margin: 0 auto 1rem auto;
  line-height: 1.6;
}

/* 4. Split Blocks (Production / Create) */
.split-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: stretch; /* ensure uniform heights */
}
.split-block {
  flex: 1 1 300px;
  padding: 2rem;
  color: #fff;
  border-radius: 6px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  cursor: pointer;
}
.production-block {
  background-color: #005396;
}
.create-block {
  background-color: #ff5a00;
}
.split-block h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.split-block p {
  flex: 1 1 auto;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.cta-button {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  align-self: flex-start;
  margin-top: auto;
}
.cta-button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}
.digital-block {
  background-color: #005396;
}
.kreativ-block {
  background-color: #e57c00;
}
.print-block {
  background-color: #3f3f3f;
}

/* Verktoykasse Hero Section */
.verktoykasse-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}
.verktoykasse-hero .hero-text {
  flex: 1 1 400px;
}
.verktoykasse-hero .hero-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.verktoykasse-hero .hero-text p {
  line-height: 1.5;
  max-width: 600px;
}
.verktoykasse-hero .hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}
.verktoykasse-hero .hero-image img {
  max-width: 100%;
  height: auto;
}

/* Verktoykasse Grid */
.verktoykasse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}
/* Scale */
.tool-item {
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.tool-item:hover {
  transform: scale(1.15);
}


.tool-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
}
.tool-item img {
  width: 60px;
  height: auto;
  margin-bottom: 0.5rem;
}
.tool-item p {
  font-size: 0.95rem;
  line-height: 1.3;
  max-width: 100px;
}

/* Bottom note or 'footer' for the page content */
.verktoykasse-footer {
  text-align: center;
  margin-bottom: 2rem;
}
.verktoykasse-footer p {
  font-size: 1rem;
  line-height: 1.5;
}

/* 6) Responsive Mobile Nav */
@media (max-width: 768px) {

  /* Show hamburger on mobile, hide desktop nav style */
  .menu-toggle {
    display: block;
  }

  /* Hide the UL by default on mobile; stack items vertically */
  .main-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    background-color: #fff;
    margin: 0;
    padding: 1rem;
    border: none;
    width: 100%; /* full width below header */
  }

  /* Show the UL when .main-nav has .active */
  .main-nav.active ul {
    display: flex; /* or block for vertical layout */
  }

  /* Make the nav container full width if needed */
  .main-nav {
    width: auto;
    position: relative;
  }

  /* Vertical spacing for each item */
  .main-nav ul li {
    margin: 0.5rem 0;
  }

  /* Submenus always open as nested lists on mobile */
  .dropdown-menu {
    position: static;
    display: block;
    margin-left: 0;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0;
    background: none;
  }
  /* Remove hover-based logic on mobile */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* ---------------------------------------------------- */
/* CONTACT PAGE EXTRAS (Kontakt Create / Production) */
/* ---------------------------------------------------- */

/* Hero variant for contact page if needed */
.kontakt-hero {
  margin-bottom: 2rem; /* optional spacing */
}

/* Simple 2-col contact layout for "Kontakt Create" or similar */
.kontakt-create-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center; /* if you want them vertically centered */
}
.kontakt-col.left-col {
  flex: 1 1 300px;
}
.kontakt-col.left-col img {
  max-width: 100%;
  height: auto;
  display: block;
}
.kontakt-col.right-col {
  flex: 1 1 300px;
}
.kontakt-col.right-col h2,
.kontakt-col.right-col h3 {
  margin-bottom: 1rem;
  color: #333;
}
.kontakt-col.right-col p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.kontakt-col.right-col a {
  color: #0066cc;
  text-decoration: underline;
}
.kontakt-col.right-col a:hover {
  text-decoration: none;
}
@media (max-width: 768px) {
  .kontakt-create-info {
    flex-direction: column;
  }
}

/* "Kontakt Production" with 2x2 contact grid */
.kontakt-produktion-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: flex-start; /* top-align columns */
}
.kontakt-col.left-col {
  text-align: center; /* horizontally center everything in this column */
}

.kontakt-col.left-col img.production-circle {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto; /* center the image, add bottom margin */
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.page-produktion .kontakt-produktion-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7rem;
  margin-bottom: 3rem;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto 3rem auto; /* center horizontally */
}

/* Similarly, nest other relevant rules */
.page-produktion .kontakt-col.left-col {
  text-align: center;
  flex: 0 0 auto;
}
.page-produktion .kontakt-col.right-col {
  flex: 0 0 auto;
}
/* If you have a 2×2 contact grid in the right col */
.page-produktion .contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 1rem;
}


.contact-item h3 {
  margin-bottom: 0.5rem;
}
.contact-item p {
  line-height: 1.4;
  margin-bottom: 1rem;
}
.contact-item a {
  color: #0066cc;
  text-decoration: underline;
}
.contact-item a:hover {
  text-decoration: none;
}
@media (max-width: 768px) {
  .kontakt-produktion-info {
    flex-direction: column;
  }
  .contact-grid {
    grid-template-columns: 1fr; /* single column if you prefer on mobile */
  }
}

/* About / Team Hero variant (optional) */
.about-hero {
  margin-bottom: 2rem; /* optional spacing */
}

/* Team Grid: circles with coworker info */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  justify-items: center; 
  align-items: start;
}



/* Medium screens: up to 768px => 2 columns */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Very small screens: up to 480px => single column */
@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* stack everyone in one column */
  }
}

/* Each coworker item */
.team-member {
  text-align: center;
  max-width: 220px; /* matches minmax(220px, 1fr) */
}

/* Circle images */
.team-member img {
  width: 140px; /* or adjust to your preference */
  height: 140px;
  object-fit: cover;
  border-radius: 50%; /* circle shape */
  margin-bottom: 1rem;
}

/* Name and role styling */
.team-member h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.team-member p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.team-member a {
  color: #0066cc;
  text-decoration: underline;
}

.team-member a:hover {
  text-decoration: none;
}

/* Responsive: on smaller screens, narrower columns or single column if needed */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr 1fr; /* or 1fr if you want single column */
  }
}


/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  justify-items: center; /* centers each card horizontally in its column */
}

/* Each card (the "item" in the grid) */
.showcase-item {
  display: grid;
  grid-template-rows: 1fr auto; /* 1fr for the image area, auto for the text */
  align-items: center;          /* vertical alignment within each row */
  justify-items: center;        /* center horizontally */

  height: 500px;                /* fixed or min-height to allow vertical centering */
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  padding: 1rem;
  text-align: center;
}

/* Image styling inside each card */
.showcase-item img {
  max-width: 100%;
  max-height: 100%; /* prevents overflow if the image is large */
  object-fit: contain;
  display: block;
}

/* Text in the bottom row */
.showcase-item .item-text {
  margin-top: 0.5rem;
}

.showcase-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Base popup container */
.popup-content {
  position: relative;
  background: #fff;
  border-radius: 6px;
  overflow: hidden; /* hide overflow if content is bigger than container */
  text-align: center;
  /* You can keep a max-width if you want a universal limit:
     max-width: 1000px; */
}

/* The close button */
.popup-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
}
.popup-close:hover {
  color: #005396;
}

/* Force iframe / img to fill container */
.popup-content iframe,
.popup-content img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* By default, show everything. If you want to hide small ads on desktop, you can do it similarly. */

/* Hide big ads on screens under 768px */
@media (max-width: 1024px) {
  .big-ad {
    display: none !important; /* ensure it overrides other rules */
  }
}


