/* ScreenHouse Static Site Styles */

/* ── Theme Variables ── */
:root {
  /* Brand palette */
  --sh-primary: #39b54a;
  --sh-primary-light: #8bda81;
  --sh-secondary: #192433;
  --sh-accent: #28a745;
  --sh-dark: #00354b;
  --sh-footer-bg: #1a1a2e;
  --sh-mega-accent: #0d6efd;

  /* Neutral palette */
  --sh-text: #192433;
  --sh-text-muted: #aaa;
  --sh-border: #dee2e6;
  --sh-bg-light: #f8f9fa;
  --sh-bg-muted: #efefef;

  /* Overlays */
  --sh-overlay: rgba(0, 0, 0, 0.5);
  --sh-overlay-dark: rgba(1, 15, 28, 0.5);

  /* Typography */
  --sh-font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Bootstrap overrides — maps theme colors to Bootstrap utilities */
  --bs-primary: var(--sh-primary);
  --bs-primary-rgb: 57, 181, 74;
  --bs-success: var(--sh-accent);
  --bs-success-rgb: 40, 167, 69;
  --bs-body-font-family: var(--sh-font-family);
  --bs-body-color: var(--sh-text);
  --bs-border-color: var(--sh-border);
  --bs-light: var(--sh-bg-light);
  --bs-light-rgb: 248, 249, 250;
  --bs-link-color: var(--sh-primary);
  --bs-link-hover-color: var(--sh-accent);
}

/* Base */
body {
  font-family: var(--sh-font-family);
  overflow-x: hidden;
}

/* Sticky Header */
.tp-header-sticky.header-sticky {
  position: fixed !important;
  left: 0;
  margin: auto;
  top: 0;
  width: 100%;
  z-index: 99;
  animation: 300ms ease-in-out 0s normal none 1 running fadeInDown;
  box-shadow: 0px 2px 6px rgba(1, 15, 28, 0.16);
  background: #fff;
}

@keyframes fadeInDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mega Menu */
.mega-dropdown {
  position: static;
}

.mega-menu {
  width: 100%;
  left: 0;
  right: 0;
  border: none;
  border-top: 1px solid var(--sh-border);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 0;
}

/* Hover to open dropdown (desktop only) */
@media (min-width: 768px) {
  .mega-dropdown:hover > .mega-menu {
    display: block;
  }

  .mega-dropdown > .nav-link {
    cursor: pointer;
  }
}

.mega-menu-title {
  font-size: 0.95rem;
  border-bottom: 2px solid var(--sh-mega-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.mega-menu-title:hover {
  color: var(--sh-mega-accent) !important;
}

.mega-menu ul li a:hover {
  color: var(--sh-mega-accent) !important;
}

/* Desktop header layout */
.header-desktop {
  min-height: 50px;
}

.header-logo {
  margin-right: 0.5rem;
}

/* Navigation */
.main-nav {
  min-width: 0;
  margin-left: 2em;
}

.main-nav .nav {
  flex-wrap: nowrap;
}

.main-nav .nav-link {
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.9rem 0.75rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--sh-text);
  transition: color 0.2s, background-color 0.2s;
}

.main-nav .mega-dropdown {
  border-left: 1px solid var(--sh-border);
}

/* Right border on the last visible item */
.main-nav .mega-dropdown:last-of-type {
  border-right: 1px solid var(--sh-border);
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
  color: var(--sh-primary);
  background-color: var(--sh-bg-light);
}

/* Header icons */
.header-icons {
  margin-left: auto;
  gap: 0.25rem;
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--sh-text);
  text-decoration: none;
  transition: color 0.2s;
}

.header-icon:hover {
  color: var(--sh-primary);
}

/* Progressive nav item hiding at tighter widths */
/* nav-hide-1 = last item, nav-hide-2 = second to last, nav-hide-3 = third to last */
@media (min-width: 768px) and (max-width: 991px) {
  .main-nav .nav-link {
    font-size: 0.78rem;
    padding: 0.85rem 0.5rem;
  }
  .main-nav {
    margin-left: 1em;
  }
}

