/* Crooy Ceramics — Ghibli-inspired keramiek shop demo */

@import url("./theme/palette.css");
@import url("./theme/semantic.css");
@import url("./theme/fonts.css");
@import url("./theme/tokens.css");

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Decorative sky layer */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform;
}

.cloud {
  position: absolute;
  color: var(--white);
  opacity: 0.7;
  animation: drift linear infinite;
}

.cloud--1 {
  top: 8%;
  left: -5%;
  width: 140px;
  animation-duration: 45s;
}

.cloud--2 {
  top: 18%;
  right: -8%;
  width: 110px;
  animation-duration: 55s;
  animation-delay: -20s;
}

.leaf {
  position: absolute;
  color: var(--moss-light);
  opacity: 0.35;
  animation: float ease-in-out infinite;
}

.leaf--1 {
  top: 35%;
  left: 4%;
  width: 32px;
  animation-duration: 7s;
}

.leaf--2 {
  top: 60%;
  right: 6%;
  width: 28px;
  animation-duration: 9s;
  animation-delay: -3s;
  transform: rotate(40deg);
}

.blossom {
  position: absolute;
  color: var(--blossom);
  opacity: 0.45;
  animation: blossom-spin ease-in-out infinite;
}

.blossom--1 {
  top: 25%;
  right: 12%;
  width: 20px;
  animation-duration: 12s;
}

.blossom--2 {
  bottom: 30%;
  left: 8%;
  width: 16px;
  animation-duration: 15s;
  animation-delay: -5s;
}

@keyframes drift {
  0% { transform: translateX(0); }
  50% { transform: translateX(30px); }
  100% { transform: translateX(0); }
}

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

@keyframes blossom-spin {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.45; }
  50% { transform: rotate(180deg) scale(1.1); opacity: 0.6; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-header-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-logo-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
}

.logo__mark {
  display: block;
  height: 2.75rem;
  width: auto;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--color-logo-accent);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 85vh;
  padding: 4rem 2rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 1rem;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--moss);
  background: var(--moss-pale);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-hero-highlight);
}

.hero__lead {
  margin: 0 0 2rem;
  max-width: 32rem;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  color: var(--color-on-primary);
  background: linear-gradient(135deg, var(--moss) 0%, var(--moss-light) 100%);
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.btn--ghost {
  color: var(--color-text);
  background: var(--white);
  border: 2px solid var(--clay-light);
}

.btn--ghost:hover {
  border-color: var(--clay);
  transform: translateY(-2px);
}

.hero__visual {
  position: relative;
  height: 380px;
}

.hero__pot {
  position: absolute;
  border-radius: var(--radius-blob);
  animation: float ease-in-out infinite;
  box-shadow: var(--shadow-lift);
}

.hero__pot--1 {
  top: 10%;
  left: 15%;
  width: 160px;
  height: 180px;
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  animation-duration: 6s;
}

.hero__pot--2 {
  top: 35%;
  right: 10%;
  width: 130px;
  height: 150px;
  background: linear-gradient(160deg, var(--clay-light) 0%, var(--clay) 100%);
  animation-duration: 7.5s;
  animation-delay: -2s;
}

.hero__pot--3 {
  bottom: 5%;
  left: 35%;
  width: 100px;
  height: 120px;
  background: linear-gradient(160deg, var(--sun-light) 0%, var(--sun) 100%);
  animation-duration: 5.5s;
  animation-delay: -4s;
}

/* Sections */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
}

.section-header p {
  margin: 0;
  color: var(--color-text-muted);
}

/* Products */
.products {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 6rem;
  background: linear-gradient(180deg, var(--sky-pale) 0%, var(--cream) 100%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.product-card__visual {
  height: 180px;
  position: relative;
}

.product-card__visual::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: var(--radius-blob);
  opacity: 0.85;
  animation: float 8s ease-in-out infinite;
}

.product-card--moss .product-card__visual { background: var(--moss-pale); }
.product-card--moss .product-card__visual::after { background: linear-gradient(160deg, var(--moss-light), var(--moss)); }

.product-card--sky .product-card__visual { background: var(--sky-pale); }
.product-card--sky .product-card__visual::after { background: linear-gradient(160deg, var(--sky), var(--sky-deep)); }

.product-card--clay .product-card__visual { background: var(--clay-pale); }
.product-card--clay .product-card__visual::after { background: linear-gradient(160deg, var(--clay-light), var(--clay)); }

.product-card--sun .product-card__visual { background: var(--sun-pale); }
.product-card--sun .product-card__visual::after { background: linear-gradient(160deg, var(--sun-light), var(--sun)); }

.product-card--blossom .product-card__visual { background: var(--blossom-pale); }
.product-card--blossom .product-card__visual::after { background: linear-gradient(160deg, var(--blossom-light), var(--blossom)); }

.product-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__body h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.product-card__body p {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-text);
}

.product-card__badge {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--moss);
  background: var(--moss-pale);
  border-radius: 999px;
}

/* About */
.about {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.about__illustration {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  animation: float 10s ease-in-out infinite;
}

.about__content h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.about__content p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about__highlights {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.about__highlights li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  color: var(--color-text);
}

.about__highlights li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--sun);
}

/* Spotlight */
.spotlight {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem 6rem;
  background: linear-gradient(135deg, var(--moss-pale) 0%, var(--sun-pale) 50%, var(--blossom-pale) 100%);
}

.spotlight__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.spotlight__badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.spotlight h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.spotlight p {
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.spotlight blockquote {
  margin: 0;
  padding: 2rem 2.5rem;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--blossom);
}

.spotlight blockquote p {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-text);
}

.spotlight cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.site-footer__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__logo {
  display: block;
  height: 3.5rem;
  width: auto;
  margin: 0 auto 1rem;
}

.site-footer__brand strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.site-footer__brand p {
  margin: 0 0 1.5rem;
  opacity: 0.75;
  font-size: 0.95rem;
}

.site-footer__demo {
  margin: 0 0 1.5rem;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  background: var(--color-footer-demo-bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-footer-demo-border);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 3rem 1.5rem 4rem;
  }

  .hero__visual {
    height: 260px;
  }

  .hero__pot--1 { width: 120px; height: 140px; }
  .hero__pot--2 { width: 100px; height: 120px; }
  .hero__pot--3 { width: 80px; height: 100px; }

  .about {
    grid-template-columns: 1fr;
    padding: 4rem 1.5rem;
  }

  .products,
  .spotlight {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
