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

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555555;
  --color-dark: #2b2b2b;
  --color-header-text: #ffffff;
  --color-border: #e0e0e0;

  --font-title: 'IBM Plex Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-height: 72px;
  --header-padding: 8px;
  --header-gap: 6px;
  --header-radius: 8px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

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

/* ============================================
   Header — 3 separate dark blocks on white bg
   ============================================ */
.rd-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--header-padding);
}

.rd-header__inner {
  display: flex;
  align-items: stretch;
  gap: var(--header-gap);
  max-width: 1440px;
  margin: 0 auto;
}

/* Block 1: Logo block (logo + search on mobile) */
.rd-header__logo-block {
  display: flex;
  align-items: center;
  background: var(--color-dark);
  border-radius: var(--header-radius);
  flex-shrink: 0;
  overflow: hidden;
}

.rd-header__logo {
  display: flex;
  align-items: center;
  color: var(--color-header-text);
  padding: 12px 20px;
  transition: background 0.3s ease;
  border-radius: var(--header-radius);
}

.rd-header__logo:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rd-header__logo-text {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--color-header-text) !important;
}

/* Block 2: Navigation (desktop only) */
.rd-header__nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--color-dark);
  border-radius: var(--header-radius);
  padding: 0 40px;
  flex: 1;
  min-width: 0;
}

.rd-header__nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-header-text);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.rd-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-header-text);
  transition: width 0.3s var(--ease-out-expo);
}

.rd-header__nav-link:hover {
  opacity: 1;
}

.rd-header__nav-link:hover::after,
.rd-header__nav-link.is-active::after {
  width: 100%;
}

.rd-header__nav-link.is-active {
  opacity: 1;
}

.rd-header__nav-link.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}

.rd-header__nav-link.is-disabled::after {
  display: none;
}

.rd-menu__link.is-disabled {
  opacity: 0.3 !important;
  pointer-events: none;
  cursor: default;
}

/* Language Switcher */
.rd-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.rd-lang__btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-header-text);
  opacity: 0.4;
  padding: 4px 2px;
  transition: opacity 0.3s ease;
  letter-spacing: 0.03em;
}

.rd-lang__btn:hover {
  opacity: 0.7;
}

.rd-lang__btn.is-active {
  opacity: 1;
}

.rd-lang__sep {
  font-size: 12px;
  color: var(--color-header-text);
  opacity: 0.3;
}

/* Mobile lang — visible, desktop lang — hidden by default */
.rd-lang--mobile {
  display: flex;
}

.rd-lang--desktop {
  display: none;
}

.rd-header__search {
  aspect-ratio: 1 / 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-header-text);
  border-radius: 6px;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.rd-header__search:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mobile search — inside logo block, subtle bg */
.rd-header__search--mobile {
  display: flex;
  border-radius: 6px;
}

/* Desktop search — own dark block, stretches to full height */
.rd-header__search--desktop {
  display: none;
  background: var(--color-dark);
  border-radius: var(--header-radius);
}

.rd-header__search--desktop:hover {
  background: #3a3a3a;
}

/* Burger — own dark block on mobile, stretches to match logo height */
.rd-header__burger {
  width: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  z-index: 110;
  background: var(--color-dark);
  border-radius: var(--header-radius);
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.rd-header__burger:hover {
  background: #363636;
}

.rd-header__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-header-text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s ease;
  transform-origin: center;
}

/* Burger active state */
.rd-header__burger.is-active .rd-header__burger-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.rd-header__burger.is-active .rd-header__burger-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ============================================
   Mobile: [Logo + Search] [Burger]
   ============================================ */
@media (max-width: 767px) {
  .rd-header__logo-block {
    flex: 1;
    gap: 10px;
  }

  .rd-header__logo {
    flex: 1;
  }

  .newsletter__container {
    padding: 0 8px;
  }

  .rd-header__search:hover {
    background: none;
  }
}

/* ============================================
   Menu Overlay (Mobile / Burger)
   ============================================ */
.rd-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 100px 32px 40px;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.rd-menu.is-open {
  pointer-events: all;
}

