/* =========================================================================
   LOVORA FRAMES — Refinement Layer
   Premium polish · Real-image cards · Editorial composition
   Loads AFTER lovora.css to override / enhance specific patterns.
   ========================================================================= */

/* -----  IMAGE LOGO  ------------------------------------------------------ */
.brand-logo {
  display: inline-block;
  height: 38px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-logo--lg { height: 64px; }
.brand-logo--sm { height: 28px; }
.brand-logo--footer {
  height: 56px;
  filter: brightness(0) invert(1) sepia(0.3) hue-rotate(-25deg) saturate(0.4) brightness(0.95);
  /* fallback if filter doesn't render — keep the image legible on dark BG */
  opacity: 0.95;
}
@media (max-width: 720px) {
  .brand-logo { height: 32px; }
}

.site-header .brand { gap: 0; padding: 4px 0; }

/* -----  ANNOUNCEMENT — refined separators  ------------------------------ */
.announcement {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  padding: 11px var(--s-5);
  background: linear-gradient(90deg, var(--burgundy-deep) 0%, #5A0813 50%, var(--burgundy-deep) 100%);
}
.announcement .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  margin: 0 var(--s-3);
  vertical-align: middle;
  transform: translateY(-1px);
}

/* -----  HEADER refinements  --------------------------------------------- */
.site-header { border-bottom: 1px solid rgba(212,175,55,0.18); }

/* Tighter, fluid nav grid — keeps everything on one row */
.nav {
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 2.5vw, 32px);
  padding: 16px var(--s-5);
}

.nav-links {
  /* fluid gap that adapts from wide → narrow desktop without wrapping */
  gap: clamp(14px, 2.2vw, 32px);
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  font-weight: 600;
  white-space: nowrap;            /* never break a multi-word label */
  flex-shrink: 0;
}
.nav-cta {
  background: var(--burgundy);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  padding: 12px 22px;
  min-height: 44px;
  white-space: nowrap;
}
.nav-actions { gap: var(--s-3); }
.icon-btn { width: 40px; height: 40px; }
.brand-logo { height: 36px; }

/* -----  HERO — stronger composition  ------------------------------------ */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 128px);
  background:
    radial-gradient(1100px 600px at 95% 5%, rgba(246,199,207,0.55) 0%, transparent 55%),
    radial-gradient(800px 700px at -5% 100%, rgba(212,175,55,0.10) 0%, transparent 55%),
    var(--cream);
}

.hero-grid { gap: var(--s-8); }

.hero-eyebrow {
  background: rgba(255,255,255,0.65);
  border-color: rgba(212,175,55,0.55);
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  padding: 9px 18px;
}
.hero-eyebrow svg { color: var(--rose); }

.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); font-weight: 400; }
.hero h1 em { color: var(--rose); }
.hero h1 .accent { color: var(--burgundy); }

.hero-trust {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-burgundy);
  gap: var(--s-5);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

/* Real-image collage — strong asymmetric editorial frames */
.collage { aspect-ratio: 1 / 1.08; }

.frame-card {
  border-radius: 4px;
  background: var(--white);
  /* premium gallery-shadow */
  box-shadow:
    0 1px 0 rgba(0,0,0,0.05),
    0 18px 32px rgba(74,10,18,0.18),
    0 48px 80px rgba(74,10,18,0.16);
}
.frame-card .photo {
  border-radius: 0;
}
/* re-do the gilt mat: real frames have wider mat than original */
.frame-card .frame-mat {
  inset: 0;
  border: 16px solid var(--white);
  border-radius: 4px;
  z-index: 1;
}
.frame-card.gilt::after {
  margin: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 0;
  z-index: 2;
}

.collage .c-main { width: 60%; height: 78%; top: 2%; left: 0; transform: rotate(-2.2deg); }
.collage .c-side { width: 42%; height: 50%; bottom: 4%; right: 0; transform: rotate(2.8deg); }
.collage .c-tag {
  width: 38%; height: 28%;
  bottom: -2%; left: 22%;
  transform: rotate(-4.5deg);
  background: var(--cream);
  border: 1px solid var(--line-gold);
  border-radius: 4px;
}
.collage .c-tag .gift-script { font-size: 1.85rem; }
.collage .c-tag .gift-meta {
  font-size: 0.66rem; letter-spacing: 0.32em;
  color: var(--gold-deep);
}

