/* Base */
* { box-sizing: border-box; }
:root {
  --brand: #0ea5e9;
  --brand-dark: #0b3c74;
  --brand-light: #38bdf8;
  --text: #102a43;
  --muted: #475569;
  --surface: #f1f5f9;
  --card-shadow: rgba(15, 23, 42, 0.12);
}
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { text-decoration: none; color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.container { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 60, 116, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* left brand, right nav, right lang */
  padding: 18px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.site-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto; /* allow center area to grow */
  justify-content: center; /* center nav items */
}
.site-nav a {
  color: #e0f2ff;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}
.site-nav a[aria-current="page"] {
  background: #fff;
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(9, 78, 128, 0.18);
}

/* Footer */
.site-footer {
  background: linear-gradient(90deg, var(--brand-dark), #06335c);
  color: #fff;
  padding: 40px 0 0;
  margin-top: 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.footer-grid h3 { margin: 0 0 8px; color: #fff; }

/* NOTE: removed duplicated `.site-nav` override to avoid conflicting header styles.
   The header `.site-nav` rules near the top of this file control the nav
   layout; these footer-area overrides were redundant and could cause
   unexpected behavior. */

.lang-select {
  background: #ffffff; /* white pill to contrast with dark header */
  color: var(--brand-dark);
  border: 0;
  padding: 8px 12px;
  border-radius: 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(3,24,36,0.12);
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto; /* keep selector its own size */
}
/* Ensure the select's dropdown options remain readable across platforms
   (option styling is limited by browser/OS, but this helps where supported) */
.lang-select option {
  color: #0b3c74; /* dark text for options */
  background: #ffffff; /* white background for options */
}
@media (max-width:640px) {
  .lang-select { align-self: flex-end; }
}

/* Typography */
h1, h2, h3 { font-weight: 700; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .site-nav {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
  }
  .site-nav a {
    margin: 0;
  }
}

/* small visual tweak: ensure the select arrow is visible on dark header */
.lang-select::-ms-expand { display: none; }
.lang-select { background-repeat: no-repeat; background-position: right 10px center; }

/* Footer v2: centered hero + cards (matching site theme) */
.footer-v2 .footer-cta {
  padding: 48px 0 28px;
  background: linear-gradient(180deg, #0e6f90 0%, #0b6a86 100%);
  color: #fff;
}
.footer-v2 .footer-title {
  text-align: center;
  margin: 0 auto 8px;
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
}
.footer-v2 .footer-underline {
  width: 56px;
  height: 4px;
  margin: 8px auto 18px;
  background: rgba(255,255,255,0.18);
  border-radius: 2px;
}
.footer-v2 .footer-sub {
  color: rgba(255,255,255,0.9);
  text-align: center;
  max-width: 860px;
  margin: 0 auto 28px;
  line-height: 1.6;
  font-weight: 400;
}
.footer-v2 .footer-cards { display: flex; gap: 22px; justify-content: center; margin: 12px auto 22px; flex-wrap: wrap; }
.footer-v2 .contact-card { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 28px 26px; flex: 1 1 280px; max-width: 340px; text-align: center; transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease; box-shadow: 0 8px 20px rgba(3, 24, 36, 0.08); }
.footer-v2 .contact-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.08); box-shadow: 0 18px 36px rgba(3, 24, 36, 0.12); }
.footer-v2 .contact-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.08); box-shadow: 0 6px 14px rgba(3,24,36,0.06); }
.footer-v2 .contact-title { font-weight: 700; margin-bottom: 8px; color: #fff; }
.footer-v2 .contact-desc { color: rgba(255,255,255,0.9); font-size: 0.95rem; display: block; }
.footer-v2 .footer-action { text-align: center; margin-top: 10px; }
.footer-v2 .btn-request { display: inline-block; background: #18b2d1; color: #fff; padding: 10px 18px; border-radius: 8px; font-weight: 600; box-shadow: 0 8px 18px rgba(8, 60, 80, 0.12); transition: transform 160ms ease, filter 160ms ease; }
.footer-v2 .btn-request:hover { transform: translateY(-3px); filter: brightness(1.03); }
.footer-v2 .site-footer-copy { background: rgba(0,0,0,0.08); padding: 18px 0 34px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
@media (max-width: 980px) { .footer-v2 .footer-cards { gap: 14px; } .footer-v2 .contact-card { width: calc(50% - 18px); padding: 22px; } }
@media (max-width: 640px) { .footer-v2 .contact-card { width: 100%; } .footer-v2 .footer-title { font-size: 1.6rem; } .footer-v2 .footer-sub { padding: 0 10px; } }
