@import url("../base.css");
@import url("../components.css");

:root {
      --navy: #1a2f53;
      --navy-deep: #122443;
      --mint: #b0ddd0;
      --canvas: #fbfcfd;
      --muted: #52637d;
      --border: rgba(26, 47, 83, 0.12);
      --shadow: 0 18px 48px rgba(26, 47, 83, 0.12);
      --max-width: 1280px;
      --max: 1280px;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      min-height: 100%;
      background: #ffffff;
      color: var(--navy);
    }

    body {
      font-family: "DM Sans 18 pt", "Segoe UI", sans-serif;
      position: relative;
    }

    @keyframes iUp {
      to {
        opacity: 1;
        transform: none;
      }
    }

    @keyframes iFade {
      to {
        opacity: 1;
      }
    }

    @keyframes iBar {
      to {
        width: 100%;
      }
    }

    #intro {
      position: fixed;
      inset: 0;
      z-index: 1000;
      background: var(--off, #f3f5f8);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.9s ease;
    }

    #intro.hide {
      opacity: 0;
      pointer-events: none;
    }

    .intro-logo {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
      animation: iUp 1s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.4s forwards;
    }

    .intro-logo img {
      width: min(760px, 82vw);
      height: auto;
      display: block;
    }

    .intro-slogan {
      margin-top: 22px;
      font-family: "Playfair Display", Georgia, "Times New Roman", serif;
      font-size: clamp(0.95rem, 2vw, 1.3rem);
      font-style: italic;
      color: var(--muted, #6b7a8d);
      letter-spacing: 0.02em;
      opacity: 0;
      animation: iUp 0.9s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) 0.95s forwards;
    }

    .intro-line {
      margin-top: 40px;
      width: 100px;
      height: 1px;
      background: var(--border, rgba(27, 48, 84, 0.09));
      overflow: hidden;
      opacity: 0;
      animation: iFade 0.3s ease 1.35s forwards;
    }

    .intro-line-fill {
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--teal, #3a8b7a), var(--mint, #b0ddd0));
      animation: iBar 1.3s var(--ease, cubic-bezier(0.16, 1, 0.3, 1)) 1.45s forwards;
    }

    html.intro-seen #intro {
      display: none;
    }

    body::before {
      content: "";
      position: fixed;
      left: 50%;
      bottom: -150px;
      width: min(1320px, 70vw);
      aspect-ratio: 1774 / 887;
      transform: translateX(-50%);
      background: url("../../images/World Map Logo.png") center bottom / contain no-repeat;
      opacity: 1;
      pointer-events: none;
      z-index: 0;
    }

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

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      min-height: 48px;
      padding: 14px 24px;
      border-radius: 999px;
      border: 1px solid transparent;
      text-decoration: none;
      font-weight: 800;
      font-size: 0.88rem;
      letter-spacing: 0.04em;
      cursor: pointer;
      font-family: "DM Sans 18 pt", "Segoe UI", sans-serif;
    }

    .btn-primary {
      background: var(--navy);
      color: #fff;
      box-shadow: 0 12px 34px rgba(27, 48, 84, 0.18);
    }

    .btn-primary:hover {
      background: var(--teal);
    }

    .btn-secondary {
      background: transparent;
      color: var(--navy);
      border-color: rgba(27, 48, 84, 0.2);
    }

    .btn-secondary:hover {
      border-color: var(--teal);
      color: var(--teal);
    }

    .page-shell {
      min-height: 100vh;
      background: transparent;
      opacity: 0;
      transition: opacity 0.6s ease;
      position: relative;
      z-index: 1;
    }

    .page-shell.visible,
    html.intro-seen .page-shell {
      opacity: 1;
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 10;
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      gap: 18px;
      height: 66px;
      padding: 0 clamp(20px, 7vw, 96px);
      background: rgba(250, 252, 253, 0.98);
      border-bottom: 1px solid rgba(27, 48, 84, 0.1);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      justify-self: start;
    }

    .brand img {
      height: 42px;
      width: auto;
      display: block;
    }

    .header-nav {
      justify-self: center;
    }

    .header-nav ul {
      display: flex;
      align-items: center;
      gap: clamp(48px, 6vw, 96px);
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .header-nav,
    .header-nav a {
      font-family: "Jost", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-weight: 500;
    }

    .header-nav a {
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #1a2f53;
    }

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

    .nav-language {
      position: relative;
      z-index: 20;
      flex-shrink: 0;
    }

    .nav-language-trigger {
      width: auto;
      height: auto;
      border: none;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      margin: 0;
      color: var(--navy);
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .nav-language-trigger:hover,
    .nav-language.open .nav-language-trigger {
      transform: translateY(-1px);
    }

    .nav-language-flag {
      font-size: 1.18rem;
      line-height: 1;
    }

    .nav-language-menu {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      min-width: 170px;
      padding: 8px;
      border: 1px solid rgba(27, 48, 84, 0.1);
      border-radius: 16px;
      background: rgba(250, 252, 253, 0.98);
      box-shadow: 0 18px 40px rgba(27, 48, 84, 0.1);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .nav-language.open .nav-language-menu {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .nav-language-option {
      width: 100%;
      border: none;
      background: transparent;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 10px;
      color: var(--navy);
      font: inherit;
      text-align: left;
      cursor: pointer;
    }

    .nav-language-option:hover,
    .nav-language-option.active {
      background: rgba(58, 139, 122, 0.09);
      color: #3a8b7a;
    }

    .nav-language-option-flag {
      font-size: 1rem;
      line-height: 1;
    }

    .nav-language-option-label {
      font-size: 0.9rem;
      font-weight: 500;
    }

    .hero {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: calc(100vh - 78px);
      padding: clamp(56px, 7vw, 84px) 24px 88px;
      overflow: hidden;
      isolation: isolate;
    }

    .hero::before {
      content: none;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: transparent;
      z-index: -1;
    }

    .hero-inner {
      width: min(100%, var(--max-width));
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      transform: translateY(-52px);
    }

    .hero-subtitle {
      max-width: 900px;
      margin: 50px 0 20px;
      font-size: clamp(1rem, 1.45vw, 1.125rem);
      line-height: 1.55;
      font-style: italic;
      color: var(--navy);
      position: relative;
      z-index: 1;
    }

    .hero-subtitle::before {
      content: "";
      position: absolute;
      inset: -16px -34px;
      border-radius: 999px;
      background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.54) 45%,
        rgba(255, 255, 255, 0) 82%
      );
      filter: blur(2px);
      pointer-events: none;
      z-index: -1;
    }

    .hero-subtitle-line-1,
    .hero-subtitle-line-2,
    .hero-subtitle-line-3 {
      display: block;
    }

    .hero-title {
      max-width: 1240px;
      margin: 0;
      font-family: "Philosopher", Georgia, serif;
      font-size: clamp(1.95rem, 3.85vw, 3.55rem);
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.04em;
      color: var(--navy);
    }

    .hero-title-line-1,
    .hero-title-line-2 {
      display: block;
    }

    .hero-title-line-1 {
      white-space: nowrap;
    }

    .hero-actions {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      gap: 100px;
      margin-top: clamp(34px, 5vw, 52px);
    }

    .hero-button {
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 2px;
      min-height: 100px;
      width: 340px;
      padding: 0 34px;
      border-radius: 10px;
      background: var(--navy);
      border: 2px solid var(--navy);
      box-shadow: 0 8px 0 #000;
      font-family: "DM Sans 18 pt", "Segoe UI", sans-serif;
      font-size: clamp(1rem, 1.55vw, 1.375rem);
      font-weight: 700;
      line-height: 1.2;
      color: #fbfdfe;
      text-align: center;
      white-space: normal;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .hero-button-line,
    .hero-button-line-1,
    .hero-button-line-2 {
      display: block;
    }

    .hero-button:hover {
      transform: translateY(-3px) scale(1.04);
      box-shadow: 0 10px 0 #000;
      background: var(--navy-deep);
      border-color: var(--navy-deep);
    }

    .hero-button.secondary {
      width: 340px;
    }

    footer {
      background: var(--navy-deep);
      padding: 56px clamp(20px, 7vw, 96px) 28px;
      position: relative;
      z-index: 2;
    }

    .footer-grid {
      max-width: var(--max);
      margin: 0 auto 44px;
      display: grid;
      grid-template-columns: minmax(280px, 1.28fr) max-content max-content 0.72fr;
      gap: clamp(90px, 6vw, 220px);
      align-items: start;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 13px;
    }

    .footer-logo img {
      width: 44px;
      height: 44px;
      display: block;
      object-fit: cover;
      object-position: left center;
      border-radius: 50%;
    }

    .footer-logo-text {
      font-family: Georgia, "Times New Roman", serif;
      font-size: 2rem;
      font-weight: 400;
      line-height: 1;
      color: rgba(255, 255, 255, 0.9);
    }

    .social-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 18px;
    }

    .social-link {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #fff;
      border: 1px solid rgba(255, 255, 255, 0.12);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      text-decoration: none;
    }

    .social-link:hover {
      transform: translateY(-2px);
      box-shadow: 0 20px 24px rgba(0, 0, 0, 0.14);
    }

    .social-link svg {
      width: 22px;
      height: 22px;
      display: block;
      fill: currentColor;
    }

    .social-whatsapp { color: #25d366; }
    .social-telegram { color: #2aabee; }
    .social-facebook { color: #1877f2; }
    .social-instagram { color: #e4405f; }
    .social-youtube { color: #ff2d20; }

    .footer-col h4 {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.6);
      margin: 0 0 16px;
    }

    .footer-col ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 9px;
      margin: 0;
      padding: 0;
    }

    .footer-col a,
    .footer-link-button {
      font-size: 0.83rem;
      font-weight: 400;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.36);
      text-decoration: none;
      transition: color 0.2s ease;
    }

    .footer-link-button {
      appearance: none;
      border: none;
      background: none;
      padding: 0;
      font-family: inherit;
      text-align: left;
      cursor: pointer;
    }

    .footer-col a:hover,
    .footer-link-button:hover,
    .footer-link-button:focus-visible {
      color: var(--mint);
    }

    .footer-bottom {
      max-width: var(--max);
      margin: 0 auto;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      padding-top: 22px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .footer-copy {
      margin: 0;
      font-size: 0.76rem;
      color: rgba(255, 255, 255, 0.25);
    }

    body.cookie-modal-open {
      overflow: hidden;
    }

    .cookie-modal {
      position: fixed;
      inset: 0;
      z-index: 1400;
      display: grid;
      place-items: center;
      padding: 24px;
    }

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

    .cookie-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 30, 56, 0.62);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .cookie-modal-dialog {
      position: relative;
      width: min(720px, 100%);
      max-height: min(86vh, 920px);
      overflow: auto;
      padding: 34px;
      border-radius: 28px;
      border: 1px solid rgba(27, 48, 84, 0.1);
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 245, 248, 0.98) 100%);
      box-shadow: 0 32px 80px rgba(15, 30, 56, 0.24);
      transform: translateY(18px) scale(0.98);
      opacity: 0;
      transition: transform 0.2s var(--ease), opacity 0.2s ease;
    }

    .cookie-modal.is-open .cookie-modal-dialog {
      transform: translateY(0) scale(1);
      opacity: 1;
    }

    .cookie-modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 42px;
      height: 42px;
      border: none;
      border-radius: 50%;
      background: rgba(27, 48, 84, 0.08);
      color: var(--navy);
      font-size: 1.6rem;
      line-height: 1;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .cookie-modal-close:hover,
    .cookie-modal-close:focus-visible {
      background: rgba(58, 139, 122, 0.14);
      transform: translateY(-1px);
      outline: none;
    }

    .cookie-modal-dialog h2 {
      font-family: "Philosopher", "Playfair Display", serif;
      font-size: clamp(2rem, 3vw, 2.6rem);
      line-height: 1.05;
      margin-bottom: 12px;
      max-width: 14ch;
    }

    .cookie-modal-dialog > p {
      font-size: 0.94rem;
      color: var(--muted);
      line-height: 1.78;
      max-width: 62ch;
    }

    .cookie-preference-list {
      display: grid;
      gap: 14px;
      margin-top: 28px;
    }

    .cookie-preference-item {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 18px;
      padding: 18px 20px;
      border-radius: 20px;
      border: 1px solid rgba(27, 48, 84, 0.08);
      background: rgba(255, 255, 255, 0.82);
    }

    .cookie-preference-item.is-locked {
      background: linear-gradient(135deg, rgba(58, 139, 122, 0.12), rgba(255, 255, 255, 0.86));
    }

    .cookie-preference-copy {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .cookie-preference-copy strong {
      font-size: 0.96rem;
      color: var(--navy);
    }

    .cookie-preference-copy span {
      font-size: 0.84rem;
      line-height: 1.7;
      color: var(--muted);
    }

    .cookie-toggle-wrap {
      position: relative;
      flex-shrink: 0;
    }

    .cookie-toggle-wrap input {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      cursor: pointer;
    }

    .cookie-toggle-wrap input:disabled {
      cursor: not-allowed;
    }

    .cookie-toggle {
      display: block;
      width: 58px;
      height: 32px;
      border-radius: 999px;
      background: rgba(27, 48, 84, 0.15);
      position: relative;
      transition: background 0.2s ease;
    }

    .cookie-toggle::after {
      content: "";
      position: absolute;
      top: 4px;
      left: 4px;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 4px 16px rgba(15, 30, 56, 0.18);
      transition: transform 0.2s var(--ease);
    }

    .cookie-toggle-wrap input:checked + .cookie-toggle {
      background: linear-gradient(135deg, var(--teal), var(--teal-lt));
    }

    .cookie-toggle-wrap input:checked + .cookie-toggle::after {
      transform: translateX(26px);
    }

    .cookie-toggle-wrap input:focus-visible + .cookie-toggle {
      outline: 2px solid rgba(58, 139, 122, 0.42);
      outline-offset: 3px;
    }

    .cookie-toggle-wrap input:disabled + .cookie-toggle {
      opacity: 0.9;
    }

    .cookie-modal-note {
      margin-top: 18px;
      font-size: 0.8rem;
      color: rgba(107, 122, 141, 0.94);
    }

    .cookie-modal-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 28px;
    }

    .cookie-modal-actions .btn {
      min-height: 50px;
    }

    @media (max-width: 900px) {
      .site-header {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        height: auto;
        padding-top: 12px;
        padding-bottom: 12px;
      }

      .brand,
      .header-nav,
      .header-actions {
        justify-self: center;
      }

      .header-actions {
        justify-self: center;
      }

      .header-nav ul {
        gap: 22px;
      }

      .hero {
        min-height: auto;
        padding-top: 48px;
      }

      body::before {
        width: 110vw;
        bottom: 18px;
      }

      .hero-inner {
        transform: none;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 26px;
      }
    }

    @media (max-width: 640px) {
      .brand img {
        width: min(184px, 72vw);
      }

      .header-nav ul {
        flex-direction: column;
        gap: 14px;
      }

      .header-nav a {
        font-size: 0.84rem;
        letter-spacing: 0.12em;
      }

      .hero-subtitle {
        margin-bottom: 20px;
      }

      .hero-title {
        font-size: clamp(2.5rem, 14vw, 4.2rem);
      }

      .hero-title-line-1 {
        white-space: normal;
      }

      .hero-actions {
        width: 100%;
        gap: 14px;
      }

      .hero-button {
        width: min(100%, 360px);
        min-height: 58px;
        padding: 14px 24px;
        font-size: 1rem;
      }
    }
