/* Grifco Custom Fonts */

/* Light - 300 */
@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-LightItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* Regular - 400 */
@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Medium - 500 */
@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* SemiBold - 600 */
@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

/* Bold - 700 */
@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ExtraBold - 800 */
@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "GrifcoCustom";
  src: url("../fonts/Montserrat-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Grifco site styles */
.grifco-site {
  --brand: #891527;
  --brand-secondary: #475159;
  --brand-hover: #9c0026;
  --brand-hover-light: #ffafbc;
  --brand-focus: rgba(181, 0, 45, 0.15);
  --link: #000000;
  /* Custom font variables - Grifco uses custom font with DINPro fallback */
  --heading-font: "GrifcoCustom", "Roboto Flex", sans-serif;
  --body-font: "GrifcoCustom", "Nata Sans", sans-serif;
  --button-font: "GrifcoCustom", "Roboto", sans-serif;
  --hero-breadcrumb-home: #ffffff;
}

/* Base styles */
html,
body {
  margin: 0;
  padding: 0;
}

/* Grifco button styles with custom font */
.grifco-site .btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
  font-family: var(--button-font);
  font-weight: 500;
  color: #ffffff;
}

.button-h.btn-secondary {
  background-color: #ffffff;
  color: #1a1a1a;
  border-color: #ffffff;
}

.button-h.btn-secondary:hover {
  background-color: var(--brand);
  color: #ffffff !important;
  border-color: var(--brand) !important;
}

.grifco-site .btn-primary:hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
}

.button-h.btn-outline-white {
  background-color: transparent !important;
  color: #ffffff;
  border-color: #ffffff;
}

.button-h.btn-outline-white:hover {
  background-color: var(--brand) !important;
  color: #ffffff !important;
  border-color: var(--brand) !important;
}

/* Grifco-specific font overrides */
.grifco-site h1,
.grifco-site h2,
.grifco-site h3,
.grifco-site h4,
.grifco-site h5,
.grifco-site h6 {
  font-family: var(--heading-font);
}

.grifco-site p,
.grifco-site body,
.grifco-site .content {
  font-family: var(--body-font);
}

.grifco-site .nav-link,
.grifco-site .navbar-brand {
  font-family: var(--heading-font);
}

.grifco-site .btn,
.grifco-site button {
  font-family: var(--button-font);
}

.grifco-site a {
  color: var(--link);
  font-family: var(--body-font);
}

/* Grifco Hero Block Customizations */
.grifco-site .hero-heading {
  font-weight: 700; /* Bold for Grifco */
}

/* Grifco Popular Products Block Customizations */
.grifco-site .section-header h2 {
  font-weight: 600; /* Bold for Grifco */
}

.grifco-site .popular-products-section {
  padding-top: 0; /* Remove top padding for Grifco */
}

.grifco-site .product-image-container {
  border-radius: 0; /* Remove border radius for Grifco */
}

/* Grifco Product and Category Grid Block Customizations */
.grifco-site .pcg-card__img {
  border-radius: 0; /* Remove border radius for Grifco */
}

/* Grifco Breadcrumb Customizations */
.grifco-site .breadcrumb-current-minimal {
  color: #ffafbc;
}

.grifco-site .breadcrumb-home-minimal {
  color: #ffafbc;
}

.grifco-site .breadcrumb-current {
  color: var(--brand-hover-light) !important;
}

.grifco-site .breadcrumb-home {
  color: var(--hero-breadcrumb-home) !important;
}

.grifco-site .breadcrumb-home svg {
  color: var(--hero-breadcrumb-home) !important;
  stroke: var(--hero-breadcrumb-home) !important;
}

.grifco-site .breadcrumb-link {
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--body-font);
  font-weight: 500;
  transition: color 0.3s ease;
}

.grifco-site .breadcrumb-link:hover {
  color: var(--brand-hover-light) !important;
}

.grifco-site .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.7) !important;
}

.grifco-site .breadcrumb-separator svg {
  stroke: rgba(255, 255, 255, 0.7) !important;
}