@media (min-width: 768px) and (max-width: 899px) {
  .main-nav .nav-hide-1 {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 819px) {
  .main-nav .nav-hide-2 {
    display: none;
  }
}

/* Dropdown caret removal */
.main-nav .nav-link.dropdown-toggle::after {
  display: none;
}

/* Hero sections */
.hero {
  min-height: 300px;
}

.hero-default {
  position: relative;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 0, 0, 1);
  margin-bottom: 0;
  line-height: 3.5rem;
  color: #fff;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
    line-height: 2.5rem;
  }
}

/* Breadcrumb/Hero overlay */
.breadcrumb__overlay {
  position: relative;
}

.breadcrumb__overlay::after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--sh-overlay-dark);
  z-index: 0;
}

.breadcrumb__title {
  font-weight: 500;
  font-size: 44px;
  line-height: 1;
  margin-bottom: 6px;
  color: #fff;
}

@media (max-width: 767px) {
  .breadcrumb__title {
    font-size: 32px;
  }
}

/* Hero Fullscreen */
.hero-fullscreen {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Hero Search */
.hero-search {
  background-color: var(--sh-bg-light);
}

/* Z-index utility */
.z-index-1 {
  z-index: 1;
}

/* Include background utility */
.include-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Content areas */
.content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.content h2 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content ul, .content ol {
  margin-bottom: 1rem;
}

/* Cards */
.card {
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Grid sections */
.catalog-grid .card-img-top,
.category-grid .card-img-top,
.product-grid .card-img-top,
.custom-grid .card-img-top {
  object-fit: cover;
}

/* Gallery */
.sh-gallery__main {
  background: var(--sh-bg-light);
  border-radius: 8px;
  overflow: hidden;
}

.sh-gallery__main .splide__slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-gallery__main-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

.sh-gallery__link {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.sh-gallery__zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sh-overlay);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.sh-gallery__link:hover .sh-gallery__zoom {
  opacity: 1;
}

.sh-gallery__thumbs {
  margin-top: 12px;
}

.sh-gallery__thumbs .splide__slide {
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sh-gallery__thumbs .splide__slide:hover {
  opacity: 0.9;
}

.sh-gallery__thumbs .splide__slide.is-active {
  border-color: var(--sh-accent);
  opacity: 1;
}

.sh-gallery__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-gallery__thumbs .splide__arrow {
  background: rgba(0, 0, 0, 0.6);
  width: 28px;
  height: 28px;
  opacity: 0.7;
}

.sh-gallery__thumbs .splide__arrow:hover {
  opacity: 1;
}

.sh-gallery__thumbs .splide__arrow svg {
  fill: #fff;
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .sh-gallery__main-img {
    max-height: 400px;
  }
}

/* About Section - copied from original Nuxt project */
.tp-about-area {
  padding-top: 0;
}

.pt-95 {
  padding-top: 0;
}

#about-screenhouse #about-nav {
  display: none
}

#about-screenhouse .static {
  position: absolute;
  z-index: 2;
  width: 100%;
  top: 50%;
  left: 50%;
  text-align: center;
  opacity: 1;
  transition: all .25s ease-in-out;
  transform: translate(-50%, calc(-50% - .5px))
}

@media (min-width:1200px) {
  #about-screenhouse .static {
    width: 50%;
    left: auto;
    right: 0;
    transform: translate(0, calc(-50% - .5px))
  }
}

#about-screenhouse .static span {
  display: block
}

#about-screenhouse #about-nav .inner {
  justify-content: center;
  display: flex;
  flex-direction: column;
  position: absolute;
  padding: 1em;
  background: rgba(0, 0, 0, 0.7);
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9;
}

#about-screenhouse #about-nav .inner p,
#about-screenhouse #about-nav .inner h3 {
  color: #fff;
}

