/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  --color-dark: #2c2c2c;
  --color-dark-alt: #3a3a3a;
  --color-cream: #f9f6f0;
  --color-cream-dark: #f0ead6;
  --color-accent: #76500f;
  --color-accent-hover: #8a611c;
  --color-text: #3a3a3a;
  --color-text-light: #6b6b6b;
  --color-white: #ffffff;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

  --nav-height: 70px;
  --container-max: 1100px;
  --transition: 0.3s ease;
}

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

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

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

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

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

address {
  font-style: normal;
}

/* ============================================
   Utility
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--color-dark);
  position: relative;
}

.section-heading::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 14px auto 0;
  border-radius: 2px;
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(25, 25, 25, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  height: var(--nav-height);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.nav-header.scrolled {
  background-color: rgba(25, 25, 25, 0.8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(249, 246, 240, 0.65);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color var(--transition);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-white);
}


/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  transition: background-color var(--transition);
  padding: 0;
}

.hero-dot.active,
.hero-dot:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============================================
   Intro
   ============================================ */
.intro {
  background-color: var(--color-cream-dark);
}

.intro-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.intro-text p {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--color-text);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  background-color: var(--color-cream);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d0c9bc;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.15);
}

.form-group textarea {
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

.form-status {
  margin-top: 12px;
  font-size: 0.95rem;
}
.form-status.success { color: #2e7d32; }
.form-status.error { color: #c62828; }

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.contact-info p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-info a {
  color: var(--color-accent);
  font-weight: 700;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  background-color: var(--color-cream-dark);
}

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

.tab-btn {
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: transparent;
  border: 2px solid var(--color-dark-alt);
  border-radius: 4px;
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--transition);
}

.tab-btn:hover,
.tab-btn:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.tab-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.tab-content {
  display: none !important;
}

.tab-content.active {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
}

.gallery-item {
  height: 150px;
  flex-grow: 1;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.gallery-item img {
  height: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.92) contrast(1.05);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.08);
  filter: saturate(1.15) brightness(1.05) contrast(1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(44, 44, 44, 0.15) 100%);
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.gallery-item:hover::after {
  opacity: 0;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  font-size: 2.5rem;
  color: var(--color-white);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--color-white);
  font-size: 3rem;
  width: 56px;
  height: 72px;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--transition);
  z-index: 2001;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-img {
  max-width: calc(100% - 160px);
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Map
   ============================================ */
.map-section {
  background-color: var(--color-cream-dark);
  padding-bottom: 0;
}

.map-wrapper {
  width: 100%;
  line-height: 0;
  position: relative;
}

.map-wrapper iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: sepia(0.25) saturate(0.8) brightness(0.95) contrast(1.05);
  transition: filter 0.5s ease;
}

.map-wrapper:hover iframe {
  filter: sepia(0) saturate(1) brightness(1) contrast(1);
}


/* ============================================
   About
   ============================================ */
.about {
  background-color: var(--color-cream-dark);
}

.about-content {
  max-width: 780px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about-content .signature {
  text-align: right;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-accent);
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 134, 11, 0.25);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  background-color: var(--color-dark);
  color: #515151;
  text-align: center;
  padding: 28px 24px 36px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.footer-logo {
  height: 60px;
  width: auto;
  margin: 16px auto 0;
  opacity: 0.35;
  filter: brightness(0.6) contrast(0.8);
  mix-blend-mode: lighten;
}

.footer-credit {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: #515151;
}

/* ============================================
   Fade-in Animation
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-dark);
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    transition: right 0.35s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }

  .hero {
    height: 70vh;
  }

  .section-padding {
    padding: 56px 0;
  }

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

  .gallery-item {
    height: 120px;
  }

  .map-wrapper iframe {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .gallery-item {
    height: 100px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }
}
