@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Bitter:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

@theme {
  --color-primary: #1B6B93;
  --color-primary-dark: #134d6a;
  --color-primary-light: #2488b8;
  --color-secondary: #E3F1FA;
  --color-secondary-dark: #c5dff0;
  --color-accent: #E54F6D;
  --color-accent-dark: #c93a55;
  --color-accent-light: #f07a91;
  --color-background: #F0F6FA;
  --color-text: #1A1E2C;
  --color-text-muted: #4a5068;
  --color-text-light: #6b7280;
  --color-surface: #ffffff;
  --color-surface-tint: #e8f0f7;
  --color-surface-warm: #faf5f0;
  --color-border: #d1dce6;
  --color-border-light: #e5edf4;

  --font-heading: 'Bitter', Georgia, serif;
  --font-body: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  --font-accent: 'Archivo Black', 'Impact', sans-serif;

  --text-hero: 3.5rem;
  --text-h2: 2.2rem;
  --text-h3: 1.6rem;
  --text-h4: 1.25rem;
  --text-body: 1.25rem;
  --text-body-sm: 1.1rem;
  --text-small: 0.9rem;
  --text-xs: 0.8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --spacing-section: 70px;
  --spacing-section-lg: 80px;
  --spacing-paragraph: 2rem;

  --container-max: 1100px;

  --shadow-sm: 0 1px 3px rgba(27, 107, 147, 0.06), 0 1px 2px rgba(27, 107, 147, 0.04);
  --shadow-md: 0 4px 14px rgba(27, 107, 147, 0.08), 0 2px 6px rgba(27, 107, 147, 0.04);
  --shadow-lg: 0 10px 30px rgba(27, 107, 147, 0.1), 0 4px 10px rgba(27, 107, 147, 0.06);
  --shadow-xl: 0 20px 50px rgba(27, 107, 147, 0.14), 0 8px 20px rgba(27, 107, 147, 0.08);
  --shadow-accent: 0 4px 20px rgba(229, 79, 109, 0.25);
  --shadow-card-hover: 0 12px 36px rgba(27, 107, 147, 0.12), 0 4px 12px rgba(27, 107, 147, 0.06);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-height: 72px;
}

/* ================================================
   BASE & RESET
   ================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::before,
::after {
  pointer-events: none;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: clip;
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

p + p {
  margin-top: var(--spacing-paragraph);
}

::selection {
  background-color: var(--color-accent);
  color: #ffffff;
}

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ================================================
   NON-HOME PAGE MAIN PADDING
   ================================================ */

body:not(.page-home) .site-main {
  padding-top: 80px;
}

@media (max-width: 767px) {
  body:not(.page-home) .site-main {
    padding-top: 68px;
  }
}

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

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s var(--ease-smooth);
}

body:not(.page-home) .site-nav {
  position: absolute;
  background: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.site-nav.is-scrolled {
  position: sticky;
  top: 0;
  background: rgba(27, 107, 147, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.nav-logo:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.nav-logo-img {
  height: auto;
  max-height: 48px;
  min-width: 120px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-smooth);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 2rem);
  height: 2px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: transform 0.3s var(--ease-bounce);
  transform-origin: center;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.nav-links a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
  background: var(--color-accent-light);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #ffffff;
  z-index: 110;
}

.nav-toggle svg,
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: #ffffff;
  border-radius: var(--radius-full);
  transition: all 0.35s var(--ease-smooth);
}

.nav-toggle span + span {
  margin-top: 5px;
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(27, 107, 147, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.35s var(--ease-smooth);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: var(--text-body);
  }
}

/* ================================================
   HERO SECTION
   ================================================ */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(
    160deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 40%,
    var(--color-primary-light) 100%
  );
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 80%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(229, 79, 109, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 70%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-background);
  clip-path: ellipse(55% 100% at 50% 100%);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 5rem;
  text-align: center;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: heroFadeIn 1s var(--ease-out-expo) 0.2s both;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-title span,
.hero-title em {
  color: var(--color-accent-light);
  font-style: normal;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--ease-smooth);
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: clip;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease-smooth);
}

.hero-cta:hover {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 79, 109, 0.4);
  color: #ffffff;
}

.hero-cta:hover::before {
  opacity: 1;
}

/* ================================================
   RESPONSIVE GRID FIXES
   ================================================ */

@media (max-width: 767px) {
  .content-section [style*="grid-template-columns:1fr 1fr"],
  .content-section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .content-section [style*="grid-template-columns:2fr 1fr 1fr 1fr"],
  .content-section [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
    font-size: 13px !important;
  }

  .hero [style*="font-size:3rem"] {
    font-size: 2rem !important;
  }

  .hero [style*="font-size:1.15rem"] {
    font-size: 1rem !important;
  }

  .content-section [style*="padding:60px 0"],
  .content-section [style*="padding:50px 2.5rem"],
  .content-section [style*="padding:50px 0"] {
    padding: 30px 1rem !important;
  }

  .content-section [style*="margin:0 0 2rem 2rem"],
  .content-section [style*="margin:0 0 0.5rem 2rem"] {
    margin-left: 0 !important;
  }
}

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

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.site-footer::before {
  display: none !important;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 0.75rem;
}

.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.85rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.footer-col ul li a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

.footer-bottom a:hover {
  color: var(--color-accent-light);
}

@media (max-width: 767px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   REVEAL ON SCROLL
   ================================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
