:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --primary: #1f5a7a;
  --primary-dark: #143a54;
  --accent: #d8a95f;
  --text: #1f2933;
  --muted: #5b6b7a;
  --border: #d8dee5;
  --shadow: 0 12px 30px rgba(18, 52, 78, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 90, 122, 0.1);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}
.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
}
.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--text);
  font-weight: 600;
}
.site-nav a.active,
.site-nav a:hover { color: var(--primary); }
.nav-toggle {
  display: none;
  border: none;
  background: var(--primary);
  color: white;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
}
.hero {
  padding: 3.5rem 0 2.3rem;
  background: linear-gradient(135deg, #e9f3f8, #f8f4eb);
}
.hero-small {
  padding: 2.5rem 0 1rem;
  background: linear-gradient(135deg, #e8f2f7, #f8f6ef);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.8rem; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.hero .lead,
.hero-small .lead,
.content-card p,
.card p,
.mini-card p { color: var(--muted); }
.grid-2,
.grid-3 { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section { padding: 2.25rem 0; }
.section-light { background: #fff; }
.card,
.mini-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
}
.hero-visual {
  display: grid;
  gap: 1rem;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.section-heading {
  margin-bottom: 1rem;
}
.gallery-block {
  margin-top: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-card {
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.gallery-card img:hover {
  transform: scale(1.02);
}
.gallery-card figcaption {
  padding: 0.8rem 1rem 1rem;
  color: var(--muted);
  font-weight: 700;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  padding: 1.5rem;
  z-index: 1000;
}
.lightbox-overlay.open {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: min(1120px, 100%);
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 20px;
  background: #111;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}
.lightbox-content img {
  width: 100%;
  height: auto;
  display: block;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  background: #111;
}
.lightbox-caption {
  margin: 0;
  padding: 1rem 1.25rem 1.5rem;
  color: #f3f4f6;
  font-size: 0.95rem;
  background: rgba(0, 0, 0, 0.3);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-prev {
  left: 1rem;
}
.lightbox-next {
  right: 1rem;
}
@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.1rem;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}
.analytics-banner {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #f8fafc;
  flex: 1 1 auto;
  min-width: 220px;
  max-width: 400px;
}
.analytics-banner span { flex: 1 1 220px; min-width: 0; line-height: 1.2; }
.analytics-banner button {
  padding: 0.5rem 0.75rem;
  font-size: 0.88rem;
  white-space: nowrap;
}
@media (max-width: 680px) {
  .analytics-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }
  .analytics-banner span {
    flex: 1 1 0;
    min-width: 0;
  }
  .analytics-banner button {
    flex: 0 0 auto;
  }
}
.check-list {
  padding-left: 1.1rem;
  margin: 1rem 0 0;
}
.check-list li { margin-bottom: 0.4rem; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li { margin-bottom: 0.6rem; }
.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: 0.5rem;
}
.contact-card { background: #f8fbfd; }
.contact-form { display: grid; gap: 0.75rem; }
.contact-form button { margin: 0; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label { font-weight: 700; }
.consent-field { display: flex; align-items: center; }
.consent-label { display: flex; align-items: center; gap: 12px; font-weight: 400; width: 100%; }
/* Ensure checkbox sizing overrides the generic .form-field input width */
.consent-label input[type="checkbox"] { margin: 0; width: 18px; height: 18px; flex: 0 0 auto; }
/* Allow the label text to wrap so it remains visible on narrow viewports */
.consent-label span { display: block; flex: 1 1 auto; white-space: normal; overflow: visible; text-overflow: clip; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font: inherit;
}
.form-field input:focus,
.form-field textarea:focus { outline: 2px solid rgba(31, 90, 122, 0.25); border-color: var(--primary); }
.form-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.form-status { min-height: 1.5rem; font-weight: 700; }
.form-status.success { color: #166534; }
.form-status.error { color: #b91c1c; }
.site-footer {
  background: var(--primary-dark);
  color: #fff;
  padding: 2rem 0 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 1rem;
}
.site-footer a { color: #dcecf4; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.footer-bottom p {
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
}
.narrow { max-width: 760px; }
@media (max-width: 820px) {
  .grid-2,
  .grid-3,
  .footer-grid,
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-bottom p {
    width: 100%;
    white-space: normal;
  }
  .analytics-banner {
    max-width: none;
    width: 100%;
  }
}
  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-toggle { display: inline-flex; }
}
