/
/* =========================================
   LINK2 NUTRITION ADVISORY
   Primary site styles
   ========================================= */

:root {
  --primary: #102b49;
  --primary-deep: #0a2038;
  --secondary: #c45124;
  --accent: #d66a38;

  --dark: #182536;
  --body-text: #536273;
  --light: #f5f7fa;
  --white: #ffffff;
  --border: #e3e8ee;

  --pepnexus: #0a2540;
  --pepnexus-accent: #1e3a8a;

  --shadow: 0 8px 30px rgba(16, 43, 73, 0.07);
  --shadow-hover: 0 16px 38px rgba(16, 43, 73, 0.13);

  --radius: 14px;
}


/* Base */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  transition: color 0.2s ease, background-color 0.2s ease;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

p {
  color: var(--body-text);
}

section[id] {
  scroll-margin-top: 100px;
}


/* =========================================
   NAVIGATION
   ========================================= */

.site-navbar {
  background-color: var(--primary-deep);
  padding: 12px 0;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  padding: 0;
  margin-right: 2rem;
}

.site-logo {
  display: block;
  height: 108px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-navbar .navbar-nav {
  gap: 8px;
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 10px 12px !important;
  border-radius: 6px;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-link.active {
  color: var(--white);
}

.site-navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
}

.site-navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
  padding: 8px 10px;
}

.site-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(214, 106, 56, 0.35);
}


/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 95px;
  color: var(--white);
  background:
    radial-gradient(
      ellipse at 88% 15%,
      rgba(196, 81, 36, 0.18),
      transparent 38%
    ),
    linear-gradient(
      135deg,
      #0a2038 0%,
      #102b49 65%,
      #193a57 100%
    );
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--secondary);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.6;
}

.hero-eyebrow {
  color: #f1a17d;
  margin-bottom: 22px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0 auto 25px;
}

.hero h1 span {
  color: #f1a17d;
}

.hero-subtitle {
  max-width: 690px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.btn-primary-custom {
  color: var(--white);
  background: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 7px;
  padding: 13px 24px;
  font-weight: 600;
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  color: var(--white);
  background: #a9411c;
  border-color: #a9411c;
}

.btn-outline-custom {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 7px;
  padding: 13px 24px;
  font-weight: 600;
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  color: var(--primary);
  background: var(--white);
  border-color: var(--white);
}

.hero-note {
  margin: 36px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
}


/* =========================================
   SHARED SECTION STYLES
   ========================================= */

.section-padding {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
}

.section-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
}

.section-intro {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}


/* =========================================
   SERVICES
   ========================================= */

#services {
  background: var(--white);
}

.service-card {
  height: 100%;
  padding: 35px 30px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(196, 81, 36, 0.4);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 26px;
  color: var(--secondary);
  background: #fbf0eb;
  border-radius: 12px;
  font-size: 1.8rem;
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  margin-bottom: 24px;
  font-size: 0.96rem;
  line-height: 1.85;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  color: var(--secondary);
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
}

.service-link:hover {
  color: var(--primary);
  gap: 13px;
}


/* =========================================
   ABOUT
   ========================================= */

.about-section {
  background: var(--light);
}

.about-accent {
  padding: 15px 0;
}

.about-accent h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
}

.about-accent h2 span {
  color: var(--secondary);
}

.accent-line {
  width: 68px;
  height: 4px;
  margin: 25px 0;
  background: var(--secondary);
  border-radius: 5px;
}

.about-tagline {
  color: var(--primary);
  font-size: 1.02rem;
  font-weight: 600;
}

.about-copy {
  padding: 10px 0;
}

.about-copy h3 {
  margin-bottom: 22px;
  font-size: 1.7rem;
  font-weight: 700;
}

.about-copy p {
  margin-bottom: 18px;
  line-height: 1.9;
}

.text-link {
  display: inline-block;
  margin-top: 5px;
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  color: var(--primary);
}


/* =========================================
   CALL TO ACTION
   ========================================= */

.cta-section {
  padding: 78px 0;
  color: var(--white);
  background: var(--primary);
}

.cta-section .eyebrow {
  color: #f1a17d;
}

.cta-section h2 {
  max-width: 800px;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

.cta-section > .container > p:not(.eyebrow) {
  max-width: 680px;
  margin: 0 auto 30px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.85;
}

.cta-section .btn {
  padding: 13px 25px;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: 7px;
  font-weight: 700;
}

.cta-section .btn:hover {
  color: var(--white);
  background: var(--secondary);
  border-color: var(--secondary);
}


/* =========================================
   CONTACT
   ========================================= */

.contact-section {
  background: var(--white);
}

.contact-card {
  padding: 35px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 26px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--secondary);
  background: #fbf0eb;
  border-radius: 10px;
  font-size: 1.3rem;
}

.contact-detail h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-detail p {
  margin: 0;
}

