/* ============================================
   rehair.pl — Kolagen w Trychologii
   Style główne
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --clr-bg:         #faf6f1;
  --clr-dark:       #1a1410;
  --clr-dark2:      #2d2318;
  --clr-accent:     #c27a52;
  --clr-accent2:    #a8614a;
  --clr-warm:       #ede0d0;
  --clr-warm2:      #d4c4b0;
  --clr-text:       #3a2e24;
  --clr-text-light: #7a6a5a;
  --clr-white:      #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --max-w: 1160px;
  --max-w-narrow: 780px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 6px;
  --radius-lg: 14px;

  --nav-h: 68px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  margin-bottom: 0.8rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 500; color: var(--clr-dark); }

em { font-style: italic; }

small { font-size: 0.8em; }

.br-hide { display: none; }
@media (min-width: 700px) { .br-hide { display: inline; } }

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding-block: var(--space-xl);
}

.section--light  { background: var(--clr-bg); }
.section--dark   { background: var(--clr-dark); color: var(--clr-warm); }
.section--accent { background: var(--clr-accent); color: var(--clr-white); }

.section--dark h2,
.section--dark h3,
.section--dark strong { color: var(--clr-warm); }

.section--accent h2,
.section--accent h3 { color: var(--clr-white); }

/* ---------- Section Tag ---------- */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.8rem;
}

.section-tag--light { color: var(--clr-warm2); }

.section--accent .section-tag { color: rgba(255,255,255,0.7); }

/* ---------- Lead Paragraph ---------- */
.section-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 680px;
  color: var(--clr-text-light);
  margin-bottom: var(--space-lg);
}

.section--dark .section-lead { color: var(--clr-warm2); }
.section--accent .section-lead { color: rgba(255,255,255,0.85); }

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  border-color: var(--clr-accent);
}

.btn--primary:hover {
  background: var(--clr-accent2);
  border-color: var(--clr-accent2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 122, 82, 0.35);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled {
  background: rgba(26, 20, 16, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--clr-white);
  letter-spacing: -0.01em;
}

.nav__logo span { color: var(--clr-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--clr-white); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--clr-white);
  transition: all 0.3s var(--ease);
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(26, 20, 16, 0.98);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav__burger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--clr-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(194, 122, 82, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(168, 97, 74, 0.08) 0%, transparent 60%);
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(194,122,82,0.07)' stroke-width='0.5'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 2rem;
  animation: heroFadeUp 1s var(--ease-out) both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__tag {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--clr-white);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: italic;
  color: var(--clr-accent);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(194,122,82,0.5), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  margin-bottom: var(--space-lg);
}

@media (max-width: 720px) {
  .intro-grid { grid-template-columns: 1fr; }
}

.intro-grid__facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Fact Cards */
.fact-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-warm2);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.fact-card:hover {
  transform: translateX(6px);
  box-shadow: -4px 4px 20px rgba(194, 122, 82, 0.12);
}

.fact-card__num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--clr-accent);
  line-height: 1;
  min-width: 80px;
  text-align: center;
}

.fact-card__desc {
  font-size: 0.88rem;
  color: var(--clr-text-light);
  line-height: 1.4;
}

/* Types Grid */
.types-section { margin-top: var(--space-lg); }
.types-section h3 { margin-bottom: 1.5rem; }

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.type-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-left: 3px solid var(--clr-accent);
  transition: box-shadow 0.3s var(--ease);
}

.type-card:hover {
  box-shadow: 0 4px 20px rgba(194, 122, 82, 0.15);
}

.type-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-dark);
  margin-bottom: 0.4rem;
}

.type-card__sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 0.7rem;
}

.type-card__desc {
  font-size: 0.87rem;
  color: var(--clr-text-light);
  line-height: 1.55;
}

/* ============================================
   MEDICAL SECTION
   ============================================ */
.med-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: var(--space-md);
}

.med-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.med-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

.med-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.med-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clr-warm);
  margin-bottom: 0.6rem;
}

.med-card__text {
  font-size: 0.88rem;
  color: rgba(237, 224, 208, 0.75);
  line-height: 1.65;
}

/* ============================================
   BIOSYNTHESIS STEPS
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-md);
}

.step {
  display: flex;
  gap: 2rem;
  position: relative;
  padding-bottom: 2.5rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-white);
  flex-shrink: 0;
}

.step__line {
  flex: 1;
  width: 1px;
  background: rgba(255,255,255,0.2);
  margin-top: 8px;
}

.step:last-child .step__line { display: none; }

.step__content {
  padding-top: 0.5rem;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-white);
  margin-bottom: 0.4rem;
}

.step__text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
}

@media (max-width: 600px) {
  .step { gap: 1rem; }
}

/* ============================================
   COSMETOLOGY SECTION
   ============================================ */
