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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.nav--dark,
.nav.scrolled {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
  height: 64px;
  position: relative;
}

/* Logo box — centered, with a thin border */
.nav-logo-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,0.75);
  padding: 4px 14px 3px;
  transition: border-color 0.3s;
}

.nav.nav--dark .nav-logo-box,
.nav.scrolled .nav-logo-box {
  border-color: #1a1a1a;
}

.nav-logo {
  font-family: 'Playfair Display', 'Didot', 'Georgia', serif;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #fff;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav.nav--dark .nav-logo,
.nav.scrolled .nav-logo {
  color: #1a1a1a;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links--left {
  position: absolute;
  right: calc(50% + 120px);
}

.nav-links--right {
  position: absolute;
  left: calc(50% + 120px);
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}

.nav.nav--dark .nav-links a,
.nav.scrolled .nav-links a {
  color: #1a1a1a;
}

.nav-links a.active {
  border-bottom: 1px solid currentColor;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* ===== HERO (Homepage) ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  font-family: 'Playfair Display', 'Didot', 'Georgia', serif;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.18);
}

.hero-sub {
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.88;
}

/* ===== GALLERY PAGE ===== */
.page-gallery {
  background: #fff;
}

.gallery-main {
  padding-top: 64px;
  min-height: 100vh;
}

/* wrapper so the border spans full width but content is constrained */
.gallery-entry-wrap {
  border-bottom: 1px solid #ebebeb;
  padding: 4rem 0;
}

.gallery-entry-wrap:first-child {
  padding-top: 2rem;
}

/* --- Entry row --- */
.gallery-entry {
  display: flex;
  align-items: center;
  min-height: 520px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5rem;
}

.gallery-entry.entry--reverse {
  flex-direction: row-reverse;
}

/* Image side — fills 55% */
.entry-img-side {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
}

.entry-featured-wrap {
  width: 100%;
  overflow: hidden;
  background: #f0f0ee;
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.entry-featured {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

/* Mini gallery strip */
.mini-gallery {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0 0;
  background: #fff;
}

.mini-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
  max-width: 100%;
  /* force overflow so arrows are always functional */
  scroll-snap-type: x mandatory;
}
.mini-track::-webkit-scrollbar { display: none; }

.mini-thumb {
  flex: 0 0 90px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.2s;
  border: 1.5px solid transparent;
  scroll-snap-align: start;
}

.mini-thumb:hover { opacity: 0.75; }
.mini-thumb.active {
  opacity: 1;
  border-color: #1a1a1a;
}

.mini-arrow {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #aaa;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
}
.mini-arrow:hover { color: #1a1a1a; }

/* Text side — fills 45% */
.entry-text-side {
  flex: 0 0 45%;
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.entry-meta {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1.6rem;
}

.entry-desc {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #444;
  max-width: 34ch;
}

.entry-desc p {
  margin-bottom: 0.75rem;
}

.entry-desc p:last-child {
  margin-bottom: 0;
}

.entry-desc-note {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem !important;
  color: #888 !important;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .gallery-entry {
    flex-direction: column;
    min-height: auto;
    padding: 0 1.5rem;
  }
  .gallery-entry.entry--reverse {
    flex-direction: column-reverse;
    min-height: auto;
    padding: 0 1.5rem;
  }
  .entry-img-side  { flex: none; width: 100%; }
  .entry-text-side { flex: none; width: 100%; padding: 2rem 0; }
  .entry-desc { max-width: none; }
}

/* ===== ABOUT PAGE ===== */
.page-about {
  background: #fff;
}

.about-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 3rem 5rem;
}

.about-inner {
  display: flex;
  gap: 5rem;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  align-items: flex-start;
}

.about-img-col {
  flex: 0 0 320px;
  padding-top: 4rem;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
}

.about-text-col {
  flex: 1 1 auto;
  padding-top: 0.25rem;
}

.about-text-col h1 {
  font-family: 'Playfair Display', 'Didot', 'Georgia', serif;
  font-size: 2.1rem;
  font-weight: 400;
  margin-bottom: 1.6rem;
  line-height: 1.15;
}

.about-text-col p {
  font-size: 0.82rem;
  line-height: 1.9;
  color: #3a3a3a;
  margin-bottom: 1rem;
}

.about-last-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.about-last-row p {
  margin-bottom: 0;
}

.about-bottom {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.4rem;
}

.about-signature {
  width: 140px;
  opacity: 0.85;
}

.about-socials {
  display: flex;
  gap: 1rem;
}

.about-socials a {
  display: flex;
  align-items: center;
  color: #666;
  transition: color 0.2s;
}

.about-socials a:hover { color: #000; }

.contact-btn {
  display: inline-block;
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
  padding: 0.65rem 1.8rem;
  transition: background 0.2s, color 0.2s;
}
.contact-btn:hover {
  background: #1a1a1a;
  color: #fff;
}

@media (max-width: 760px) {
  .about-main { padding: 90px 2rem 3rem; }
  .about-inner {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
  .about-img-col {
    flex: none;
    width: 60%;
    max-width: 260px;
  }
  .about-text-col {
    width: 100%;
    padding: 0 0.5rem;
  }
  .about-text-col h1 { font-size: 1.7rem; }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 500;
  background: #fff;
  border: 1px solid #e0e0e0;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 680px;
  width: calc(100% - 3rem);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  border: 1px solid #1a1a1a;
  transition: background 0.2s, color 0.2s;
}

.cookie-accept {
  background: #1a1a1a;
  color: #fff;
}
.cookie-accept:hover {
  background: #333;
}

.cookie-decline {
  background: transparent;
  color: #1a1a1a;
}
.cookie-decline:hover {
  background: #f5f5f5;
}

@media (max-width: 560px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    bottom: 1rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.footer--gallery {
  position: static;
  color: #bbb;
  border-top: 1px solid #ececec;
  margin-top: 2rem;
}

/* Hamburger — hidden on desktop */
.nav-burger { display: none; }
.nav-dropdown { display: none; }

/* ===== MOBILE ===== */
@media (max-width: 600px) {

  /* Hide inline links, show burger */
  .nav-links--left,
  .nav-links--right { display: none; }

  .nav-inner { padding: 0 1.2rem; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    position: absolute;
    right: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
  }

  .nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
  }

  .nav.nav--dark .nav-burger span,
  .nav.scrolled .nav-burger span {
    background: #1a1a1a;
  }

  .nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #ebebeb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.open { max-height: 200px; }

  .nav-dropdown a {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #1a1a1a;
    padding: 0.9rem 2rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
  }

  .nav-dropdown a:last-child { border-bottom: none; }
  .nav-dropdown a:hover      { background: #fafafa; }
  .nav-dropdown a.active     { border-bottom-color: #1a1a1a; }

  /* Hero title smaller */
  .hero-title { font-size: clamp(3rem, 16vw, 5rem); }

  /* Gallery entries */
  .gallery-entry {
    padding: 0 1.2rem;
  }
  .gallery-entry.entry--reverse {
    padding: 0 1.2rem;
    flex-direction: column-reverse;
  }
  .gallery-entry-wrap { padding: 2.5rem 0; }
  .entry-text-side    { padding: 1.5rem 0; }

  /* About bottom row: stack vertically */
  .about-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .about-signature { width: 120px; }
}
