/* iBrows — intro.ibrows.ro
   Mobile-first design system. Matches card.ibrows.ro.
*/

:root {
  --magenta: #F10EC2;
  --magenta-soft: #FF4DE5;
  --magenta-glow: rgba(241, 14, 194, 0.35);
  --magenta-fade: rgba(241, 14, 194, 0.5);
  --cream: #F5EDE0;
  --cream-light: #FAF5EC;
  --cream-warm: #EFE3D0;
  --ink: #1A1A1A;
  --ink-soft: #4A4A4A;
  --ink-muted: #8A8A8A;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 250ms var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PT Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: radial-gradient(ellipse at top, var(--cream-light) 0%, var(--cream) 50%, var(--cream-warm) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

/* Magenta glow at top-right */
.magenta-glow {
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--magenta-glow) 0%, rgba(241, 14, 194, 0) 70%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

/* Accessibility utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout */
main { position: relative; z-index: 2; }

section {
  padding: 48px 24px;
  max-width: 700px;
  margin: 0 auto;
}

/* Header / language switcher */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

.lang-btn {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-family: inherit;
  font-size: 13px;
  padding: 4px 6px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn:hover { color: var(--ink-soft); }

.lang-btn.is-active {
  color: var(--ink);
  font-weight: 700;
}

.lang-divider { color: var(--ink-muted); }

/* Hero */
.hero {
  text-align: center;
  padding: 8px 16px 24px;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 48px;
}

.hero-tagline {
  font-size: clamp(20px, 6.5vw, 26px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
  white-space: nowrap;
}

.magenta-accent { color: var(--magenta); }

.hero-subline {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.hero-subline .word {
  color: var(--ink-soft);
}

.hero-subline .separator {
  color: var(--magenta-fade);
  margin: 0 0.5em;
}

/* Brand intro — sits close under hero */
.brand-intro {
  text-align: center;
  padding-top: 24px;
}

.brand-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* Section titles */
.section-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--ink);
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 16px;
}

.section-body {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  transition-duration: 300ms;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
}

.product-card:hover .product-name { color: var(--magenta); }

.product-img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto 16px;
}

.product-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
  transition: color 300ms var(--ease);
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
}

.product-name::after {
  content: " ↗";
  font-size: 0.6em;
  vertical-align: super;
  opacity: 0;
  margin-left: 4px;
  transition: opacity 250ms var(--ease);
  color: var(--magenta);
}

.product-card:hover .product-name::after,
.product-card:focus-visible .product-name::after {
  opacity: 1;
}

.product-tagline {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.product-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Why iBrows */
.why-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 16px 8px;
}

.why-icon { font-size: 28px; line-height: 1; }

.why-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--magenta);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(241, 14, 194, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid var(--ink-soft);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--ink);
}

.btn-small {
  font-size: 14px;
  padding: 10px 20px;
}

/* Distributor / Visit sections */
.distributor, .visit {
  text-align: center;
}

/* Team */
.team {
  text-align: center;
}

.team-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  margin-top: 12px;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  transition: var(--transition);
}

.team-photo-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  transition: var(--transition);
  background: var(--cream-light);
  box-shadow: 0 6px 20px rgba(26, 26, 26, 0.06);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-card:hover .team-photo-wrap,
.team-card:focus-visible .team-photo-wrap {
  border-color: var(--magenta);
  box-shadow: 0 8px 28px rgba(241, 14, 194, 0.25);
}

.team-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.team-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 24px 32px;
  max-width: 700px;
  margin: 0 auto;
}

.footer-tagline {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.footer-contact a:hover { color: var(--magenta); }

.footer-social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: var(--transition);
}

.footer-social a:hover { color: var(--magenta); transform: translateY(-2px); }

.footer-region {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 9999;
  background: var(--cream-light);
  border-top: 1px solid var(--magenta-glow);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 300ms var(--ease);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 16px;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

@media (min-width: 700px) {
  section { padding: 64px 32px; }

  .hero { padding: 16px 32px 32px; }
  .hero-logo { margin-bottom: 56px; }
  .hero-tagline { font-size: 44px; }
  .hero-subline { font-size: 17px; }

  .brand-intro { padding-top: 48px; }
  .brand-intro p { font-size: 17px; }

  .section-title { font-size: 32px; }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .team-grid {
    flex-direction: row;
    justify-content: center;
    gap: 64px;
  }

  .cookie-banner {
    max-width: 600px;
    padding: 24px;
  }
}
