/* ============================================
   THE CROYDON CHAPTER — Global Styles
   Palette: Burgundy + Cream + Dark Brown
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5E1F2C;
  --burgundy-light: #9B4A58;
  --cream: #F5EFE6;
  --cream-dark: #E8DFD2;
  --brown-dark: #2C1810;
  --brown: #4A3728;
  --ochre: #C7864D;
  --ochre-light: #D4A574;
  --white: #FDFBF8;
  --shadow: rgba(44, 24, 16, 0.1);
  --shadow-strong: rgba(44, 24, 16, 0.2);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--brown-dark);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ochre);
}

h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brown-dark);
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.6rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 2px 20px var(--shadow);
}

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

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  gap: 0.75rem;
}

.nav-logo-badge {
  height: 55px;
  width: 55px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-badge {
  opacity: 0.8;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nav-logo-img {
  height: 65px;
  width: auto;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.nav-logo:hover .nav-logo-img {
  opacity: 0.8;
}

/* Container to clip just the top portion of the logo */
.nav-logo-img-wrap {
  height: 65px;
  overflow: hidden;
  display: block;
}

.nav-logo-img-wrap img {
  height: 105px;
  width: auto;
  display: block;
  margin-top: -2px;
}

.nav-logo-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brown-dark);
  line-height: 1;
}

.nav-logo-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 4px;
}

.nav-logo:hover .nav-logo-name {
  color: var(--burgundy);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: width 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--burgundy);
}

.nav-links a.active {
  color: var(--burgundy);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 90vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(44, 24, 16, 0.3) 0%,
    rgba(44, 24, 16, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
  padding: 2rem;
}

.hero-content h1 {
  color: var(--cream);
  font-size: 4rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--cream);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.btn-outline:hover {
  background: var(--cream);
  color: var(--burgundy);
}

.btn-outline-dark {
  background: transparent;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
}

.btn-outline-dark:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* --- Sections --- */
.section {
  padding: 6rem 0;
}

.section-cream {
  background: var(--cream);
}

.section-burgundy {
  background: var(--burgundy);
  color: var(--cream);
}

.section-burgundy h2,
.section-burgundy h3 {
  color: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--brown);
  font-size: 1.05rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
  display: block;
}

/* --- Mission Pillars --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.pillar {
  text-align: center;
  padding: 2rem 1.5rem;
}

.pillar-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: block;
}

.pillar h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.pillar p {
  color: var(--brown);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Featured Products --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.product-card-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.product-card-body .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.product-card-body .price-note {
  font-size: 0.85rem;
  color: var(--brown);
  margin-bottom: 1rem;
}

.product-card-body p {
  font-size: 0.9rem;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

/* --- About Teaser (Home) --- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-teaser-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-teaser-text h2 {
  margin-bottom: 1.5rem;
}

.about-teaser-text p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--brown);
}

/* --- Our Story Page --- */
.story-hero {
  background: var(--cream);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 80px;
}

.story-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.story-hero p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--brown);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.story-content h2 {
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: 1.05rem;
  color: var(--brown);
  margin-bottom: 1.5rem;
}

.story-image {
  width: 100%;
  margin: 2.5rem 0;
  object-fit: cover;
}

.story-image-full {
  max-width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  height: 450px;
  object-fit: cover;
}

/* How It's Made */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
}

.process-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.9rem;
}

/* --- Shop Page --- */
.shop-hero {
  background: var(--cream);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 80px;
}

.shop-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.shop-section-title {
  margin-bottom: 2rem;
}

.coming-soon-card {
  background: var(--cream);
  border: 2px dashed var(--cream-dark);
  padding: 3rem 2rem;
  text-align: center;
}

.coming-soon-card h3 {
  margin-bottom: 1rem;
}

.coming-soon-card p {
  margin-bottom: 1.5rem;
  color: var(--brown);
}

.email-capture {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0;
}

.email-capture input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  border-right: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--white);
  outline: none;
}

.email-capture input:focus {
  border-color: var(--burgundy);
}

.email-capture button {
  padding: 12px 20px;
  background: var(--burgundy);
  color: var(--cream);
  border: 1px solid var(--burgundy);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.email-capture button:hover {
  background: var(--burgundy-dark);
}

/* --- Gallery Page --- */
.gallery-hero {
  background: var(--cream);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 80px;
}

.gallery-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

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

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

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

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
}

/* --- Contact Page --- */
.contact-hero {
  background: var(--cream);
  padding: 8rem 0 4rem;
  text-align: center;
  margin-top: 80px;
}

.contact-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--brown-dark);
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--burgundy);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info-item {
  margin-bottom: 2rem;
}

.contact-info-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.contact-info-item p {
  color: var(--brown);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--cream-dark);
  color: var(--brown);
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

/* --- Footer --- */
.footer {
  background: var(--burgundy-dark);
  color: var(--cream);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ochre-light);
  margin-bottom: 1.5rem;
}

/* Product placeholder (when photography not ready yet) */
.product-card-placeholder {
  width: 100%;
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--cream);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.product-card-placeholder::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(245, 239, 230, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.product-card-placeholder .placeholder-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ochre-light);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.product-card-placeholder .placeholder-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  font-style: italic;
  color: var(--cream);
  position: relative;
  z-index: 1;
}

.footer-brand .nav-logo-name {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.footer-brand .nav-logo-tagline {
  color: var(--ochre-light);
  margin-bottom: 1rem;
}

.footer-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.footer-badge img {
  position: absolute;
  width: 260px;
  height: 260px;
  top: -172px;
  left: -172px;
  max-width: none;
}

.footer-brand p {
  color: rgba(245, 239, 230, 0.7);
  font-size: 0.9rem;
  max-width: 350px;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(245, 239, 230, 0.7);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.15);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(245, 239, 230, 0.5);
}

.footer-bottom .social-links a {
  border-color: rgba(245, 239, 230, 0.2);
  color: rgba(245, 239, 230, 0.7);
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.footer-bottom .social-links a:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

/* --- Responsive --- */
@media (max-width: 968px) {
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .about-teaser-image {
    height: 350px;
  }

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

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

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
    box-shadow: 0 4px 20px var(--shadow);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

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

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .email-capture {
    flex-direction: column;
  }

  .email-capture input {
    border-right: 1px solid var(--cream-dark);
    border-bottom: none;
  }
}