.contact-detail a {
  color: var(--secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.contact-bottom {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.contact-bottom p {
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.contact-bottom strong {
  color: var(--primary);
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  padding: 35px 0 25px;
  background: var(--primary-deep);
  color: var(--white);
}

.footer-brand {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-brand:hover,
.footer-link:hover {
  color: #f1a17d;
}

.footer-tagline {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  text-decoration: none;
}

.copyright {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
}


/* =========================================
   ACCESSIBILITY
   ========================================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================
   PEPNEXUS RESEARCH
   Preserve existing page styling
   ========================================= */

.pepnexus-hero {
  background: linear-gradient(
    135deg,
    #1a365d 0%,
    #2b6cb0 100%
  );
  color: white;
  padding: 4rem 0;
}

.disclaimer-banner {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}


/* Age Gate Modal */

#ageGateModal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#ageGateModal .modal-header {
  background: linear-gradient(
    135deg,
    #1a365d 0%,
    #2b6cb0 100%
  );
  color: white;
  border-radius: 16px 16px 0 0;
  border: none;
}

#ageGateModal .terms-box {
  max-height: 280px;
  overflow-y: auto;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

#ageGateModal .terms-box h6 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

#ageGateModal .terms-box h6:first-child {
  margin-top: 0;
}

#ageGateModal .btn-enter {
  background: #1a365d;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
}

#ageGateModal .btn-enter:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.pepnexus-content {
  display: none;
}

.pepnexus-content.verified {
  display: block;
}


/* =========================================
   RESPONSIVE LAYOUT
   ========================================= */

@media (max-width: 991.98px) {
  .site-logo {
    height: 88px;
  }

  .site-navbar .navbar-collapse {
    padding: 15px 0 8px;
  }

  .site-navbar .navbar-nav {
    align-items: stretch !important;
    gap: 2px;
  }

  .site-navbar .nav-link {
    padding: 10px 8px !important;
  }

  .hero {
    padding: 80px 0 75px;
  }

  .section-padding {
    padding: 72px 0;
  }

  .service-card {
    padding: 28px 24px;
  }
}

@media (max-width: 767.98px) {
  .site-logo {
    height: 76px;
    max-width: 230px;
  }

  .hero {
    padding: 68px 0 62px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 8vw, 3.2rem);
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-note {
    margin-top: 27px;
    font-size: 0.75rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .service-card {
    padding: 28px;
  }

  .about-accent {
    padding-bottom: 0;
  }

  .about-copy h3 {
    font-size: 1.5rem;
  }

  .cta-section {
    padding: 60px 0;
  }

  .contact-card {
    padding: 26px 22px;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer .text-md-end {
    text-align: center !important;
  }
}

@media (max-width: 420px) {
  .site-logo {
    height: 65px;
    max-width: 195px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.15rem;
  }
}

  }
}

/* FIX: Link2 homepage contrast and navigation */

.site-navbar {
  background-color: #0a2038 !important;
}

.site-navbar .navbar-nav .nav-link,
.site-navbar .navbar-nav .nav-link.active,
.site-navbar .navbar-nav .nav-link:focus {
  color: #ffffff !important;
}

.site-navbar .navbar-nav .nav-link:hover {
  color: #f1a17d !important;
}

.hero {
  background: linear-gradient(
    120deg,
    #0a2038 0%,
    #102b49 100%
  ) !important;
  color: #ffffff !important;
}

.hero h1 {
  color: #ffffff !important;
}

.hero h1 span {
  color: #f1a17d !important;
}

.hero-subtitle,
.hero-note {
  color: #ffffff !important;
}

.hero .btn-primary-custom {
  color: #ffffff !important;
  background-color: #c45124 !important;
  border-color: #c45124 !important;
}

.hero .btn-outline-custom {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: #ffffff !important;
}

.hero .btn-primary-custom:hover,
.hero .btn-outline-custom:hover {
  color: #0a2038 !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* FIX: Link2 homepage contrast and navigation */

.site-navbar {
  background-color: #0a2038 !important;
}

.site-navbar .navbar-nav .nav-link,
.site-navbar .navbar-nav .nav-link.active,
.site-navbar .navbar-nav .nav-link:focus {
  color: #ffffff !important;
}

.site-navbar .navbar-nav .nav-link:hover {
  color: #f1a17d !important;
}

.hero {
  background: linear-gradient(
    120deg,
    #0a2038 0%,
    #102b49 100%
  ) !important;
  color: #ffffff !important;
}

.hero h1 {
  color: #ffffff !important;
}

.hero h1 span {
  color: #f1a17d !important;
}

.hero-subtitle,
.hero-note {
  color: #ffffff !important;
}

.hero .btn-primary-custom {
  color: #ffffff !important;
  background-color: #c45124 !important;
  border-color: #c45124 !important;
}

.hero .btn-outline-custom {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: #ffffff !important;
}

.hero .btn-primary-custom:hover,
.hero .btn-outline-custom:hover {
  color: #0a2038 !important;
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

/* Fix Product Development flask icon */
.service-card .service-icon .bi-flask {
  display: inline-block !important;
  color: #c45124 !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
