/* =========================
   COMPONENTS.CSS
   Header / Navigation / Buttons / Cards / Footer / Reveal
========================= */

:root {
  --header-topbar-height: 52px;
  --header-topbar-height-mobile: 56px;

  --header-blue: #0c5466;
  --header-blue-dark: #094656;
  --header-white: #ffffff;

  --header-border-light: rgba(255, 255, 255, 0.14);
  --header-border-dark: rgba(12, 84, 102, 0.08);

  --header-text-light: rgba(255, 255, 255, 0.92);
  --header-text-muted: rgba(255, 255, 255, 0.72);

  --header-container: 1720px;
  --topbar-container: 1440px;
  --hero-left-offset: 140px;
  --logo-height: 88px;
  --logo-bar-height: 102px;
}

/* =========================
   HEADER / NAVIGATION
========================= */

.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
}

.topbar,
.logo-bar,
.mobile-menu,
.nav-links,
.nav-links li,
.logo-bar-inner,
.topbar-inner {
  margin-top: 0;
}

.topbar {
  background: linear-gradient(135deg, var(--header-blue) 0%, var(--header-blue-dark) 100%);
  border-bottom: 1px solid var(--header-border-light);
}

.topbar-inner {
  width: min(var(--topbar-container), calc(100% - 48px));
  min-height: var(--header-topbar-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: relative;
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-topbar-height);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--header-text-light);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 46px;
}

.nav-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
}

/* =========================
   LANGUAGE SWITCH
========================= */

.lang-switch {
  position: relative;
  z-index: 50;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: auto !important;
}

.lang-switch .lang-btn,
.lang-switch span {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 51;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--header-text-muted);
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.lang-switch .lang-btn:hover,
.lang-switch span:hover {
  color: #ffffff;
}

.lang-switch .lang-btn.active,
.lang-switch .lang-btn[aria-pressed="true"],
.lang-switch span.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* =========================
   LOGO BAR
========================= */

.logo-bar {
  background: var(--header-white);
  border-bottom: 1px solid var(--header-border-dark);
}

.logo-bar-inner {
  width: min(var(--header-container), 100%);
  min-height: var(--logo-bar-height);
  margin: 0 auto;
  padding-left: var(--hero-left-offset);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

.logo {
  width: max-content;
}

.logo-image {
  display: block;
  width: auto;
  height: var(--logo-height);
  object-fit: contain;
}

/* =========================
   MOBILE MENU
========================= */

.menu-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.mobile-nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav-links li {
  margin: 0;
  padding: 0;
}

.mobile-menu-bottom {
  padding-top: 0;
}

.mobile-lang-switch {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* =========================
   BUTTONS / TOGGLES
========================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: linear-gradient(135deg, var(--logo-blue-6), var(--logo-blue-1));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 24px rgba(0, 72, 110, 0.16);
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--logo-blue-5), var(--logo-blue-2));
  transform: translateX(4px);
}

.section-toggle-wrap {
  margin-top: 34px;
}

.section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--logo-blue-6), var(--logo-blue-1));
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 72, 110, 0.18);
}

.section-toggle-icon,
.service-icon,
.horizontal-accordion-icon {
  position: relative;
  display: inline-block;
  color: currentColor;
}

.section-toggle-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.section-toggle-icon::before,
.section-toggle-icon::after,
.service-icon::before,
.service-icon::after,
.horizontal-accordion-icon::before,
.horizontal-accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.section-toggle-icon::before {
  width: 14px;
  height: 1.8px;
}

.section-toggle-icon::after {
  width: 1.8px;
  height: 14px;
}

.section-toggle[aria-expanded="true"] .section-toggle-icon::after,
.service-trigger[aria-expanded="true"] .service-icon::after,
.horizontal-accordion-trigger[aria-expanded="true"] .horizontal-accordion-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0.35);
}

/* =========================
   CARDS / ACCORDIONS
========================= */

.section-points-collapse,
.region-collapse {
  margin-top: 18px;
}

.section-points-collapse {
  margin-top: 26px;
  overflow: hidden;
}

.section-points {
  display: grid;
  gap: 14px;
}

.section-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 72, 110, 0.07);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.section-point-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 72, 110, 0.08);
  color: var(--brand-primary);
  font-size: 15px;
  line-height: 1;
  font-weight: 800;
}

.section-point-text {
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-main);
  font-weight: 500;
}

