/* ============================================================
   ANDOVER 3D PHOTOS — main.css
   Palette: cream #F5ECD7, oak #8B5E3C, dark #3D2B1F, gold #C8945A
   ============================================================ */

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

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

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  color: #3D2B1F;
  background: #F5ECD7;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  color: #3D2B1F;
}

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

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

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

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: #8B5E3C;
  color: #F5ECD7;
  border-color: #8B5E3C;
}
.btn-primary:hover {
  background: #C8945A;
  border-color: #C8945A;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 94, 60, 0.35);
}

.btn-outline {
  background: transparent;
  color: #F5ECD7;
  border-color: #F5ECD7;
}
.btn-outline:hover {
  background: #F5ECD7;
  color: #3D2B1F;
  transform: translateY(-2px);
}

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

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

.section-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8945A;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: #6b4e38;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Scroll reveal ---------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Nav -------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}

.site-nav.scrolled {
  background: rgba(61, 43, 31, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #F5ECD7;
  font-weight: 600;
}

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

.nav-links a {
  color: rgba(245, 236, 215, 0.88);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #C8945A; }

.nav-etsy-btn {
  background: #C8945A !important;
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 3px;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-etsy-btn:hover {
  background: #8B5E3C !important;
  transform: translateY(-1px);
}

.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: #F5ECD7;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(61,43,31,0.82) 0%, rgba(139,94,60,0.65) 100%),
    url('/static/images/hero-bg.jpg') center/cover no-repeat;
  background-attachment: fixed;
  color: #F5ECD7;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,43,31,0.3) 0%, rgba(61,43,31,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 780px;
}

.hero-logo {
  max-height: 320px;
  max-width: 840px;
  width: 100%;
  margin: 0 auto 2rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.4));
}

.hero-brand {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: #F5ECD7;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: #F5ECD7;
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-subtext {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(245,236,215,0.88);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(245,236,215,0.5);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(245,236,215,0.7);
  border-radius: 2px;
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ---- Gallery ---------------------------------------------- */
.section-gallery {
  background: #F5ECD7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(61,43,31,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(61,43,31,0.16);
}

.product-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8d9c0;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.04);
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8d9c0;
}
.product-img-placeholder svg {
  width: 80px;
  height: 80px;
}

.product-info {
  padding: 1.25rem 1.5rem 1.5rem;
}
.product-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: #3D2B1F;
}
.product-info p {
  font-size: 0.9rem;
  color: #7a5a45;
  line-height: 1.6;
}

.gallery-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: #7a5a45;
}
.gallery-empty p { margin-bottom: 1.5rem; }

/* ---- Process ---------------------------------------------- */
.section-process {
  background: #3D2B1F;
  color: #F5ECD7;
  position: relative;
  overflow: hidden;
}
.section-process::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 0; right: 0;
  height: 120px;
  background: #F5ECD7;
  clip-path: ellipse(60% 100% at 50% 0%);
}
.section-process::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 0; right: 0;
  height: 120px;
  background: #F0E4CC;
  clip-path: ellipse(60% 100% at 50% 100%);
}

.section-process .section-header h2,
.section-process .section-label {
  position: relative;
  z-index: 1;
}
.section-process .section-header h2 { color: #F5ECD7; }

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.process-step {
  flex: 1 1 220px;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(200, 148, 90, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon svg {
  width: 42px;
  height: 42px;
}

.step-number {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #C8945A;
  margin-bottom: 0.5rem;
}

.process-step h3 {
  color: #F5ECD7;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}
.process-step p {
  font-size: 0.9rem;
  color: rgba(245,236,215,0.78);
  line-height: 1.7;
}

.process-connector {
  flex: 0 0 40px;
  height: 2px;
  background: rgba(200, 148, 90, 0.4);
  align-self: center;
  margin-top: -2rem;
}

/* ---- About ------------------------------------------------ */
.section-about {
  background: #F0E4CC;
}

.about-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.05rem;
  color: #5a3e2b;
  line-height: 1.85;
  margin-bottom: 2.5rem;
}

/* ---- Contact ---------------------------------------------- */
.section-contact {
  background: #F5ECD7;
  border-top: 1px solid rgba(139,94,60,0.15);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid transparent;
}
.social-link svg {
  width: 22px;
  height: 22px;
}
.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}

.social-fb {
  background: #1877F2;
  color: #fff;
}
.social-ig {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}
.social-etsy {
  background: #F1641E;
  color: #fff;
}

.no-social {
  color: #7a5a45;
  font-style: italic;
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  background: #3D2B1F;
  color: rgba(245,236,215,0.6);
  text-align: center;
  padding: 1.75rem 1rem;
  font-size: 0.85rem;
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(61,43,31,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.3rem; }

  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 4rem 0; }

  .process-connector { display: none; }
  .process-steps { flex-direction: column; align-items: center; }
  .process-step { max-width: 100%; }

  .hero-ctas { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
