/* 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; }
/* Tailwind CDN Preflight resets headings to font-weight:inherit (400);
   these higher-specificity rules restore the design-system weights. */
body h1 { font-weight: 800; }
body h2 { font-weight: 800; }
body 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;
  white-space: nowrap;
}
.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(0,0,0,0.2);
  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; }
}


/* LeHype dropdown — desktop nav submenu */
.menu-item-has-children { position: relative; }

.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 10px 0 8px;
    min-width: 230px;
    z-index: 500;
    box-shadow: 0 12px 36px rgba(0,0,0,0.45);
    list-style: none;
    margin: 0;
}

/* Show on hover (desktop) or .open class (JS toggle) */
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.open > .sub-menu {
    display: block;
}

.sub-menu li a {
    display: block;
    padding: 9px 18px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.sub-menu li a:hover {
    color: #F5631A;
    background: rgba(255,255,255,0.06);
}

/* Small caret on parent link */
.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0; height: 0;
    margin-left: 5px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.6;
    transition: transform 0.2s;
}
.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}

/* Mobile: sub-menu inline (inside #mobile-menu) */
#mobile-menu .sub-menu {
    display: none;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 6px 0 6px 16px;
    border-left: 2px solid rgba(255,255,255,0.12);
    margin-top: 6px;
    min-width: 0;
}
#mobile-menu .sub-menu li a {
    padding: 6px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.65);
}
#mobile-menu .sub-menu li a:hover {
    color: #F5631A;
    background: transparent;
}


/* LeHype mobile fixes */
@media (max-width: 1023px) {

    /* 1. Hero image: cap height on mobile/tablet so it does not dominate */
    .bg-red .aspect-square {
        aspect-ratio: 4 / 3;
        max-height: 280px;
    }

    /* 2. Stats: scale down numbers and icons on 2-column mobile grid */
    .icon-circle {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        flex-shrink: 0;
    }
    .icon-circle svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Large stat numbers */
    .text-4xl {
        font-size: 1.75rem; /* 28px instead of 36px */
    }

    /* 3. Industry cards: reduce padding on narrow 2-col grid */
    .card {
        padding: 16px;
    }
    /* Industry card text — allow wrapping on tight grid */
    .card .font-semibold.text-sm {
        font-size: 12px;
        line-height: 1.4;
    }

    /* 4. Methodology / pillar step cards */
    .card .text-6xl {
        font-size: 2.5rem; /* 40px instead of 60px */
        margin-bottom: 12px;
    }

    /* 5. Button row: stack on very small screens */
    .flex.flex-wrap.gap-3 .btn {
        font-size: 13px;
        padding: 12px 20px;
    }
}

@media (max-width: 640px) {

    /* Extra reduction on phones */
    .card {
        padding: 14px;
    }
    .icon-circle {
        width: 36px;
        height: 36px;
    }
    .icon-circle svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Stats: single-item layout feels better on very small screens */
    .text-4xl {
        font-size: 1.5rem; /* 24px */
    }

    /* Service page hero image: cap height on phones */
    .rounded-3xl.aspect-\[4\/3\] {
        max-height: 240px;
    }

    /* Hero h1 — already handled by Tailwind text-5xl but just in case */
    h1 {
        font-size: 2rem !important; /* 32px floor */
    }

    /* Service overview 2-col → stack on phones */
    .grid.lg\:grid-cols-\[1\.2fr_1fr\] {
        grid-template-columns: 1fr !important;
    }

    /* Phase cards text */
    .text-2xl.font-extrabold {
        font-size: 1.25rem;
    }

    /* Accordion trigger: avoid icon overlap with long service names */
    .accordion-trigger {
        gap: 8px;
        font-size: 14px;
    }
    .accordion-trigger svg.accordion-icon {
        flex-shrink: 0;
        min-width: 20px;
    }
}

#mobile-menu .menu-item-has-children.open > .sub-menu { display: block; }

/* ── Article body (blog posts / default pages) ─────────────────────────── */
.article-body { color: var(--ink-soft); font-size: 1.0625rem; line-height: 1.8; }
.article-body p { margin: 0 0 1.4rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 {
  color: var(--ink); font-size: 1.75rem; line-height: 1.25;
  font-weight: 800; letter-spacing: -0.01em; margin: 2.75rem 0 1rem;
}
.article-body h3 { color: var(--ink); font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; }
.article-body > h2:first-child, .article-body > h3:first-child, .article-body > p:first-child { margin-top: 0; }
.article-body a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; transition: color .15s; }
.article-body a:hover { color: var(--red-dark); }
.article-body strong { color: var(--ink); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .5rem; }
.article-body blockquote {
  border-left: 3px solid var(--red); padding-left: 1.25rem;
  margin: 2rem 0; font-style: italic; color: var(--ink);
}
.article-body img { border-radius: 1rem; margin: 2rem 0; max-width: 100%; height: auto; }
@media (min-width: 1024px) { .article-body h2 { font-size: 2rem; } }


/* ── Tools logo marquee (industries section) — continuous, non-navigable ── */
.logo-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.logo-marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: logo-marquee-scroll 32s linear infinite;
}
.logo-marquee__group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}
.logo-marquee__item {
  white-space: nowrap;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.4;
}
@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .logo-marquee__item { font-size: 20px; }
  .logo-marquee__group { gap: 48px; padding-right: 48px; }
}


/* ── Section gradients (from Figma) ── */
.hero-gradient { background: linear-gradient(180deg, #DE583F 0%, #933422 100%); }
.testimonials-gradient { background: linear-gradient(180deg, #DE583F 0%, #783022 100%); }
.team-light { background: linear-gradient(rgba(232,217,192,0.26), rgba(232,217,192,0.26)), #FAF7F2; }
.swiss-band { background: #E8D9C0; }

/* ── Stats row living inside the hero (no divider) ── */
.hero-stats .text-4xl { color: #ffffff; }
.hero-stats .hero-stats__label { color: rgba(255,255,255,0.78); }

/* ── Homepage card variants (from Figma) ── */
.methodology-grid .card { border: none; }
.industries-grid .card, .cases-grid .card { border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.industries-grid .card:hover, .cases-grid .card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
/* FAQ (services): red leading icons, bold 18px question labels */
.services-faq .accordion-trigger > span { font-size: 18px; font-weight: 700; }
.services-faq .accordion-trigger > span > svg { color: var(--red); }

/* ── Site-wide soft card variant (Figma motif, used on inner pages) ── */
.cards-soft .card, .card-soft { border: none; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.cards-soft .card:hover, .card-soft:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.08); }

/* LeHype tools-marquee logo sizing (2026-06-19) — markup uses <img>, base CSS only sized text logos */
.logo-marquee__group img { height: 32px; width: auto; display: block; }
@media (max-width: 768px) { .logo-marquee__group img { height: 24px; } }

/* Tools marquee — size down (2026-06-19) */
.logo-marquee { padding: 2.5rem 0; }
.logo-marquee__group { gap: 3rem; align-items: center; }
.logo-marquee__group a { display: inline-flex; align-items: center; }
.logo-marquee__group img { height: 44px; max-height: 44px; width: auto; object-fit: contain; opacity: .7; }
/* Tools marquee — heading centering (2026-06-19) */
.logo-marquee__heading { text-align: center; width: 100%; margin: 0 auto .75rem; padding: 0 1rem; box-sizing: border-box; }

/* Hero breadcrumb — páginas com fundo vermelho */
.lh-breadcrumb-text {
  font-size: 11px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

/* Breadcrumb em páginas com fundo beige/claro */
.lh-breadcrumb-text-light {
  font-size: 11px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 24px;
}