.rd-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rd-menu__link {
  font-family: var(--font-body);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 500;
  color: var(--color-header-text);
  opacity: 0;
  transform: translateY(40px);
  line-height: 1.2;
  padding: 8px 0;
  transition: opacity 0.3s ease;
}

.rd-menu__link:hover {
  opacity: 0.7;
}

.rd-menu__footer {
  margin-top: auto;
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.rd-menu__footer-link {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-header-text);
  opacity: 0;
  transform: translateY(20px);
}

.rd-menu__footer-link:hover {
  opacity: 0.7;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: calc(var(--header-height) + var(--header-padding) * 2 + 60px);
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

.hero__container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(42px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 32px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__description {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 720px;
  margin: 0 auto 60px;
}

.hero__image {
  max-width: 520px;
  margin: 0 auto;
}

.hero__image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #f0f0f0;
  border-radius: 4px;
}

/* ============================================
   Sections
   ============================================ */
.section {
  padding: 100px 0;
}

.section__container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section__title {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.section__content p {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.section__content p:last-child {
  margin-bottom: 0;
}

/* Profiles Grid */
.section--profiles {
  background: #fafafa;
}

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

.profile-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 40px 32px;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.profile-card__title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.profile-card__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Newsletter (pre-footer)
   ============================================ */
.newsletter {
  padding: 100px 0 0 0;
  /* border-top: 1px solid var(--color-border); */
}

.newsletter__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: flex-end;
}

.newsletter__content {
  padding-bottom: 60px;
}

.newsletter__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.newsletter__text {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.newsletter__form {
  display: flex;
  gap: 16px;
  max-width: 520px;
}

.newsletter__input {
  flex: 1;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter__input:focus {
  border-color: var(--color-text);
}

.newsletter__input::placeholder {
  color: #999;
}

.newsletter__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-bg);
  background: var(--color-dark);
  border: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.newsletter__btn:hover {
  background: #363636;
}

/* Social links under newsletter */
.newsletter__socials {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.newsletter__socials-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 767px) {
  .newsletter__socials {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }

  .newsletter__socials-label {
    font-size: 1rem;
    font-weight: 400;
    white-space: normal;
    text-align: center;
    width: 100%;
  }
}

.newsletter__socials-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.newsletter__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  opacity: 0.90;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.newsletter__social-link svg {
  width: 40px;
  height: 40px;
}

.newsletter__social-link:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.newsletter__image {
  display: block;
}

.newsletter__image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f0f0;
  border-radius: 4px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 0;
}

/* Footer nav bar — mirrors header */
.footer__nav-bar {
  padding: 0 var(--header-padding);
}

.footer__nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--header-gap);
}

.footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex: 1;
  min-width: 0;
  background: var(--color-dark);
  border-radius: var(--header-radius);
  padding: 14px 20px;
}

.footer__nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-header-text);
  opacity: 0.85;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.footer__nav-link:hover {
  opacity: 1;
}

.footer__search {
  width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-header-text);
  background: var(--color-dark);
  border-radius: var(--header-radius);
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.footer__search:hover {
  background: #3a3a3a;
}

/* Footer bottom */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 24px;
}

.footer__bottom-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-secondary);
  transition: color 0.3s ease;
}

.footer__bottom-link:hover {
  color: var(--color-text);
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ============================================
   Header hide on footer
   ============================================ */
.rd-header {
  transition: transform 0.5s var(--ease-out-expo);
}

.rd-header.is-hidden {
  transform: translateY(-110%);
  pointer-events: none;
}

/* ============================================
   Responsive — Desktop (768px+)
   ============================================ */
@media (min-width: 768px) {
  .rd-header__nav {
    display: flex;
  }

  .rd-header__burger {
    display: none;
  }

  /* Hide mobile search/lang, show desktop versions */
  .rd-header__search--mobile {
    display: none;
  }

  .rd-lang--mobile {
    display: none;
  }

  .rd-header__search--desktop {
    display: flex;
  }

  .rd-lang--desktop {
    display: flex;
    background: var(--color-dark);
    border-radius: var(--header-radius);
    padding: 0 14px;
    margin-left: 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--header-padding) * 2 + 100px);
    padding-bottom: 120px;
  }

  .profiles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section {
    padding: 140px 0;
  }

  .newsletter__container {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
  }

  .newsletter__content {
    padding-bottom: 120px;
  }

  .newsletter__image {
    display: block;
  }

  /* Footer nav — hide on mobile, show on tablet+ */
  .footer__nav {
    display: flex;
  }

  .footer__search {
    display: flex;
  }
}

