/* The homepage only needs three local font subsets. Defining their full weight
   range here replaces a separate stylesheet containing repeated rules. */
@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/SLXVc1nY6HkvangtZmpQdkhzfH5lkSscQyyS4J0.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: "Cairo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/SLXVc1nY6HkvangtZmpQdkhzfH5lkSscRiyS.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/QGYvz_MVcBeNP4NJtEtq.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

/*
 * GNSCO final quality layer — 2026-08-08
 * Loaded last to resolve cross-page responsive, contrast and theme conflicts.
 */

:root {
  --gnsco-header-breakpoint: 1120px;
}

/* Keep the brand visible and highlight the section the visitor is viewing. */
.logo,
header .logo {
  display: inline-flex !important;
  flex: 0 0 auto;
  min-width: 112px;
}

.nav-links a.active,
.nav-links a[aria-current="page"],
.nav-links a.active-tab {
  background: color-mix(in srgb, var(--primary, #056839) 11%, transparent);
  border-color: color-mix(in srgb, var(--primary, #056839) 24%, transparent);
  color: var(--primary, #056839) !important;
}

.drawer a.active,
.drawer a[aria-current="page"] {
  background: color-mix(in srgb, var(--primary, #056839) 14%, var(--white, #fff));
  border-color: var(--primary, #056839);
  color: var(--primary, #056839) !important;
}

/* The badge text was being overridden to white after the home component CSS. */
#sec-home .hero .vision-badge,
#sec-home .hero .vision-badge span {
  color: #056839 !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #056839 !important;
}

#sec-home .hero .vision-badge {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(5, 104, 57, 0.32) !important;
  box-shadow: 0 8px 24px rgba(16, 37, 59, 0.08);
}

/* Preserve each hub's real image when the generic dark-theme rule is active. */
html[data-theme="dark"] main[data-hub-division] .hub-hero {
  background:
    linear-gradient(rgba(5, 18, 12, 0.88), rgba(5, 18, 12, 0.78)),
    var(--hub-image) center / cover no-repeat !important;
}

html[data-theme="dark"] main[data-hub-division="supplements"] .hub-hero {
  background:
    linear-gradient(rgba(31, 25, 8, 0.9), rgba(31, 25, 8, 0.8)),
    var(--hub-image) center / cover no-repeat !important;
}

html[data-theme="dark"] main[data-hub-division="it"] .hub-hero {
  background:
    linear-gradient(rgba(4, 20, 38, 0.9), rgba(4, 20, 38, 0.8)),
    var(--hub-image) center / cover no-repeat !important;
}

html[data-theme="dark"] main[data-hub-division] .hub-hero h1,
html[data-theme="dark"] main[data-hub-division] .hub-hero h2,
html[data-theme="dark"] main[data-hub-division] .hub-hero p,
html[data-theme="dark"] main[data-hub-division] .hub-hero .vision-badge {
  color: #f8fafc !important;
}

/* Contact copy and direct channels form one readable, actionable card. */
.sector-contact-copy {
  --contact-card-accent: #056839;
  align-self: stretch;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.14);
  color: #17201c;
  padding: clamp(1.4rem, 3vw, 2.1rem);
}

.sector-contact[data-sector="supplements"] .sector-contact-copy {
  --contact-card-accent: #765500;
}

.sector-contact[data-sector="it"] .sector-contact-copy {
  --contact-card-accent: #0b4f87;
}

.sector-contact-copy h2,
.sector-contact-copy p,
.sector-contact-copy li {
  color: #17201c !important;
}

.sector-contact-copy h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.sector-contact-copy p {
  color: #3f4d46 !important;
  margin: 0;
}

.sector-contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding: 0;
}

.sector-contact-details li {
  display: flex;
  min-width: 0;
}

.sector-contact-details a {
  align-items: center;
  background: color-mix(in srgb, var(--contact-card-accent) 8%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--contact-card-accent) 38%, #ffffff);
  border-radius: 10px;
  color: var(--contact-card-accent) !important;
  display: inline-flex;
  gap: 0.6rem;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.sector-contact-details a[href^="tel:"]::before,
.sector-contact-details a[href^="mailto:"]::before {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900;
}

.sector-contact-details a[href^="tel:"]::before {
  content: "\f095";
}

.sector-contact-details a[href^="mailto:"]::before {
  content: "\f0e0";
}

.sector-contact-details a:hover {
  background: var(--contact-card-accent);
  border-color: var(--contact-card-accent);
  color: #ffffff !important;
}

.sector-contact-details a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--contact-card-accent) 40%, #ffffff);
  outline-offset: 3px;
}

/* Static Google review link remains readable in both themes. */
.reviews-widget--static .reviews-pending-msg {
  color: var(--text, #374151) !important;
  text-align: center;
}

html[data-theme="dark"] .reviews-widget--static {
  background: var(--white, #1e293b);
  border: 1px solid var(--border, #334155);
}

html[data-theme="dark"] .reviews-widget--static .reviews-pending-msg {
  color: var(--text, #f8fafc) !important;
}

@media (max-width: 1120px) {
  header .container.nav {
    gap: 0.75rem;
  }

  header .nav-links {
    display: none !important;
  }

  header .hamburger {
    align-items: center;
    display: inline-flex !important;
    justify-content: center;
  }

  header .logo img {
    height: 54px;
    max-width: 142px;
    object-fit: contain;
  }
}

@media (max-width: 767px) {
  /* Put the message inside the visual focal area instead of below 300px of empty space. */
  #sec-home .hero {
    align-items: center;
    display: flex;
    min-height: 570px;
    padding: 4.5rem 0 !important;
  }

  #sec-home .hero-bg-pic,
  #sec-home .hero-bg-img {
    bottom: 0;
    height: 100% !important;
    inset: 0;
    object-fit: cover !important;
    position: absolute;
  }

  #sec-home .hero::before {
    background: linear-gradient(
      180deg,
      rgba(255, 250, 241, 0.78) 0%,
      rgba(255, 250, 241, 0.93) 48%,
      rgba(255, 255, 255, 0.96) 100%
    ) !important;
    inset: 0 !important;
  }

  #sec-home .hero .container {
    max-width: 94%;
  }

  #sec-home .hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  html[data-theme="dark"] #sec-home .hero::before {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.76) 0%,
      rgba(15, 23, 42, 0.9) 52%,
      rgba(15, 23, 42, 0.97) 100%
    ) !important;
  }

  html[data-theme="dark"] #sec-home .hero h1,
  html[data-theme="dark"] #sec-home .hero p {
    color: #f8fafc !important;
  }

  html[data-theme="dark"] #sec-home .hero .vision-badge,
  html[data-theme="dark"] #sec-home .hero .vision-badge span {
    color: #d1fae5 !important;
    -webkit-text-fill-color: #d1fae5 !important;
  }

  html[data-theme="dark"] #sec-home .hero .vision-badge {
    background: rgba(15, 23, 42, 0.78) !important;
    border-color: rgba(110, 231, 183, 0.42) !important;
  }

  /* A smaller, safe-area-aware control reduces content obstruction. */
  .floating-wa {
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    height: 46px !important;
    inset-inline-end: 12px !important;
    width: 46px !important;
    font-size: 22px !important;
  }

  .floating-wa::after {
    animation: none !important;
    display: none;
  }

  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .sector-contact-details,
  .sector-contact-details li,
  .sector-contact-details a {
    width: 100%;
  }

  main[data-hub-division] .hub-hero {
    min-height: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-wa::after {
    animation: none !important;
  }
}

