/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #1e3a5f;
  --color-primary-light: #2a5080;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;
  --color-text: #4b5563;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #1e3a5f;
  --color-border: #e5e7eb;
  --color-surface-muted: #eff6ff;
  --color-footer-text: #d1d5db;
  --color-footer-border: #334155;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  --max-width: 1120px;
  --radius: 8px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Layout ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo img {
  height: 34px;
  width: auto;
  max-width: 180px;
  flex-shrink: 0;
}

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

.nav-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--color-text);
}

@media (max-width: 640px) {
  .nav-logo img {
    height: 38px;
    max-width: 200px;
  }

  .nav-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: linear-gradient(170deg, var(--color-bg) 60%, var(--color-bg-alt));
}

.hero h1 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero p {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.hero .cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, box-shadow 0.2s;
}

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

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
}

/* ===== Features Section ===== */
.features {
  padding: 80px 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 48px;
}

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.2s;
}
.feature-card:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--color-surface-muted);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== About Section ===== */
.about {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

.about h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  text-align: center;
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ===== Contact Section (on homepage) ===== */
.contact-section {
  padding: 80px 0;
}

.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact-section .subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.contact-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-light);
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-info a {
  color: var(--color-accent);
}

/* ===== Form ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== Page Content (Privacy, etc.) ===== */
.page-header {
  padding: 48px 0 32px;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
}

.page-content {
  padding: 48px 0 80px;
}

.page-content .content {
  max-width: 760px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 40px 0 16px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.page-content ul {
  margin: 0 0 16px 24px;
  color: var(--color-text-light);
  line-height: 1.75;
}

.page-content li {
  margin-bottom: 6px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-footer-text);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--color-footer-text);
  font-size: 0.875rem;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--color-footer-border);
  text-align: center;
  font-size: 0.8rem;
}

/* ===== Contact Page Specific ===== */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* ===== Form Success ===== */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
}
.form-success.show {
  display: block;
}
.form-success h3 {
  color: #166534;
  margin-bottom: 8px;
}
.form-success p {
  color: #15803d;
}

/* ===== Honeypot (anti-spam) ===== */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Turnstile widget spacing ===== */
.cf-turnstile {
  margin-bottom: 20px;
}

/* ===== Responsive fine-tuning ===== */
@media (max-width: 480px) {
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .features,
  .about,
  .contact-section {
    padding: 48px 0;
  }
}
