:root {
  --color-navy: #0b1d2c;
  --color-deep-blue: #0e2744;
  --color-ocean: #0f4c81;
  --color-sky: #6dbff2;
  --color-coral: #ff7d66;
  --color-white: #ffffff;
  --color-sand: #f3f6f8;
  --color-charcoal: #1f2933;
  --color-muted: #5f6c76;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius-large: 24px;
  --radius-medium: 18px;
  --radius-pill: 999px;
  --shadow-soft: 0 35px 60px rgba(15, 46, 82, 0.2);
  --shadow-sharp: 0 16px 30px rgba(11, 29, 44, 0.24);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-charcoal);
  background-color: var(--color-sand);
  line-height: 1.6;
  min-height: 100vh;
}

ul,
ol {
  margin: 0 0 1rem 1.25rem;
  padding-left: 1.25rem;
}

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

a:hover,
a:focus {
  text-decoration: underline;
  text-decoration-color: rgba(17, 96, 158, 0.5);
}

img,
iframe {
  max-width: 100%;
  border: 0;
}

main {
  display: block;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11, 29, 44, 0.07);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-ocean), var(--color-sky));
  display: grid;
  place-items: center;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
}

.brand-text span:first-child {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ocean);
  letter-spacing: 0.08em;
}

.brand-text span:last-child {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-deep-blue);
  font-size: 0.96rem;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-pill);
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(135deg, var(--color-ocean), var(--color-sky));
  color: var(--color-white);
  box-shadow: 0 16px 30px rgba(15, 76, 129, 0.25);
}

.button-primary:hover,
.button-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 76, 129, 0.35);
}

.button-outline {
  border: 1px solid rgba(15, 76, 129, 0.2);
  color: var(--color-ocean);
  background: rgba(255, 255, 255, 0.65);
}

.button-outline:hover,
.button-outline:focus {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.hero {
  padding: 6rem 1.75rem 4rem;
  background: radial-gradient(circle at top right, rgba(109, 191, 242, 0.18), transparent 55%),
    linear-gradient(135deg, rgba(11, 29, 44, 0.95), rgba(11, 29, 44, 0.75)),
    url('../images/hero-wave.svg') no-repeat center/cover;
  color: var(--color-white);
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.hero-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
}

.hero-intro p {
  font-size: 1.1rem;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 2.2rem;
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.stat-card h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.stat-card p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.section {
  padding: 5rem 1.75rem;
}

.section-light {
  background: var(--color-white);
}

.section-alt {
  background: linear-gradient(135deg, rgba(13, 40, 69, 0.92), rgba(11, 29, 44, 0.85));
  color: var(--color-white);
}

.section-narrow {
  padding: 4rem 1.75rem;
}

.section-header {
  max-width: 1000px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 1rem;
  color: var(--color-deep-blue);
}

.section-header p {
  margin: 0 auto;
  max-width: 700px;
  color: var(--color-muted);
}

.section-alt .section-header h2,
.section-alt .section-header p {
  color: rgba(255, 255, 255, 0.9);
}

.card-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-large);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-sharp);
}

.card img,
.card picture {
  border-radius: var(--radius-medium);
}

.card h3 {
  margin: 0;
  color: var(--color-deep-blue);
}

.card p {
  margin: 0;
  color: var(--color-muted);
}

.listing-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--color-ocean);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 76, 129, 0.08);
  color: var(--color-ocean);
  font-weight: 600;
  font-size: 0.85rem;
}

.testimonials {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
}

.testimonial {
  background: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-large);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.testimonial p {
  margin: 0;
  color: var(--color-charcoal);
  font-size: 1.05rem;
}

.testimonial footer {
  margin-top: 1.4rem;
  color: var(--color-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  max-width: 1150px;
  margin: 0 auto;
  align-items: center;
}

.form-card {
  background: var(--color-white);
  border-radius: var(--radius-large);
  padding: 2.25rem;
  box-shadow: var(--shadow-soft);
}

form {
  display: grid;
  gap: 1.1rem;
}

label {
  display: block;
  font-weight: 600;
  color: var(--color-deep-blue);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-medium);
  border: 1px solid rgba(11, 29, 44, 0.12);
  font-size: 1rem;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(15, 76, 129, 0.35);
  outline-offset: 2px;
}

.field-error {
  border-color: rgba(255, 125, 102, 0.65);
  background: rgba(255, 125, 102, 0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.alert-success {
  display: none;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-medium);
  background: rgba(56, 189, 248, 0.15);
  color: var(--color-ocean);
  font-weight: 600;
}

.alert-error {
  display: none;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-medium);
  background: rgba(255, 125, 102, 0.15);
  color: var(--color-coral);
  font-weight: 600;
}

footer {
  background: var(--color-deep-blue);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 1.75rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.footer-brand h3 {
  margin: 0;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-legal {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.75rem;
  display: grid;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.map-wrapper {
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.filter-bar {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 1.5rem;
  border-radius: var(--radius-large);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 125, 102, 0.14);
  color: var(--color-coral);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.82rem;
}

.community-hero {
  padding: 5rem 1.75rem 3rem;
  background: linear-gradient(135deg, rgba(11, 29, 44, 0.9), rgba(15, 76, 129, 0.75));
  color: var(--color-white);
}

.community-hero h1 {
  font-family: var(--font-heading);
  margin: 0 0 0.5rem;
}

.community-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.stat-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-large);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.stat-table th,
.stat-table td {
  padding: 1.1rem 1.4rem;
  text-align: left;
}

.stat-table tbody tr:nth-child(even) {
  background: rgba(15, 76, 129, 0.05);
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card time {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.badge-category {
  background: rgba(109, 191, 242, 0.18);
  color: var(--color-ocean);
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  width: fit-content;
}

.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-large);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: -1;
}

.skip-link:focus {
  left: 50%;
  top: 1rem;
  transform: translateX(-50%);
  width: auto;
  height: auto;
  padding: 0.75rem 1.2rem;
  background: var(--color-coral);
  color: var(--color-white);
  z-index: 1001;
  border-radius: var(--radius-pill);
}

@media (max-width: 900px) {
  .nav-container {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 5rem;
  }

  .stats-bar {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 0.75rem;
  }

  .nav-container {
    padding: 0.65rem 1rem;
  }

  .hero {
    padding: 4.5rem 1.25rem 3rem;
  }

  .section,
  .section-narrow {
    padding: 3.5rem 1.1rem;
  }

  .card {
    padding: 1.4rem;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
