:root {
  --color-primary: #2ea3f2;
  --color-primary-dark: #1a8cd8;
  --color-text: #444;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-footer: #222;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1080px;
  --header-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  background: var(--color-bg);
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}

.logo-link img { width: 52px; height: 52px; object-fit: contain; }

.logo-text { font-size: 1rem; line-height: 1.2; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: .4rem .6rem;
  cursor: pointer;
  font-size: .9rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  padding: .25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #1a3a52 center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.55));
}

.hero .container { position: relative; z-index: 1; padding: 4rem 1rem; }

.hero h1 {
  margin: 0 0 .5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #fff;
}

.hero .tagline {
  font-size: 1.25rem;
  margin: 0 0 2rem;
  opacity: .95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .2s, color .2s;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--color-text);
  text-decoration: none;
}

/* Sections */
.section { padding: 4rem 0; }

.section-alt { background: #f7f9fb; }

.section h2 {
  color: var(--color-text);
  font-size: 1.75rem;
  margin: 0 0 1rem;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

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

.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.card-dark {
  background: #2c3e50;
  color: #e8e8e8;
}

.card-dark h2 { color: #fff; }

.card-dark a { color: #7ec8ff; }

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .split { grid-template-columns: 2fr 1fr; }
}

.split img,
.split-media img { border-radius: 8px; width: 100%; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-weight: 500;
  color: var(--color-text);
}

.contact-form input,
.contact-form textarea {
  padding: .65rem .75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.form-note,
.newsletter-intro {
  font-size: .875rem;
  opacity: .85;
  margin-top: 1rem;
}

.newsletter-intro code {
  font-size: .8em;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #2c3e50, #1a5276);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.newsletter h2 { color: #fff; margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  max-width: 28rem;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1 1 140px;
  padding: .75rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter-form .btn { cursor: pointer; border: none; }

.newsletter-note {
  margin-top: 1rem;
  font-size: .875rem;
  opacity: .85;
}

/* Page header */
.page-hero {
  background: var(--color-footer);
  color: #fff;
  padding: 3rem 1rem;
  text-align: center;
}

.page-hero h1 { margin: 0; color: #fff; font-size: 2rem; }

.content-block {
  padding: 3rem 0;
  max-width: 42rem;
  margin: 0 auto;
}

.content-block h2 { color: var(--color-text); }

/* Footer */
.site-footer {
  background: var(--color-footer);
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: .9rem;
}

.site-footer a { color: var(--color-primary); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 1rem;
  }

  .site-nav.is-open { display: block; }

  .site-nav ul { flex-direction: column; }
}
