/* Lilac Inn Gallery — Kate Hoekstra Art */
/* Elegant. Warm. Let the art speak. */

:root {
  --bg: #faf8f5;
  --bg-warm: #f5f0ea;
  --bg-dark: #2a2520;
  --text: #3a3530;
  --text-light: #7a7570;
  --text-dark: #1a1510;
  --lilac: #9b7bb8;
  --lilac-light: #c4a8d8;
  --lilac-dark: #6f4f8a;
  --gold: #c89b3c;
  --gold-light: #e8c87a;
  --cream: #fdf9f3;
  --border: #e8e0d8;
  --shadow: rgba(42, 37, 32, 0.08);
  --shadow-lg: rgba(42, 37, 32, 0.15);

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lilac-dark);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--lilac); }

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

/* ============ NAVIGATION ============ */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
#nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-brand {
  display: flex;
  gap: 8px;
  align-items: baseline;
  text-decoration: none;
}
.brand-lilac {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--lilac-dark);
  letter-spacing: 0.02em;
}
.brand-gallery {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--lilac);
  transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-social { display: flex; align-items: center; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: 0.3s;
}

/* ============ HERO ============ */

#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #3a2f45 50%, var(--bg-dark) 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(155, 123, 184, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(200, 155, 60, 0.1) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  line-height: 1.1;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--lilac-light);
  margin-bottom: 8px;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--lilac-light);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s;
}
.hero-cta:hover {
  background: var(--lilac);
  border-color: var(--lilac);
  color: white;
}

/* ============ SECTIONS ============ */

section {
  padding: 100px 0;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}
.section-subtitle a { color: var(--lilac); }

/* ============ GALLERY ============ */

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover {
  border-color: var(--lilac);
  color: var(--lilac-dark);
}
.filter-btn.active {
  background: var(--lilac-dark);
  border-color: var(--lilac-dark);
  color: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  transition: opacity 0.4s, transform 0.4s;
}
.gallery-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
}

.gallery-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow-lg);
}

.gallery-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-warm);
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.gallery-card:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-info {
  padding: 16px 20px;
}
.gallery-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.gallery-info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Placeholders (remove when real images added) */
.placeholder-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #ebe3d8 100%);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
}
.placeholder-art::after {
  content: attr(data-placeholder);
}

.placeholder-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-warm) 0%, #e0d8d0 100%);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-light);
}
.placeholder-portrait::after {
  content: attr(data-placeholder);
}

/* ============ ABOUT ============ */

#about {
  background: var(--bg-warm);
}

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

.about-text .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--lilac);
  color: var(--lilac-dark);
  background: rgba(155, 123, 184, 0.05);
}

.btn-primary {
  border: 1px solid var(--lilac-dark);
  background: var(--lilac-dark);
  color: white;
}
.btn-primary:hover {
  background: var(--lilac);
  border-color: var(--lilac);
}

/* ============ INSTAGRAM FEED ============ */

#featured { background: white; }

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

.insta-placeholder {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--bg-warm), #e8e0d8);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
}
.insta-placeholder::after { content: attr(data-placeholder); }

/* ============ CONTACT ============ */

#contact {
  background: var(--bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.contact-details {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
}
.contact-row svg { color: var(--lilac); flex-shrink: 0; }
.contact-row a { color: var(--lilac-dark); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid var(--border);
  background: white;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  border-radius: 3px;
  transition: border-color 0.3s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--lilac);
}
.contact-form textarea { resize: vertical; }

.contact-form .btn {
  align-self: flex-start;
}

/* ============ FOOTER ============ */

footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 0;
  text-align: center;
}

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

.footer-brand {
  margin-bottom: 12px;
}
.footer-brand .brand-lilac { color: var(--lilac-light); }
.footer-brand .brand-gallery { color: rgba(255, 255, 255, 0.4); }

.footer-copy {
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.footer-credit {
  font-size: 0.8rem;
}
.footer-credit a {
  color: var(--lilac-light);
  text-decoration: none;
}
.footer-credit a:hover { color: var(--lilac); }

/* ============ LIGHTBOX ============ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
  padding: 20px;
  line-height: 1;
}
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }

  #hero { min-height: 70vh; }
  .hero-title { font-size: 2.8rem; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image { max-width: 400px; margin: 0 auto; }

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

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