/* Keep essential navigation and contact controls visible before the deferred
   icon font arrives. These compact glyphs avoid an empty-button flash without
   putting the full Font Awesome font back on the critical rendering path. */
.hamburger > i,
.close-btn > i,
#theme-toggle > i,
#drawer-theme-toggle > i,
#langToggle > i,
.floating-wa > i,
.topbar .social a > i {
  display: none !important;
}

.hamburger::before {
  content: "\2630";
  font-family: Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
}

.close-btn::before {
  content: "\00d7";
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

#theme-toggle::before,
#drawer-theme-toggle::before {
  content: "\25d0";
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

html[data-theme="dark"] #theme-toggle::before,
html[data-theme="dark"] #drawer-theme-toggle::before {
  content: "\2600";
}

#langToggle::before {
  content: "\25ce";
  font-family: Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

.floating-wa::before {
  content: "\260e";
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.topbar .social a::before {
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.topbar .social a[aria-label="Facebook"]::before { content: "f"; }
.topbar .social a[aria-label="Instagram"]::before { content: "\25ce"; }
.topbar .social a[aria-label="LinkedIn"]::before { content: "in"; }
.topbar .social a[aria-label="X"]::before { content: "X"; }

/* Content links remain identifiable without relying on colour alone. */
.faq-accordion details p a,
.about-info p a,
.blog-featured-links a {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

/* V14: make editorial ownership visible without adding artificial author profiles. */
.article-byline {
  align-items: center;
  color: var(--muted, #475569);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.94rem;
  font-weight: 700;
  gap: 0.45rem;
  justify-content: center;
  margin: 1rem auto 0;
}

.article-byline::before {
  background: #056839;
  border-radius: 999px;
  content: "";
  height: 0.55rem;
  width: 0.55rem;
}

.article-byline a {
  color: #056839;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

html[data-theme="dark"] .article-byline {
  color: #d7e1ec;
}

html[data-theme="dark"] .article-byline a {
  color: #7ee2b8;
}