.collage .deco-heart { right: -16px; top: -22px; width: 64px; height: 64px; opacity: 0.85; }
.collage .deco-sparkle { left: -8px; top: 38%; width: 28px; height: 28px; opacity: 0.55; }

/* Soft signature "from photo" stamp */
.collage::before {
  content: "from your photo";
  position: absolute;
  top: 8px; right: 4px;
  font-family: var(--script);
  color: var(--rose);
  font-size: 1.3rem;
  transform: rotate(-6deg);
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255,246,236,0.85);
}

/* -----  TRUST STRIP — slimmer, more refined  ---------------------------- */
.trust-strip {
  padding: var(--s-5) 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream-warm) 100%);
}
.trust-item svg { width: 22px; height: 22px; }
.trust-item span {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
}

/* -----  SECTION HEAD — script accent  ----------------------------------- */
.section-head { margin-bottom: var(--s-7); }
.section-head h2 em.italic { color: var(--rose); }

.section-head .script-accent {
  display: block;
  font-family: var(--script);
  font-size: 1.5rem;
  color: var(--rose);
  margin: var(--s-3) 0 -8px;
  font-style: normal;
}

/* -----  STEPS — cleaner editorial cards  -------------------------------- */
.step {
  padding: var(--s-7) var(--s-5) var(--s-6);
  background: var(--white);
  border: 1px solid rgba(212,175,55,0.20);
  border-radius: var(--radius-lg);
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: var(--s-5); left: 50%; transform: translateX(-50%);
  width: 40px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.step .step-num {
  font-size: 1.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: var(--s-3);
}
.step .step-icon {
  width: 64px; height: 64px;
  background: var(--cream-warm);
  border: 1px solid rgba(212,175,55,0.30);
}

/* -----  FEATURED PRODUCT — gilt-mat showcase  --------------------------- */
.product-feature {
  align-items: center;
  gap: var(--s-9);
}
.product-visual {
  background: linear-gradient(180deg, var(--blush-pale) 0%, var(--cream) 100%);
  aspect-ratio: 1 / 1.08;
  padding: var(--s-7);
  border-radius: 8px;
}
.product-visual::after { display: none; }

.signature-frame {
  position: relative;
  width: 78%;
  aspect-ratio: 4 / 5;
  background: var(--white);
  border-radius: 4px;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.04),
    0 24px 44px rgba(74,10,18,0.20),
    0 60px 100px rgba(74,10,18,0.18);
}
.signature-frame::before {
  content: ""; position: absolute; inset: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 1px;
  z-index: 2; pointer-events: none;
}
.signature-frame .frame-photo {
  position: absolute; inset: 36px;
  background-size: cover; background-position: center;
  border-radius: 1px;
  filter: contrast(1.02) saturate(1.05);
}
.signature-frame .frame-plate {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -22px;
  background: var(--cream);
  border: 1px solid var(--line-gold);
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(74,10,18,0.10);
}
.signature-frame .frame-plate .plate-script {
  font-family: var(--script);
  color: var(--burgundy);
  font-size: 1.25rem;
  line-height: 1;
}
.signature-frame .frame-plate .plate-meta {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 2px;
  text-align: center;
}

.product-info-block .eyebrow {
  color: var(--gold-deep);
}
.product-info-block h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 400;
  margin: var(--s-3) 0 var(--s-3);
}
.product-info-block .lead {
  max-width: 480px;
  color: rgba(43,43,43,0.78);
}
.price-tag .price { font-size: 2.4rem; }

/* -----  ARTWORK STYLES — premium image cards (replaces circular)  ------- */
.style-grid--cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.style-art-card {
  position: relative;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 2px 0 rgba(0,0,0,0.03),
    0 14px 32px rgba(74,10,18,0.10),
    0 32px 56px rgba(74,10,18,0.08);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  cursor: pointer;
  display: block;
}
.style-art-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 0 rgba(0,0,0,0.04),
    0 22px 44px rgba(74,10,18,0.16),
    0 50px 80px rgba(74,10,18,0.12);
}
.style-art-card .img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--blush-pale);
}
.style-art-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out);
  filter: saturate(1.04);
}
.style-art-card:hover .img-wrap img { transform: scale(1.04); }
/* Gilt corner detail */
.style-art-card .img-wrap::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 246, 236, 0.55);
  pointer-events: none;
  border-radius: 2px;
}
/* Number tag */
.style-art-card .style-num {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,246,236,0.92);
  color: var(--burgundy-deep);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  z-index: 2;
}
.style-art-card .style-meta {
  padding: var(--s-5) var(--s-5) var(--s-5);
  text-align: left;
  border-top: 1px solid rgba(212,175,55,0.18);
  background: var(--white);
}
.style-art-card .style-meta .style-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--burgundy-deep);
  margin-bottom: 4px;
}
.style-art-card .style-meta .style-desc {
  font-size: 0.86rem;
  color: rgba(43,43,43,0.65);
  line-height: 1.55;
}

