/* ===== CSS Variables ===== */
:root {
  /* Earthy, warm palette */
  --clay: #C4A484;
  --clay-dark: #8B6F47;
  --clay-light: #E8D5C4;
  --terracotta: #C65D3B;
  --terracotta-dark: #9A4A2F;
  --cream: #FAF6F1;
  --cream-dark: #EDE6DC;
  --charcoal: #2C2825;
  --charcoal-light: #4A4542;
  --sage: #9CAF88;
  --sage-dark: #7A8F68;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 500ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.25rem; }

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

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

/* ===== Utilities ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-medium);
}

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

.btn-primary:hover {
  background-color: var(--terracotta-dark);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--space-sm);
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--charcoal);
  color: var(--cream);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 50px;
  height: 50px;
}

.logo-footer {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);

}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
}

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

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(196, 164, 132, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(198, 93, 59, 0.1) 0%, transparent 40%),
    var(--cream);
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 2;
  animation: fadeUp 1s ease forwards;
}

.hero-tagline {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-dark);
  margin-bottom: var(--space-sm);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

.hero h1 {
  margin-bottom: var(--space-md);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.hero p {
  font-size: 1.125rem;
  color: var(--charcoal-light);
  margin-bottom: var(--space-md);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

.hero .btn {
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

/* Hero decoration - abstract clay shapes */
.hero-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.clay-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(ellipse, var(--clay-light) 0%, transparent 70%);
  top: 10%;
  right: 5%;
  animation-delay: 0s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: radial-gradient(ellipse, var(--terracotta) 0%, transparent 70%);
  top: 30%;
  left: 20%;
  animation-delay: 4s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Gallery ===== */
.gallery {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--cream-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ===== Gallery ===== */
.gallery {
  padding: var(--space-xl) var(--space-md);
  background-color: var(--cream-dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 1400px;
  margin: 0 auto var(--space-lg);
}

.gallery-grid:last-child {
  margin-bottom: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  transition: transform var(--transition-medium);
}

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

/* First row: Large image on left */
.gallery-grid .gallery-item-large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* Reversed row: Large image on right, small items on left */
.gallery-grid-reversed .gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; }
.gallery-grid-reversed .gallery-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.gallery-grid-reversed .gallery-item:nth-child(3) { grid-column: 1; grid-row: 2; }
.gallery-grid-reversed .gallery-item:nth-child(4) { grid-column: 2; grid-row: 2; }

.gallery-grid-reversed .gallery-item-large {
  grid-column: 3 / 5;
  grid-row: 1 / 3;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .gallery-grid .gallery-item-large,
  .gallery-grid-reversed .gallery-item-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  /* Reset explicit positioning for reversed grid items on tablet */
  .gallery-grid-reversed .gallery-item:nth-child(1),
  .gallery-grid-reversed .gallery-item:nth-child(2),
  .gallery-grid-reversed .gallery-item:nth-child(3),
  .gallery-grid-reversed .gallery-item:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }
}

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

  /* Ensure all items stack in single column on mobile */
  .gallery-grid-reversed .gallery-item:nth-child(1),
  .gallery-grid-reversed .gallery-item:nth-child(2),
  .gallery-grid-reversed .gallery-item:nth-child(3),
  .gallery-grid-reversed .gallery-item:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }
}

.gallery-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    hsl(var(--hue, 25), 30%, 85%) 0%,
    hsl(var(--hue, 25), 25%, 75%) 100%
  );
  padding: var(--space-lg);
}

.gallery-item-large .gallery-image,
.gallery-item-wide .gallery-image {
  aspect-ratio: auto;
  min-height: 300px;
}

/* CSS-only pottery illustrations */
.pottery-illustration {
  width: 60%;
  height: 60%;
  position: relative;
}

.pottery-illustration.bowl {
  width: 120px;
  height: 60px;
  background: linear-gradient(to bottom, var(--clay-dark) 0%, var(--clay) 100%);
  border-radius: 0 0 60px 60px;
  position: relative;
}

.pottery-illustration.bowl::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  height: 20px;
  background: var(--clay-dark);
  border-radius: 50%;
}

