/* =========================================================
   PIPA JOYAS — shared stylesheet
   Aesthetic: cream backgrounds, antique gold accents,
   elegant serif typography, plenty of whitespace.
   ========================================================= */

:root {
  --cream: #faf5ec;
  --cream-warm: #f3ead8;
  --ivory: #fffdf8;
  --gold: #b08d45;
  --gold-deep: #8b6c2e;
  --gold-soft: #d4b878;
  --ink: #3a2f1f;
  --ink-soft: #6e5e44;
  --line: rgba(176, 141, 69, 0.25);

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --radius: 4px;
  --shadow-soft: 0 10px 40px rgba(120, 90, 30, 0.08);
  --shadow-card: 0 6px 22px rgba(120, 90, 30, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 15px;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
}

/* ---------- Utilities ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 560px;
  margin: 0 auto 50px;
  font-style: italic;
}

.divider-dot {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 24px auto;
}
.divider-dot span {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-soft);
}
.divider-dot span:nth-child(2) { width: 6px; height: 6px; background: var(--gold); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  max-width: 1300px; margin: 0 auto;
}

.brand {
  display: inline-flex; align-items: center;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}
.brand img {
  height: 54px; width: 54px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;        /* white blends into cream */
  transition: opacity .2s ease, transform .3s ease;
}
.brand:hover img { opacity: 0.85; transform: rotate(-2deg); }

/* Footer brand image is a touch bigger */
.footer-brand .brand img {
  height: 88px; width: 88px;
}

/* Hero brand mark — circular framed seal */
.hero-mark {
  position: relative;
  width: 280px; height: 280px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    inset 0 0 0 1px var(--gold-soft),
    inset 0 0 0 6px var(--ivory),
    inset 0 0 0 7px rgba(176, 141, 69, 0.25),
    0 14px 40px -12px rgba(176, 141, 69, 0.30),
    0 4px 14px rgba(120, 90, 30, 0.08);
}
.hero-mark::before, .hero-mark::after {
  content: ''; position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold);
  top: 50%; transform: translateY(-50%);
}
.hero-mark::before { left: -36px; }
.hero-mark::after  { right: -36px; }
.hero-mark img {
  width: 92%; height: 92%;
  border-radius: 50%;
  object-fit: cover;
  mix-blend-mode: multiply;
  display: block;
}

/* Hero title sits below the seal — keep refined */
.hero h1 { margin-top: 0; }

@media (max-width: 600px) {
  .hero-mark { width: 210px; height: 210px; }
  .hero-mark::before, .hero-mark::after { display: none; }
  .brand img { height: 46px; }
  .footer-brand .brand img { height: 70px; }
}

.nav-links {
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink); position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 50%; bottom: -8px;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: var(--ivory);
}
.lang-toggle button {
  background: transparent; border: none; cursor: pointer;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.15em;
  color: var(--ink-soft); text-transform: uppercase;
}
.lang-toggle button.active {
  background: var(--gold); color: var(--ivory);
}

.menu-btn { display: none; background: none; border: none; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 1px; background: var(--ink); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 184, 120, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(212, 184, 120, 0.14), transparent 55%),
    var(--cream);
  overflow: hidden;
}

.hero::before, .hero::after {
  content: ''; position: absolute; pointer-events: none;
  background-image:
    radial-gradient(circle, var(--gold-soft) 1.2px, transparent 1.5px),
    radial-gradient(circle, var(--gold) 1px, transparent 1.3px);
  background-size: 38px 38px, 64px 64px;
  background-position: 0 0, 19px 19px;
  opacity: 0.55;
}
.hero::before {
  top: -40px; left: -40px; width: 380px; height: 380px;
  -webkit-mask-image: radial-gradient(circle at top left, black, transparent 70%);
          mask-image: radial-gradient(circle at top left, black, transparent 70%);
}
.hero::after {
  bottom: -40px; right: -40px; width: 420px; height: 420px;
  -webkit-mask-image: radial-gradient(circle at bottom right, black, transparent 70%);
          mask-image: radial-gradient(circle at bottom right, black, transparent 70%);
}

.hero-inner { position: relative; z-index: 2; padding: 80px 28px; max-width: 760px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 12px;
}
.hero .hero-sub {
  font-size: 12px; letter-spacing: 0.6em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 34px;
}
.hero p.tagline {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink-soft);
  max-width: 540px; margin: 0 auto 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 36px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  cursor: pointer;
  transition: all .25s ease;
  border-radius: 0;
}
.btn:hover { background: var(--gold); color: var(--ivory); }

.btn-filled {
  background: var(--gold); color: var(--ivory);
}
.btn-filled:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: var(--ivory); }

.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Generic section ---------- */
section { padding: 90px 0; }
section.tight { padding: 60px 0; }
section.alt { background: var(--ivory); }
section.warm { background: var(--cream-warm); }

/* ---------- Featured grid (home) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.feature-card {
  background: var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.feature-card .img-wrap { aspect-ratio: 1/1; overflow: hidden; }
.feature-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.feature-card:hover img { transform: scale(1.04); }
.feature-card .meta { padding: 20px 22px 24px; text-align: center; }
.feature-card .meta h3 { font-size: 22px; margin-bottom: 6px; }
.feature-card .meta p { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- Catalog ---------- */
.cat-jump {
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  margin-bottom: 60px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cat-jump a {
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-soft); padding: 8px 4px;
}
.cat-jump a:hover { color: var(--gold); }

