@import url("fonts.css");

:root {
  --background: hsl(40 10% 96%);
  --foreground: hsl(30 5% 12%);
  --card: hsl(40 8% 93%);
  --muted: hsl(35 6% 88%);
  --muted-foreground: hsl(30 5% 42%);
  --primary: hsl(30 8% 25%);
  --primary-foreground: hsl(40 10% 96%);
  --border: hsl(35 8% 82%);
  --radius: 0.375rem;
  --container: min(100% - 2rem, 72rem);
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --font-mono: ui-monospace, "Geist Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: var(--container); margin-inline: auto; padding-inline: 1rem; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(40 10% 96% / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(35 8% 82% / 0.5);
}
.header-inner {
  max-width: 88rem; margin: 0 auto; height: 4rem;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-tak {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em;
  color: var(--muted-foreground); transition: color 0.2s;
}
.logo:hover .logo-tak { color: var(--foreground); }
.logo-sep { color: hsl(30 5% 42% / 0.3); }
.logo-ceramika { font-family: var(--font-serif); font-size: 1.125rem; }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
.nav-desktop a, .nav-desktop button {
  background: none; border: none; font: inherit; cursor: pointer;
  font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.2s;
}
.nav-desktop a:hover, .nav-desktop button:hover { color: var(--foreground); }
.nav-desktop a.is-active { color: var(--foreground); font-weight: 500; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: transparent; cursor: pointer;
}
.nav-toggle-btn span, .nav-toggle-btn span::before, .nav-toggle-btn span::after {
  display: block; width: 1rem; height: 1.5px; background: var(--foreground); position: relative; transition: 0.2s;
}
.nav-toggle-btn span::before, .nav-toggle-btn span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-btn span::before { top: -5px; }
.nav-toggle-btn span::after { top: 5px; }

.nav-mobile-panel {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--background); border-bottom: 1px solid var(--border);
  padding: 1rem; flex-direction: column; gap: 0.75rem;
}
.nav-mobile-panel a { padding: 0.5rem 0; color: var(--muted-foreground); }
.nav-toggle:checked ~ .nav-mobile-panel { display: flex; }

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle-btn { display: none; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; color: var(--primary-foreground);
}
.hero-bg {
  position: absolute; inset: 0;
  background: center/cover no-repeat url("../assets/images/hero.jpg");
  background-image: image-set(
    url("../assets/images/hero.webp") type("image/webp"),
    url("../assets/images/hero.jpg") type("image/jpeg")
  );
}
.hero-overlay { position: absolute; inset: 0; background: hsl(30 5% 12% / 0.7); }
.hero-content { position: relative; z-index: 1; max-width: 48rem; padding: 1rem; animation: fadeUp 0.7s ease-out both; }
.hero-elements {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2rem;
  margin-bottom: 2rem; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: hsl(40 10% 96% / 0.7);
}
.hero-elements span { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.hero-elements .sym { font-size: 1.1rem; }
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 500; margin-bottom: 0.75rem; }
.hero-tagline {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: hsl(40 10% 96% / 0.6); margin-bottom: 1.25rem;
}
.hero-lead { font-size: 1.05rem; line-height: 1.7; color: hsl(40 10% 96% / 0.85); max-width: 36rem; margin: 0 auto 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius); font-size: 0.875rem; font-weight: 500;
  border: 1px solid transparent; transition: 0.2s; cursor: pointer;
}
.btn-primary { background: var(--primary-foreground); color: var(--primary); }
.btn-primary:hover { opacity: 0.92; }
.btn-outline-light { border-color: hsl(40 10% 96% / 0.3); color: var(--primary-foreground); background: transparent; }
.btn-outline-light:hover { background: hsl(40 10% 96% / 0.1); }
.btn-dark { background: var(--primary); color: var(--primary-foreground); }
.btn-dark:hover { opacity: 0.9; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--foreground); }

/* Sections */
.section { padding: 6rem 1rem; }
.section-card { background: var(--card); }
.section-muted { background: hsl(35 6% 88% / 0.3); }
.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.section-desc { color: var(--muted-foreground); line-height: 1.7; }

/* About */
.about-grid {
  display: grid; gap: 3rem; align-items: center; max-width: 72rem; margin: 0 auto;
}
.about-photo { aspect-ratio: 4/5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.about-copy { display: grid; gap: 1rem; color: var(--muted-foreground); line-height: 1.75; }
.about-copy h3 { color: var(--foreground); font-size: 1.75rem; margin-bottom: 0.25rem; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* Products */
.product-grid {
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.product-card {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--background);
  display: flex; flex-direction: column;
}
.product-image-wrap { aspect-ratio: 1; overflow: hidden; background: var(--muted); }
.product-image-wrap picture { display: block; width: 100%; height: 100%; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.product-symbol { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); }
.product-title { font-size: 1.125rem; }
.product-desc { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.5; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.5rem; }
.product-price { font-family: var(--font-mono); font-size: 0.875rem; }

/* Workshops */
.workshop-grid { display: grid; gap: 1.5rem; max-width: 72rem; margin: 0 auto; }
.workshop-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--background);
}
.workshop-card h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.workshop-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted-foreground); margin-bottom: 0.75rem; }
.workshop-card p { color: var(--muted-foreground); font-size: 0.95rem; line-height: 1.65; }

