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

:root {
  --emerald: #046a38;
  --emerald-light: #2e8b57;
  --emerald-dark: #023020;
  --beige: #f5f0e8;
  --beige-mid: #d9cdb8;
  --beige-dark: #b8a88a;
  --text: #1a1a1a;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--beige);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
}

/* ── Navigation ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 4rem;
  background: var(--emerald-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

nav .logo-link .brand {
  font-size: 1.5rem;
  color: var(--beige-mid);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

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

nav .nav-links a {
  color: var(--beige);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 3rem;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--emerald-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--emerald-light);
  font-style: italic;
  margin-bottom: 2rem;
}

.hero .cta-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: var(--emerald);
  color: var(--beige);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.hero .cta-btn:hover {
  background: var(--emerald-dark);
}

/* ── Animated Logo (SVG) ── */
.logo-svg {
  width: 80px;
  height: 80px;
}

.hero-animation {
  width: 320px;
  height: 320px;
  margin-bottom: 2rem;
}

/* Spinning mug — rotates around its own vertical axis (horizontal spin) */
.mug-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin-mug 4.5s linear infinite;
}

@keyframes spin-mug {
  from { transform: perspective(620px) rotateY(0deg); }
  to   { transform: perspective(620px) rotateY(360deg); }
}

/* ── Section: About ── */
.section {
  padding: 5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  color: var(--emerald-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3a3a2e;
  max-width: 720px;
}

/* ── Gallery placeholders ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 4rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  aspect-ratio: 1;
  background: var(--beige-mid);
  border-radius: 12px;
  display: block;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s;
  cursor: pointer;
  text-decoration: none;
}

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

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

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#lightbox.active {
  display: flex;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

#lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

/* ── Handcraft banner ── */
.handcraft-banner {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--emerald-dark);
  color: var(--beige);
}

.handcraft-banner h2 {
  color: var(--beige-mid);
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.handcraft-banner p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  color: #c8c0ac;
}

/* ── Contact page ── */
.contact-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: 5rem 2rem;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.8rem;
  color: var(--emerald-dark);
  margin-bottom: 1rem;
}

.contact-section p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3a3a2e;
  max-width: 520px;
  margin-bottom: 2rem;
}

.contact-section .email-link {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--emerald);
  color: var(--beige);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  transition: background 0.3s;
}

.contact-section .email-link:hover {
  background: var(--emerald-dark);
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  color: #7a7a6a;
  border-top: 1px solid #d5d0c5;
}

/* ── Responsive ── */

/* Tablets / small laptops */
@media (max-width: 900px) {
  nav { padding: 1.1rem 2rem; }
  .section { padding: 3.5rem 2rem; }
  .gallery { padding: 2.5rem 2rem 3.5rem; }
}

/* Phones */
@media (max-width: 700px) {
  /* Navigation: keep it on one tidy row, shrink the brand so the
     links never get pushed off-screen */
  nav {
    padding: 0.9rem 1.2rem;
    gap: 0.8rem;
  }
  nav .logo-link { gap: 0.5rem; }
  nav .logo-svg { width: 48px; height: 48px; }
  nav .logo-link .brand {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
  }
  nav .nav-links { gap: 1.1rem; }
  nav .nav-links a { font-size: 0.85rem; letter-spacing: 0.05em; }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 2.5rem 1.25rem 2.5rem;
  }
  .hero h1 { font-size: 2.3rem; }
  .hero .tagline { font-size: 1.1rem; margin-bottom: 1.5rem; }
  .hero .cta-btn {
    padding: 1rem 2.2rem;
    font-size: 1rem;
  }

  /* Fluid SVG animations — scale with the viewport, never overflow */
  .hero-animation {
    width: 78vw;
    max-width: 300px;
    height: auto;
    margin-bottom: 1.5rem;
  }

  /* About + handcraft text */
  .section { padding: 3rem 1.4rem; }
  .section h2,
  .handcraft-banner h2 { font-size: 1.6rem; }
  .section p { font-size: 1.05rem; line-height: 1.75; }
  .handcraft-banner { padding: 3rem 1.4rem; }
  .handcraft-banner p { font-size: 1.05rem; }

  /* Gallery: single column, comfortable spacing */
  .gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 2rem 1.4rem 3.5rem;
  }
  /* Disable hover-scale on touch (avoids sticky :hover state) */
  .gallery-item:hover { transform: none; }

  /* Lightbox close: bigger, easier tap target on phones */
  #lightbox-close {
    top: 0.6rem;
    right: 1rem;
    font-size: 3rem;
    padding: 0.25rem 0.5rem;
  }

  /* Contact page */
  .contact-section { min-height: auto; padding: 3rem 1.4rem; }
  .contact-section h1 { font-size: 2.1rem; }
  .contact-section p { font-size: 1.05rem; }
  .contact-section .email-link {
    padding: 0.95rem 1.8rem;
    font-size: 1rem;
    word-break: break-word;
  }

  footer { padding: 1.6rem 1.2rem; }
}

/* Small phones */
@media (max-width: 380px) {
  nav .logo-link .brand { font-size: 0.95rem; }
  nav .nav-links { gap: 0.85rem; }
  .hero h1 { font-size: 2rem; }
}

/* Larger, more reliable tap targets + remove blue tap flash on links */
a {
  -webkit-tap-highlight-color: rgba(4, 106, 56, 0.15);
}
