/* BioHack Peptides — refined Apple-like light theme
   Static, fast, accessible. */

:root{
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --border: #d2d2d7;

  /* Brand */
  --accent: #7BAF9A;     /* silver‑green */
  --accent-2: #4F8F74;

  /* Layout */
  --maxw: 1180px;
  --radius: 18px;
  --radius-sm: 12px;

  /* Requested desktop spacing */
  --gutter: 2.5cm;

  /* Effects */
  --shadow-sm: 0 6px 18px rgba(0,0,0,0.06);
  --shadow: 0 14px 40px rgba(0,0,0,0.10);
  --focus: 0 0 0 4px rgba(123,175,154,0.28);

  /* Spacing scale */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 40px;
  --space-7: 56px;
  --space-8: 72px;
}

@media (max-width: 820px){
  :root{ --gutter: 22px; }
}

*{ box-sizing: border-box; }

html, body{ height: 100%; }

body{
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{
  color: var(--accent-2);
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Layout */
.container{
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-main{
  padding-bottom: var(--space-8);
}

/* Accessibility */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--accent);
  color: #06110A;
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 800;
}
.skip-link:focus{
  left: 12px;
  outline: none;
  box-shadow: var(--focus);
}

:focus-visible{
  outline: none;
  box-shadow: var(--focus);
  border-radius: 12px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img{
  height: 40px;
  width: auto;
}

.site-nav{ position: relative; }

.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hamburger{
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  display: inline-block;
  border-radius: 2px;
  opacity: 0.9;
}
.hamburger::before,
.hamburger::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.hamburger::before{ top: -6px; }
.hamburger::after{ top: 6px; }

.nav-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(320px, calc(100vw - 2rem));
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nav-menu.open{ display: block; }

.nav-menu a{
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-weight: 650;
  color: var(--text);
}
.nav-menu a:hover{
  background: var(--surface-2);
  text-decoration: none;
}
.nav-menu a.active{
  background: rgba(123,175,154,0.12);
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}
.nav-cta{
  padding: 12px 16px;
}
.nav-cta a{
  border-bottom: none;
  padding: 0;
}

/* Desktop nav */
@media (min-width: 920px){
  .nav-toggle{ display: none; }
  .nav-menu{
    display: flex;
    position: static;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    gap: 6px;
    align-items: center;
    overflow: visible;
  }
  .nav-menu a{
    border-bottom: none;
    padding: 10px 12px;
    border-radius: 999px;
    font-weight: 650;
  }
  .nav-menu a:hover{
    background: var(--surface-2);
    text-decoration: none;
  }
  .nav-menu a.active{
    border-left: none;
    padding-left: 12px;
    background: rgba(123,175,154,0.14);
  }
  .nav-cta{ padding: 0 0 0 8px; }
}

/* Typography */
h1, h2, h3{
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.65em 0;
}
h1{ font-size: clamp(2.0rem, 4vw, 3.2rem); }
h2{ font-size: clamp(1.4rem, 2.4vw, 2.0rem); }
h3{ font-size: 1.18rem; }
p{ margin: 0 0 1em 0; }

.lead{
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 70ch;
}

.muted{ color: var(--muted); }

.h6{
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 12px 0;
}

/* Sections */
.section{ padding: var(--space-7) var(--gutter); }
.section-sm{ padding: var(--space-6) 0; }

.hero{
  padding: var(--space-8) 0 var(--space-7);
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid{
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 900px){
  .hero-grid{
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-7);
  }
}

.kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(123,175,154,0.12);
  border: 1px solid rgba(123,175,154,0.28);
  color: var(--text);
  font-weight: 650;
  width: fit-content;
}
.kicker-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(123,175,154,0.18);
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card.glass{
  background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.96) 100%);
}

.grid-3{
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 820px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
}

.grid-2{
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 820px){
  .grid-2{ grid-template-columns: repeat(2, 1fr); }
}

.hr{
  height: 1px;
  background: rgba(0,0,0,0.10);
  border: 0;
  margin: var(--space-5) 0;
}

/* Lists */
.list{
  margin: 0;
  padding-left: 18px;
}
.list.list-top{ margin-top: 14px; }


/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #06110A;
}
.btn-primary:hover{ filter: brightness(1.03); }