/* Mobile footer: stack logo + nav vertically, hide search */
@media (max-width: 767px) {
  .newsletter__form {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
  }

  .newsletter__content {
    padding-bottom: 0px;
    margin-bottom: -2rem;
  }

  .newsletter__btn {
    width: 100%;
    justify-content: center;
  }

  .footer__nav-inner {
    flex-direction: column;
  }

  .footer__nav-bar {
    padding: 0;
  }

  .footer__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 16px;
    flex-wrap: wrap;
  }

  .footer__nav-link {
    font-size: 14px;
  }

  .footer__search {
    display: none;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .rd-header {
    padding: 20px 32px;
  }

  .rd-header__nav {
    gap: 48px;
    padding: 0 48px;
  }

  .hero__container {
    padding: 0 48px;
  }

  .section__container {
    padding: 0 48px;
  }

  .newsletter__container {
    padding: 0 32px;
  }

  .footer__nav-bar {
    padding: 20px 32px;
  }

  .footer__nav {
    gap: 48px;
    padding: 0 48px;
  }

  .footer__bottom {
    padding: 20px 32px;
  }
}

/* ============================================
   Landscape mobile — compact menu
   ============================================ */
@media (max-height: 500px) {
  .rd-menu {
    padding: 80px 32px 24px;
  }

  .rd-menu__nav {
    gap: 2px;
  }

  .rd-menu__link {
    font-size: clamp(22px, 4vw, 32px);
    padding: 4px 0;
  }

  .rd-menu__footer {
    margin-top: 24px;
    padding-top: 20px;
  }
}

/* ============================================
   Utility: hide scrollbar when menu open
   ============================================ */
body.menu-open {
  overflow: hidden;
}

/* ============================================
   Newsletter subscribe — success/error message UX
   Override CF7 inline absolute positioning so response message
   takes the form's space instead of overlapping content below.
   ============================================ */
.newsletter .wpcf7 form {
  margin-bottom: 0 !important;
}
.newsletter .wpcf7 form .wpcf7-response-output {
  position: static !important;
  margin: 14px 0 0 0 !important;
  max-width: 520px;
  width: 100%;
  padding: 14px 18px !important;
  border-radius: 6px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  text-align: left !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
}
/* Success / error icon */
.newsletter .wpcf7 form.sent .wpcf7-response-output::before,
.newsletter .wpcf7 form.invalid .wpcf7-response-output::before,
.newsletter .wpcf7 form.unaccepted .wpcf7-response-output::before,
.newsletter .wpcf7 form.failed .wpcf7-response-output::before,
.newsletter .wpcf7 form.aborted .wpcf7-response-output::before,
.newsletter .wpcf7 form.spam .wpcf7-response-output::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.newsletter .wpcf7 form.sent .wpcf7-response-output::before {
  content: "✓";
  background: #166534;
}
.newsletter .wpcf7 form.invalid .wpcf7-response-output::before,
.newsletter .wpcf7 form.unaccepted .wpcf7-response-output::before,
.newsletter .wpcf7 form.failed .wpcf7-response-output::before,
.newsletter .wpcf7 form.aborted .wpcf7-response-output::before,
.newsletter .wpcf7 form.spam .wpcf7-response-output::before {
  content: "!";
  background: #991B1B;
}
.newsletter .wpcf7 form.sent .my-subscription-wrapper {
  display: none !important;
}
/* Form has 1 field (email) — global response-output already explains the error;
   hide redundant field-level tip that would overlap the response box. */
.newsletter .wpcf7-not-valid-tip {
  display: none !important;
}