/* Grifco Category Card Container Block Customizations */
.grifco-site .category-card {
  border-radius: 0; /* Remove border radius for Grifco */
  background: transparent; /* Transparent background for Grifco */
  box-shadow: none; /* Remove shadow for Grifco */
}

.grifco-site .category-card:hover {
  box-shadow: none; /* Remove hover shadow for Grifco */
}

.grifco-site .category-card-content {
  background-color: transparent; /* Transparent background for Grifco */
}

.grifco-site .category-card-image {
  border-radius: 0; /* Remove border radius for Grifco */
  height: 304px; /* Shorter height for Grifco */
  max-height: 304px;
}

.grifco-site .card-img {
  border-radius: 0; /* Remove border radius for Grifco */
}

.grifco-site .category-card-info {
  padding: 13.5px 0px; /* Minimal padding for Grifco */
}

.grifco-site .category-card-title {
  font-weight: 700; /* Bold titles for Grifco */
}

/* Grifco responsive adjustments */
@media (max-width: 768px) {
  .grifco-site .category-card-image {
    height: 200px;
  }
}

/* Grifco Icon Item Block Customizations */
.grifco-site .icon-item-link:hover {
  color: var(--brand); /* Use Grifco brand color on hover */
}

/* Grifco Why Choose Block Customizations */
.grifco-site .why-choose-benefit-card .icon-item-link:hover {
  color: var(--brand-hover-light) !important; /* Use Grifco brand hover color */
}

/* Grifco Customer Review Featured Block Customizations */
.grifco-site .crfb-featured-review-item {
  background: var(--brand-hover-light); /* Use Grifco brand hover light color */
  border-radius: 0; /* Remove border radius for Grifco */
}

/* Grifco CTA Banner Block Customizations */
.grifco-site .cta-banner-container {
  background-color: var(
    --brand-hover-light
  ); /* Use Grifco brand hover light color */
}

/* Grifco Navbar Customizations */
.grifco-site .navbar-brand-text {
  font-family: var(--heading-font);
  font-weight: 600 !important;
}

.grifco-site .navbar-nav-link {
  font-family: var(--heading-font);
  font-weight: 600 !important;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.grifco-site .navbar-nav-link:hover {
  color: var(--brand) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--brand) !important;
}

.grifco-site .nav-link.dropdown-toggle {
  font-family: var(--heading-font);
  font-weight: 600 !important;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.grifco-site .nav-link.dropdown-toggle:hover {
  color: var(--brand) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--brand) !important;
}

.grifco-site .desktop-only-link {
  font-family: var(--heading-font);
  font-weight: 600 !important;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.grifco-site .desktop-only-link:hover {
  color: var(--brand) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--brand) !important;
}

.grifco-site .nav-link.fw-medium {
  font-family: var(--heading-font);
  font-weight: 600 !important;
}

.grifco-site .nav-link.fw-medium:hover {
  color: var(--brand) !important;
  text-decoration: underline !important;
  text-decoration-color: var(--brand) !important;
}

.grifco-site .mobile-menu-trigger {
  font-family: var(--heading-font);
  font-weight: 600 !important;
}

.grifco-site .mobile-menu-trigger:hover {
  color: var(--brand) !important;
}

.grifco-site .mobile-submenu-header h3 {
  font-family: var(--heading-font);
  font-weight: 500;
}

.grifco-site .mobile-back-button {
  font-family: var(--button-font);
  font-weight: 500;
}

.grifco-site .mobile-cta-button {
  font-family: var(--button-font);
  font-weight: 500;
}

.grifco-site .test a {
  font-family: var(--body-font);
  font-weight: 400;
}

.grifco-site .dropdown-item {
  font-family: var(--body-font);
  font-weight: 400;
}

.grifco-site .action-icon-btn .action-text {
  font-family: var(--button-font);
  font-weight: 400;
}

/* Grifco FAQ Block Customizations */
.grifco-site .faq-header h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #1a1a1a;
}

