/* Mobile-first, neutral, accessible styles */
:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --text: #1f2937; /* slate-800 */
  --muted: #6b7280; /* gray-500 */
  --border: #e5e7eb; /* gray-200 */
  --primary: #374151; /* gray-700 */
  --primary-contrast: #ffffff;
  --accent: #111827; /* near-black for strong contrast */
  --focus: #0ea5e9; /* sky-500 */
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
  --radius: 12px;
  --container: 1100px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-8: 48px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Simple fade-in for carousel images */
.fade-img { transition: opacity 400ms ease-in-out; }

/* Carousel UI */
.carousel { position: relative; }
.carousel .ctrl {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.9); color: var(--text);
  border: 1px solid var(--border); border-radius: 999px;
  width: 34px; height: 34px; display: grid; place-items: center;
  box-shadow: var(--shadow); cursor: pointer; user-select: none;
}
.carousel .ctrl:hover { background: #f3f4f6; }
.carousel .prev { left: 8px; }
.carousel .next { right: 8px; }
.carousel .dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; gap: 6px; justify-content: center; align-items: center;
}
.carousel .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.15);
}
.carousel .dot.active { background: var(--accent); border-color: var(--accent); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }
.section { padding: var(--space-8) 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: -999px; background: var(--accent); color: #fff; padding: var(--space-3) var(--space-4); border-radius: 6px; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); z-index: 1000; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) 0; }
.brand { display: flex; align-items: baseline; gap: var(--space-2); }
.brand a { font-weight: 700; letter-spacing: 0.2px; color: var(--text); }
.brand small { color: var(--muted); }

nav.primary { display: none; }
nav.primary.is-open { display: block; }
nav.primary a { padding: var(--space-2) var(--space-3); border-radius: 8px; color: var(--text); }
nav.primary a[aria-current="page"] { background: var(--border); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-btn { background: var(--surface); border: 1px solid var(--border); padding: 10px 12px; border-radius: 10px; box-shadow: var(--shadow); }
.menu-btn:hover { background: #f3f4f6; }

.btn { display: inline-block; padding: 12px 16px; border-radius: 999px; font-weight: 600; border: 1px solid transparent; transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--primary-contrast); }
.btn-primary:hover { background: #0b1220; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-outline:hover { background: var(--border); }

/* Hero */
.hero { padding: 56px 0; background: radial-gradient(1200px 400px at 10% -20%, #ffffff, #eef1f5 60%, #e8ecf3); border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 var(--space-4); }
.hero p.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 var(--space-5); }
.pill-list { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pill { background: #eef2f7; color: #374151; padding: 6px 10px; border-radius: 999px; font-size: 0.9rem; }

/* Cards / surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-body { padding: var(--space-5); }

/* Grids */
.grid { display: grid; gap: var(--space-5); }
.grid.features { grid-template-columns: 1fr; }
.grid.gallery { grid-template-columns: 1fr 1fr; }

.gallery img { border-radius: 10px; border: 1px solid var(--border); background: #e5e7eb; }

/* Tables */
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
thead th { background: #f3f4f6; font-weight: 600; }

/* Footer */
footer.site-footer { border-top: 1px solid var(--border); margin-top: var(--space-8); background: #fcfdff; }
footer .footer-inner { padding: var(--space-6) 0; display: grid; gap: var(--space-4); }
footer p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-6); text-align: center; }
.cta-band h2 { margin-top: 0; margin-bottom: var(--space-3); }
.cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* Lists */
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.clean li { margin: 0 0 var(--space-3); }

/* Utilities */
.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: var(--space-6); }

/* Modal */
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.48);
  display: grid; place-items: center; z-index: 1000; padding: 16px;
}
.modal {
  width: 100%; max-width: 900px; max-height: 90vh; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.modal-title { font-weight: 700; margin: 0; }
.modal-close { background: transparent; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.modal-close:hover { background: #f3f4f6; }
.modal-body { padding: var(--space-4); overflow: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.modal-footer { padding: 10px 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.modal-iframe { width: 100%; height: 70vh; border: 0; background: #fff; }
.modal-note { color: var(--muted); font-size: 0.9rem; }
.link { color: var(--accent); text-decoration: underline; }

@media (max-width: 640px) {
  .modal { max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .modal-iframe { height: calc(100vh - 110px); }
  .form { padding: var(--space-4); }
}

/* Form styles inside modal */
.form { padding: var(--space-5); background: var(--surface); }
.form-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.textarea { min-height: 96px; resize: vertical; }
.row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.form .actions { display: flex; gap: var(--space-3); justify-content: flex-end; margin-top: var(--space-4); flex-wrap: wrap; }
.cf-turnstile { margin-top: 6px; }
@media (max-width: 480px) {
  .form .actions { flex-direction: column; align-items: stretch; }
  .form .actions .btn { width: 100%; }
}
.help { font-size: 0.9rem; color: var(--muted); }
.error { color: #b91c1c; }
.success { color: #065f46; }
.input.invalid, .select.invalid, .textarea.invalid { border-color: #b91c1c; outline-color: #b91c1c; }
.error-msg { color: #b91c1c; font-size: 0.85rem; }

@media (min-width: 640px) {
  .row { grid-template-columns: repeat(2, 1fr); }
}

/* Responsive */
@media (min-width: 768px) {
  .hero { padding: 80px 0; }
  .hero h1 { font-size: 2.5rem; }
  nav.primary { display: flex; gap: 6px; }
  .menu-btn { display: none; }
  .grid.features { grid-template-columns: repeat(4, 1fr); }
  .grid.gallery { grid-template-columns: repeat(3, 1fr); }
  footer .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 1024px) {
  .hero h1 { font-size: 3rem; }
}
