/* =========================================================================
   Jiya Handmade Creations — styles
   Colours & type taken from the brand card / BRAND_GUIDELINES.md
   ========================================================================= */

:root {
  --terracotta: #C97C5D;
  --terracotta-fill: #8F4E35;
  --terracotta-dark: #7A4230;
  --blush: #E0A085;
  --sage: #9CAA85;
  --cocoa: #4A3F35;
  --taupe: #7A6A5A;
  --cream: #FBF7F0;
  --ivory: #FFFFFF;
  --sand: #EAE0D2;

  --shadow: 0 12px 30px rgba(74, 63, 53, 0.08);
  --shadow-hover: 0 18px 40px rgba(74, 63, 53, 0.14);
  --radius: 18px;
}

/* Latin subsets from Google Fonts (SIL OFL). Relatives are from this CSS file. */
@font-face {
  font-family: "Dancing Script";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/dancing-script-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/poppins-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/poppins-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--cocoa);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

h1, h2 { font-family: "Cormorant Garamond", serif; font-weight: 600; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--terracotta-fill);
  color: #fff;
  box-shadow: 0 10px 24px rgba(143, 78, 53, 0.22);
}
.btn-primary:hover { background: var(--terracotta-dark); box-shadow: 0 14px 30px rgba(143, 78, 53, 0.28); }

.btn-outline {
  background: transparent;
  color: var(--terracotta);
  border-color: var(--terracotta);
}
.btn-outline:hover { background: rgba(201, 124, 93, 0.08); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 240, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-script {
  font-family: "Dancing Script", cursive;
  font-size: 1.95rem;
  line-height: 1.15;
  color: var(--cocoa);
  font-weight: 600;
}
.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.35rem;
  padding-left: 0.15em;
}
.nav-links { display: flex; gap: 2.2rem; align-items: center; }
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cocoa);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 7.5rem 0 7rem;
  background: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-bg picture,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-bg img {
  object-fit: cover;
  object-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(251, 247, 240, 0.62), rgba(251, 247, 240, 0.78)),
    radial-gradient(circle at 50% 42%, rgba(251, 247, 240, 0.55), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 1.6rem;
  padding-left: 0.36em;
}
.hero-heading {
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 1.4rem;
  color: var(--cocoa);
}
.hero-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--terracotta);
  opacity: 0.6;
  margin: 1.4rem auto 0;
}
.hero-sub {
  max-width: 500px;
  margin: 0 auto 2.4rem;
  color: var(--taupe);
  font-size: 1.05rem;
  line-height: 1.85;
}
/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-head { text-align: center; margin-bottom: 3.2rem; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.7rem;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 0.9rem;
  padding-left: 0.36em;
}
.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 500;
  margin: 0 0 0.7rem;
  color: var(--cocoa);
}
.section-note { color: var(--taupe); margin: 0 auto; max-width: 500px; line-height: 1.8; }

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3.2rem;
}
.filter-btn {
  border: 1px solid var(--sand);
  background: transparent;
  color: var(--taupe);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
}
.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-btn.active {
  background: var(--terracotta-fill);
  border-color: var(--terracotta-fill);
  color: #fff;
}

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.2rem;
}
.card {
  background: var(--ivory);
  border: 1px solid rgba(234, 224, 210, 0.7);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(74, 63, 53, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.7s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(74, 63, 53, 0.12); }

.card-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f4ecdf, #faf4ea);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-placeholder {
  font-family: "Dancing Script", cursive;
  font-size: 2.4rem;
  color: var(--sage);
  opacity: 0.6;
}
.ribbon {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sage);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(74, 63, 53, 0.08);
}
.ribbon.soldout { color: var(--taupe); }

.card-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-cat {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.card-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.card-desc { font-size: 0.88rem; color: var(--taupe); line-height: 1.6; margin: 0 0 1.3rem; flex: 1; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(234, 224, 210, 0.7);
}
.card-price { font-weight: 600; color: var(--cocoa); font-size: 1.02rem; }
.card-order {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}
.card-order:hover { background: var(--terracotta); color: #fff; }
.card-order.disabled {
  background: transparent;
  border-color: var(--sand);
  color: var(--taupe);
  pointer-events: none;
}

.section-note a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.empty-note a {
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Collection archive ---------- */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.2rem;
}
a.collection-card { color: inherit; }
.collection-cta {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(234, 224, 210, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}
.grid-message {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--taupe);
  padding: 2rem 0;
}

/* ---------- About ---------- */
.section-about { background: linear-gradient(180deg, transparent, rgba(156, 170, 133, 0.08)); }
.about-inner { display: flex; justify-content: center; }
.about-card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  max-width: 680px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}
.about-heart { color: var(--terracotta); font-size: 1.6rem; display: block; margin-bottom: 0.5rem; }
.about-text { color: var(--taupe); font-size: 1.05rem; margin: 0.8rem 0 0; }

/* ---------- Contact ---------- */
.section-contact { text-align: center; }
.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 1.2rem;
}
.contact-location { color: var(--taupe); font-size: 0.92rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cocoa);
  color: #f3ece2;
  text-align: center;
  padding: 3rem 0 2.2rem;
}
.footer-logo { font-size: 2.4rem; color: #fff; display: block; }
.footer-tagline {
  font-family: "Dancing Script", cursive;
  font-size: 1.3rem;
  color: var(--blush);
  margin: 0.3rem 0 1rem;
}
.footer-contact { font-size: 0.92rem; opacity: 0.85; margin: 0.2rem 0; }
.footer-copy { font-size: 0.8rem; color: #d4c8ba; margin-top: 1rem; }

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 820px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 6rem 0 5.5rem; }
}

/* Mobile */
@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.9rem 0;
  }
  .brand { align-items: center; text-align: center; }
  .brand-script { font-size: 1.75rem; }
  .nav-links { gap: 1.15rem; flex-wrap: wrap; justify-content: center; }
  .nav-links a { font-size: 0.7rem; letter-spacing: 0.12em; }

  .hero { padding: 4.5rem 0 4rem; }
  .eyebrow { letter-spacing: 0.22em; font-size: 0.62rem; }
  .hero-heading { font-size: 2.2rem; }
  .hero-sub { font-size: 0.98rem; }

  .section { padding: 3.8rem 0; }
  .section-eyebrow { letter-spacing: 0.24em; }
  .about-card { padding: 2.2rem 1.6rem; }
  .contact-buttons { flex-direction: column; align-items: stretch; }
  .contact-buttons .btn { text-align: center; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero-heading { font-size: 1.95rem; }
  .nav-links { gap: 1.1rem; }
}