.grifco-site .faq-description {
  font-family: var(--body-font);
  font-weight: 400;
  color: #666;
}

.grifco-site .faq-tab {
  font-family: var(--button-font);
  font-weight: 500;
  color: #666;
  border-radius: 0; /* Sharp corners for Grifco */
  transition: all 0.3s ease;
}

.grifco-site .faq-tab:hover {
  background: var(--brand-hover-light);
  color: var(--brand);
  padding-left: 32px;
}

.grifco-site .faq-tab.active {
  color: var(--brand);
  font-weight: 700;
  border-left: 4px solid var(--brand);
  padding-left: 20px;
}

.grifco-site .faq-tab.active:hover {
  background: var(--brand-hover-light);
  color: var(--brand);
  padding-left: 20px;
}

.grifco-site .faq-sidebar {
  border-right: 2px solid rgba(137, 21, 39, 0.2);
}

.grifco-site .faq-tabs {
  border-right: 1px solid rgba(137, 21, 39, 0.15);
}

.grifco-site .category-header h3 {
  font-family: var(--heading-font);
  font-weight: 600;
  color: #1a1a1a;
}

.grifco-site .category-description {
  font-family: var(--body-font);
  font-weight: 400;
  color: #666;
}

/* Grifco FAQ Mobile Responsive */
@media (max-width: 968px) {
  .grifco-site .faq-tab:hover {
    padding-left: 20px;
  }
}

/* Grifco Product Selector Container Block Customizations */
.grifco-site .ps-header {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #1a1a1a;
}

.grifco-site .ps-description {
  font-family: var(--body-font);
  font-weight: 400;
  color: #666;
}

.grifco-site .ps-progress {
  background-color: rgba(137, 21, 39, 0.1);
  border-radius: 0; /* Sharp corners for Grifco */
}

.grifco-site .ps-progress-bar {
  background-color: var(--brand);
  border-radius: 0; /* Sharp corners for Grifco */
}

.grifco-site .ps-step-label {
  font-family: var(--button-font);
  font-weight: 500;
  color: var(--brand);
}

.grifco-site .ps-question-title {
  font-family: var(--heading-font);
  font-weight: 600;
  color: #1a1a1a;
}

.grifco-site .ps-question-desc {
  font-family: var(--body-font);
  font-weight: 400;
  color: #666;
}

.grifco-site .ps-option {
  font-family: var(--button-font);
  font-weight: 500;
  border: 2px solid #e5e7eb;
  border-radius: 0; /* Sharp corners for Grifco */
  transition: all 0.3s ease;
}

.grifco-site .ps-option:hover {
  border-color: var(--brand);
  background-color: var(--brand-hover-light);
}

.grifco-site .ps-option.selected {
  border-color: var(--brand);
  background-color: var(--brand-hover-light);
}

.grifco-site .ps-option-title {
  font-family: var(--button-font);
  font-weight: 500;
  color: #1a1a1a;
}

.grifco-site .ps-option:hover .ps-option-title {
  color: var(--brand);
}

.grifco-site .ps-option.selected .ps-option-title {
  color: var(--brand);
  font-weight: 600;
}

/* Grifco Tab Container Block Customizations */
.grifco-site .product-tabs-nav .nav-link {
  font-family: var(--button-font);
  font-weight: 500;
  color: #6c757d;
  transition: all 0.3s ease;
  border-radius: 0; /* Sharp corners for Grifco */
}

.grifco-site .product-tabs-nav .nav-link:hover {
  color: var(--brand) !important;
  background: transparent;
}

.grifco-site .product-tabs-nav .nav-link.active {
  color: var(--brand) !important;
  border-bottom: 3px solid var(--brand) !important;
  font-weight: 600;
  background: transparent;
}

/* Grifco Card Pair styles */

.grifco-site .cardpair-container {
  margin-top: 78px;
}

.grifco-site .cardpair-container .section-header {
  text-align: center;
  margin-bottom: 24px;
}

.grifco-site .cardpair-container .section-header h2 {
  font-family: var(--heading-font);
  font-weight: 700;
  color: #1a1a1a;
}

