:root {
  --primary: #173E73;
  --primary-dark: #102d55;
  --secondary: #7EA4E9;

  --blue-soft: #eef4ff;
  --white: #ffffff;
  --black: #172033;
  --text: #334155;
  --muted: #64748b;
  --border: #e5eaf2;
  --bg: #f7f9fc;

  --gold: #d5a93a;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 8px 25px rgba(23, 62, 115, 0.06);
  --shadow-md: 0 18px 50px rgba(23, 62, 115, 0.10);

  --container: 1400px;
}

/* =========================
   2. RESET
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--black);
  line-height: 1.2;
}

/* =========================
   3. GLOBAL CONTAINER & LAYOUTS
   ========================= */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

/* =========================
   4. SECTION
   ========================= */

section {
  position: relative;
}

.section {
  padding-block: clamp(70px, 8vw, 120px);
}

.section.soft {
  background: var(--bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(30px, 5vw, 55px);
}

.section-head h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  color: var(--primary);
}

.section-head p {
  max-width: 520px;
  color: var(--muted);
}

/* =========================
   5. EYEBROW & LINKS
   ========================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--secondary);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 15px;
  transition: color 0.25s ease;
}

.text-link:hover {
  color: var(--secondary);
}

/* =========================
   6. NAVBAR
   ========================= */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 62, 115, 0.08);
}

.nav-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  color: var(--primary);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.menu-btn {
  display: none;
  background: transparent;
  font-size: 26px;
  color: var(--primary);
  padding: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.5vw, 34px);
}

.nav-links > a {
  position: relative;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-links > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.25s ease;
}

.nav-links > a:hover {
  color: var(--primary);
}

.nav-links > a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--primary);
  color: white !important;
  box-shadow: 0 8px 20px rgba(23, 62, 115, 0.18);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* =========================
   7. HERO
   ========================= */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  background:
    radial-gradient(circle at 85% 20%, rgba(126, 164, 233, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  max-width: 850px;
  margin: 20px 0;
  color: var(--primary);
  font-size: clamp(42px, 5.5vw, 78px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.04;
}

.hero-copy h1 span {
  color: var(--secondary);
}

.hero-copy p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--border);
}

.hero-stats strong {
  display: block;
  font-size: 24px;
  color: var(--primary);
  font-weight: 800;
}

.hero-stats span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(23, 62, 115, 0.18);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  border: 1px solid var(--border);
  background: white;
  color: var(--primary);
}

.btn.ghost:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

/* =========================
   8. HERO IMAGE / PLACEHOLDER
   ========================= */

.photo-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  border-radius: clamp(18px, 3vw, 30px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-md);
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 30px;
  color: white;
  z-index: 2;
  background: linear-gradient(to top, rgba(16, 45, 85, 0.9), transparent);
}

.photo-overlay span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.photo-overlay strong {
  display: block;
  font-size: 24px;
  color: white;
}

.photo-overlay small {
  display: block;
  margin-top: 4px;
  color: var(--secondary);
  font-size: 12px;
}

/* =========================
   9. CARDS
   ========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.card {
  padding: clamp(25px, 3vw, 36px);
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card .num {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(126, 164, 233, 0.55);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 21px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   10. NEWS
   ========================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(20px, 2.5vw, 30px);
  width: 100%;
}

.news {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.news-image {
  position: relative;
  width: 100%;
  height: 210px;
  min-height: 210px;
  max-height: 210px;
  overflow: hidden;
  background: #f8fafc;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.news:hover .news-image img {
  transform: scale(1.05);
}

.news-image span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(16, 45, 85, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 2;
  margin: 0;
  width: auto;
  height: auto;
  backdrop-filter: blur(4px);
}

.news-body {
  padding: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 8px;
}

.news-body small {
  color: var(--secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.news-body h3 {
  margin: 4px 0;
  color: var(--primary);
  font-size: clamp(18px, 2vw, 22px);
}

.news-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box !important;
  line-clamp: 3;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* =========================
   11. GALLERY
   ========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}

.gallery-item {
  position: relative;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 13px;
  background: var(--primary);
}

.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 10px;
}

/* =========================
   12. CONTACT / SOCIAL
   ========================= */