/* -----  TRANSFORMATION ROW — refined  ----------------------------------- */
.transform-row {
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  align-items: stretch;
  gap: var(--s-3);
}
.transform-card {
  background: var(--white);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 16px 32px rgba(74,10,18,0.10),
    0 36px 64px rgba(74,10,18,0.08);
  border-radius: 6px;
}
.transform-card .label {
  bottom: var(--s-4);
  left: 50%; transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  background: rgba(255,246,236,0.95);
  color: var(--burgundy-deep);
  padding: 6px 14px;
  border: 1px solid var(--line-gold);
}
.transform-arrow {
  color: var(--gold-deep);
  opacity: 0.85;
}
.transform-arrow svg {
  filter: drop-shadow(0 1px 0 var(--cream));
}
.transform-card.is-original .photo {
  filter: grayscale(0.4) brightness(1.04);
}
.transform-card.is-artwork .photo {
  filter: saturate(1.1) contrast(1.04);
}

/* -----  GIFT OCCASIONS — refined captions  ------------------------------ */
.occasion-card {
  border-radius: 6px;
  box-shadow:
    0 14px 30px rgba(74,10,18,0.10),
    0 36px 60px rgba(74,10,18,0.08);
}
.occasion-card .meta {
  padding: var(--s-6) var(--s-5);
}
.occasion-card .meta h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
}
.occasion-card .meta p {
  font-size: 0.84rem;
  color: rgba(255,246,236,0.92);
}
.occasion-card .occ-eyebrow {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

/* -----  REVIEWS — refined, more editorial  ------------------------------ */
.review-card {
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.25);
}
.review-card .quote-mark {
  font-size: 5rem;
  top: var(--s-3);
  right: var(--s-4);
  opacity: 0.18;
}
.review-card blockquote {
  font-size: 1.05rem;
  line-height: 1.7;
}
.review-card .placeholder {
  background: var(--cream-warm);
  border: 1px solid rgba(212,175,55,0.30);
  font-size: 0.6rem;
}

/* -----  STORY (emotional brand) — bigger heart, refined  ---------------- */
.story h2 { font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.story h2 em { color: var(--rose); }
.story::before, .story::after {
  content: "";
  display: block;
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 0 auto;
  opacity: 0.5;
}
.story::before { margin-bottom: var(--s-7); }
.story::after { margin-top: var(--s-8); }

/* -----  FAQ — refined  -------------------------------------------------- */
.faq-q {
  font-size: 1.15rem;
  font-weight: 500;
}
.faq-q .toggle {
  background: var(--cream-warm);
  border: 1px solid rgba(212,175,55,0.30);
  width: 32px; height: 32px;
  font-size: 1rem;
}
.faq-item.open .faq-q { color: var(--burgundy); }

/* -----  FINAL CTA — richer burgundy  ------------------------------------ */
.final-cta {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(193,90,107,0.18) 0%, transparent 50%),
    radial-gradient(700px 500px at 20% 80%, rgba(212,175,55,0.08) 0%, transparent 50%),
    var(--burgundy);
}
.final-cta h2 em { color: var(--gold-light); }
.final-cta .lead { color: rgba(255,246,236,0.85); }

