/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cultural-house interior: reed mats, earth floor, thatch shadow, terracotta/imigongo warmth */
  --dark: #2a2218;
  --dark-alt: #1a1510;
  --accent: #a64b2a;
  --accent-light: #c86a42;
  --cream: #f3ebe0;
  --warm-gray: #e5d9cb;
  --text: #3a3028;
  --text-light: #6b5f54;
  --white: #fffcf7;
  --radius: 10px;
  --radius-sm: 6px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(42, 34, 24, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  height: 64px;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  justify-self: start;
  min-width: 0;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logo .logo-mark,
.footer-logo .logo-mark {
  width: auto;
  height: 40px;
  max-width: min(160px, 28vw);
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 32px;
  justify-self: center;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-backdrop {
  display: none;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 64px;
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  grid-template-rows: 420px;
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-main {
  position: relative;
  overflow: hidden;
}

.hero-main img {
  filter: brightness(0.62) sepia(0.12) saturate(0.92);
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 36px;
  background: linear-gradient(
    to top,
    rgba(42, 34, 24, 0.82) 0%,
    rgba(42, 34, 24, 0.2) 55%,
    transparent 100%
  );
  color: var(--white);
}

.hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-sub {
  font-size: 0.85rem;
  opacity: 0.85;
  max-width: 360px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.btn-upload:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.hero-side {
  overflow: hidden;
}

.hero-side img {
  filter: brightness(0.88) sepia(0.08);
}

.hero-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  overflow: hidden;
}

.hero-thumb-grid img {
  border-radius: 0;
  transition: transform 0.3s;
}

.hero-thumb-grid img:hover {
  transform: scale(1.05);
}

/* ============================================
   SEARCH SECTION
   ============================================ */
.search-section {
  padding: 56px 0 40px;
  background: var(--white);
  text-align: center;
}

.search-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.search-subtitle {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 28px;
}

.search-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  background: var(--warm-gray);
  padding: 16px 20px;
  border-radius: var(--radius);
}

.btn-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white);
  padding: 10px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
  text-decoration: none;
  box-sizing: border-box;
  min-height: 42px;
}

.btn-search:hover {
  background: var(--accent-light);
}

.search-options {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  max-width: 800px;
  margin: 14px auto 0;
}

.search-options a {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.search-options a:hover {
  color: var(--accent);
}

/* ============================================
   PHOTO GRID (Masonry)
   ============================================ */
.photo-grid-section {
  padding: 20px 0 80px;
  background: var(--white);
}

.products-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 10px;
}

.products-lead {
  text-align: center;
  color: var(--text-light);
  font-size: 0.88rem;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.masonry {
  columns: 4;
  column-gap: 12px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.masonry-item img {
  transition: transform 0.4s ease;
  height: auto;
}

.masonry-item:hover img {
  transform: scale(1.04);
}

.masonry-item.tall img {
  min-height: 320px;
}

.photo-label {
  position: absolute;
  top: 12px;
  left: 12px;
}

.photo-tag {
  background: var(--accent);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
}

.photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(42, 34, 24, 0.88), transparent);
  color: var(--white);
}

.photo-info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.photo-info p {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-bottom: 8px;
}

.photo-stats {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  opacity: 0.9;
}

.photo-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================
   MORE THAN AN ARCHIVE
   ============================================ */
.archive-section {
  padding: 72px 0;
  background: var(--cream);
  text-align: center;
}

.archive-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.archive-subtitle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 48px;
}

.archive-features {
  display: flex;
  justify-content: center;
  gap: 64px;
}

.feature {
  max-width: 220px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 18px;
}

.feature h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.feature p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  background: var(--dark);
  padding: 80px 24px 72px;
  text-align: center;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cta-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  pointer-events: none;
}

.cta-img {
  position: absolute;
  width: 320px;
  height: 400px;
  border-radius: var(--radius);
  opacity: 0.35;
  object-fit: cover;
}

.cta-img.left {
  left: 60px;
  top: 40px;
  transform: rotate(-3deg);
}

.cta-img.right {
  right: 60px;
  top: 40px;
  transform: rotate(3deg);
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.cta-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}

.btn-cta:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

.cta-torn-edge {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q30 0 60 18 Q90 36 120 15 Q150 0 180 20 Q210 38 240 16 Q270 0 300 22 Q330 40 360 18 Q390 0 420 20 Q450 36 480 14 Q510 0 540 22 Q570 40 600 17 Q630 0 660 20 Q690 38 720 15 Q750 0 780 22 Q810 40 840 18 Q870 0 900 20 Q930 36 960 16 Q990 0 1020 22 Q1050 40 1080 17 Q1110 0 1140 20 Q1170 38 1200 15 L1200 40 L0 40Z' fill='%232a2218'/%3E%3C/svg%3E") no-repeat bottom center;
  background-size: cover;
  z-index: 3;
}