.contact {
  padding-block: clamp(70px, 8vw, 110px);
  background: var(--primary);
  color: white;
}

.contact-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}

.contact h2 {
  margin: 15px 0;
  color: white;
  font-size: clamp(30px, 4vw, 48px);
}

.contact p {
  max-width: 620px;
  color: rgba(255,255,255,0.72);
}

.contact .eyebrow {
  color: var(--secondary);
}

.social-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px;
  background: rgba(255,255,255,0.06);
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-item:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.12);
}

.social-item span {
  display: block;
  margin-bottom: 2px;
  color: var(--secondary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.social-item strong {
  font-size: 14px;
}

.social-item b {
  color: var(--secondary);
  font-size: 20px;
}

/* =========================
   13. FOOTER
   ========================= */

.site-footer {
  padding-block: 35px;
  background: #102d55;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.footer-tagline {
  color: rgba(255,255,255,0.75);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-separator {
  color: rgba(255,255,255,0.45);
}

.footer-copyright {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
}

/* =========================
   14. MEDIA QUERIES
   ========================= */

@media (max-width: 1050px) {
  .container {
    width: min(100% - 40px, var(--container));
  }

  .hero-grid {
    gap: 45px;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 6vw, 60px);
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .two-col,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .navbar {
    position: fixed;
  }

  .nav-inner {
    position: relative;
  }

  .menu-btn {
    display: block !important;
    background: transparent;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
    z-index: 1002;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: -16px;
    right: -16px;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 16px;
    border-bottom: 2px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
  }

  .nav-links > a {
    display: block !important;
    text-align: center;
    padding: 8px 0;
  }

  .nav-cta {
    width: 100%;
    min-height: 40px;
    padding-inline: 16px;
  }

  .nav-links.active {
    display: flex !important;
  }

  .hero {
    min-height: auto;
    padding-top: 115px;
    padding-bottom: 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy h1 {
    max-width: 700px;
    font-size: clamp(40px, 10vw, 58px);
    letter-spacing: -1.8px;
  }

  .photo-placeholder {
    max-width: 650px;
    margin-inline: auto;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 35px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .brand {
    gap: 9px;
  }

  .logo-img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand span {
    font-size: 10px;
  }

  .nav-cta {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .hero {
    padding-top: 105px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
    letter-spacing: -1.4px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .photo-placeholder {
    border-radius: 18px;
  }

  .card {
    padding: 24px;
  }

  .news-body {
    padding: 20px;
  }

  .social-item {
    padding: 15px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 22px);
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    font-size: 9px;
  }

  .nav-cta {
    padding-inline: 11px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }
}

/* =========================
   15. PAGE HEADER
   ========================= */

.page-header {
  padding-top: 140px;
  padding-bottom: 50px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--primary);
  margin: 12px 0;
  font-weight: 800;
}

.page-header p {
  color: var(--muted);
  max-width: 680px;
  font-size: clamp(14px, 1.2vw, 16px);
}

/* =========================
   16. LEGAL / CONTACT PAGES
   ========================= */

.legal-page {
  padding: 120px 0 70px;
}

.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 42px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  line-height: 1.8;
  color: var(--text);
}

.legal-content h1 {
  color: var(--primary);
  font-size: clamp(28px, 3vw, 38px);
  margin-bottom: 8px;
}

.legal-content .update-date,
.legal-content .subtitle {
  display: block;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.legal-content h2 {
  margin-top: 30px;
  color: var(--primary);
  font-size: clamp(20px, 2vw, 22px);
}

.legal-content p,
.legal-content li {
  margin-bottom: 12px;
  font-size: 15px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-content code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.92em;
  color: var(--primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.contact-card {
  padding: 24px;
  border-radius: 12px;
  background: #f8fafc;
  border-left: 4px solid var(--primary);
}

.contact-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 16px;
}

.contact-card p {
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form {
  margin-top: 36px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.contact-form h2 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  color: var(--black);
  background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 62, 115, 0.08);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-submit:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.form-alert {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.form-alert.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-alert.success.is-visible {
  display: block;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  color: var(--primary);
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
}

/* =========================
   17. REDUCE MOTION
   ========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}