.calendar-shell {
  margin-top: 2rem; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; background: var(--background); max-width: 24rem;
}
.calendar-shell h4 { font-size: 1rem; margin-bottom: 0.75rem; }
.calendar-note { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 0.75rem; line-height: 1.5; }

/* Collaboration */
.collab-grid { display: grid; gap: 1.5rem; max-width: 64rem; margin: 0 auto; }
.collab-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; background: var(--background);
}
.collab-card h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
.collab-sub { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 1rem; }
.collab-card ul { display: grid; gap: 0.35rem; margin: 1rem 0 1.5rem; color: var(--muted-foreground); font-size: 0.92rem; }
.collab-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.collab-tags span {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground);
}
@media (min-width: 768px) { .collab-grid { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact-grid { display: grid; gap: 2rem; max-width: 56rem; margin: 0 auto; }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-size: 0.875rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); font: inherit; color: inherit;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-info { display: grid; gap: 1rem; font-size: 0.92rem; color: var(--muted-foreground); }
.contact-info strong { display: block; color: var(--foreground); font-weight: 600; margin-bottom: 0.15rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }

/* Footer */
.site-footer { background: var(--foreground); color: var(--primary-foreground); padding: 4rem 1rem; }
.footer-grid {
  max-width: 72rem; margin: 0 auto; display: grid; gap: 2rem;
}
.footer-brand p { color: hsl(40 10% 96% / 0.6); font-size: 0.875rem; margin-top: 0.5rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; font-size: 0.875rem; }
.footer-links a { color: hsl(40 10% 96% / 0.7); }
.footer-links a:hover { color: var(--primary-foreground); }
.footer-bottom {
  max-width: 72rem; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid hsl(40 10% 96% / 0.15);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; justify-content: space-between;
  font-size: 0.75rem; color: hsl(40 10% 96% / 0.5);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .workshop-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Inner pages */
.page-hero { padding: 5rem 1rem 3rem; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 0.75rem; }
.page-hero p { color: var(--muted-foreground); max-width: 40rem; margin: 0 auto; line-height: 1.7; }

.filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem;
}
.filters span, .filters a {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.45rem 0.75rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted-foreground);
}
.filters .is-active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.legal-doc { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem 5rem; }
.legal-doc h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.legal-doc p, .legal-doc li { color: var(--muted-foreground); line-height: 1.75; margin-bottom: 0.75rem; }
.legal-doc ul { list-style: disc; padding-left: 1.25rem; }

.plugin-slot {
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 2rem; text-align: center;
  background: hsl(35 6% 88% / 0.25); color: var(--muted-foreground); font-size: 0.9rem; line-height: 1.6;
}
.plugin-slot strong { display: block; color: var(--foreground); margin-bottom: 0.35rem; }

.embed-slot {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--background);
  min-height: 420px; overflow: hidden;
}
.embed-slot iframe { display: block; width: 100%; min-height: 420px; border: 0; }

.booking-layout {
  display: grid; gap: 1.75rem; margin-top: 2.5rem;
  margin-inline: 1rem;
}
.booking-layout__cta {
  text-align: center; max-width: 28rem; margin-inline: auto;
}
.booking-layout__cta .section-desc { margin-bottom: 1rem; }

.booking-page.container {
  display: grid; gap: 2.5rem;
  width: min(100% - 4rem, 88rem);
  padding-inline: 2rem;
}

.booking-embed {
  width: 100%;
  min-height: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}
.booking-embed iframe {
  display: block;
  width: 100%;
  min-height: 52rem;
  border: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .booking-layout {
    gap: 2rem;
  }
  .booking-embed iframe {
    min-height: 44rem;
  }
}

.coming-soon-banner {
  text-align: center; padding: 1rem 1.25rem; margin-bottom: 2rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: hsl(35 6% 88% / 0.35); color: var(--muted-foreground); font-size: 0.92rem;
}
.coming-soon-banner strong { color: var(--foreground); }

.product-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.25rem 0.5rem; border-radius: 999px;
  background: var(--muted); color: var(--muted-foreground); margin-bottom: 0.35rem;
}

.btn-disabled {
  opacity: 0.55; cursor: not-allowed; pointer-events: none;
}

.cart-empty { text-align: center; padding: 4rem 1rem; color: var(--muted-foreground); }
.cart-empty h2 { color: var(--foreground); margin-bottom: 0.75rem; }

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