/* ===== Screen Reader Only (SEO text) ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Variables & Reset ===== */
:root {
  --color-cream: #f5f0e8;
  --color-warm-white: #faf8f4;
  --color-tan: #d4c5a9;
  --color-brown: #6b5b45;
  --color-dark-brown: #3d3224;
  --color-deep: #2a2118;
  --color-accent: #8b6f47;
  --color-accent-light: #a8895c;
  --color-text: #3d3224;
  --color-text-light: #7a6b58;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

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

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

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

/* ===== Typography ===== */
.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--color-dark-brown);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== Navigation ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(42, 33, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-cream);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  color: var(--color-tan);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent-light);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-cream);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-cream);
  transition: var(--transition);
}

/* ===== Hero ===== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('images/Screech Owl card.png') center/cover no-repeat;
  background-color: var(--color-deep);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 33, 24, 0.55) 0%,
    rgba(42, 33, 24, 0.4) 50%,
    rgba(42, 33, 24, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--color-cream);
  padding: 0 24px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-tan);
  margin-bottom: 40px;
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--color-tan);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.hero-btn:hover {
  background: rgba(245, 240, 232, 0.12);
  border-color: var(--color-cream);
}

/* ===== Gallery ===== */
#gallery {
  padding: 100px 0;
  background: var(--color-warm-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--color-cream);
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.banner {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  height: 560px;
}

.gallery-item.banner img {
  object-position: center 35%;
}

.gallery-owl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  grid-column: 1 / -1;
}

.gallery-owl-row {
  display: flex !important;
  gap: 20px;
  grid-column: 1 / -1;
}

.gallery-owl-row .gallery-item {
  flex: 1;
  aspect-ratio: auto;
}

.gallery-owl-row .gallery-item img {
  height: auto;
  object-fit: contain;
}


.gallery-item.tall {
  aspect-ratio: auto;
  grid-row: span 2;
}

.gallery-item.tall img {
  height: 100%;
  object-fit: cover;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(42, 33, 24, 0.8));
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

.gallery-item:hover::after {
  transform: translateY(0);
}

/* ===== About ===== */
#about {
  padding: 100px 0;
  background: var(--color-cream);
}

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

.about-image img {
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(61, 50, 36, 0.15);
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 1.05rem;
}

blockquote {
  margin-top: 28px;
  padding-left: 24px;
  border-left: 3px solid var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-brown);
  line-height: 1.8;
}

/* ===== Process ===== */
.process-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
}

.process-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.process-hero-duo {
  display: flex;
  gap: 0;
}

.process-hero-duo img {
  width: 50%;
  object-position: center top;
}

.process-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(42, 33, 24, 0.1) 0%,
    rgba(42, 33, 24, 0.3) 100%
  );
  z-index: 1;
}

#process {
  padding: 0 0 100px;
  background: var(--color-warm-white);
}

#process .container {
  padding-top: 80px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.6s ease;
}

.process-item.wide {
  grid-column: span 2;
  max-height: 500px;
  overflow: hidden;
}

.process-item.wide img {
  object-fit: cover;
  height: 100%;
  object-position: center 30%;
}

.process-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(42, 33, 24, 0.8));
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transform: translateY(100%);
  transition: transform var(--transition);
}

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

.process-item:hover::after {
  transform: translateY(0);
}

/* ===== Contact ===== */
#contact {
  padding: 100px 0;
  background: var(--color-cream);
  text-align: center;
}

.contact-content p {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 520px;
  margin: 0 auto 36px;
}

.contact-btn {
  display: inline-block;
  padding: 16px 44px;
  background: var(--color-dark-brown);
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all var(--transition);
}

.contact-btn:hover {
  background: var(--color-accent);
}

/* ===== Footer ===== */
footer {
  padding: 32px 0;
  background: var(--color-deep);
  text-align: center;
}

footer p {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(42, 33, 24, 0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 3px;
}

.lightbox-caption {
  color: var(--color-tan);
  margin-top: 16px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-tan);
  cursor: pointer;
  transition: color var(--transition);
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--color-cream);
}

.lightbox-close {
  top: 24px;
  right: 28px;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 16px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gallery-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

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

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(42, 33, 24, 0.97);
    padding: 16px 24px 24px;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid rgba(212, 197, 169, 0.1);
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .gallery-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide {
    grid-column: span 1;
  }

  .gallery-item.banner {
    grid-column: span 1;
    height: 180px;
  }

  .gallery-item::after,
  .process-item::after {
    transform: translateY(0);
  }

  #gallery,
  #about,
  #process,
  #contact {
    padding: 64px 0;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 8px;
  }
}