#about-screenhouse .subtitle {
  color: #fff;
  font-size: 1.1em;
  font-weight: 700;
  padding: 0 2em
}

@media (min-width:767px) {
  #about-screenhouse .subtitle {
    padding: 0 10em
  }
}

#about-screenhouse .static .btn {
  display: table;
  margin: 30px auto 0
}

#about-screenhouse .static.hidden {
  opacity: 0;
  transition-delay: .25s
}

@media (min-width:1200px) {
  #about-screenhouse #about-nav {
    display: block;
    height: 450px;
    position: absolute;
    width: 50%;
    left: 0;
    overflow: hidden
  }
}

#about-screenhouse {
  position: relative;
  overflow: hidden;
  height: 470px
}

@media (min-width:375px) {
  #about-screenhouse {
    height: 400px
  }
}

@media (min-width:768px) {
  #about-screenhouse {
    height: 300px
  }
}

@media (min-width:1200px) {
  #about-screenhouse,
  #about-screenhouse #about-nav {
    height: 385px
  }
}

@media (min-width:1400px) {
  #about-screenhouse,
  #about-screenhouse #about-nav {
    height: 450px
  }
}

#about-screenhouse #about-nav .slat {
  cursor: pointer;
  position: relative;
  z-index: 5;
  top: 0;
  height: 100%;
  width: 33.333%;
  display: block;
  overflow: hidden;
  float: left;
  border-right: 2px solid #000
}

#about-screenhouse #about-nav .slat .feature {
  position: absolute;
  z-index: 5;
  width: 100%;
  top: 50%;
  left: 50%;
  font-size: 1.5rem;
  line-height: 1.15;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, .75);
  transform: translate(-50%, -25px)
}

@media (min-width:991px) {
  #about-screenhouse #about-nav .slat .feature {
    font-size: 2rem;
    line-height: 1.15
  }
}

#about-screenhouse #about-nav .slat .feature span {
  display: block
}

#about-screenhouse #about-nav .slat .image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  background-color: var(--sh-dark);
  z-index: 4;
  top: 0;
  right: -170%;
  height: 110%;
  width: 350%;
  opacity: .75;
  transition: all .2s ease-in-out;
  background-blend-mode: luminosity
}

#about-screenhouse #about-nav .slat.active .image,
#about-screenhouse #about-nav .slat:hover .image {
  opacity: 0.5;
  background-color: var(--sh-primary-light)
}

#about-screenhouse #about-nav .slat .color {
  background-color: var(--sh-dark);
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  transition: all .2s ease-in-out
}

#about-screenhouse #about-nav .slat .color img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about-screenhouse #about-nav .slat.active .color,
#about-screenhouse #about-nav .slat:hover .color {
  background-color: #cfc
}

#about-screenhouse #about-nav .slat.toggled .inner {
  display: flex;
}

#about-screenhouse #about-nav .slat .inner {
  display: none;
}

#about-screenhouse #about-nav .slat.toggled .feature {
  display: none;
}

#about-screenhouse #about-nav .slat .inner a:not(.btn) {
  color: var(--sh-primary-light);
}

#about-screenhouse .bg,
#about-screenhouse .hero-bg {
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}

#about-screenhouse-mobile {
  position: relative;
  background-color: var(--sh-dark);
  display: flex;
  align-items: center
}

#about-screenhouse-mobile span {
  flex: 1;
  padding: 20px;
  text-align: center;
  color: #fff;
  border-right: 1px solid #777;
  font-weight: 700
}

#about-screenhouse-mobile span:last-child {
  border-right: none;
}

@media (min-width:1200px) {
  #about-screenhouse-mobile {
    display: none
  }
}

/* Footer */
.bg-sh-dark {
  background-color: var(--sh-footer-bg);
  color: #fff;
}

.tp-footer-widget-title {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sh-accent);
}

.tp-footer-social {
  display: flex;
  gap: 15px;
}

.tp-footer-social .social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: background 0.3s ease;
}

.tp-footer-social .social:hover {
  background: var(--sh-accent);
}

