:root {
  --color-bg: #f3ede6;
  --color-cream: #fcf9f3;
  --color-text: #4a3b2e;
  --color-accent: #8b6f4a;
  --color-wood-dark: #5d4037;
  --color-wood-medium: #8d6e63;
  --color-white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; text-decoration: none !important; }
h1 { text-decoration: none !important; }

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  background-color: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.btn:hover { background-color: var(--color-wood-dark); transform: translateY(-1px); }
.btn-secondary { background-color: var(--color-white); color: var(--color-accent); }
.btn-secondary:hover { background-color: var(--color-cream); }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; background-color: var(--color-cream); border-bottom: 1px solid #e0d8cf; font-size: 0.8rem; }
.breadcrumbs ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; color: var(--color-text); opacity: 0.7; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.4; }
.breadcrumbs a { color: var(--color-accent); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Navigation */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background-color: rgba(243, 237, 230, 0.95);
  backdrop-filter: blur(10px); z-index: 1000;
  padding: 20px 0; border-bottom: 1px solid #e0d8cf;
}
.navbar.shifted { top: 80px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 0 24px; }

/* Announcement Bar */
.announcement-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: var(--color-wood-dark);
  color: rgba(255,255,255,0.9);
  z-index: 1001;
  padding: 16px 0;
  transition: transform 0.3s ease;
}
.announcement-bar.hidden { transform: translateY(-100%); }
.announcement-bar .announcement-content { display: flex; align-items: flex-start; gap: 16px; }
.announcement-bar .announcement-content p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 4px; }
.announcement-bar .announcement-content p:first-child { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.announcement-close {
  position: absolute;
  top: 8px; right: 16px;
  background: none; border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease;
}
.announcement-close:hover { color: var(--color-white); }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 28px; width: auto; }
.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--color-wood-dark) !important; }
a.nav-logo { color: var(--color-wood-dark) !important; text-decoration: none; }
a.nav-logo:visited { color: var(--color-wood-dark) !important; text-decoration: none; }
a.nav-logo:hover { color: var(--color-wood-dark) !important; text-decoration: none; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links li { list-style: none; }
.nav-links .nav-dot {
  color: var(--color-accent);
  opacity: 0.5;
  font-size: 1.2rem;
  line-height: 1;
  user-select: none;
}
.nav-links a { text-decoration: none; color: var(--color-text); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links a:hover { color: var(--color-accent); }

/* More dropdown */
.nav-more { position: relative; }
.nav-more-link {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-more-link:hover { color: var(--color-accent); }
.nav-more-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
  font-size: 0.6rem;
  line-height: 1;
}
.nav-more:hover .nav-more-arrow,
.nav-more.active .nav-more-arrow { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-white);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  padding: 6px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 200;
  list-style: none;
  margin: 0;
}
.nav-more::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-more:hover .nav-dropdown,
.nav-more.active .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li { list-style: none; }
.nav-dropdown a {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-dropdown a:hover {
  background: var(--color-bg-cream);
  color: var(--color-accent);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 1.5px; background-color: var(--color-text); transition: all 0.3s ease; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--color-bg) 0%, #e3d8ca 50%, var(--color-wood-medium) 100%);
}
/* Collage grid hero background */
.hero-collage {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-collage-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 6px;
  width: 100%;
  height: 100%;
  opacity: 0.12;
  align-content: stretch;
}
.hero-collage-grid .collage-item {
  overflow: hidden;
  border-radius: 3px;
}
.hero-collage-grid .collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Collage item size variations for the random grid look */
.w-2 { grid-column: span 2; }
.w-3 { grid-column: span 3; }
.h-1 { grid-row: span 1; }
.h-2 { grid-row: span 2; }
.h-3 { grid-row: span 3; }
.hero-logo-bg {
  position: fixed;
  top: calc(50% + 40px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.hero-logo-bg.visible {
  opacity: 0.12;
}
.hero-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.hero-content { max-width: 700px; z-index: 1; position: relative; }
.hero-tagline { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3em; color: var(--color-accent); margin-bottom: 24px; }
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 28px;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
  border: none !important;
  outline: none !important;
}
h1.hero-title {
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--color-text); margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

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

/* Announcement */
.announcement { padding: 100px 0; background-color: var(--color-bg); }
.announcement .announcement-content { max-width: 720px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.announcement .announcement-content p { font-size: 1rem; color: var(--color-text); margin-bottom: 16px; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image { aspect-ratio: 3/4; background: linear-gradient(135deg, var(--color-wood-medium), var(--color-accent)); border-radius: 4px; overflow: hidden; position: relative; }
.slideshow { position: relative; width: 100%; height: 100%; }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slide-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0; transition: background 0.3s ease; }
.slide-dot.active { background: var(--color-white); }

.about-content h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.about-content p { color: var(--color-text); margin-bottom: 16px; }

/* Collections */
.collections { padding: 100px 0; background-color: var(--color-bg); }
.section-header { text-align: center; margin-bottom: 64px; }
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.collection-card { background: var(--color-white); padding: 48px 36px; border-radius: 4px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.collection-card:hover { transform: translateY(-4px); box-shadow: 0 4px 20px rgba(74,59,46,0.1); }
.card-icon { width: 100%; height: 140px; margin: 0 auto 28px; border-radius: 4px; overflow: hidden; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collection-card h3 { font-size: 1.4rem; margin-bottom: 16px; }
.collection-card p { font-size: 0.9rem; color: var(--color-text); margin-bottom: 24px; }
.card-link { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-accent); text-decoration: none; }

/* Materials */
.materials { padding: 100px 0; background-color: var(--color-wood-medium); }
.materials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; }
.material-item { background-color: var(--color-white); padding: 48px; border-radius: 4px; text-align: center; }
.material-img { width: 120px; height: 120px; margin: 0 auto 24px; border-radius: 50%; object-fit: cover; }
.material-item h3 { font-size: 1.4rem; margin-bottom: 16px; }
.material-item p { font-size: 0.9rem; color: var(--color-text); }

/* CTA Banner */
.cta-banner { padding: 120px 24px; text-align: center; background: linear-gradient(135deg, var(--color-wood-dark), var(--color-accent)); }
.cta-banner-content { max-width: 640px; margin: 0 auto; }
.cta-banner-content h2 { color: var(--color-white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.cta-banner-content p { color: rgba(255,255,255,0.8); font-size: 1.05rem; margin-bottom: 36px; }

/* Reviews */
.reviews { padding: 100px 0; background-color: var(--color-cream); }
.reviews-carousel { position: relative; overflow: hidden; text-align: center; }
.reviews-track { display: flex; transition: transform 0.4s ease; }
.review-card { width: 100%; min-width: 100%; text-align: center; flex-shrink: 0; padding: 0 24px 40px; }
.review-stars { font-size: 1.5rem; color: #f59e0b; margin-bottom: 16px; letter-spacing: 4px; }
.review-card p { font-size: 1.1rem; color: var(--color-text); line-height: 1.7; margin-bottom: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
.review-product { font-size: 0.85rem; color: var(--color-accent); font-style: italic; }
.review-author { font-size: 0.85rem; color: var(--color-text); opacity: 0.7; margin-top: 4px; }
.reviews-nav {
  background: var(--color-white); border: 1px solid #e0d8cf;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s ease;
  color: var(--color-text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  vertical-align: middle;
  margin: 20px 8px 0;
}
.reviews-nav:hover { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.reviews-controls { display: flex; justify-content: center; align-items: center; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.feature-item h3 { font-size: 1.3rem; margin-bottom: 12px; }
.feature-item p { font-size: 0.9rem; color: var(--color-text); }

/* Why Shop */
.why-shop { padding: 160px 0; background-color: var(--color-cream); }

/* Footer */
.footer { background-color: var(--color-wood-dark); color: rgba(255,255,255,0.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--color-white); margin-bottom: 16px; }
.footer-links h4, .footer-connect h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.footer-links ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-white); }
.social-link { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); text-decoration: none; }
.social-link:hover { color: var(--color-white); }
.social-links { display: flex; gap: 16px; align-items: center; }
.social-links .social-link svg { transition: fill 0.2s ease; }
.social-links .social-link:hover svg { fill: var(--color-white); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-note { font-size: 0.75rem; font-style: italic; }

/* Responsive */
@media (max-width: 968px) {
  .about-grid { grid-template-columns: 1fr; }
  .collection-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .materials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1150px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 28px 24px;
    gap: 0;
    overflow-y: auto;
    transition: right 0.3s ease;
  }
  .nav-links.active { right: 0; }
  .nav-links li { width: 100%; }
  /* Hide dots on mobile */
  .nav-links .nav-dot { display: none; }
  .nav-links a,
  .nav-more-link {
    display: block;
    padding: 16px 4px;
    font-size: 0.95rem;
  }
  /* Ensure buttons have proper padding */
  .nav-links .btn {
    padding: 14px 20px;
    text-align: center;
    margin-top: 16px; /* Extra space above Visit Etsy button on mobile */
  }
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 4px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -4px); }
}
@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
@media (max-width: 968px) { .hero-logo-bg { display: none; } }
@media (max-width: 480px) { .hero-title { font-size: 2.5rem; } }

/* Animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-wood-dark);
  color: var(--color-cream);
  padding: 20px 24px;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
  border-top: 1px solid var(--color-accent);
  font-size: 0.9rem;
  line-height: 1.6;
}
.cookie-banner.visible {
  display: flex;
}
.cookie-banner p {
  margin: 0;
  flex: 1;
}
.cookie-banner p a {
  color: var(--color-white);
  text-decoration: underline;
  font-weight: 500;
}
.cookie-banner p a:hover {
  color: var(--color-accent);
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 24px;
  border-radius: 2px;
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.cookie-btn-accept {
  background-color: var(--color-accent);
  color: var(--color-white);
}
.cookie-btn-accept:hover {
  background-color: var(--color-wood-dark);
}
.cookie-btn-reject {
  background-color: transparent;
  color: var(--color-cream);
  border: 1px solid rgba(255,255,255,0.4);
}
.cookie-btn-reject:hover {
  border-color: var(--color-white);
  background-color: rgba(255,255,255,0.1);
}
.cookie-banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}
.cookie-banner-close:hover {
  color: var(--color-white);
}
/* Cookie settings link in footer */
.cookie-settings-link {
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cookie-settings-link:hover {
  color: var(--color-white);
}

/* Responsive video embed */
.video-embed-block {
  width: 100%;
  max-width: 700px;
  margin: 32px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Cookie Banner — Responsive */
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    padding: 16px 20px 16px 16px; /* extra left padding, room for close btn on right */
    font-size: 0.85rem;
    line-height: 1.5;
    /* Ensure banner has a reasonable fixed max height so it never fills the page */
    max-height: 35vh;
    overflow: hidden;
  }
  .cookie-banner p {
    /* Remove any max-height/overflow on the paragraph so all text is visible */
    max-height: none;
    overflow: visible;
    margin-right: 28px; /* space for close button */
  }
  .cookie-buttons {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }
  .cookie-btn {
    flex: 1;
    max-width: 140px;
    padding: 10px 16px;
    font-size: 0.8rem;
  }
  .cookie-banner-close {
    position: absolute;
    top: 10px;
    right: 12px;
  }
}

@media (max-width: 380px) {
  .cookie-banner {
    padding: 14px 16px;
    font-size: 0.8rem;
  }
  .cookie-btn {
    max-width: 120px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}
.video-embed-block .video-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 12px;
  font-style: italic;
  line-height: 1.5;
}
.video-embed-block .video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  background: #000;
}
.video-embed-block .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