.region-card,
.horizontal-region-card {
  border: 1px solid rgba(0, 72, 110, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  box-shadow: 0 14px 34px rgba(0, 72, 110, 0.08);
}

.region-card {
  padding: 28px 30px;
  border-radius: 22px;
}

.region-card h3 {
  margin: 0 0 14px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.region-card p {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-body);
}

/* =========================
   MORE KNOW CARDS
========================= */

.more-know {
  margin-top: 56px;
}

.more-know-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.more-know-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 24px 24px 22px;
  border: 1px solid rgba(0, 72, 110, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: 0 16px 34px rgba(0, 72, 110, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.more-know-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 72, 110, 0.16);
  box-shadow: 0 22px 40px rgba(0, 72, 110, 0.12);
}

.more-know-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.more-know-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-body);
}

.more-know-link {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0f6a6a;
}

/* =========================
   SERVICES ACCORDION
========================= */

.services-accordion {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.service-item {
  overflow: hidden;
  border: 1px solid rgba(0, 72, 110, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-item:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 72, 110, 0.16);
  box-shadow: 0 18px 36px rgba(0, 72, 110, 0.1);
}

.service-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
}

.service-title {
  font-size: 1.04rem;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.service-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--brand-primary);
}

.service-icon::before {
  width: 18px;
  height: 2px;
}

.service-icon::after {
  width: 2px;
  height: 18px;
}

.service-panel {
  overflow: hidden;
}

.service-panel-inner {
  max-width: 58ch;
  padding: 0 26px 24px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-body);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  margin-top: 0;
  padding: 68px 0 28px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(
    110deg,
    var(--nav-static-start) 0%,
    var(--nav-static-mid-1) 30%,
    var(--nav-static-mid-2) 65%,
    var(--nav-static-end) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.06), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.04), transparent 28%);
}

.site-footer .section-container {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  max-width: 520px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo-image {
  width: auto;
  height: 100px;
  object-fit: contain;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.footer-name {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.76);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-content: start;
}

.footer-heading {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.64);
}

.footer-links {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li,
.footer-links a {
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
}

.footer-copy {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-meta-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-meta-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================
   REVEAL
========================= */

.reveal {
  opacity: 0;
  transform: translate3d(0, var(--reveal-distance), 0);
  transition: opacity 600ms var(--reveal-ease), transform 600ms var(--reveal-ease);
}

.reveal-soft {
  transform: translateY(var(--reveal-distance-soft));
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }
.delay-5 { transition-delay: 400ms; }
.delay-6 { transition-delay: 480ms; }
.delay-7 { transition-delay: 560ms; }
.delay-8 { transition-delay: 640ms; }

.hero-reveal {
  transition-duration: 820ms;
}

.reveal-image {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms var(--reveal-ease), transform 700ms var(--reveal-ease);
}

.reveal-image.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero-stats .stat-item {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 500ms var(--reveal-ease), transform 500ms var(--reveal-ease);
}

.hero-stats.is-visible .stat-item {
  opacity: 1;
  transform: translateY(0);
}

.hero-stats.is-visible .stat-item:nth-child(1) { transition-delay: 100ms; }
.hero-stats.is-visible .stat-item:nth-child(2) { transition-delay: 180ms; }
.hero-stats.is-visible .stat-item:nth-child(3) { transition-delay: 260ms; }

.section-points .section-point {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 500ms var(--reveal-ease), transform 500ms var(--reveal-ease);
}

.section-points.is-visible .section-point {
  opacity: 1;
  transform: translateY(0);
}

.section-points.is-visible .section-point:nth-child(1) { transition-delay: 60ms; }
.section-points.is-visible .section-point:nth-child(2) { transition-delay: 120ms; }
.section-points.is-visible .section-point:nth-child(3) { transition-delay: 180ms; }
.section-points.is-visible .section-point:nth-child(4) { transition-delay: 240ms; }
.section-points.is-visible .section-point:nth-child(5) { transition-delay: 300ms; }
.section-points.is-visible .section-point:nth-child(6) { transition-delay: 360ms; }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
  :root {
    --hero-left-offset: 96px;
  }
}

@media (max-width: 991px) {
  :root {
    --hero-left-offset: 48px;
  }

  .more-know-grid {
    grid-template-columns: 1fr;
  }

  .footer-top,
  .footer-columns,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --logo-height: 78px;
    --logo-bar-height: 92px;
  }

  .topbar-inner {
    width: calc(100% - 32px);
    min-height: var(--header-topbar-height-mobile);
    display: flex;
    justify-content: space-between;
  }

  .nav-links,
  .nav-right {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logo-bar-inner {
    width: calc(100% - 28px);
    min-height: var(--logo-bar-height);
    padding-left: 5px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 26px 0 30px;
  }

  .site-footer .section-container {
    width: calc(100% - 28px);
  }

  .footer-line {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .footer-line + .footer-line {
    margin-top: 8px;
  }

  .footer-meta {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-soft,
  .reveal-image,
  .hero-stats .stat-item,
  .section-points .section-point {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}