.btn-secondary{
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover{
  background: var(--surface-2);
}

.btn-ghost{
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{
  background: var(--surface-2);
}

.btn-small{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 850;
}

.button-row{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--space-4);
}

/* Product cards */
.product-grid{
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 720px){
  .product-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px){
  .product-grid{ grid-template-columns: repeat(3, 1fr); }
}

.product-card{
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.product-card .thumb{
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.product-card .thumb img{
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.product-card h3{ margin: 0; }

.product-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}
.pill.accent{
  border-color: rgba(123,175,154,0.35);
  background: rgba(123,175,154,0.14);
  color: var(--text);
}

.product-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

/* Product page */
.product-hero{
  display: grid;
  gap: var(--space-5);
  align-items: center;
}
@media (min-width: 900px){
  .product-hero{ grid-template-columns: 1.1fr 0.9fr; }
}

.product-hero img{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.definition{ display: grid; gap: 14px; }
.kv{ display: block; }

.definition .kv{
  border-left: 3px solid rgba(123,175,154,0.65);
  padding-left: 14px;
}

.definition .label{
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 6px;
}

/* FAQ */
details{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 14px 16px;
}
details + details{ margin-top: 12px; }

summary{
  cursor: pointer;
  font-weight: 800;
}
summary::-webkit-details-marker{ display: none; }

/* Forms */
form{ display: grid; gap: 14px; }

label{
  font-weight: 800;
  display: block;
  margin-bottom: 6px;
}

input, textarea, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input::placeholder, textarea::placeholder{
  color: rgba(110,110,115,0.85);
}

textarea{ min-height: 140px; resize: vertical; }

.field-hint{
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

.form-row{
  display: grid;
  gap: 14px;
}
@media (min-width: 740px){
  .form-row{ grid-template-columns: 1fr 1fr; }
}

.form-error{
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(194,57,52,0.35);
  background: rgba(194,57,52,0.08);
  color: #7a1f1c;
}
.form-error.show{ display: block; }

.form-success{
  display: none;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(123,175,154,0.45);
  background: rgba(123,175,154,0.12);
  color: #0b3b28;
}
.form-success.show{ display: block; }

/* Media frames */
.map-frame{
  margin-top: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe{
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}


/* Auth page */
.auth-wrap{
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: var(--space-7) var(--gutter);
  background:
    radial-gradient(900px 450px at 20% 10%, rgba(123,175,154,0.18), transparent 60%),
    radial-gradient(900px 450px at 80% 30%, rgba(0,0,0,0.04), transparent 60%),
    var(--surface-2);
}

.auth-card{
  width: min(760px, 100%);
  padding: var(--space-6);
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
}

.auth-logo{
  display: grid;
  place-items: center;
}
.auth-logo img{ height: 54px; }

.auth-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(123,175,154,0.45);
  background: rgba(123,175,154,0.14);
  color: var(--text);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 18px auto 0;
}
.auth-badge .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px rgba(123,175,154,0.18);
}

.auth-message{
  font-size: 1.05rem;
  margin-top: 18px;
}

.auth-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: var(--space-7) 0 var(--space-6);
}

.footer-grid{
  display: grid;
  gap: var(--space-6);
}
@media (min-width: 920px){
  .footer-grid{
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand{ width: fit-content; margin-bottom: 12px; }
.footer-brand img{ height: 40px; width: auto; }

.footer-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-list a{
  text-decoration: none;
  color: var(--muted);
}
.footer-list a:hover{
  text-decoration: underline;
  color: var(--text);
}

.legal{
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-bottom{
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
}

.linklike{
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--accent-2);
  cursor: pointer;
  text-align: left;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linklike:hover{ color: var(--accent); }

/* WhatsApp floating button */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  border: 0;
  z-index: 60;
}
.wa-float:hover{ filter: brightness(0.96); }
.wa-icon{
  display:block;
  width:24px;
  height:24px;
  background: url("../icons/whatsapp.svg") no-repeat center / contain;
  font-size: 0;
  line-height: 0;
}

/* Cookie banner */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.90);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--shadow);
}
.cookie-banner .cookie-row{
  display: grid;
  gap: 12px;
}
@media (min-width: 760px){
  .cookie-banner .cookie-row{
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }
}
.cookie-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; transition: none !important; }
}

/* Text alignment (requested) */
.site-main p, .site-main li, .site-footer p, .site-footer li{
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: none;
  -ms-hyphens: none;
  hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Why BioHack (hero) - keep elegant rhythm (avoid awkward justification on short lines) */
.hero .kv p,
.hero .kv li{
  text-align: left;
  text-justify: auto;
}
/* ------------------------------
   Product imagery - senior fix
   Goal: show the full vial (no crop) in cards and on product pages.
   ------------------------------ */

.product-card .thumb{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  height: 260px;
}

.product-card .thumb img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 520px){
  .product-card .thumb{ height: 220px; }
}

.product-hero img{
  width: 100%;
  max-width: 520px;
  height: auto;
  object-fit: contain;
}

/* ------------------------------
   Visual polish (Apple clean) - typography + image presentation
   Scope: uniform font system across the site, keep existing color palette.
   ------------------------------ */

:root{
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Inter", "Helvetica Neue", Arial, sans-serif;
}

body{
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, h5, h6{
  letter-spacing: -0.02em;
}

button, input, select, textarea{
  font-family: inherit;
}

/* Make product imagery feel premium: clean white backdrop + clickable thumbs */
.product-card .thumb,
.product-hero img{
  background: #fff;
}

.thumb-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

.thumb-link:focus-visible{
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: 4px;
  border-radius: 16px;
}

.product-card .thumb{ cursor: pointer; }
