/* fonts: Playfair for logo, Inter as clean sans (fallbacks) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@300;400;600&display=swap');

:root{
  --bg: #f5efe6;
  --bg-alt: #ede4d8;
  --bg-accent: #f2ead8;
  --text: #222;
  --muted: #666;
  --accent: #7a5c44;
}

/* Reset & base */
* { box-sizing: border-box; }
html,body { 
  height: 100%; 
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient background - only if user hasn't requested reduced motion */
@media (prefers-reduced-motion: no-preference) {
  body {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 25%, var(--bg-accent) 50%, var(--bg-alt) 75%, var(--bg) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
  }
  
  @keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
}

/* Homepage intro above gallery */
.homepage-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 1.5rem;
}
.homepage-intro h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.homepage-intro p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

/* Header: split menus + centered logo */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3.5rem 1rem;
  background: transparent;
  z-index: 10;
  flex-shrink: 0;
}

/* Logo styling */
.logo a {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}
.logo a:visited,
.logo a:active { color: var(--text); text-decoration: none; }
.logo a:hover { opacity: 0.7; }

/* Navigation links */
.nav-left, .nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-right { justify-content: flex-end; }

.nav-left a, .nav-right a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  font-weight: 400;
  transition: opacity 0.2s ease;
  position: relative;
}
.nav-left a:hover, .nav-right a:hover { opacity: 0.6; }
.nav-left a.active { font-weight: 600; }
.nav-left a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
}

.about-btn {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--text);
  background: transparent;
  transition: all 0.25s ease;
}
.about-btn:hover { background: var(--text); color: var(--bg); opacity: 1; }

/* Mobile drawer */
.mobile-menu-button { 
  display: none; border: none; background: none; font-size: 1.8rem;
  color: var(--text); cursor: pointer; padding: 0.5rem; z-index: 50;
  position: relative; -webkit-tap-highlight-color: transparent;
}

/* Mobile menu overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); z-index: 39; opacity: 0;
  transition: opacity 0.3s ease; pointer-events: none;
}
.nav-mobile-overlay.open { opacity: 1; pointer-events: auto; }

.nav-mobile {
  display: none;
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px;
  height: 100%; background: var(--bg); padding: 4rem 2rem;
  transition: right 0.3s ease; z-index: 40; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.nav-mobile.open { right: 0; }
.nav-mobile .close-menu { position: absolute; top: 1.5rem; right: 1.5rem; border: none; background: none; font-size: 2rem; cursor: pointer; color: var(--text); padding: 0.5rem; line-height: 1; }
.nav-mobile a { display: block; margin-bottom: 1.8rem; color: var(--text); font-size: 1.15rem; text-decoration: none; transition: opacity 0.2s ease; }
.nav-mobile a:hover, .nav-mobile a:active { opacity: 0.6; }

/* ====== GALLERY REGION ====== */
.gallery-container {
  width: 100%;
  height: min(70vh, 900px);
  overflow: hidden;
  padding: 0.5rem 0 0.5rem;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.gallery {
  display: flex;
  gap: 18px;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 3.5rem 0 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: auto;
  cursor: grab;
}
.gallery:active { cursor: grabbing; }
.gallery > img {
  flex: 0 0 auto;
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.6s ease;
  opacity: 0;
}
.gallery > img.loaded { opacity: 1; }
.gallery > img:hover { transform: scale(1.015); box-shadow: 0 12px 28px rgba(0,0,0,0.15); }

.gallery-intro {
  flex: 0 0 auto;
  height: 100%;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 3rem; min-width: 450px; max-width: 600px;
  background: linear-gradient(135deg, #f9f6f0 0%, #f4ede3 100%);
  opacity: 0; transition: opacity 0.6s ease;
}
.gallery-intro.loaded { opacity: 1; }
.gallery-intro h1 { font-family: 'Playfair Display', serif; font-size: 2.8rem; font-weight: 700; margin:0 0 1rem 0; line-height:1.1; color: var(--text);}
.gallery-intro p { font-size:1rem; color:#444; margin:0; line-height:1.6; max-width:380px;}

.gallery-suggestion {
  flex: 0 0 auto;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* About page layout */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* text | image */
  align-items: center;
  max-width: 1000px;             /* narrower overall */
  margin: 60px auto;
  gap: 40px;
  padding: 0 3rem;
}

.about-text {
  padding-right: 1rem;
}

.about-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 16px;
}

.about-photo {
  max-width: 400px;      /* smaller image */
  justify-self: end;     /* keep it aligned right */
  border-radius: 6px;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.12);
}

.about-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Mobile responsive */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
    padding: 0 1.5rem;
  }
  
  .about-photo {
    max-width: 100%;
    justify-self: center;
  }
  
  .about-text {
    padding: 0;
  }
}
.contact-button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--text);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.contact-button:hover { background: var(--accent); transform: translateY(-1px); }