/* -----  FOOTER — logo image, refined spacing  --------------------------- */
.footer-brand .footer-logo {
  height: 54px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.footer-brand p {
  margin-top: var(--s-4);
  font-size: 1.0rem;
  color: rgba(246,199,207,0.85);
  max-width: 300px;
  font-style: italic;
}
.footer-col h5 {
  letter-spacing: 0.26em;
  font-size: 0.7rem;
  color: var(--gold-light);
}

/* =========================================================================
   PAGE-LEVEL REFINEMENTS
   ========================================================================= */

/* Page hero: real-image on the right (used on how-it-works, FAQ, etc.) */
.page-hero--media {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  text-align: left;
  padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 80px);
}
.page-hero--media .page-hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: var(--s-4);
}
.page-hero--media .page-hero-copy .lead { margin: 0; }
.page-hero--media .page-hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--blush-pale);
  box-shadow:
    0 24px 48px rgba(74,10,18,0.16),
    0 60px 100px rgba(74,10,18,0.12);
}
.page-hero--media .page-hero-media::after {
  content: ""; position: absolute; inset: 18px;
  border: 1px solid rgba(255,246,236,0.55);
  pointer-events: none;
  border-radius: 2px;
}
.page-hero--media .page-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Track-order page — softer surface */
.track-form {
  border: 1px solid rgba(212,175,55,0.28);
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.track-form h2 {
  font-size: 1.6rem;
  font-style: italic;
  text-align: center;
  margin-bottom: var(--s-4);
}
.track-form .form-row { gap: var(--s-4); }

/* Contact info card refinement */
.contact-info { border-color: rgba(212,175,55,0.28); }

/* Reviews page: support image-with-quote layout */
.review-card.has-image {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
}
.review-card.has-image .r-img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.review-card.has-image .r-body {
  padding: var(--s-6) var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
}

/* =========================================================================
   PRODUCT PAGE — image-based style selector + refined gallery
   ========================================================================= */

/* Replace the gradient-circle selector with rectangular image cards */
.style-selector--img {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--s-3);
}
.style-selector--img .style-card {
  text-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease-out), border-color .2s var(--ease), box-shadow .25s var(--ease-out);
  padding: 6px 6px 10px;
}
.style-selector--img .style-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,0.40);
  box-shadow: 0 10px 22px rgba(74,10,18,0.10);
}
.style-selector--img .style-card.active {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 2px rgba(107,15,26,0.10), 0 10px 22px rgba(74,10,18,0.10);
}
.style-selector--img .style-card .style-art {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--blush-pale);
  border: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.style-selector--img .style-card .style-art::after {
  content: ""; position: absolute; inset: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,246,236,0.45);
}
.style-selector--img .style-card .style-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--burgundy-deep);
  letter-spacing: 0.01em;
}

/* Product gallery refinements */
.gallery .thumbs .thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--blush-pale);
}
.gallery .thumbs .thumb.active {
  border: 2px solid var(--burgundy);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.30);
}
.gallery .main-image {
  background: linear-gradient(180deg, var(--blush-pale) 0%, var(--cream) 100%);
  padding: var(--s-7) var(--s-5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212,175,55,0.20);
}

/* Product info refinements */
.product-info h1 { letter-spacing: -0.01em; }
.product-info h1 em { color: var(--rose); }
.product-info .badge { background: var(--cream); }
.option-label { font-size: 0.72rem; }
.option-label .selected-val { color: var(--burgundy); font-weight: 500; }

@media (max-width: 720px) {
  .style-selector--img { grid-template-columns: repeat(3, 1fr) !important; gap: var(--s-2); }
  .style-selector--img .style-card .style-name { font-size: 0.72rem; }
  .gallery .main-image { padding: var(--s-4); border-radius: var(--radius-lg); }
}

/* =========================================================================
   RESPONSIVE — refinements
   ========================================================================= */

/* Narrow-desktop tightening — keeps single-row nav before hamburger kicks in */
@media (max-width: 1180px) {
  .nav-links a { font-size: 0.70rem; letter-spacing: 0.08em; }
  .nav-cta { font-size: 0.68rem; padding: 11px 18px; letter-spacing: 0.10em; }
}

/* Hamburger breakpoint — promote earlier so tablet portraits & small laptops
   get the clean mobile nav instead of a cramped desktop one. */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { grid-template-columns: 1fr auto auto; gap: var(--s-3); padding: 14px var(--s-4); }
}

@media (max-width: 980px) {
  .style-grid--cards { grid-template-columns: repeat(2, 1fr); }
  .page-hero--media {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--s-6);
  }
  .page-hero--media .page-hero-media {
    max-width: 420px; margin: 0 auto;
  }
  .collage::before { font-size: 1.05rem; top: -2px; right: 8px; }
}

@media (max-width: 720px) {
  .style-grid--cards { grid-template-columns: 1fr; gap: var(--s-4); }
  .style-art-card .img-wrap { aspect-ratio: 5 / 6; }
  .signature-frame { width: 90%; }
  .product-visual { padding: var(--s-5); aspect-ratio: 1 / 1.05; }
  .footer-brand .footer-logo { height: 44px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 2.8rem); }
  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-2);
  }
  .collage .c-tag { width: 50%; }
  .collage::before { display: none; }
}
