/* =========================================================
    Wonen in Maurik — shared stylesheet
    Palette: #1a2e4a (navy), #c49a3c (gold), #f7f6f2 (off-white), #333 (dark grey)
   ========================================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f6f2;
  color: #333;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: #1a2e4a; }
a:focus-visible { outline: 2px solid #c49a3c; outline-offset: 2px; }

/* --- Nav --- */
.site-header {
  background: #1a2e4a;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-logo span { color: #c49a3c; }

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

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.92rem;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(196,154,60,0.18);
  color: #c49a3c;
}

.nav-links a.active { font-weight: 600; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#lang-toggle {
  background: transparent;
  border: 1.5px solid #c49a3c;
  color: #c49a3c;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.18s, color 0.18s;
}

#lang-toggle:hover { background: #c49a3c; color: #1a2e4a; }
#lang-toggle:focus-visible { outline: 2px solid #c49a3c; outline-offset: 2px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Main content area --- */
main { flex: 1; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1a2e4a;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a2e4a 60%, #2a4a70 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  max-width: 760px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.hero-content h1 span { color: #c49a3c; }

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.88;
  margin-bottom: 2rem;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(196,154,60,0.15);
  border: 1px solid rgba(196,154,60,0.4);
  color: #c49a3c;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #c49a3c;
  color: #1a2e4a;
}

.btn-primary:hover { background: #ad8630; color: #fff; }

.btn-outline {
  background: transparent;
  border: 2px solid #1a2e4a;
  color: #1a2e4a;
}

.btn-outline:hover { background: #1a2e4a; color: #fff; }

.btn:focus-visible { outline: 2px solid #c49a3c; outline-offset: 2px; }

/* --- Section layout --- */
.section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a2e4a;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-rule {
  width: 48px;
  height: 3px;
  background: #c49a3c;
  margin-bottom: 2rem;
  border: none;
}

/* --- Highlight cards (homepage) --- */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(26,46,74,0.08);
  border-top: 3px solid #c49a3c;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card h3 {
  color: #1a2e4a;
  font-size: 1.1rem;
  font-weight: 700;
}

.card p { font-size: 0.95rem; color: #555; }

/* --- Project overview two-col --- */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.facts-table th,
.facts-table td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid #e6e4de;
}

.facts-table th {
  background: #1a2e4a;
  color: #fff;
  font-weight: 600;
}

.facts-table tr:nth-child(even) td { background: #f0ede6; }

.vision-block {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid #c49a3c;
  background: #fff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #444;
}

/* --- Master plan --- */
.masterplan-figure {
  width: 100%;
  min-height: 340px;
  background: #e6e4de;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  margin-bottom: 3rem;
  border: 2px dashed #bbb;
}

.masterplan-figure figcaption {
  font-size: 0.88rem;
  color: #999;
  margin-top: 0.5rem;
  text-align: center;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: #c49a3c;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 1.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.55rem;
  top: 0.45rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c49a3c;
  border: 2px solid #f7f6f2;
}

.timeline-item h3 { color: #1a2e4a; margin-bottom: 0.25rem; font-size: 1.05rem; }
.timeline-date { font-size: 0.85rem; color: #c49a3c; font-weight: 600; margin-bottom: 0.25rem; }
.timeline-item p { font-size: 0.95rem; color: #555; }

.timeline-item--active {
  background: #f0ebe0;
  border-left: 3px solid #c49a3c;
  border-radius: 6px;
  padding: 1rem 1rem 1rem 1.5rem;
  margin-bottom: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: inline-block;
}

/* --- Gallery --- */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid #1a2e4a;
  background: transparent;
  color: #1a2e4a;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.filter-btn:hover,
.filter-btn.active {
  background: #1a2e4a;
  color: #fff;
}

.filter-btn:focus-visible { outline: 2px solid #c49a3c; outline-offset: 2px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  background: #ddd;
  border-radius: 6px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.8rem;
  background: rgba(26,46,74,0.7);
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
}

/* --- Location --- */
.map-placeholder {
  width: 100%;
  min-height: 320px;
  background: #e0ddd6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  border: 2px dashed #bbb;
}

.map-embed {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

.map-credit {
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.8rem;
  text-align: right;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.amenity-group h3 {
  color: #1a2e4a;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.amenity-group ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.amenity-group ul li { font-size: 0.92rem; color: #555; }
.amenity-group ul li::before { content: '— '; color: #c49a3c; }

.address-block {
  background: #1a2e4a;
  color: #fff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1.9;
}

.address-block strong { color: #c49a3c; }

/* --- Forms --- */
.form-wrap {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  box-shadow: 0 2px 16px rgba(26,46,74,0.08);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2e4a;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #faf9f6;
  transition: border-color 0.18s;
  color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a2e4a;
}

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

.form-error {
  font-size: 0.82rem;
  color: #c0392b;
  display: none;
}

.form-error.visible { display: block; }

.form-success {
  display: none;
  background: #eaf6ee;
  border: 1px solid #6cc48a;
  color: #1e6b3a;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-success.visible { display: block; }

.privacy-note {
  font-size: 0.82rem;
  color: #888;
  margin-top: 0.75rem;
  line-height: 1.5;
}

/* --- Footer --- */
.site-footer {
  background: #1a2e4a;
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo span { color: #c49a3c; }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  text-decoration: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, color 0.18s;
}

.footer-social a:hover { color: #c49a3c; border-color: #c49a3c; }
.footer-social a:focus-visible { outline: 2px solid #c49a3c; outline-offset: 2px; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: #1a2e4a;
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  opacity: 0.78;
  font-size: 1rem;
}

.page-hero .rule {
  width: 40px;
  height: 3px;
  background: #c49a3c;
  margin: 0.75rem auto 0;
  border: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1a2e4a;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    gap: 0.1rem;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-inner { position: relative; }

  .overview-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .form-wrap { padding: 1.5rem 1rem; }
  .hero { min-height: 400px; }
}