/* ====== FOOTER ====== */
.site-footer {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer {
  padding: 1rem 3rem 1.5rem; /* top right/bottom left */
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
@media (max-width: 1024px) {
  footer { 
    padding: 0.85rem 1.5rem !important;
    text-align: center !important;
    font-size: 0.8rem !important;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
  
  footer a {
    color: var(--text) !important;
    text-decoration: none !important;
  }
}

/* Header styling for all pages */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 3.5rem 1rem;  /* consistent across pages */
  background: transparent;
  z-index: 10;
  flex-shrink: 0;
}

/* Logo sizing consistent */
.logo a {
  font-size: 1.85rem;   /* same for about and other pages */
}

/* Mobile adjustments */
@media (max-width: 1024px) {
  .site-header {
    padding: 0.85rem 1.25rem;
    grid-template-columns: 1fr auto auto;
    gap: 0.75rem;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg) !important;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }
  
  .logo a {
    font-size: 1.25rem;
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .site-header { padding: 1rem 2rem 0; grid-template-columns: 1fr auto 1fr; }
  .gallery { padding-right: 2rem; gap: 14px; }
  .gallery-intro { min-width: 300px; max-width: 500px; padding: 0 2rem; }
  .about-container { flex-direction: column; padding: 2rem 1.5rem; gap: 2rem; }
}

@media (max-width: 900px) {
  .nav-left, .nav-right { display: none; }
  .mobile-menu-button { display: block; }
  .gallery-intro { min-width: 260px; padding: 0 1.5rem; }
  .about-container { gap: 1.5rem; padding: 1.5rem 1rem; }
  .about-text h1 { font-size: 2.4rem; }
}

/* Smallest devices */
@media (max-width: 600px) {
  .homepage-intro h1 { font-size: 2.2rem; }
  .about-text h1 { font-size: 2.2rem; }
  .gallery-intro h1 { font-size: 2.2rem; }
}

/* MOBILE VERTICAL GALLERY */
@media (max-width: 1024px) {
  .nav-left, .nav-right { display: none !important; }
  .mobile-menu-button { display: inline-block !important; }
  .nav-mobile-overlay { display: block !important; }
  .nav-mobile { display: block !important; }
  
  body {
    padding-top: 54px;
  }
  
  .gallery-container {
    padding: 0 !important;
    height: auto !important;
  }
  
  /* FORCE VERTICAL */
  .gallery { 
    flex-direction: column !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    gap: 3px !important;
    padding: 0.5rem !important;
  }
  
  .gallery > img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  
  .gallery-intro,
  .gallery-suggestion {
    min-width: 100% !important;
    padding: 2.5rem 1.75rem !important;
  }
}@media (max-width: 1024px) {
  .gallery-intro {
    min-height: 40vh !important;  /* was probably 60vh or auto */
    padding: 2rem 1.75rem !important;
  }
  
  .gallery-intro h1 {
    font-size: 1.6rem !important;
  }
  
  .gallery-intro p {
    font-size: 0.9rem !important;
  }
}

/* === FIXES: 1) Hamburger centering  2) Gallery intro height  3) About header sizing === */

@media (max-width: 1024px) {
  /* 1. Fix hamburger centering and header grid */
  .site-header { 
    padding: 0.85rem 1.25rem;
    grid-template-columns: auto 1fr auto !important;  /* logo, space, hamburger */
    gap: 0.75rem;
  }
  
  .logo {
    order: 1;
  }
  
  .mobile-menu-button {
    order: 2;
    justify-self: end;
  }

  /* 2. Gallery intro height reduction */
  .gallery-intro {
    min-height: 40vh !important;
    padding: 2rem 1.75rem !important;
  }
  
  .gallery-intro h1 {
    font-size: 1.6rem !important;
  }
  
  .gallery-intro p {
    font-size: 0.9rem !important;
  }

  /* 3. About page header consistency */
  .logo a {
    font-size: 1.25rem !important; /* match across pages */
  }

  .mobile-menu-button {
    font-size: 1.7rem !important;
  }
}
/* Homepage intro responsiveness — ensure gallery peek-through on smaller screens */
@media (max-width: 1024px) {
  .gallery-intro.homepage-intro {
    padding: 3rem 1.5rem;
    max-height: 45vh; /* tablets: about half screen */
  }

  .gallery-intro.homepage-intro h1 {
    font-size: 2rem;
  }

  .gallery-intro.homepage-intro p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .gallery-intro.homepage-intro {
    padding: 2rem 1rem;
    max-height: 35vh; /* mobile: smaller intro, image visible below */
    overflow: hidden;
  }

  .gallery-intro.homepage-intro h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .gallery-intro.homepage-intro p {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
}

