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

:root {
  --color-bg: #0a0a0a;
  --color-bg-light: #f5f2ee;
  --color-bg-warm: #ede8e1;
  --color-text: #ffffff;
  --color-text-dark: #1a1a1a;
  --color-text-muted: #8a8580;
  --color-accent: #c9a96e;
  --color-accent-hover: #dbb97e;
  --color-overlay: rgba(10, 10, 10, 0.55);
  --color-overlay-heavy: rgba(10, 10, 10, 0.72);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 400;
}

.nav__links {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav__links.open {
  opacity: 1;
  pointer-events: all;
}

.nav__links a {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
  font-weight: 500;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-text);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 800px;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero__tagline {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ===== IMAGE CONTAINERS ===== */
.img-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a28 50%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(255,255,255,0.08);
  pointer-events: none;
}

.img-cover {
  overflow: hidden;
}

.img-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.img-inline {
  overflow: hidden;
}

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

/* ===== SECTIONS ===== */
.section {
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
}

.section--dark {
  background: var(--color-bg);
  color: var(--color-text);
}

.section--light {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.section--warm {
  background: var(--color-bg-warm);
  color: var(--color-text-dark);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(2rem, 3vw, 2.5rem);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.section--light .section__subtitle,
.section--warm .section__subtitle {
  color: #6b6560;
}

/* ===== FULL-BLEED SECTION ===== */
.fullbleed {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.fullbleed__bg {
  position: absolute;
  inset: 0;
}

.fullbleed__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 1;
}

.fullbleed__content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 4vw, 3.5rem) 2rem;
  max-width: 680px;
}

.fullbleed__content p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
}

/* ===== PHILOSOPHY / STATEMENT ===== */
.statement {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel__slide {
  min-width: 100%;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.carousel__slide-inner {
  max-width: 500px;
  margin: 0 auto;
}

.carousel__image {
  width: 100%;
  aspect-ratio: 4/5;
  margin-bottom: 1.5rem;
}

.carousel__info {
  text-align: center;
}

.carousel__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.carousel__meta {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.carousel__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.carousel__arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  font-size: 1rem;
}

.carousel__arrow:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.carousel__dots {
  display: flex;
  gap: 0.5rem;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel__dot.active {
  background: var(--color-text);
  transform: scale(1.15);
}

/* Light section carousel overrides */
.section--light .carousel__arrow,
.section--warm .carousel__arrow {
  border-color: rgba(0,0,0,0.15);
  color: var(--color-text-dark);
}

.section--light .carousel__arrow:hover,
.section--warm .carousel__arrow:hover {
  border-color: rgba(0,0,0,0.35);
  background: rgba(0,0,0,0.04);
}

.section--light .carousel__dot,
.section--warm .carousel__dot {
  background: rgba(0,0,0,0.15);
}

.section--light .carousel__dot.active,
.section--warm .carousel__dot.active {
  background: var(--color-text-dark);
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-card {
  cursor: pointer;
  transition: transform var(--transition);
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card__image {
  width: 100%;
  aspect-ratio: 4/5;
  margin-bottom: 1rem;
}

.gallery-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.gallery-card__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.gallery-card__price {
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

/* Gallery filter tabs */
.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.gallery-filter {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}

.gallery-filter:hover {
  border-color: rgba(255,255,255,0.35);
  color: var(--color-text);
}

.gallery-filter.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ===== HOW TO PURCHASE ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

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

.step__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-accent);
  margin-bottom: 1rem;
  line-height: 1;
}

.step__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.step__desc {
  font-size: 0.88rem;
  color: #6b6560;
  line-height: 1.7;
}

/* ===== BIOGRAPHY ===== */
.bio-section {
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.bio-section__header {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

.bio-section__text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #4a4540;
}

/* ===== SHOWS / TIMELINE ===== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.timeline__item {
  padding: 0 0 3rem 2.5rem;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.timeline__title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.timeline__details {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== CONTACT FORM ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
}

.contact-info a {
  color: var(--color-accent);
  transition: color var(--transition);
}

.contact-info a:hover {
  color: var(--color-accent-hover);
}

.contact-form .form-group {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--accent {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--accent:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* ===== FOOTER ===== */
.footer {
  padding: 3rem clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

/* ===== CERAMICS GRID ===== */
.ceramics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.ceramics-card {
  text-align: center;
}

.ceramics-card__image {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.ceramics-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.ceramics-card__meta {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* ===== PAGE HERO (interior pages) ===== */
.page-hero {
  position: relative;
  height: 45vh;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
}

.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  z-index: 1;
}

.page-hero__title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.06em;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox__content {
  max-width: 80vw;
  max-height: 80vh;
  text-align: center;
}

.lightbox__image {
  max-width: 100%;
  max-height: 65vh;
  margin-bottom: 1.5rem;
}

.lightbox__img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  margin-bottom: 1.5rem;
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.lightbox__meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  text-align: center;
  padding: clamp(2rem, 3vw, 3rem) 2rem;
}

.cta-banner__text {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

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

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

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

  .timeline::before {
    left: 4px;
  }

  .timeline__item {
    padding-left: 2rem;
  }

  .timeline__item::before {
    left: 0;
  }
}

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

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

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