/* ═══════════════════════════════════════════
   NiDo Maps — Design System & Stylesheet
   ═══════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --yellow: #F5D76E;
  --yellow-light: #FFF3C4;
  --yellow-dark: #D4A827;
  --teal: #7EC8C8;
  --teal-light: #B5E8E8;
  --teal-dark: #4FA8A8;
  --magenta: #C85A9E;
  --purple: #6B4C9A;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --dark: #2D2D2D;
  --gray: #6B6B6B;
  --gray-light: #E8E4DC;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --nav-height: 72px;
  --section-padding: 100px 0;
  --container-max: 1200px;
  --border-radius: 20px;
  --border-radius-sm: 12px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 60px rgba(0,0,0,0.1);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.07);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ── Utility: Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════ HEADER / NAV ═══════════════ */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 249, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

#header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-svg {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--yellow), var(--teal));
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--teal-dark);
}

.nav-link:hover::after {
  width: 100%;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 2px solid var(--dark);
  border-radius: 50px;
  background: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle:hover {
  background: var(--yellow-light);
  border-color: var(--yellow-dark);
  transform: scale(1.05);
}

.lang-flag {
  font-size: 1rem;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  background: rgba(255, 249, 240, 0.98);
  backdrop-filter: blur(16px);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 14px 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--gray-light);
  transition: color var(--transition);
}

.mobile-link:hover {
  color: var(--teal-dark);
}

/* ═══════════════ HERO SECTION ═══════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

/* Organic blob shapes */
.hero-blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 0;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
  width: 600px;
  height: 500px;
  background: linear-gradient(135deg, var(--yellow-light), var(--yellow));
  top: -100px;
  left: -150px;
  opacity: 0.5;
}

.hero-blob-2 {
  width: 500px;
  height: 400px;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  bottom: -80px;
  right: -120px;
  opacity: 0.4;
  animation-delay: -4s;
  border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(20px, -20px) rotate(3deg); }
  66% { transform: translate(-15px, 15px) rotate(-2deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  text-align: left;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  animation: heroFadeIn 1s ease forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray);
  margin-bottom: 32px;
  font-weight: 500;
  animation: heroFadeIn 1s 0.2s ease forwards;
  opacity: 0;
}

.hero-cta {
  display: inline-block;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  color: var(--dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(245, 215, 110, 0.4);
  transition: var(--transition);
  animation: heroFadeIn 1s 0.4s ease forwards;
  opacity: 0;
}

.hero-cta:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(245, 215, 110, 0.6);
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-image-wrapper {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin-left: 40px;
  animation: heroImageReveal 1.2s 0.3s ease forwards;
  opacity: 0;
}

@keyframes heroImageReveal {
  from { opacity: 0; transform: translateX(60px) rotate(3deg); }
  to { opacity: 1; transform: translateX(0) rotate(0deg); }
}

.hero-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Floating decorative pencils */
.floating-pencil {
  position: absolute;
  z-index: 2;
  font-size: 2rem;
  animation: pencilFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-1 { top: 20%; right: 8%; animation-delay: 0s; }
.floating-2 { bottom: 25%; left: 5%; animation-delay: -2s; }
.floating-3 { top: 35%; left: 15%; animation-delay: -4s; }

@keyframes pencilFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

/* ═══════════════ SHARED SECTION STYLES ═══════════════ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-dark);
  padding: 6px 20px;
  background: var(--teal-light);
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
}

/* ═══════════════ ABOUT SECTION ═══════════════ */
.about {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50% 40% 60% 30% / 50% 60% 40% 50%;
  background: var(--teal-light);
  opacity: 0.15;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 18px;
  line-height: 1.8;
}

.about-badges {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--cream);
  border-radius: 50px;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 1.2rem;
}

.badge-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.02);
}

.about-blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--yellow-light);
  border-radius: 50% 40% 60% 30% / 40% 50% 60% 50%;
  z-index: -1;
  bottom: -40px;
  right: -40px;
  opacity: 0.5;
}

/* ═══════════════ MAPS SECTION ═══════════════ */
.maps {
  background: var(--cream);
  position: relative;
}

.maps::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
  background: var(--yellow-light);
  opacity: 0.3;
}

.maps-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.map-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.map-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.map-image-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.map-image {
  width: 100%;
  transition: transform var(--transition-slow);
}

.map-card:hover .map-image {
  transform: scale(1.05);
}

.map-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--dark);
}

.map-info {
  padding: 24px;
}

.map-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.map-desc {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ═══════════════ POSTCARDS SECTION ═══════════════ */
.postcards {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.postcards::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
  background: var(--yellow-light);
  opacity: 0.2;
  transform: translateY(-50%);
}

.postcards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.postcard-item {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.postcard-item:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.postcard-item:nth-child(even):hover {
  transform: translateY(-6px) rotate(1deg);
}

.postcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.postcard-item:hover .postcard-img {
  transform: scale(1.08);
}

/* ═══════════════ POSTERS SECTION ═══════════════ */
.posters {
  background: linear-gradient(180deg, var(--cream) 0%, var(--teal-light) 100%);
  position: relative;
}

.posters-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.poster-card {
  text-align: center;
}

.poster-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.poster-image-container:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.poster-image {
  width: 100%;
  transition: transform var(--transition-slow);
}

.poster-image-container:hover .poster-image {
  transform: scale(1.05);
}

.poster-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 20px;
  color: var(--dark);
}

/* ═══════════════ CONTACT / FOOTER ═══════════════ */
.contact {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--yellow-light) 100%);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}

.contact-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-title {
  color: var(--dark);
}

.contact-tagline {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  padding: 14px 28px;
  background: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  background: var(--yellow-light);
}

.contact-icon {
  font-size: 1.3rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-person {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
  color: var(--gray);
  position: relative;
  z-index: 1;
}

/* ═══════════════ LIGHTBOX ═══════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.1);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 60px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform var(--transition);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

/* ── Tablet (< 1024px) ── */
@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-height) + 60px);
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-image-wrapper {
    margin-left: 0;
    margin-top: 40px;
    max-width: 400px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text .section-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-badges {
    justify-content: center;
  }

  .maps-showcase {
    grid-template-columns: 1fr;
  }

  .postcards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .posters-showcase {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --nav-height: 60px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .hero-blob-1 {
    width: 350px;
    height: 300px;
  }

  .hero-blob-2 {
    width: 250px;
    height: 200px;
  }

  .floating-pencil {
    font-size: 1.5rem;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .postcards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .contact-details {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ── Small Mobile (< 480px) ── */
@media (max-width: 480px) {
  .postcards-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrapper {
    max-width: 300px;
  }

  .about-badges {
    flex-direction: column;
    align-items: center;
  }
}