.grifco-site .cardpair-container .section-description {
  text-align: center;
  margin-bottom: 32px;
  font-family: var(--body-font);
  color: #666;
}

.grifco-site .cardpair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
}

.grifco-site .cardpair__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  min-height: 380px;
  background-color: #222; /* fallback when no image */
  overflow: hidden;
}

.grifco-site .cardpair__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.grifco-site .cardpair__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.1) 60%
  );
}

.grifco-site .cardpair__content {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  font-family: var(--body-font);
  text-align: left;
}

.grifco-site .cardpair__content--static {
  position: absolute;
  inset: 0;
  color: #ffffff;
  background: #4c5053;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
}

.grifco-site .cardpair__title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  margin: 0;
  text-align: left;
}

.grifco-site .cardpair__desc {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  text-align: left;
}

.grifco-site .cardpair__content--static .cardpair__desc {
  color: #ffffff;
}

.grifco-site .cardpair__cta {
  text-align: left;
  margin-top: 16px;
}

.grifco-site .cardpair__desc--hover {
  opacity: 0;
  transition: opacity 200ms ease-in-out;
}

.grifco-site .cardpair__card:hover .cardpair__desc--hover {
  opacity: 1;
}

@media (max-width: 992px) {
  .grifco-site .cardpair {
    grid-template-columns: 1fr;
  }
  .grifco-site .cardpair__card {
    min-height: 300px;
  }
  .grifco-site .cardpair__title {
    font-size: 26px;
  }
}

/* ============================================
   GRIFCO BUTTON STYLES
   ============================================ */

/* Project Showcase Container Block - Manual Buttons */
.grifco-site .psc-button {
  padding: 10px 20px;
  border: 2px solid var(--brand);

  text-decoration: none;
  color: var(--brand);
  background: #fff;
  font-family: var(--button-font);
  font-weight: 500;
  transition: all 0.3s ease;
}

.grifco-site .psc-button:hover {
  background-color: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

/* Project Showcase Container Block - Navigation Arrows */
.grifco-site .psc-nav {
  background: white;
  border: 2px solid var(--brand);
  width: 48px;
  height: 48px;
  border-radius: 0; /* Sharp corners for Grifco */
  color: var(--brand);
  box-shadow: 0 4px 12px rgba(137, 21, 39, 0.2);
  transition: all 0.3s ease;
  top: 35%; /* Position higher */
  transform: translateY(-35%);
}

.grifco-site .psc-nav:hover {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(137, 21, 39, 0.3);
}

.grifco-site .psc-nav:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: white;
  color: #9ca3af;
  border-color: #e5e7eb;
}

/* Project Showcase Container Block - Toggle Button */
.grifco-site .psc-toggle {
  background: transparent;
  border: none;
  color: var(--brand);
  cursor: pointer;
  padding: 0;
  font-family: var(--button-font);
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.grifco-site .psc-toggle:hover {
  color: var(--brand-hover);
}

/* Project Showcase Container Block - View All Link */
.grifco-site .psc-view-all {
  text-decoration: none;
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  font-family: var(--button-font);
  font-weight: 500;
  transition: all 0.2s ease;
}

.grifco-site .psc-view-all:hover {
  color: var(--brand-hover);
  border-bottom-color: var(--brand-hover);
}

/* Project Showcase Container Block - Product Overlay */
.grifco-site .psc-product-overlay {
  border-radius: 0; /* Sharp corners for Grifco */
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(137, 21, 39, 0.1);
  border: 2px solid rgba(137, 21, 39, 0.1);
  border-bottom: 2px solid var(--brand);
}

.grifco-site .psc-product-thumb {
  border-radius: 0; /* Sharp corners for Grifco */
  background: #f8fafc;
}

.grifco-site .psc-product-name a {
  color: #25282a;
  font-family: var(--button-font);
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: border-bottom-color 0.2s ease;
}

.grifco-site .psc-product-name a:hover {
  border-bottom-color: #25282a;
}

.grifco-site .psc-product-name span {
  color: #25282a;
  font-family: var(--button-font);
  font-weight: 400;
}

/* ============================================
   GRIFCO PSC MOBILE RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
  /* PSC Navigation Arrows - Smaller on mobile */
  .grifco-site .psc-nav {
    width: 40px;
    height: 40px;
  }

  /* PSC Manual Buttons - Smaller padding and font on mobile */
  .grifco-site .psc-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  /* PSC Product Overlay - Adjust positioning for mobile */
  .grifco-site .psc-product-overlay {
    padding: 8px;
    gap: 6px;
    bottom: -40px;
  }

  /* PSC Product Thumbnail - Smaller on mobile */
  .grifco-site .psc-product-thumb {
    width: 100px;
    height: 100px;
  }

  /* PSC Product Name - Smaller text on mobile */
  .grifco-site .psc-product-name {
    font-size: 14px;
  }

  .grifco-site .psc-product-name a,
  .grifco-site .psc-product-name span {
    font-size: 14px;
  }

  /* PSC View All Link - Smaller on mobile */
  .grifco-site .psc-view-all {
    font-size: 14px;
  }

  /* PSC Toggle Button - Smaller on mobile */
  .grifco-site .psc-toggle {
    font-size: 14px;
  }
}

