:root {
  --mamawa-primary: #0f2d46;
  --mamawa-accent: #1d6fa5;
  --mudunu-primary: #5b3717;
  --mudunu-accent: #c98538;
  --text: #1f2933;
  --muted: #52606d;
  --bg: #f7fafc;
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(15, 45, 70, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mamawa-primary);
}

.logo span {
  color: var(--mamawa-accent);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  color: var(--mamawa-primary);
}

.nav-links {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.nav-links a {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--mamawa-primary);
  background: #e8f2fb;
}

.hero {
  padding: 4.4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #e8f2fb;
  color: var(--mamawa-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

h1,
h2,
h3 {
  color: #102a43;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  margin-bottom: 0.9rem;
}

h2 {
  font-size: clamp(1.45rem, 2.9vw, 2rem);
  margin-bottom: 0.9rem;
}

p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
}

.lead-bold {
  font-weight: 500;
}

.lead-bold p {
  margin-bottom: 0.8rem;
}

.lead-bold strong {
  font-size: 1.2rem;
  color: #102a43;
}

.lead-list {
  margin: 0.4rem 0 1rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.72rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--mamawa-primary);
  color: var(--white);
}

.btn-secondary {
  background: #e8f2fb;
  color: var(--mamawa-primary);
}

.hero-card,
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.image-placeholder {
  background: linear-gradient(130deg, #deecf7, #b6d5ee);
  border-radius: 12px;
  min-height: 270px;
  display: grid;
  place-content: center;
  text-align: center;
  color: #173f5f;
  font-weight: 600;
  padding: 1rem;
}

section {
  padding: 3.4rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p,
.list li {
  color: var(--muted);
}

.list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.mudunu-section {
  background: #fff9f3;
}

.mudunu-theme .badge {
  background: #fbe8d6;
  color: var(--mudunu-primary);
}

.mudunu-theme .btn-primary {
  background: var(--mudunu-primary);
}

.mudunu-theme .btn-secondary {
  color: var(--mudunu-primary);
  background: #fbe8d6;
}

.mudunu-theme .image-placeholder {
  background: linear-gradient(140deg, #fbe8d6, #edbf8c);
  color: #5b3717;
}

.mudunu-theme .nav-links a:hover,
.mudunu-theme .nav-links a.active {
  background: #fbe8d6;
  color: var(--mudunu-primary);
}

.mudunu-theme .logo {
  color: var(--mudunu-primary);
}

.mudunu-theme .logo span {
  color: var(--mudunu-accent);
}

.highlight {
  border-left: 4px solid var(--mamawa-accent);
  padding-left: 0.8rem;
  margin: 1rem 0;
}

.mudunu-theme .highlight {
  border-left-color: var(--mudunu-accent);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.gallery .image-placeholder {
  min-height: 160px;
}

.footer {
  margin-top: 3rem;
  background: #102a43;
  color: #d9e2ec;
  padding: 1.8rem 0;
}

.footer small {
  color: #9fb3c8;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 72px;
    width: min(300px, 92%);
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 12px;
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }
}

/* Mudunu fluid + background imagery improvements */
.mudunu-theme .container {
  width: min(1280px, 95%);
}

.mudunu-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.mudunu-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 249, 243, 0.82);
}

.mudunu-bg > .container {
  position: relative;
  z-index: 1;
}

.mudunu-hero-bg {
  background-image: url("../images/mudunu-hero-bg.png");
}

.mudunu-menu-bg {
  background-image: url("../images/mudunu-menu-bg.png");
}

.mudunu-contact-bg {
  background-image: url("../images/mudunu-contact-bg.png");
}

.mudunu-gallery-bg {
  background-image: url("../images/mudunu-gallery-bg.png");
}

.bg-label {
  display: inline-block;
  margin: 0.2rem 0 1rem;
  padding: 0.35rem 0.65rem;
  background: rgba(91, 55, 23, 0.08);
  border: 1px dashed rgba(91, 55, 23, 0.35);
  border-radius: 8px;
  color: #5b3717;
  font-size: 0.86rem;
}

.bg-label code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.mudunu-theme .hero-card,
.mudunu-theme .card {
  backdrop-filter: blur(1.5px);
  background: rgba(255, 255, 255, 0.93);
}

@media (max-width: 900px) {
  .mudunu-theme .container {
    width: min(1280px, 94%);
  }

  .bg-label {
    width: 100%;
  }
}

.photo-frame {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(91, 55, 23, 0.2);
  align-self: start;
}

.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.photo-frame figcaption {
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  color: #5b3717;
  background: rgba(251, 232, 214, 0.75);
}

.hero-card .photo-frame img {
  max-height: 420px;
  width: 100%;
  object-fit: contain;
}

.card h3 {
  margin-top: 1rem;
}

.card h3:first-child {
  margin-top: 0;
}

.logo-frame {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.logo-frame picture,
.logo-frame img {
  display: block;
  width: 100%;
}

.logo-frame img {
  object-fit: contain;
  background: transparent;
}

.logo-frame figcaption {
  background: rgba(251, 232, 214, 0.65);
}


/* Masonry-style gallery to eliminate vertical gaps from mixed image heights */
.gallery.gallery-expanded {
  display: block;
  column-count: 4;
  column-gap: 0.8rem;
}

.gallery.gallery-expanded .photo-frame {
  display: inline-block;
  width: 100%;
  margin: 0 0 0.8rem;
  break-inside: avoid;
}

@media (max-width: 1100px) {
  .gallery.gallery-expanded {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  .gallery.gallery-expanded {
    column-count: 1;
  }
}

.hero-card-transparent {
  background: transparent;
  box-shadow: none;
  border: 0;
}

.hero-card-transparent .photo-frame,
.hero-card-transparent .photo-frame img,
.hero-card-transparent .photo-frame figcaption {
  background: transparent;
}

.hero-card-transparent .photo-frame figcaption {
  color: #5b3717;
  padding-top: 0.4rem;
}


.logo-card {
  padding: 0;
}

.logo-frame {
  padding: 0;
}

.logo-frame picture {
  background: transparent !important;
}

.logo-frame img {
  background: transparent !important;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.08));
}

.image-note {
  font-size: 0.82rem;
}

body.hide-image-notes .image-note,
body.hide-image-notes .bg-label {
  display: none !important;
}


.mini-map-link {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(91, 55, 23, 0.2);
  min-height: 230px;
}

.mini-map-link iframe {
  width: 100%;
  height: 230px;
  border: 0;
  display: block;
}

.mini-map-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(15, 45, 70, 0.85), rgba(15, 45, 70, 0.05));
}


.lang-switch {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
  margin-right: 0.6rem;
}

.lang-btn {
  border: 1px solid rgba(15, 45, 70, 0.25);
  background: #fff;
  color: #102a43;
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: #102a43;
  color: #fff;
}

@media (max-width: 900px) {
  .lang-switch {
    margin-left: 0;
    margin-right: 0.4rem;
  }
}

.hero-logo-floating {
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
  margin: 0;
  align-self: center;
  justify-self: center;
  width: min(100%, 420px);
}

.hero-logo-floating picture,
.hero-logo-floating img {
  display: block;
  width: 100%;
  background: transparent !important;
}

.hero-logo-floating img {
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.08));
}

.highlight-text {
  font-weight: 800;
  font-size: 1.1rem;
}

.highlight-text strong {
  font-weight: 900;
}
