/* ============================================================
   HYDRUS BOARD FINDER — main stylesheet
   Pure static: CSS3 custom properties + RWD (@ 768px)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f4f4f0;
  --ink: #111111;
  --ink-2: #5b5b55;
  --accent: #e65f2b;
  --accent-hover: #d45626;
  --line: #dddad0;
  --cta-bg: #dde3da;
  --card-ink: #f7f7f2;
  --overlay: rgba(12, 12, 11, 0.55);
  --shadow: 0 12px 40px rgba(20, 20, 18, 0.1);
  --shadow-strong: 0 16px 44px rgba(20, 20, 18, 0.16);
  --radius-card: 18px;
  --radius-img: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 68px;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(230, 95, 43, 0.22);
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-top: 14px;
}

.section-lead {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.7;
  max-width: 620px;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 95, 43, 0.32);
}

.btn--primary:active {
  transform: translateY(0);
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(244, 244, 240, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 68px;
}

.brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.brand:hover {
  color: var(--accent);
}

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
}

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.lang-switch__btn:hover {
  border-color: #c5c2b6;
  background: #fff;
}

.lang-switch .icon-chevron {
  transition: transform 0.25s var(--ease);
}

.lang-switch--open .icon-chevron {
  transform: rotate(180deg);
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 196px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-strong);
  display: none;
  z-index: 200;
}

.lang-switch--open .lang-switch__menu {
  display: block;
  animation: menuIn 0.24s var(--ease);
  transform-origin: top right;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: background-color 0.18s var(--ease);
}

.lang-option:hover {
  background: var(--bg);
}

.lang-option__check {
  color: var(--accent);
  opacity: 0;
  flex-shrink: 0;
}

.lang-option[aria-selected="true"] .lang-option__check {
  opacity: 1;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 56px 0;
  background: url("../assets/hero-bg.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10, 10, 9, 0.38) 0%,
    rgba(10, 10, 9, 0.12) 45%,
    rgba(10, 10, 9, 0.04) 75%
  );
}

.hero__inner {
  position: relative;
  display: flex;
}

.hero__card {
  max-width: 560px;
  padding: 48px;
  border-radius: 20px;
  background: var(--overlay);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  color: var(--card-ink);
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-top: 16px;
}

.hero__desc {
  color: rgba(247, 247, 242, 0.85);
  font-size: 17px;
  line-height: 1.7;
  margin: 22px 0 34px;
}

/* ============================================================
   Jobs / Tabs
   ============================================================ */
.jobs__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 56px;
  margin-top: 60px;
  align-items: start;
}

.jobs__tabs {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jobs__tab {
  position: relative;
  text-align: left;
  padding: 17px 22px;
  border-left: 3px solid transparent;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.jobs__tab:hover {
  color: var(--ink);
}

.jobs__tab--active {
  color: var(--ink);
  font-weight: 700;
  border-left-color: var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

/* Panels */
.panel {
  display: none;
}

.panel--active {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: center;
  animation: panelIn 0.35s var(--ease);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.panel__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.panel__body h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.panel__body p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  margin-top: 14px;
}

/* ============================================================
   Shape
   ============================================================ */
.shape__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.feature-list {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.feature {
  display: flex;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature__index {
  flex-shrink: 0;
  width: 30px;
  padding-top: 2px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.feature__title {
  font-size: 17px;
  font-weight: 800;
}

.feature__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 6px;
}

.shape__boards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.board-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.board-figure figcaption {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  margin-top: 10px;
}

/* ============================================================
   Slogans
   ============================================================ */
.slogan {
  padding: 58px 0;
  border-top: 1px solid var(--line);
}

.slogan:last-child {
  border-bottom: 1px solid var(--line);
}

.slogan__index {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.slogan__text {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  max-width: 920px;
  margin: 18px 0;
}

.slogan__sub {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 600px;
}

/* ============================================================
   Final CTA
   ============================================================ */
.cta-section {
  padding-top: 40px;
}

.cta-card {
  max-width: 900px;
  margin-inline: auto;
  padding: 64px;
  text-align: center;
  background: var(--cta-bg);
  border-radius: 20px;
}

.cta-card__title {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-top: 14px;
}

.cta-card__desc {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 16px auto 34px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}

.brand--footer {
  font-size: 14px;
}

.footer__note {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

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

/* ============================================================
   Responsive — <= 768px
   ============================================================ */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }

  .container {
    width: calc(100% - 32px);
  }

  .section {
    padding: 72px 0;
  }

  /* Header */
  .header__inner {
    height: 60px;
  }

  .brand {
    font-size: 13px;
  }

  .lang-switch__btn {
    padding: 8px 13px;
    font-size: 13px;
  }

  .lang-switch__menu {
    min-width: 176px;
  }

  /* Hero: stack card below image logic — full-width card, lower emphasis */
  .hero {
    min-height: auto;
    padding: 36px 0;
    align-items: flex-end;
  }

  .hero__card {
    max-width: 100%;
    padding: 32px 26px;
  }

  .hero__desc {
    font-size: 15px;
    margin: 18px 0 28px;
  }

  /* Jobs: vertical tabs -> horizontally scrollable tab bar */
  .jobs__layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }

  .jobs__tabs {
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .jobs__tab {
    flex: 0 0 auto;
    padding: 11px 18px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    font-size: 15px;
    white-space: nowrap;
  }

  .jobs__tab--active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
    background: transparent;
  }

  /* Panel -> single column, image first */
  .panel--active {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .panel__body h3 {
    font-size: 19px;
  }

  .panel__body p {
    font-size: 15px;
  }

  /* Shape -> single column stack */
  .shape__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .shape__boards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature {
    gap: 16px;
    padding: 22px 0;
  }

  /* Slogans */
  .slogan {
    padding: 42px 0;
  }

  .slogan__sub {
    font-size: 15px;
  }

  /* Final CTA: tighter padding, full-width button */
  .cta-section {
    padding-top: 16px;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .cta-card .btn {
    width: 100%;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .panel--active {
    animation: none;
  }

  .btn,
  .jobs__tab,
  .brand {
    transition: none;
  }
}