.category-section {
  margin-bottom: 90px; scroll-margin-top: 120px;
}
.category-section:last-of-type { margin-bottom: 30px; }
.category-head {
  text-align: center; margin-bottom: 50px;
}
.category-head .eyebrow { margin-bottom: 14px; }
.category-head h2 {
  font-family: var(--serif); font-size: 36px;
  font-weight: 400; letter-spacing: 0.12em;
  color: var(--ink); text-transform: uppercase;
  margin-bottom: 10px;
}
.category-head p {
  font-style: italic; color: var(--ink-soft);
  font-family: var(--serif); font-size: 17px;
  max-width: 520px; margin: 0 auto;
}
.category-head .divider-dot { margin: 18px auto 0; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product {
  background: var(--ivory);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.product .img-wrap { aspect-ratio: 4/5; overflow: hidden; background: var(--cream-warm); }
.product img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product:hover img { transform: scale(1.05); }
.product .info {
  padding: 20px 22px 24px; text-align: center;
  display: flex; flex-direction: column; gap: 6px;
}
.product .name { font-family: var(--serif); font-size: 20px; }
.product .price {
  font-family: var(--sans); font-size: 14px;
  color: var(--gold); letter-spacing: 0.15em;
}
.product .desc { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.product .product-cta {
  margin-top: 14px; align-self: center;
  font-size: 10px; letter-spacing: 0.3em;
  padding: 9px 22px;
}
.product .img-wrap { position: relative; }
.product .badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--ivory); color: var(--gold-deep);
  border: 1px solid var(--gold);
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  z-index: 2;
}
.product.sold-out img { opacity: 0.55; filter: grayscale(0.2); }
.product.sold-out .price { text-decoration: line-through; color: var(--ink-soft); }
.product.sold-out .badge { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- About ---------- */
.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 70px; align-items: center;
}
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.about-split h2 { font-size: 42px; margin-bottom: 20px; }
.about-split p { margin-bottom: 18px; color: var(--ink-soft); font-size: 15px; }
.about-split p.lead {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--ink); line-height: 1.5;
}

.values {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px; margin-top: 60px;
}
.value {
  text-align: center; padding: 30px 20px;
}
.value .icon {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--serif); font-size: 24px;
}
.value h3 { font-size: 20px; margin-bottom: 10px; }
.value p { color: var(--ink-soft); font-size: 14px; }

/* ---------- Shipping ---------- */
.shipping-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px; margin-top: 40px;
}
.ship-card {
  background: var(--ivory);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
}
.ship-card .num {
  font-family: var(--serif); font-size: 38px;
  color: var(--gold); margin-bottom: 8px;
}
.ship-card h3 { font-size: 20px; margin-bottom: 10px; }
.ship-card p { color: var(--ink-soft); font-size: 14px; }

.faq { max-width: 760px; margin: 70px auto 0; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 20px;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--gold); font-size: 22px;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p {
  margin-top: 14px; color: var(--ink-soft); font-size: 14px;
}

/* ---------- Contact ---------- */
.contact-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.contact-info h3 { font-size: 22px; margin-bottom: 14px; }
.contact-info .channel {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.contact-info .channel:last-of-type { border-bottom: none; }
.contact-info .channel .ico {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contact-info .channel .lbl {
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 2px;
}
.contact-info .channel .val { color: var(--ink); font-size: 15px; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label {
  font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 4px;
  display: block;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--ivory);
  font-family: var(--sans); font-size: 14px;
  color: var(--ink); border-radius: var(--radius);
  transition: border-color .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-warm);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; font-weight: 500;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 13px; }
.footer-grid a { color: var(--ink); }
.footer-grid a:hover { color: var(--gold); }
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--ink-soft); max-width: 320px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--ink-soft);
}
.footer-bottom .social { display: flex; gap: 16px; }
.footer-bottom .social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.footer-bottom .social a:hover { background: var(--gold); color: var(--ivory); border-color: var(--gold); }

/* ---------- Page header (sub-pages) ---------- */
.page-head {
  text-align: center; padding: 80px 28px 50px;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.page-head::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, var(--gold-soft) 1px, transparent 1.5px);
  background-size: 80px 80px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.page-head .inner { position: relative; z-index: 2; }
.page-head h1 {
  font-family: var(--serif); font-size: clamp(38px, 5vw, 56px);
  font-weight: 400; color: var(--gold);
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.page-head p {
  color: var(--ink-soft); font-style: italic;
  font-family: var(--serif); font-size: 18px;
  max-width: 580px; margin: 0 auto;
}

/* ---------- Mobile ---------- */
@media (max-width: 880px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory);
    flex-direction: column; gap: 0; padding: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a {
    display: block; padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: block; }
  .feature-grid, .product-grid, .shipping-grid, .values { grid-template-columns: 1fr; gap: 20px; }
  .about-split, .contact-split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  section { padding: 60px 0; }
  .nav { padding: 14px 22px; }
  .container, .container-narrow { padding: 0 22px; }
  .contact-form .row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: 0.12em; }
  .lang-toggle button { padding: 4px 10px; font-size: 10px; }
  .nav-right { gap: 10px; }
}

/* hidden utility for language */
[data-lang]:not([data-active]) { display: none; }
