/* Honors Thesis — Cottagecore / Rustic Farm Process Page */

/* ===== CSS Variables ===== */
:root {
  --sage: #88a751;
  --rust: #a4502f;
  --moss: #b2d07d;
  --cream: #f6e8cd;
  --linen: #f0eee4;
  --wood: #6c4d2e;
  --wood-dark: #4a3420;
  --text: #3d2b1a;
  --text-light: #6b5a48;
  --white: #ffffff;
  --shadow-soft: 0 4px 20px rgba(60, 40, 20, 0.12);
  --shadow-hover: 0 12px 40px rgba(60, 40, 20, 0.18);
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--linen);
  overflow-x: hidden;
}

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

/* ===== Header ===== */
header {
  background: var(--linen);
  border-bottom: 1px solid rgba(108, 77, 46, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(60, 40, 20, 0.06);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 72px;
  position: relative;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--wood);
  letter-spacing: -0.5px;
  font-family: Georgia, serif;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.logo span {
  color: var(--rust);
  font-weight: 400;
  font-style: italic;
}

.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.hamburger:hover {
  background: rgba(108, 77, 46, 0.06);
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background: var(--wood);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Nav */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-nav li a {
  color: var(--wood);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.main-nav li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rust);
  border-radius: 1px;
  transition: width 0.3s ease;
}

.main-nav li a:hover {
  color: var(--rust);
}

.main-nav li a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--sage);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(136, 167, 81, 0.35);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-cta:hover {
  background: var(--moss);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(136, 167, 81, 0.45);
}

.nav-cta::after {
  display: none;
}

/* ===== Sections ===== */
section {
  width: 100%;
  padding: 5rem 1.5rem;
  position: relative;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* ===== Hero ===== */
.hero {
  background: var(--wood);
  color: var(--cream);
  padding: 6rem 1.5rem 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(178, 208, 125, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  color: var(--rust);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(60, 40, 20, 0.1);
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  font-family: Georgia, serif;
}

.hero h1 .accent {
  color: var(--moss);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--linen);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  opacity: 0.92;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sage);
  color: var(--white);
  padding: 1.1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(136, 167, 81, 0.35);
  border: 2px solid transparent;
  font-family: inherit;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--moss);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(136, 167, 81, 0.45);
}

/* ===== Section Headers ===== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  color: var(--wood);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: Georgia, serif;
}

.section-header p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Process Steps ===== */
.process-step {
  padding: 5rem 1.5rem;
  position: relative;
}

.process-step:nth-child(odd) {
  background: var(--white);
}

.process-step:nth-child(even) {
  background: var(--cream);
}

.process-step:nth-child(even)::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(108, 77, 46, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.step-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

#production .step-grid {
  max-width: 1400px;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 4rem;
}

.step-grid.reverse {
  direction: rtl;
}

.step-grid.reverse > * {
  direction: ltr;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  margin-bottom: 0.5rem;
}

.process-step:nth-child(1) .step-number { background: var(--wood); }
.process-step:nth-child(2) .step-number { background: var(--rust); }
.process-step:nth-child(3) .step-number { background: var(--sage); }
.process-step:nth-child(4) .step-number { background: var(--moss); color: var(--wood); }
.process-step:nth-child(5) .step-number { background: var(--wood-dark); }
.process-step:nth-child(6) .step-number { background: var(--sage); }

.step-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--wood);
  line-height: 1.2;
  font-family: Georgia, serif;
}

.step-content p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.8;
}

.step-list {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-light);
}

.step-list li::before {
  content: '';
  min-width: 18px;
  height: 18px;
  background-image: url('acorn.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  margin-top: 2px;
}

.step-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-image:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
  max-height: 400px;
}

.step-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(61, 43, 26, 0.7), transparent);
  color: var(--cream);
  padding: 2rem 1.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Step Image Grid ===== */
.step-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-self: start;
}

.step-image-grid.production-grid {
  display: block;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(60, 40, 20, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  display: flex;
  flex-direction: column;
}

.production-grid .grid-item {
  height: 270px;
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .grid-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-item-caption {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--wood);
  text-align: center;
  background: var(--linen);
  flex-shrink: 0;
  height: 70px;
  display: flex;
  align-items: center;
}

/* ===== Gallery Grid ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  border: 2px solid transparent;
}

.gallery-item:nth-child(1) { border-color: rgba(136, 167, 81, 0.35); }
.gallery-item:nth-child(2) { border-color: rgba(164, 80, 47, 0.35); }
.gallery-item:nth-child(3) { border-color: rgba(178, 208, 125, 0.45); }
.gallery-item:nth-child(4) { border-color: rgba(108, 77, 46, 0.25); }

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wood);
  text-align: center;
}

/* ===== Conclusion CTA ===== */
.conclusion-cta {
  background: var(--wood);
  color: var(--cream);
  text-align: center;
  padding: 6rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.conclusion-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(178, 208, 125, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.conclusion-cta .container {
  position: relative;
  z-index: 1;
}

.conclusion-cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--cream);
  line-height: 1.2;
  font-family: Georgia, serif;
}

.conclusion-cta p {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  opacity: 0.92;
  line-height: 1.7;
  color: var(--linen);
}

.conclusion-cta .cta-button {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(136, 167, 81, 0.35);
}

.conclusion-cta .cta-button:hover {
  background: var(--moss);
  box-shadow: 0 8px 28px rgba(136, 167, 81, 0.45);
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: 2rem;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--cream);
  font-size: 2.5rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 10000;
  line-height: 1;
}

/* Make grid images clickable */
.grid-item img,
.gallery-item img,
.step-image img {
  cursor: zoom-in;
}

/* ===== Footer ===== */
footer {
  background: var(--wood-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

footer p {
  color: rgba(240, 238, 228, 0.7);
  font-size: 0.9rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-grid,
.gallery-item {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: var(--linen);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-105%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
    box-shadow: 4px 0 40px rgba(0,0,0,0.1);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .main-nav li a {
    font-size: 1.4rem;
    font-weight: 600;
  }

  #mobile-menu-toggle:checked ~ .main-nav {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  #mobile-menu-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  section {
    padding: 3rem 1rem;
  }

  .hero {
    padding: 4rem 1rem 5rem;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step-grid.reverse {
    direction: ltr;
  }

  .step-image img {
    min-height: 220px;
    max-height: 300px;
  }

  .step-image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .grid-item img {
    height: 140px;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .cta-button {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    width: 100%;
    justify-content: center;
  }

  .step-content h3 {
    font-size: 1.4rem;
  }

  .step-image-grid {
    grid-template-columns: 1fr;
  }

  .grid-item img {
    height: 180px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}