.tp-footer-social .social svg {
  width: 18px;
  height: 18px;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--sh-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--sh-accent);
  text-decoration: none;
}

.payment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.payment-links .p-icon {
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
}

footer a {
  color: var(--sh-primary-light);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 991px) {
  #about-nav .slat {
    min-height: 120px;
  }

  .static.hero {
    min-height: 300px;
  }
}

/* Content Page Blocks Grid */
.content-block-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 4px;
}

.content-block-item {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  cursor: pointer;
}

.content-block-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.content-block-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--sh-overlay);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.content-block-item:hover::before {
  background-color: rgba(0, 0, 0, 0);
}

.content-block-item a {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.content-block-item a span,
.content-block-item a small {
  display: block;
}

.content-block-item h2 {
  display: block;
  font-size: 2rem;
  width: 100%;
  color: #fff;
  font-weight: 900;
  position: relative;
  z-index: 1;
  margin: 0 0 -10px 0;
  text-shadow: 0 0 10px #000;
  line-height: 1.2em;
}

.content-block-item small {
  font-size: 80%;
  font-weight: 300;
  line-height: 1rem;
}

/* First row with 3 columns */
.content-block-container > .content-block-item:nth-child(-n+3) {
  grid-column: span 4;
  height: 300px;
}

/* Second row with 4 columns */
.content-block-container > .content-block-item:nth-child(n+4) {
  grid-column: span 3;
  height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .content-block-container > .content-block-item {
    grid-column: span 12 !important;
  }
  .content-block-container > .content-block-item:nth-child(-n+3) {
    height: 200px;
  }
}

/* Content Container Sizing */
/* These modify Bootstrap's .container max-width on larger screens */
@media (min-width: 1200px) {
  .content-container-sm {
    max-width: 720px !important;
  }

  .content-container-md {
    max-width: 960px !important;
  }

  .content-container-lg {
    max-width: 1140px !important;
  }
}

/* Slanted Header Styles */
@media (min-width: 767px) {
  .slanted {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 42px;
    margin-bottom: 1em;
  }

  /* Dark left half — full-width background layer */
  .slanted::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--sh-secondary);
    z-index: 0;
  }

  /* Light right half — skewed overlay */
  .slanted::after {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: 48%;
    right: -8px;
    background: var(--sh-bg-muted);
    transform: skewX(-25deg);
    border-left: 10px solid #fff;
    z-index: 1;
  }

  .slanted h2 {
    position: relative;
    z-index: 2;
    padding-left: 1rem;
  }

  .btn-slanted {
    position: relative;
    z-index: 2;
    display: inline-block;
    padding: 8px 16px !important;
    color: white;
    background: linear-gradient(to right, var(--sh-mega-accent), var(--sh-dark));
    border: none;
    border-radius: 4px;
    font-weight: lighter;
    text-transform: uppercase;
    margin-right: -8px;
    min-width: 108px;
    text-decoration: none;
    top:-1px;
  }

  .btn-slanted:hover {
    color: white;
    background: var(--sh-mega-accent);
  }

  .slanted.green {
    background-image: linear-gradient(to right, var(--sh-accent) 53%, transparent 50%);
  }

  .slanted.green h2 {
    color: #fff;
  }

  .slanted.green::before {
    background: var(--sh-accent);
  }
}

@media (max-width: 767px) {
  .slanted::before,
  .slanted::after {
    display: none;
  }

  .slanted {
    margin-left: 0;
    background-image: none;
  }

  .slanted h2 {
    background: var(--sh-bg-muted);
    padding: 0.35em;
    flex-grow: 1;
    margin-right: 1em;
    border-radius: 6px;
  }

  .slanted .text-white {
    color: var(--sh-secondary) !important;
  }
}

@media (max-width: 500px) {
  .slanted {
    display: block !important;
    height: unset;
  }

  .slanted .btn {
    margin: 0.5em 0 !important;
    position: relative;
  }
}
