/* LeHype.ch — custom styles on top of Tailwind */
:root {
  --red: #DE583F;
  --red-dark: #B8432D;
  --red-light: #F2A894;
  --beige: #F5F1EA;
  --beige-dark: #E8D9C0;
  --beige-deeper: #D4C2A0;
  --ink: #1C1C25;
  --ink-soft: #3A3A47;
  --muted: #6B6B7A;
  --line: #D9D2C5;
  --cream: #FAF7F2;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

/* Custom utilities */
.bg-red { background: var(--red); }
.bg-red-dark { background: var(--red-dark); }
.bg-beige { background: var(--beige); }
.bg-beige-dark { background: var(--beige-dark); }
.bg-beige-deeper { background: var(--beige-deeper); }
.bg-ink { background: var(--ink); }
.bg-cream { background: var(--cream); }
.text-red { color: var(--red); }
.text-red-light { color: var(--red-light); }
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }
.text-cream { color: var(--cream); }
.border-line { border-color: var(--line); }

/* Typography */
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}
.eyebrow-muted { color: var(--muted); font-weight: 600; }
.eyebrow-light { color: rgba(255,255,255,0.75); }

h1, h2, h3, h4 { letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-weight: 800; }
h2 { font-weight: 800; }
h3 { font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: #000; }
.btn-light { background: white; color: var(--red); }
.btn-light:hover { background: var(--cream); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.3); color: white; background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn-ghost-dark { border: 1.5px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--ink); color: white; }

/* Card */
.card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }

.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-circle-red { background: var(--red); color: white; }
.icon-circle-ink { background: var(--ink); color: white; }
.icon-circle-beige { background: var(--beige-dark); color: var(--ink); }

/* Nav */
.nav-link { transition: color 0.2s; }
.nav-link:hover { color: var(--red); }
.nav-link.active { color: var(--red); font-weight: 600; }

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open { display: flex; }

/* Accordion */
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  width: 100%; padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left; font-size: 16px; font-weight: 600; color: inherit;
}
.accordion-content {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.accordion-content.open { max-height: 500px; }
.accordion-content-inner { padding-bottom: 20px; font-size: 14px; color: var(--ink-soft); line-height: 1.7; }
.accordion-icon { transition: transform 0.3s; flex-shrink: 0; color: var(--muted); }
.accordion-trigger.open .accordion-icon { transform: rotate(45deg); color: var(--red); }

/* Form */
.input, .textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--beige); font-family: inherit;
  font-size: 14px; color: var(--ink); transition: border-color 0.2s, background 0.2s;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--red); background: white; }
.textarea { resize: vertical; min-height: 120px; }
.label {
  display: block; font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
}

.chip {
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 12px; font-weight: 600; cursor: pointer; background: white;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--red); }
.chip.active { background: var(--red); color: white; border-color: var(--red); }

/* Filter pills */
.pill { padding: 10px 18px; border-radius: 999px; background: white; color: var(--ink);
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); color: white; border-color: var(--ink); }

/* Carousel — fully responsive */
.carousel { position: relative; overflow: hidden; width: 100%; box-sizing: border-box; }
.carousel-track { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform; }
.carousel-slide {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 100%;
  box-sizing: border-box;
  padding: 0 4px;
}
.carousel-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  box-sizing: border-box;
}
.carousel-card img { width: 80px; height: 80px; border-radius: 9999px; object-fit: cover; }
.carousel-card .quote { font-size: 17px; line-height: 1.5; font-weight: 500; margin-bottom: 20px; }
.carousel-card .author { font-weight: 700; }
.carousel-card .meta { font-size: 13px; opacity: 0.8; }
.carousel-stars { display: flex; gap: 4px; margin-bottom: 14px; }
@media (min-width: 768px) {
  .carousel-card { grid-template-columns: auto 1fr; padding: 40px; gap: 32px; }
  .carousel-card img { width: 120px; height: 120px; }
  .carousel-card .quote { font-size: 20px; }
}
@media (min-width: 1024px) {
  .carousel-card { padding: 48px; }
  .carousel-card .quote { font-size: 22px; }
}
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3);
  border: none; cursor: pointer; padding: 0; transition: all 0.2s;
}
.carousel-dot.active { background: white; width: 24px; border-radius: 4px; }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: white;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  z-index: 3;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.carousel-nav:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.carousel-nav:active { transform: translateY(-50%) scale(0.96); }
.carousel-nav svg { display: block; }
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
@media (min-width: 1024px) {
  .carousel-nav { width: 52px; height: 52px; }
  .carousel-prev { left: 16px; }
  .carousel-next { right: 16px; }
}

/* Language selector */
.lang-selector { position: relative; }
.lang-toggle {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; transition: all 0.2s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.lang-toggle .current { color: var(--red); font-weight: 700; }
.lang-toggle .chev { transition: transform 0.2s; }
.lang-toggle.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--ink); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 6px; min-width: 100px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3); z-index: 60;
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.lang-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-option {
  display: block; width: 100%; padding: 8px 12px;
  background: none; border: none; color: white;
  font-size: 13px; font-weight: 500; text-align: left;
  cursor: pointer; border-radius: 6px; font-family: inherit;
  transition: background 0.15s;
}
.lang-option:hover { background: rgba(255,255,255,0.08); }
.lang-option.active { background: var(--red); color: white; }
.lang-option .flag { display: inline-block; width: 18px; margin-right: 8px; font-size: 11px; opacity: 0.7; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; animation: fadeUp 0.6s forwards; }

/* Triangle decoration (logo motif) */
.triangle-decor {
  position: absolute; pointer-events: none; opacity: 0.08;
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 44px !important; }
  h2 { font-size: 32px !important; }
}
@media (max-width: 768px) {
  h1 { font-size: 36px !important; }
  h2 { font-size: 26px !important; }
  .eyebrow { font-size: 10px; }
  section { padding-left: 24px !important; padding-right: 24px !important; }
}
