/* ------------------------------------------------------------------
   Cristina Ceramics — styles
   ------------------------------------------------------------------ */

:root {
  --cream: #f6f1ea;
  --cream-2: #efe7dc;
  --sand: #e6d5c1;
  --clay: #b08968;
  --clay-dark: #7d5a3f;
  --clay-light: #d9c9b5;
  --terracotta: #b8785a;
  --rose: #d8b8ad;
  --sage: #9aa88f;
  --sage-light: #c9d1c0;
  --glaze: #f3ece3;
  --ink: #2b241f;
  --ink-soft: #5c5149;
  --line: rgba(43, 36, 31, .12);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay-dark);
  font-weight: 500;
  margin-bottom: 1em;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .9em 1.6em;
  border-radius: 999px;
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }

.link { color: var(--clay-dark); font-weight: 400; border-bottom: 1px solid transparent; transition: border-color .2s; }
.link:hover { border-color: currentColor; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  max-width: var(--max); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .01em;
  color: var(--ink);
}
.brand em { font-style: normal; font-weight: 400; color: var(--clay-dark); margin-left: .3em; }
.brand-mark { width: 30px; height: 30px; color: var(--clay); }

.nav-menu {
  list-style: none; margin: 0 0 0 auto; padding: 0;
  display: flex; gap: 28px; align-items: center;
  order: 2;
}
.nav-menu a { font-size: .95rem; font-weight: 400; position: relative; }
.nav-menu a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--clay-dark); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { padding: .55em 1.2em; border-radius: 999px; background: var(--ink); color: var(--cream); }
.nav-cta:hover { background: var(--clay-dark); }

.nav-right { display: flex; align-items: center; gap: 14px; order: 3; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; letter-spacing: .1em; color: var(--ink-soft);
}
.lang-btn { padding: 4px 6px; border-radius: 6px; font-weight: 400; color: var(--ink-soft); transition: color .2s, background .2s; }
.lang-btn:hover { color: var(--ink); }
.lang-btn.is-active { color: var(--ink); font-weight: 500; background: var(--cream-2); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Layout ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}
.section-head { max-width: 60ch; margin-bottom: 40px; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-art { margin: 0; justify-self: end; width: 100%; max-width: 460px; }
.hero-art img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%;
  border-radius: 220px 220px var(--radius) var(--radius);
  box-shadow: 0 40px 60px -30px rgba(43, 36, 31, .45);
}
.hero-art figcaption { margin-top: 12px; text-align: center; letter-spacing: .04em; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  background: var(--cream-2); padding: 14px 0;
  font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
}
.marquee-track { display: flex; gap: 32px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track i { font-style: normal; color: var(--clay); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Collection ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip {
  padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 400; transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 40px -24px rgba(60, 40, 30, .35); }
.card.is-hidden { display: none; }
.card-art { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream-2); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-art img { transform: scale(1.04); }
.card-art::after {
  content: "⤢"; position: absolute; right: 12px; bottom: 12px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(246, 241, 234, .85); color: var(--ink); font-size: .9rem;
  opacity: 0; transition: opacity .3s;
}
.card:hover .card-art::after { opacity: 1; }

.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 40px 0 0; }
.empty-state a { color: var(--clay-dark); text-decoration: underline; }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center;
}
.about-art { margin: 0; }
.portrait-frame {
  display: block; border-radius: 200px 200px var(--radius) var(--radius);
  overflow: hidden; background: var(--cream-2);
  box-shadow: 0 40px 60px -30px rgba(60, 40, 30, .35);
}
.portrait-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center bottom; transition: transform .6s var(--ease); }
.portrait-frame:hover img { transform: scale(1.03); }

/* ---------- Gallery ---------- */
.gallery { padding-top: 0; }
.gallery-strip {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 0 18px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; scrollbar-color: var(--clay-light) transparent;
}
.gallery-strip a {
  flex: 0 0 auto; width: clamp(200px, 26vw, 300px); scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; background: var(--cream-2);
}
.gallery-strip a:nth-child(even) { margin-top: 28px; }
.gallery-strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-strip a:hover img { transform: scale(1.04); }
.gallery-hint { text-align: center; margin: 8px 0 0; letter-spacing: .04em; }
.facts {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--line); padding-top: 28px;
}
.facts strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.facts span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Process ---------- */
.process { background: var(--ink); color: var(--cream); max-width: none; }
.process-inner { max-width: var(--max); margin: 0 auto; }
.process .eyebrow { color: var(--clay-light); }
.process-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.process-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.process-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.process-photos img:nth-child(2) { margin-top: 40px; }
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 32px;
}
.step { border-top: 1px solid rgba(246, 241, 234, .18); padding-top: 22px; }
.step-num { font-family: var(--font-display); font-size: 1.1rem; color: var(--clay-light); letter-spacing: .1em; }
.step h3 { margin-top: 10px; }
.step p { color: rgba(246, 241, 234, .72); font-size: .95rem; }

/* ---------- Care ---------- */
.care-inner {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px;
  background: var(--cream-2); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(28px, 5vw, 56px);
}
.care-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.care-list li { padding-left: 24px; position: relative; color: var(--ink-soft); }
.care-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; border-radius: 50%;
  background: var(--clay);
}
.care-list strong { color: var(--ink); font-weight: 500; }

/* ---------- Quotes ---------- */
.quotes { padding-top: 0; }
.quotes-track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
blockquote {
  margin: 0; padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
blockquote p { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.35; margin-bottom: 14px; }
blockquote footer { font-size: .85rem; color: var(--ink-soft); letter-spacing: .05em; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-links { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 8px; }
.contact-links a { color: var(--clay-dark); font-weight: 400; border-bottom: 1px solid currentColor; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.5);
  padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; letter-spacing: .04em; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 300; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(201, 138, 104, .2);
}
.field textarea { resize: vertical; }
.form-note { font-size: .9rem; color: var(--clay-dark); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-2); }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 32px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-inner p { margin: 0; }
.to-top { font-size: .9rem; color: var(--clay-dark); }

/* ---------- Lightbox ---------- */
.no-scroll { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(43, 36, 31, .92);
  display: grid; place-items: center; padding: 24px;
  animation: fade .25s var(--ease);
}
.lightbox img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  cursor: default;
}
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.6rem; line-height: 1;
}
@keyframes fade { from { opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2n) { transition-delay: .08s; }
.grid .reveal:nth-child(3n) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .lightbox { animation: none; }
  .btn, .card { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-actions { justify-content: center; }
  .hero-art { max-width: 420px; margin: 0 auto; justify-self: center; }
  .about, .contact, .care-inner, .process-grid { grid-template-columns: 1fr; }
  .about-art { max-width: 380px; }
  .process-photos { max-width: 520px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav { flex-wrap: nowrap; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    transform-origin: top; transform: scaleY(0); opacity: 0;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav-menu.is-open { transform: none; opacity: 1; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-menu a::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .facts { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .facts strong { font-size: 1.7rem; }
}