/* Tablet responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  /* PSC Product Overlay - Medium size for tablets */
  .grifco-site .psc-product-thumb {
    width: 130px;
    height: 130px;
  }

  /* PSC Product Overlay - Adjust positioning for tablets */
  .grifco-site .psc-product-overlay {
    bottom: -45px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  /* PSC Navigation Arrows - Even smaller for small phones */
  .grifco-site .psc-nav {
    width: 36px;
    height: 36px;
  }

  /* PSC Manual Buttons - Stack nicely on small screens */
  .grifco-site .psc-button {
    padding: 6px 12px;
    font-size: 13px;
  }

  /* PSC Product Overlay - Compact for small screens */
  .grifco-site .psc-product-overlay {
    padding: 6px;
    gap: 4px;
    bottom: -35px;
    border-bottom: 3px solid var(--brand);
  }

  /* PSC Product Thumbnail - Much smaller for small phones */
  .grifco-site .psc-product-thumb {
    width: 80px;
    height: 80px;
  }

  /* PSC Product Name - Smaller text for small phones */
  .grifco-site .psc-product-name {
    font-size: 12px;
  }

  .grifco-site .psc-product-name a,
  .grifco-site .psc-product-name span {
    font-size: 12px;
  }
}

/* ============================================
   GRIFCO ORGANIZED DROPDOWN HOVER STYLES
   ============================================ */

/* Dropdown link hover styles */
.grifco-site .dropdown-group-link {
  font-family: var(--body-font);
  font-weight: 400;
  transition: all 0.3s ease;
}

.grifco-site .dropdown-group-link:hover {
  color: var(--brand) !important;
}

.grifco-site .dropdown-link-text {
  font-family: var(--body-font);
  font-weight: 500;
}

.grifco-site .dropdown-group-link:hover .dropdown-link-text {
  color: var(--brand);
  font-weight: 600;
}

.grifco-site .dropdown-link-description {
  font-family: var(--body-font);
  font-weight: 400;
  color: #6b7280;
  transition: color 0.3s ease;
}

.grifco-site .dropdown-group-link:hover .dropdown-link-description {
  color: var(--brand-secondary);
}

/* Dropdown group title link hover */
.grifco-site .dropdown-group-title-link {
  transition: color 0.3s ease;
}

.grifco-site .dropdown-group-title-link:hover {
  color: var(--brand) !important;
  text-decoration: underline;
  text-decoration-color: var(--brand);
}

/* Dropdown footer link */
.grifco-site .dropdown-footer-link {
  font-family: var(--button-font);
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 2px solid var(--brand);
  transition: all 0.3s ease;
}

.grifco-site .dropdown-footer-link:hover {
  color: var(--brand-hover);
  border-bottom-color: var(--brand-hover);
}