.pottery-illustration.vase {
  width: 60px;
  height: 100px;
  background: linear-gradient(to right, var(--terracotta-dark) 0%, var(--terracotta) 50%, var(--terracotta-dark) 100%);
  border-radius: 30px 30px 20px 20px;
  position: relative;
}

.pottery-illustration.vase::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 20px;
  background: var(--terracotta-dark);
  border-radius: 5px 5px 0 0;
}

.pottery-illustration.mug {
  width: 70px;
  height: 80px;
  background: linear-gradient(to right, var(--charcoal-light) 0%, var(--charcoal) 100%);
  border-radius: 5px 5px 15px 15px;
  position: relative;
}

.pottery-illustration.mug::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 15px;
  width: 25px;
  height: 40px;
  border: 8px solid var(--charcoal);
  border-left: none;
  border-radius: 0 20px 20px 0;
}

.pottery-illustration.plate {
  width: 140px;
  height: 140px;
  background: radial-gradient(ellipse, var(--cream) 30%, var(--clay-light) 60%, var(--clay) 100%);
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.1);
}

.pottery-illustration.pitcher {
  width: 70px;
  height: 100px;
  background: linear-gradient(to right, var(--clay-dark) 0%, var(--clay) 50%, var(--clay-dark) 100%);
  border-radius: 10px 10px 25px 25px;
  position: relative;
}

.pottery-illustration.pitcher::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -15px;
  width: 20px;
  height: 25px;
  background: var(--clay-dark);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.pottery-illustration.pitcher::after {
  content: '';
  position: absolute;
  left: -18px;
  top: 20px;
  width: 20px;
  height: 50px;
  border: 8px solid var(--clay-dark);
  border-right: none;
  border-radius: 20px 0 0 20px;
}

.pottery-illustration.set {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  width: auto;
  height: auto;
}

.pottery-illustration.set::before,
.pottery-illustration.set::after {
  content: '';
  display: block;
}

.pottery-illustration.set::before {
  width: 50px;
  height: 60px;
  background: linear-gradient(to right, var(--sage-dark) 0%, var(--sage) 50%, var(--sage-dark) 100%);
  border-radius: 25px 25px 10px 10px;
}

.pottery-illustration.set::after {
  width: 80px;
  height: 40px;
  background: linear-gradient(to bottom, var(--sage-dark) 0%, var(--sage) 100%);
  border-radius: 0 0 40px 40px;
}

.gallery-info {
  padding: var(--space-sm);
  text-align: center;
}

.gallery-info h3 {
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.gallery-info p {
  font-size: 0.875rem;
  color: var(--charcoal-light);
}

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

.gallery-item-large img {
  height: 100%;
}

/* ===== Contact ===== */
.contact {
  padding: var(--space-xl) var(--space-md);
  background: var(--cream);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.contact-info h2 {
  margin-bottom: var(--space-sm);
}

.contact-info > p {
  color: var(--charcoal-light);
  margin-bottom: var(--space-md);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clay-light);
  border-radius: 50%;
  font-size: 1rem;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--cream-dark);
  padding: var(--space-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.875rem 1rem;
  border: 2px solid var(--clay-light);
  background: var(--cream);
  color: var(--charcoal);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234A4542' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--space-lg) var(--space-md);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-brand .logo {
  font-size: 1.75rem;
  display: block;
  margin-bottom: var(--space-xs);
}

.footer-brand p {
  opacity: 0.6;
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-links a {
  font-size: 0.875rem;
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom p {
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ===== Animations on Scroll ===== */
.gallery-item,
.about-content,
.about-visual,
.signup-content,
.contact-info,
.contact-form-wrapper {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-item.visible,
.about-content.visible,
.about-visual.visible,
.signup-content.visible,
.contact-info.visible,
.contact-form-wrapper.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger gallery items */
.gallery-item:nth-child(1) { transition-delay: 0s; }
.gallery-item:nth-child(2) { transition-delay: 0.1s; }
.gallery-item:nth-child(3) { transition-delay: 0.2s; }
.gallery-item:nth-child(4) { transition-delay: 0.3s; }
.gallery-item:nth-child(5) { transition-delay: 0.4s; }
.gallery-item:nth-child(6) { transition-delay: 0.5s; }