.cosm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: var(--space-md);
}

.cosm-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: 0 2px 12px rgba(58, 46, 36, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cosm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(58, 46, 36, 0.1);
}

.cosm-card__badge {
  display: inline-block;
  background: var(--clr-warm);
  color: var(--clr-accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.cosm-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clr-dark);
  margin-bottom: 0.6rem;
}

.cosm-card__text {
  font-size: 0.88rem;
  color: var(--clr-text-light);
  line-height: 1.65;
}

.cosm-note {
  background: var(--clr-warm);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: var(--space-md);
}

.cosm-note__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cosm-note p { font-size: 0.9rem; color: var(--clr-text); }

/* ============================================
   TRICHOLOGY SECTION
   ============================================ */
.trich-overview {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  align-items: start;
}

@media (max-width: 720px) {
  .trich-overview { grid-template-columns: 1fr; }
  .trich-overview__visual { max-width: 240px; margin-inline: auto; }
}

.follicle-diagram {
  position: relative;
}

.follicle-svg {
  width: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.trich-overview__text p {
  font-size: 0.92rem;
  color: var(--clr-warm2);
}

.trich-points {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.trich-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--clr-warm2);
}

.trich-point::before {
  content: '→';
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 0.05em;
}

.subsection-title {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  color: var(--clr-warm);
  margin-bottom: 1.5rem;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.condition-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: background 0.3s, transform 0.3s;
}

.condition-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.condition-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}

.condition-card__text {
  font-size: 0.88rem;
  color: var(--clr-warm2);
  line-height: 1.65;
}

/* ============================================
   DEFICIENCY SECTION
   ============================================ */
.defic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.defic-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--clr-warm2);
}

.symptom-list li {
  font-size: 0.88rem;
  color: var(--clr-text-light);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--clr-warm2);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.symptom-list li::before {
  content: '•';
  color: var(--clr-accent);
  font-size: 1.1rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.symptom-list--causes li::before {
  content: '↗';
  color: var(--clr-accent2);
}

/* Supplementation */
.supp-section {
  margin-bottom: var(--space-lg);
}

.supp-section h3 { margin-bottom: 1.5rem; }

.supp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.supp-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border-top: 3px solid var(--clr-accent);
  box-shadow: 0 2px 10px rgba(58, 46, 36, 0.06);
}

.supp-card__label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.supp-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--clr-dark);
  margin-bottom: 0.5rem;
}

.supp-card__text {
  font-size: 0.85rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* Food */
.food-section h3 { margin-bottom: 1.5rem; }

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.food-item {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 10px rgba(58, 46, 36, 0.05);
  transition: transform 0.25s var(--ease);
  cursor: default;
}

.food-item:hover { transform: translateY(-3px); }

.food-item__icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.food-item__name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--clr-dark);
  margin-bottom: 0.25rem;
}

.food-item__note {
  font-size: 0.78rem;
  color: var(--clr-text-light);
}

/* ============================================
   SOURCES SECTION
   ============================================ */
.sources-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.sources-list li {
  font-size: 0.85rem;
  color: var(--clr-warm2);
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border-left: 2px solid var(--clr-accent);
  line-height: 1.6;
}

.disclaimer {
  font-size: 0.83rem;
  color: var(--clr-warm2);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  line-height: 1.6;
}

.disclaimer strong { color: var(--clr-warm); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0e0b09;
  padding: var(--space-lg) 0 var(--space-md);
  color: var(--clr-warm2);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-size: 0.82rem;
  color: rgba(212, 196, 176, 0.5);
  margin-top: 0.5rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
}

.footer__nav a {
  font-size: 0.82rem;
  color: rgba(212, 196, 176, 0.6);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--clr-warm); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer__bottom p {
  font-size: 0.78rem;
  color: rgba(212, 196, 176, 0.35);
  margin: 0;
}

/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.33s; opacity: 1; transform: none; }
.reveal-group.visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* ============================================
   RESPONSIVE MISC
   ============================================ */
@media (max-width: 600px) {
  .hero__title { font-size: clamp(3.2rem, 14vw, 4.5rem); }
  .footer__inner { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}
