:root {
  --color-accent: #2d5580;
  --color-accent-dark: #1f3e60;
  --color-text: #1a1f29;
  --color-muted: #5b6473;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f5f7;
  --color-border: #e3e6eb;
  --color-overlay: rgba(20, 28, 40, 0.55);

  --max-width: 1120px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; color: var(--color-text); }
h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-name { font-size: 1.05rem; }

.site-nav {
  display: flex;
  gap: 1.5rem;
}
.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { text-decoration: none; border-bottom-color: var(--color-border); }
.site-nav a.active { border-bottom-color: var(--color-accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.lang-switch a {
  color: var(--color-muted);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}
.lang-switch a:hover { background: var(--color-bg-alt); text-decoration: none; color: var(--color-text); }
.lang-switch a.active { color: var(--color-accent); }
.lang-switch span { color: var(--color-border); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-image {
  position: absolute; inset: 0;
  /* Falls back to gradient when image is missing, so the page looks intentional before photos are added */
  background:
    linear-gradient(135deg, #1f3e60 0%, #2d5580 60%, #4a78a8 100%),
    url('../images/hero.jpg') center/cover no-repeat;
  background-blend-mode: multiply;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,40,0.35), rgba(20,28,40,0.65));
}
.hero-content {
  position: relative;
  padding: 5rem 1.25rem;
  max-width: 720px;
}
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.2rem; opacity: 0.95; }
.hero-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: center;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { margin-bottom: 0.5rem; }
.section-lead { color: var(--color-muted); margin-bottom: 2.5rem; font-size: 1.1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; }

.page-header {
  padding: 3.5rem 0 2rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; }
.card p { margin-bottom: 0; color: var(--color-muted); }

/* CTA row */
.cta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-row h2 { margin-bottom: 0.25rem; }
.cta-row p { margin: 0; color: var(--color-muted); }

/* Prose (about page) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.value-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.value-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--color-border);
}
.value-list li:last-child { border-bottom: 1px solid var(--color-border); }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  cursor: zoom-in;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gallery-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Subtle background so missing images don't show a broken icon void */
  background: linear-gradient(135deg, #d8dde5, #eef0f4);
}
.gallery-item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  color: var(--color-muted);
  background: #fff;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: var(--color-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-image {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}
.contact-info dl { margin: 0; }
.contact-info dt {
  font-weight: 600;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 1.2rem;
}
.contact-info dd { margin: 0.25rem 0 0; }

.contact-form-wrap { background: var(--color-bg-alt); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--color-border); }
.contact-form h2 { margin-top: 0; }

.field { margin-bottom: 1.25rem; border: 0; padding: 0; }
.field legend, .field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-text);
}
.field input[type="text"]:focus,
.field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.field textarea { resize: vertical; min-height: 120px; }

.radio-row {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  margin: 0;
  cursor: pointer;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-align: center;
}

.file-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}
/* Hide the native file input visually, keep it keyboard-reachable via its label */
.file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.file-input-button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.file-input-button:hover { background: var(--color-bg-alt); border-color: var(--color-accent); }
.file-input input[type="file"]:focus + .file-input-button {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
.file-input-status {
  color: var(--color-muted);
  font-size: 0.92rem;
}
.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Footer */
.site-footer {
  background: #1a1f29;
  color: #cfd5df;
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.site-footer a { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.site-footer strong { color: #fff; display: block; margin-bottom: 0.35rem; }
.site-footer p { margin: 0.15rem 0; }
.footer-meta { color: #8b94a3; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.active { border-bottom-color: var(--color-accent); }

  .header-inner { position: relative; }
  .hero { min-height: 60vh; }
  .hero-content { padding: 3.5rem 1.25rem; }
  .section { padding: 3rem 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form-wrap { padding: 1.25rem; }
}
