/* ==========================================================================
   Brødmiks WordPress Theme - Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Site Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-bg-cream);
  border-bottom: 1px solid rgba(224, 212, 192, 0.6);
  position: relative;
  z-index: 1000;
  padding: 12px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo-link {
  display: inline-block;
  line-height: 1;
}

.site-logo-img {
  height: 48px !important;
  width: auto;
  object-fit: contain;
}

.site-title {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-text-dark);
  margin: 0;
  line-height: 1;
}

/* Primary Desktop Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  padding: 6px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-red-brick);
  transition: width 0.2s ease;
}

.nav-menu a:hover::after,
.nav-menu li.current-menu-item > a::after {
  width: 100%;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
  color: var(--color-red-brick);
}

/* Header Actions & Cart */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #6b432a;
  color: var(--color-text-dark);
  position: relative;
  transition: var(--transition-smooth);
}

.cart-icon-link:hover {
  border-color: var(--color-red-brick);
  background-color: rgba(118, 34, 20, 0.06);
  color: var(--color-red-brick);
  transform: scale(1.05);
}

.cart-icon-link svg,
.cart-icon-link img {
  width: 22px;
  height: 22px;
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--color-red-brick);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  text-align: center;
  border-radius: 50%;
  padding: 0 3px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-text-dark);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* --------------------------------------------------------------------------
   2. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  background-color: var(--color-bg-cream);
  padding: 50px 0 60px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-content {
  padding-right: 15px;
}

.hero-headline {
  font-size: 2.45rem;
  line-height: 1.15;
  color: var(--color-text-dark);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.flourish-divider {
  margin: 14px 0 16px 0;
}

.flourish-divider img,
.flourish-divider svg {
  display: block;
  max-width: 180px;
  height: auto;
}

.hero-subhead {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--color-red-brick);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.68;
  margin-bottom: 26px;
}

.hero-description p {
  margin-bottom: 14px;
}

.hero-description p:last-child {
  margin-bottom: 0;
}

.hero-cta-wrap {
  margin-top: 24px;
}

/* Hero Media & Floating Seal Badge */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: visible;
}

.hero-main-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(45, 28, 20, 0.12);
  display: block;
  object-fit: cover;
}

.hero-seal-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 160px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 6px 16px rgba(35, 20, 12, 0.28));
  transition: transform 0.3s ease;
}

.hero-seal-badge:hover {
  transform: rotate(-2deg) scale(1.03);
}

/* --------------------------------------------------------------------------
   3. Key Highlights / Features Ribbon (4 items)
   -------------------------------------------------------------------------- */
.features-ribbon {
  background-color: var(--color-bg-ribbon);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: 34px 0 38px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.feature-card {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}

.feature-card:hover .feature-icon-wrap {
  transform: translateY(-3px) scale(1.06);
}

.feature-icon-wrap img,
.feature-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.feature-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.48;
  max-width: 220px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   4. Products Section ("VÅRE BRØDMIXER")
   -------------------------------------------------------------------------- */
.products-section {
  background-color: var(--color-bg-page);
  padding: 60px 0 75px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-title-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-ornament {
  width: 36px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.8;
}

.section-title {
  font-size: 1.95rem;
  color: var(--color-red-brick);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-card);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(45, 28, 20, 0.12);
  border-color: #cfbda2;
}

.product-thumb-frame {
  background-color: #1a110a;
  position: relative;
  overflow: hidden;
  height: 220px;
}

.product-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb-frame img {
  transform: scale(1.04);
}

.product-info {
  padding: 22px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  align-items: center;
}

.product-title {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-text-dark);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-btn {
  width: 100%;
  max-width: 180px;
  padding: 9px 16px;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   5. Storage Advice Banner ("HOLD BARE FERSKT")
   -------------------------------------------------------------------------- */
.storage-banner {
  background: #1e130c linear-gradient(180deg, #241710 0%, #170d08 100%);
  color: var(--color-text-light);
  padding: 38px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.storage-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.storage-icon-wrap {
  width: 52px;
  height: 78px;
  flex-shrink: 0;
}

.storage-icon-wrap img,
.storage-icon-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
}

.storage-content {
  padding-right: 15px;
}

.storage-title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-gold);
  margin-bottom: 8px;
}

.storage-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.55;
}

.storage-text p {
  margin-bottom: 6px;
}

.storage-text p:last-child {
  margin-bottom: 0;
}

.storage-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.storage-image-wrap img {
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  max-height: 130px;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #160e09;
  color: #a89586;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px 0 25px 0;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.footer-widget-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-gold);
  margin-bottom: 16px;
}

.footer-widget p {
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-widget ul {
  padding: 0;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul li a {
  color: #a89586;
}

.footer-widget ul li a:hover {
  color: #fff;
  padding-left: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #877467;
}

.footer-bottom a {
  color: #cbb49e;
}

/* --------------------------------------------------------------------------
   7. Standard Post & Page Templates
   -------------------------------------------------------------------------- */
.page-header-banner {
  background-color: var(--color-bg-ribbon);
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 40px;
}

.page-title {
  font-size: 2.2rem;
  color: var(--color-text-dark);
}

.site-content {
  padding: 40px 0 60px 0;
  min-height: 50vh;
}

.entry-content {
  line-height: 1.8;
  font-size: 1rem;
}

.entry-content p {
  margin-bottom: 1.5em;
}

.entry-content h2, .entry-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.8em;
}

/* --------------------------------------------------------------------------
   8. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-headline {
    font-size: 2.1rem;
  }

  .hero-seal-badge {
    width: 140px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .storage-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .storage-icon-wrap {
    margin: 0 auto;
  }

  .storage-image-wrap {
    justify-content: center;
  }

  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg-cream);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 2px solid var(--color-red-brick);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  }

  .nav-menu.is-active {
    display: flex;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-headline {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-widgets-grid {
    grid-template-columns: 1fr;
  }

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

/* --------------------------------------------------------------------------
   9. Elementor Builder Integration & Normalization
   -------------------------------------------------------------------------- */
.brodmik-elementor-full-width,
.brodmik-elementor-front-page {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.brodmik-elementor-canvas-body {
  background-color: var(--color-bg-cream);
}

.brodmik-elementor-canvas-wrap {
  width: 100%;
  min-height: 100vh;
}

/* Ensure Elementor stretched sections span 100% cleanly */
.elementor-section.elementor-section-stretched {
  max-width: 100% !important;
  left: 0 !important;
}

/* Ensure theme typography variables cascade cleanly into Elementor headings */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
  font-family: var(--font-serif-heading);
  letter-spacing: 0.05em;
}

/* Elementor button styling harmonization */
.elementor-button {
  font-family: var(--font-sans);
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
}
