/* MarquePeptides — homepage-specific styles, loaded only on the front page.
   Shared chrome (root vars, resets, buttons, announcement, nav, mobile menu, mega-menu)
   lives in main.css, which loads first. The homepage logo height override that used to
   live here (100px) was sized for the old compact square mark — the current wide
   icon+wordmark lockup gets disproportionately wide at that height, so this now just
   matches the shared 60px nav height from main.css instead of overriding it. */

  /* ========================
     INTERACTIVE HERO
     Canvas overlay with mouse-reactive pattern
     ======================== */
  .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%);
    min-height: 100vh;
    min-height: 100dvh; /* dynamic viewport height for mobile browsers */
    color: var(--white);
    width: 100%;
    /* On a tall/narrow viewport (e.g. iPad Pro portrait, 1032x1376) the content is much
       shorter than 100vh — without this, it sits pinned to the top and leaves a large
       dead gap below before the next section. Centering it vertically fills that space
       correctly at any viewport height without changing the normal-height desktop look. */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-canvas {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    display: block;
    z-index: 1;
    cursor: crosshair;
    pointer-events: auto;
  }
  .hero-inner {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
    padding: 100px 0; position: relative; z-index: 2;
  }
  .hero-content .ruo-flag {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
    background: rgba(45,126,129,0.2); color: var(--clinical-teal-soft);
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; border-radius: 3px;
    margin-bottom: 20px; border: 1px solid rgba(45,126,129,0.4);
    backdrop-filter: blur(10px);
  }
  .hero-content .ruo-flag::before {
    content: ""; width: 8px; height: 8px; background: var(--clinical-teal-soft); border-radius: 50%;
    animation: pulse 2s infinite;
  }
  .hero-content .eyebrow { color: var(--brass-gold); }
  .hero-content h1 {
    font-size: 68px; line-height: 1.02; font-weight: 800; letter-spacing: -1.5px;
    color: var(--white); margin: 12px 0 24px;
  }
  .hero-content h1 .accent { color: var(--clinical-teal-soft); }
  .hero-content h1 .accent-gold { color: var(--brass-gold); }
  .hero-content .sub {
    font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.6; margin-bottom: 32px; max-width: 90%;
  }
  .hero-ctas { display: flex; gap: 14px; align-items: center; }

  .hero-product-wrap {
    position: relative; display: flex; align-items: center; justify-content: center;
    padding: 20px;
  }
  .hero-product-img {
    max-width: 100%; height: auto; max-height: 550px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
    animation: floatProduct 6s ease-in-out infinite;
    position: relative; z-index: 3;
  }
  @keyframes floatProduct {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  .hero-tag {
    position: absolute; top: 40px; right: 40px; z-index: 4;
    background: rgba(255,255,255,0.95); padding: 8px 14px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    color: var(--clinical-teal); box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 6px;
    backdrop-filter: blur(10px);
  }
  .hero-tag::before {
    content: ""; width: 8px; height: 8px; background: var(--clinical-teal);
    border-radius: 50%; animation: pulse 2s infinite;
  }
  @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

  /* Interactive hint */
  .hero-hint {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    z-index: 3; font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600;
    animation: fadeInOut 3s ease-in-out infinite;
  }
  @keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
  }

  /* TRUST BAR */
  .trust-bar { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }
  .trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; align-items: center; }
  .trust-item { display: flex; align-items: center; gap: 14px; }
  .trust-icon {
    width: 44px; height: 44px; background: var(--clinical-teal-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--clinical-teal); flex-shrink: 0;
  }
  .trust-text strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink-navy); margin-bottom: 2px; }
  .trust-text small { font-size: 11px; color: var(--text-muted); }

  /* WHY MARQUE (with pattern) */
  .why-section { background: var(--white); position: relative; overflow: hidden; padding: 100px 0; }
  .why-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    position: relative; z-index: 2;
  }
  .why-card {
    background: var(--white); padding: 32px 24px; border-radius: 10px;
    text-align: center; border: 1px solid var(--border); transition: all 0.2s;
  }
  .why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brass-gold); }
  .why-icon-wrap {
    width: 68px; height: 68px; background: var(--brass-gold-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
    color: var(--brass-gold); position: relative;
  }
  .why-icon-wrap::before {
    content: ""; position: absolute; inset: -6px; border: 2px dashed var(--brass-gold-soft);
    border-radius: 50%; opacity: 0.5;
  }
  .why-title {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--brass-gold); font-weight: 700; margin-bottom: 8px;
  }
  .why-subtitle { font-size: 17px; font-weight: 700; color: var(--ink-navy); margin-bottom: 8px; }
  .why-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

  /* SECTIONS */
  .section { padding: 100px 0; position: relative; overflow: hidden; }
  .section-header { text-align: center; margin-bottom: 50px; position: relative; z-index: 2; }
  .section-header h2 {
    font-size: 42px; font-weight: 800; letter-spacing: -1px;
    color: var(--ink-navy); margin: 12px 0 12px; line-height: 1.1;
  }
  .section-header h2 .accent { color: var(--clinical-teal); }
  .section-header h2 .accent-gold { color: var(--brass-gold); }
  .section-header p { color: var(--text-muted); font-size: 16px; max-width: 700px; margin: 0 auto; }

  /* CATEGORIES */
  .categories { background: var(--white); }
  .cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; position: relative; z-index: 2; }
  .cat-tile {
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    padding: 28px 12px; text-align: center; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
  }
  .cat-tile:hover {
    border-color: var(--clinical-teal); transform: translateY(-4px); box-shadow: var(--shadow-md);
  }
  .cat-icon-wrap {
    width: 60px; height: 60px; background: var(--clinical-teal-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px; color: var(--clinical-teal); transition: all 0.2s;
  }
  .cat-tile:hover .cat-icon-wrap { background: var(--clinical-teal); color: var(--white); }
  .cat-name { font-size: 13px; font-weight: 700; color: var(--ink-navy); margin-bottom: 4px; }
  .cat-count { font-size: 11px; color: var(--text-muted); }

  /* CATALOG SECTIONS */
  .catalog-section { background: var(--off-white); position: relative; overflow: hidden; padding: 100px 0; }
  .catalog-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 40px; position: relative; z-index: 2;
  }
  .catalog-header h2 { font-size: 36px; font-weight: 800; color: var(--ink-navy); margin-top: 8px; letter-spacing: -0.5px; }

  .research-intro {
    background: var(--white); border-left: 4px solid var(--clinical-teal);
    padding: 20px 28px; margin-bottom: 36px; font-size: 13px; color: var(--text-muted);
    line-height: 1.7; border-radius: 0 6px 6px 0; position: relative; z-index: 2;
  }
  .research-intro strong { color: var(--ink-navy); }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    position: relative; z-index: 2;
  }

  /* Product card component (.product-card, .badge-corner, .ruo-corner, .product-info, etc.)
     now lives in main.css — shared with the shop archive and single-product templates. */

  /* SPOTLIGHT (with pattern) */
  .spotlight {
    background: linear-gradient(135deg, var(--ink-navy) 0%, #1e3450 100%);
    color: var(--white); position: relative; overflow: hidden; padding: 100px 0;
  }
  .spotlight-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 2;
  }
  .spotlight-content .eyebrow { color: var(--brass-gold); }
  .spotlight-content h2 {
    font-size: 48px; font-weight: 800; letter-spacing: -1px; color: var(--white);
    margin: 12px 0 20px; line-height: 1.05;
  }
  .spotlight-content h2 .accent { color: var(--brass-gold); }
  .spotlight-content p { font-size: 15px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 20px; }
  .spotlight-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 28px 0;
    padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .spotlight-stat-num { font-size: 32px; font-weight: 800; color: var(--brass-gold); margin-bottom: 4px; letter-spacing: -1px; }
  .spotlight-stat-label { font-size: 11px; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; }
  .spotlight-visual {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 0;
  }
  .spotlight-visual .form-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 32px 12px;
    text-align: center;
    aspect-ratio: 3/4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    transition: all 0.2s;
  }
  .spotlight-visual .form-item:hover {
    background: rgba(221,180,121,0.12);
    border-color: rgba(221,180,121,0.35);
    transform: translateY(-4px);
  }
  .form-icon-img {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(69%) sepia(21%) saturate(1080%) hue-rotate(3deg) brightness(88%) contrast(89%);
  }
  .spotlight-visual .form-item h5 {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--brass-gold); font-weight: 700;
  }

  /* SCIENCE */
  .science-section { background: var(--white); position: relative; overflow: hidden; padding: 100px 0; }
  .science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; z-index: 2; }
  .science-card {
    background: var(--white); border: 1px solid var(--border); padding: 40px 32px;
    border-radius: 12px; text-align: left; transition: all 0.2s;
  }
  .science-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--clinical-teal); }
  .science-num-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
  .science-num-circle {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--brass-gold-light); color: var(--brass-gold);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 18px;
  }
  .science-card h3 { font-size: 22px; font-weight: 700; color: var(--ink-navy); }
  .science-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
  .science-cta-wrap { text-align: center; margin-top: 40px; position: relative; z-index: 2; }

  /* BLOG */
  .blog-section { background: var(--off-white); position: relative; overflow: hidden; padding: 100px 0; }
  .blog-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; position: relative; z-index: 2; }
  .blog-header h2 { font-size: 36px; font-weight: 800; color: var(--ink-navy); margin-top: 8px; letter-spacing: -0.5px; }
  /* .blog-grid / .blog-card and children now live in main.css — shared with the standalone blog archive and single-post templates. */

  /* COMMUNITY */
  .community {
    background: linear-gradient(135deg, var(--ink-navy) 0%, #1a2c42 100%);
    color: var(--white); position: relative; overflow: hidden; padding: 100px 0;
  }
  .community-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; position: relative; z-index: 2;
  }
  .community-grid-single {
    grid-template-columns: 1fr; max-width: 560px; margin: 0 auto;
  }
  .community-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
    padding: 40px; border-radius: 12px; backdrop-filter: blur(10px);
  }
  .community-icon-wrap {
    width: 56px; height: 56px; background: rgba(194,160,52,0.15); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--brass-gold); margin-bottom: 16px;
  }
  .community-card:nth-child(2) .community-icon-wrap {
    background: rgba(45,126,129,0.2); color: var(--clinical-teal-soft);
  }
  .community-card h3 { font-size: 26px; font-weight: 700; margin: 12px 0 12px; letter-spacing: -0.5px; }
  .community-card p { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 24px; line-height: 1.6; }
  .newsletter-input-wrap { display: flex; gap: 8px; }
  .newsletter-input-wrap input {
    flex: 1; padding: 14px 18px; border: none; background: var(--white);
    color: var(--ink-navy); font-size: 14px; border-radius: 4px; font-family: inherit; outline: none;
  }
  .newsletter-note { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 10px; }

  /* FOOTER */
  .footer { background: #0d1620; color: rgba(255,255,255,0.7); padding: 60px 0 20px; position: relative; overflow: hidden; }
  /* grid-template-columns/gap/etc. live in main.css (shared) so its responsive media
     queries can actually take effect — this file loads after main.css, so redeclaring
     them here unconditionally would silently win at every width and block the mobile/
     tablet overrides, which is exactly what happened before this comment was added. */
  .footer-grid { position: relative; z-index: 2; }
  .footer-brand-desc { font-size: 13px; line-height: 1.7; margin: 20px 0; max-width: 300px; }
  .footer-loc { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }
  /* footer-logo-img height override removed — it was sized for the old compact square
     mark; the current wide icon+wordmark lockup gets too big at that height, so this
     now just inherits the shared, aspect-adjusted sizing from main.css instead. */
  .footer-col h4 {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--brass-gold); margin-bottom: 18px; font-weight: 700;
  }
  .footer-col ul { list-style: none; }
  .footer-col ul li {
    padding: 6px 0; font-size: 13px; color: rgba(255,255,255,0.6);
    cursor: pointer; transition: color 0.2s;
  }
  .footer-col ul li:hover { color: var(--white); }
  .footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: rgba(255,255,255,0.5); position: relative; z-index: 2;
  }
  .footer-social { display: flex; gap: 10px; }
  .footer-social a {
    width: 32px; height: 32px; background: rgba(255,255,255,0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
  }
  .footer-social a:hover { background: var(--brass-gold); color: var(--ink-navy); }
  .footer-social svg { width: 16px; height: 16px; }
  .footer-legal {
    background: #060c14;
    padding: 24px;
    text-align: center;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin-top: 40px;
    margin-bottom: 0;
  }
  .footer-legal strong { color: rgba(255,255,255,0.85); }

  /* Hamburger + mobile menu now live only in main.css (shared chrome) — removed the
     duplicate copy that used to live here and silently won the cascade on this page. */

  /* ============================================================
     RESPONSIVE — Clean 3-tier system
     ============================================================ */
  @media (max-width: 1024px) {
    .hero-inner {
      grid-template-columns: 1fr;
      gap: 40px;
      padding: 60px 0;
    }
    .hero-content h1 { font-size: clamp(36px, 6vw, 54px); }
    .hero-content .sub { font-size: 16px; max-width: 100%; }
    .hero-product-wrap { max-width: 420px; margin: 0 auto; }
    .hero-product-img { max-height: 50vh; }
    .hero { min-height: auto; }

    .trust-inner {
      grid-template-columns: repeat(2, minmax(0, 300px));
      justify-content: center;
      gap: 24px 40px;
      max-width: 100%;
    }

    .section,
    .why-section,
    .catalog-section,
    .spotlight,
    .science-section,
    .blog-section,
    .community { padding: 70px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2,
    .spotlight-content h2 { font-size: clamp(28px, 4vw, 40px); }

    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .community-grid,
    .spotlight-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .science-grid,
    .blog-grid { grid-template-columns: 1fr; }
    .spotlight-visual { grid-template-columns: repeat(4, minmax(0, 1fr)); }

    .catalog-header,
    .blog-header { flex-direction: column; align-items: flex-start; gap: 16px; }

    /* .footer-grid column/centering rules live in main.css now (shared across every
       page, not just the homepage) — this just keeps the homepage-specific tweaks. */
    .footer-brand-desc { max-width: 100%; font-size: 14px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  }

  @media (max-width: 767px) {
    .container { padding: 0 16px; }

    .logo-img { height: 60px; }

    .hero-inner { padding: 40px 0; gap: 32px; }
    .hero-content h1 { font-size: clamp(28px, 8vw, 40px); }
    .hero-content .sub { font-size: 14px; line-height: 1.6; }
    .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .hero-product-wrap { max-width: 280px; padding: 10px; }
    .hero-product-img { max-height: 42vh; }
    .hero-tag { top: 12px; right: 12px; font-size: 10px; padding: 6px 10px; }
    .hero-content .ruo-flag { font-size: 10px; padding: 5px 10px; margin-bottom: 14px; }

    .trust-inner {
      grid-template-columns: repeat(2, 1fr);
      gap: 14px 16px;
      max-width: 100%;
    }
    .trust-item { gap: 10px; }
    .trust-icon { width: 36px; height: 36px; flex-shrink: 0; }
    .trust-text strong { font-size: 12px; }
    .trust-text small { font-size: 10px; }

    .section,
    .why-section,
    .catalog-section,
    .spotlight,
    .science-section,
    .blog-section,
    .community { padding: 50px 0; }
    .section-header { margin-bottom: 28px; }
    .section-header h2,
    .spotlight-content h2 { font-size: clamp(22px, 7vw, 30px); }
    .section-header p { font-size: 14px; }

    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cat-tile { padding: 20px 8px; }
    .cat-icon-wrap { width: 50px; height: 50px; margin-bottom: 10px; }
    .cat-name { font-size: 12px; }

    .why-grid { grid-template-columns: 1fr; gap: 14px; }
    .why-card { padding: 24px 20px; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-info { padding: 14px; }
    .product-name { font-size: 14px; }
    .product-cas { font-size: 9px; }
    .product-price { font-size: 16px; }
    .product-bottom { flex-direction: column; align-items: stretch; gap: 10px; }
    .product-cta-row { justify-content: space-between; }
    .product-cta { padding: 8px 10px; font-size: 9px; flex: 1; }
    .product-specs { font-size: 10px; padding: 6px 8px; }

    .spotlight-content { min-width: 0; }
    .spotlight-content p { max-width: 100%; word-wrap: break-word; }
    .spotlight-visual {
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 6px;
      width: 100%;
    }
    .spotlight-visual .form-item {
      padding: 16px 4px;
      min-width: 0;
      overflow: hidden;
    }
    .form-icon-img { width: 36px; height: 36px; }
    .spotlight-visual .form-item h5 {
      font-size: 9px;
      letter-spacing: 1px;
      word-break: break-word;
    }
    .spotlight-stats { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
    .spotlight-stat-num { font-size: 26px; }

    .blog-content { padding: 20px; }
    .blog-title { font-size: 16px; }
    .blog-excerpt { font-size: 12px; }

    .community-card { padding: 28px 20px; }
    .community-card h3 { font-size: 22px; }
    .community-card p { font-size: 13px; }
    .newsletter-input-wrap {
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }
    .newsletter-input-wrap input {
      width: 100%;
      padding: 14px 16px;
      box-sizing: border-box;
    }
    .newsletter-input-wrap .btn {
      width: 100%;
      padding: 14px;
    }

    .announcement { font-size: 11px; letter-spacing: 1px; }

    .mobile-nav-menu { width: 88%; padding: 90px 24px 24px; }
  }

  @media (max-width: 374px) {
    .container { padding: 0 12px; }
    .logo-img { height: 52px; }
    .hero-content h1 { font-size: 24px; }
    .hero-content .sub { font-size: 13px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .products-grid { grid-template-columns: 1fr; }
    .btn { padding: 12px 20px; font-size: 12px; letter-spacing: 1px; }
    .section-header h2 { font-size: 22px; }
  }

/* ===== ACCESSIBILITY: skip link ===== */
.skip-link { position: absolute; top: -48px; left: 8px; background: var(--ink-navy); color: var(--white); padding: 12px 20px; border-radius: 0 0 6px 6px; font-size: 13px; font-weight: 700; z-index: 10000; transition: top 0.2s; }
.skip-link:focus { top: 0; }