/* ============================================
   VISIT
   ============================================ */
.visit-section {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--warm-gray);
}

.visit-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin-bottom: 10px;
}

.visit-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
}

.visit-info {
  font-size: 0.92rem;
  color: var(--text);
}

.visit-rating {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.visit-rating .fa-star {
  color: #b8892a;
  font-size: 0.85rem;
}

.visit-rating-count {
  font-weight: 400;
  color: var(--text-light);
  font-size: 0.85rem;
}

.visit-address {
  font-style: normal;
  margin-bottom: 16px;
  line-height: 1.55;
}

.visit-phone {
  margin-bottom: 16px;
}

.visit-phone a {
  color: var(--accent);
  font-weight: 500;
}

.visit-phone a:hover {
  color: var(--accent-light);
}

.visit-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.visit-hours-note {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 24px;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-visit-maps,
.btn-visit-directions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-visit-maps {
  background: var(--accent);
  color: var(--white);
}

.btn-visit-maps:hover {
  background: var(--accent-light);
  color: var(--white);
}

.btn-visit-directions {
  background: transparent;
  color: var(--dark);
  border: 1px solid rgba(42, 34, 24, 0.22);
}

.btn-visit-directions:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.visit-map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(42, 34, 24, 0.12);
  box-shadow: 0 8px 28px rgba(42, 34, 24, 0.1);
}

.visit-map {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.visit-map-credit {
  font-size: 0.75rem;
  color: var(--text-light);
  padding: 10px 14px;
  background: var(--cream);
  margin: 0;
}

.visit-map-credit a {
  color: var(--accent);
}

.visit-map-credit a:hover {
  color: var(--accent-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 56px 0 0;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.footer-logo span {
  color: var(--white);
}

.footer-subscribe {
  text-align: center;
  margin-bottom: 28px;
}

.footer-subscribe label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-line {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

.footer-contact-line a {
  color: var(--accent-light);
  font-weight: 500;
}

.footer-contact-line a:hover {
  color: var(--white);
}

.subscribe-form {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0;
}

.subscribe-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.85rem;
  font-family: inherit;
}

.subscribe-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.subscribe-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-subscribe {
  background: var(--accent);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-subscribe:hover {
  background: var(--accent-light);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-bottom {
  background: var(--dark-alt);
  text-align: center;
  padding: 18px;
  margin-top: 20px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-bottom p {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p:first-child {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.footer-photo-credit {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.footer-photo-credit a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-photo-credit a:hover {
  color: var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px auto;
  }

  .hero-thumb-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 100px;
  }

  .hero-thumb-grid img:nth-child(n+6) {
    display: none;
  }

  .masonry {
    columns: 3;
  }

  .cta-img {
    width: 240px;
    height: 300px;
    opacity: 0.2;
  }

  .cta-img.left {
    left: 20px;
  }

  .cta-img.right {
    right: 20px;
  }

  /* Collapsible main nav (tablet / narrow screens) */
  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .logo {
    flex: 1;
    min-width: 0;
    font-size: 1.05rem;
  }

  .logo .logo-mark,
  .footer-logo .logo-mark {
    height: 34px;
    max-width: min(140px, 32vw);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    justify-self: stretch;
    padding: 0;
    margin: 0;
    background: rgba(31, 24, 18, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.35s ease,
      opacity 0.2s ease,
      visibility 0.2s ease;
    z-index: 3;
  }

  .header.nav-open .nav {
    max-height: min(70vh, 420px);
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .header.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 380px;
  }

  .hero-side,
  .hero-thumb-grid {
    display: none;
  }

  .hero-overlay h1 {
    font-size: 2rem;
  }

  .search-bar .btn-search {
    width: 100%;
    max-width: 320px;
    padding: 12px;
  }

  .masonry {
    columns: 2;
  }

  .archive-features {
    flex-direction: column;
    align-items: center;
    gap: 36px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .visit-map {
    height: 260px;
  }

  .cta-img {
    display: none;
  }

  .cta-content h2 {
    font-size: 1.6rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {

  .masonry {
    columns: 1;
  }

  .header-inner {
    padding: 0 16px;
  }

  .hero-overlay h1 {
    font-size: 1.6rem;
  }

  .hero-overlay {
    padding: 24px 20px;
  }
}
