/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, picture, video { display: block; max-width: 100%; }

/* === TOKENS === */
:root {
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;

  --primary: #0077B6;
  --primary-dark: #005F8E;
  --accent: #00B4D8;
  --accent-light: #90E0EF;
  --bg: #F0F8FF;
  --surface: #FFFFFF;
  --surface-2: #E8F4FD;
  --ink: #0D1B2A;
  --ink-mute: #4A6580;
  --border: #C8DFF0;
  --white: #FFFFFF;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0,119,182,0.08);
  --shadow-md: 0 8px 32px rgba(0,119,182,0.12);
  --shadow-lg: 0 16px 48px rgba(0,119,182,0.16);

  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 72px;
}

/* === BASE === */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; }
p { margin: 0; }

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--s-6);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn--sm {
  font-size: 14px;
  padding: 10px 20px;
}
.btn--full { width: 100%; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo--light .logo-text { color: var(--white); }

/* NAV */
.main-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--surface-2); }
.nav-link--cta {
  background: var(--primary);
  color: var(--white);
  padding: var(--s-2) var(--s-4);
  border-radius: 50px;
}
.nav-link--cta:hover { background: var(--primary-dark); color: var(--white); }

/* BURGER */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s-2);
  border-radius: var(--radius-sm);
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,30,60,0.75) 0%, rgba(0,119,182,0.45) 60%, rgba(0,180,216,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--s-16);
  max-width: 680px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--s-4);
}
.hero-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--s-6);
  letter-spacing: -1px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--s-8);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
}

/* === STATS === */
.stats {
  background: var(--primary);
  padding-block: var(--s-8);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  text-align: center;
}
.stat-item { display: flex; flex-direction: column; gap: var(--s-1); }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}

/* === SECTIONS === */
.section { padding-block: var(--s-16); }
.section--alt { background: var(--surface-2); }
.section-header {
  text-align: center;
  margin-bottom: var(--s-12);
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.section-sub {
  font-size: 17px;
  color: var(--ink-mute);
  max-width: 520px;
  margin-inline: auto;
}

/* === CARDS GRID === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-6);
  align-items: stretch;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-image-wrap { flex-shrink: 0; }
.card__image {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  display: block;
}
.card__body {
  flex: 1 1 auto;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.card__footer {
  margin-top: auto;
  padding: 0 var(--s-6) var(--s-6);
}
.card-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--surface-2);
  padding: var(--s-1) var(--s-3);
  border-radius: 50px;
  width: fit-content;
}
.card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}
.card__text {
  font-size: 15px;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* REVIEW CARDS */
.card--review { padding: var(--s-6); }
.card--review .card__body { padding: 0; }
.card--review .card__footer { padding: 0; margin-top: var(--s-6); }
.review-stars {
  font-size: 18px;
  color: #F4A800;
  letter-spacing: 2px;
  margin-bottom: var(--s-3);
}
.card--review .card__text {
  font-size: 15px;
  color: var(--ink);
  font-style: italic;
  -webkit-line-clamp: 6;
}
.review-author {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.review-meta {
  font-size: 13px;
  color: var(--ink-mute);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
.about-img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.about-content { display: flex; flex-direction: column; gap: var(--s-4); }
.about-text { font-size: 16px; color: var(--ink-mute); }
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-4);
}
.feature-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.feature-icon { flex-shrink: 0; }

/* === SPECIAL === */
.special-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
.special-text {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  font-size: 16px;
  color: var(--ink-mute);
}
.special-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-2);
}
.tag {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--primary);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: var(--s-1) var(--s-3);
  border-radius: 50px;
}
.special-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.special-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  box-shadow: var(--shadow-sm);
}
.special-card-icon { flex-shrink: 0; }
.special-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.special-card-text {
  font-size: 14px;
  color: var(--ink-mute);
}

/* === TABLE === */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; }
.data-table thead { background: var(--primary); }
.data-table th {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--white);
  letter-spacing: 0.3px;
}
.data-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table td { font-size: 15px; color: var(--ink); }
.table-note {
  margin-top: var(--s-4);
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
}

/* === CTA / CONTACT === */
.section--cta {
  background: linear-gradient(135deg, var(--primary) 0%, #004E89 100%);
  padding-block: var(--s-16);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-12);
  align-items: start;
}
.cta-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--s-4);
}
.cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--s-8);
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.contact-list a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-list a:hover { color: var(--white); }

/* FORM */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  box-shadow: var(--shadow-lg);
}
.form-group { display: flex; flex-direction: column; gap: var(--s-2); }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-family: var(--font-display);
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus { border-color: var(--primary); background: var(--white); }
.form-textarea { min-height: 96px; resize: vertical; }
.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

/* === FOOTER === */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-8);
  padding-block: var(--s-12);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); }
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent-light); }
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.footer-contacts a, .footer-contacts span {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer-contacts a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-block: var(--s-4);
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* === TABLE RESPONSIVE === */
@media (max-width: 640px) {
  .data-table thead { position: absolute; left: -9999px; }
  .data-table tr {
    display: block;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--surface);
  }
  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    gap: 12px;
    font-size: 14px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink-mute);
    flex: 0 0 auto;
    font-size: 13px;
  }
}

/* === BREAKPOINTS === */

/* 640–1024 */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .about-img { aspect-ratio: 16/7; }
  .special-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .cta-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* <640 */
@media (max-width: 640px) {
  :root { --header-h: 60px; }

  .burger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99;
    padding: var(--s-8) var(--s-6);
    overflow-y: auto;
  }
  .main-nav.is-open { display: flex; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-2);
    width: 100%;
  }
  .nav-link {
    font-size: 18px;
    padding: var(--s-4);
    border-radius: var(--radius-md);
    text-align: center;
  }
  .nav-link--cta { text-align: center; }

  .hero { min-height: 90svh; }
  .hero-content { padding-block: var(--s-12); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }

  .section { padding-block: var(--s-12); }
  .section-header { margin-bottom: var(--s-8); }

  .cards { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .special-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }

  .contact-form { padding: var(--s-6); }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--s-6);
    padding-block: var(--s-8);
  }

  .logo-text { font-size: 18px; }
}