/* ============================================================
   Riesa Maree — gallery site styles
   ============================================================ */

:root {
  --bg: #fbfaf7;
  --bg-alt: #f2efe8;
  --ink: #2b2926;
  --muted: #6f6a62;
  --line: #e3ddd2;
  --accent: #8a6d4b;       /* warm Overberg brown */
  --accent-dark: #6e553a;
  --white: #ffffff;
  --max: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .4em;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(251, 250, 247, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .5px; }
.brand-sub { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); font-size: .9rem; letter-spacing: .04em; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  min-height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background:
    linear-gradient(rgba(251,250,247,.55), rgba(251,250,247,.75)),
    radial-gradient(circle at 30% 20%, #e7ddcb, transparent 60%),
    radial-gradient(circle at 75% 70%, #d8e2e0, transparent 55%),
    var(--bg-alt);
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: .32em; font-size: .72rem; color: var(--accent); margin: 0 0 18px; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); font-weight: 600; letter-spacing: 1px; }
.hero-tag { font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--muted); margin: 6px 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 2px;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--accent);
  transition: all .2s;
  font-family: var(--sans);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-block { width: 100%; text-align: center; border: none; }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 100px) clamp(20px, 5vw, 40px); }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 600px; margin: 0 auto clamp(36px, 6vw, 60px); }
.section-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.section-head p { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.art-card {
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.art-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.art-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg-alt); }
.art-card-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.art-card:hover .art-card-img img { transform: scale(1.04); }
.art-card-sold {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink); color: #fff;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 12px;
}
.art-card-body { padding: 18px 20px 22px; }
.art-card-status { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: .02em; margin-bottom: 2px; }
.art-card-status.status-sold { color: var(--accent-dark); }
.art-card-status.status-reserved { color: #9a7b3f; }
.art-card-body h3 { font-size: 1.4rem; margin-bottom: 2px; }
.art-card-meta { font-size: .82rem; color: var(--muted); }
.art-card-price { margin-top: 10px; font-size: 1rem; color: var(--accent); letter-spacing: .02em; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 300px 1.2fr 1fr; gap: clamp(24px, 4vw, 44px); align-items: start; }
.about-photo { width: 100%; height: auto; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0,0,0,.1); }
@media (max-width: 920px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; margin: 0 auto; }
}
.about-text h2 { font-size: clamp(2rem, 5vw, 2.6rem); }
.about-text p { color: var(--muted); margin-bottom: 1em; }
.about-card { background: var(--white); border: 1px solid var(--line); padding: 30px 32px; }
.about-card h3 { font-size: 1.5rem; }
.about-card ul { list-style: none; padding: 0; margin: 0; }
.about-card li { padding: 9px 0 9px 26px; position: relative; color: var(--muted); border-bottom: 1px solid var(--line); }
.about-card li:last-child { border-bottom: none; }
.about-card li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Contact ---------- */
.contact-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.footer-links { margin-top: 6px; font-size: .8rem; }
.footer-links a { color: var(--accent); }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Warm page background (matches the home hero) ---------- */
body.page-warm {
  background:
    linear-gradient(rgba(251,250,247,.6), rgba(251,250,247,.82)),
    radial-gradient(circle at 25% 12%, #e7ddcb, transparent 55%),
    radial-gradient(circle at 80% 85%, #d8e2e0, transparent 50%),
    var(--bg-alt);
  background-attachment: fixed;
}

/* ---------- Delivery options (thank-you page) ---------- */
.delivery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin: 36px auto 0; text-align: left; }
.delivery-card { background: var(--white); border: 1px solid var(--line); padding: 26px 24px; display: flex; flex-direction: column; }
.delivery-card .d-icon { font-size: 1.8rem; }
.delivery-card h3 { font-size: 1.4rem; margin: 8px 0 4px; }
.delivery-card p { color: var(--muted); font-size: .92rem; flex: 1; margin: 0 0 16px; }
.delivery-card .quote-link { display: inline-block; margin-bottom: 12px; color: var(--accent); font-size: .88rem; }
.delivery-card .quote-link:hover { text-decoration: underline; }
.delivery-card .btn { margin-top: auto; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; }
.lightbox.open { display: block; }
.lightbox-overlay { position: absolute; inset: 0; background: rgba(30,28,25,.78); backdrop-filter: blur(3px); }
.lightbox-panel {
  position: relative;
  max-width: 980px;
  width: calc(100% - 36px);
  max-height: calc(100% - 48px);
  margin: 24px auto;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  overflow: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute; top: 10px; right: 14px; z-index: 3;
  background: none; border: none; font-size: 2rem; line-height: 1;
  color: var(--ink); cursor: pointer; opacity: .6;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-content { display: grid; grid-template-columns: 1.2fr 1fr; }
.lightbox-image { background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.lightbox-image img { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }
.lightbox-details { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.lightbox-details h2 { font-size: 2.2rem; }
.lb-medium { color: var(--accent); font-size: .9rem; letter-spacing: .04em; margin: 0 0 4px; }
.lb-dimensions { color: var(--muted); font-size: .92rem; margin: 0 0 18px; }
.lb-description { color: var(--ink); font-weight: 300; margin-bottom: 24px; }
.lb-price-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.lb-price { font-family: var(--serif); font-size: 2rem; color: var(--ink); }
.lb-sold-badge { background: var(--ink); color: #fff; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: 5px 12px; }
.lb-fineprint { margin-top: 16px; font-size: .78rem; color: var(--muted); }
.lb-shipping { background: var(--bg-alt); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 3px; }
.lb-shipping strong { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 3px; }
.lb-shipping span { font-size: .9rem; color: var(--ink); }
.lb-shipping .lb-ship-note { font-size: .76rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
#lb-buy-wrap .btn { margin-top: 4px; }
.buy-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.buy-note strong, .co-note strong, #ty-line1 strong, #ty-line2 strong { color: #000; font-weight: 800; }

/* ---------- Checkout ---------- */
.checkout { position: fixed; inset: 0; z-index: 120; display: none; }
.checkout.open { display: block; }
.checkout-overlay { position: absolute; inset: 0; background: rgba(30,28,25,.78); backdrop-filter: blur(3px); }
.checkout-panel {
  position: relative;
  max-width: 640px;
  width: calc(100% - 32px);
  max-height: calc(100% - 40px);
  margin: 20px auto;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  overflow: auto;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.checkout-title { font-size: 2rem; margin-bottom: 2px; }
.co-art-line { color: var(--accent); font-size: .92rem; margin: 0 0 20px; }
.co-heading { font-size: 1.2rem; margin: 0 0 14px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-grid label, .co-instructions { display: flex; flex-direction: column; font-size: .8rem; letter-spacing: .03em; color: var(--muted); gap: 5px; }
.co-grid .co-wide { grid-column: 1 / -1; }
.co-opt { color: var(--line); text-transform: none; }
.checkout input, .checkout select {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg);
}
.checkout input:focus, .checkout select:focus { outline: none; border-color: var(--accent); }
.co-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.co-fieldset { border: 1px solid var(--line); padding: 12px 14px; }
.co-fieldset legend { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 6px; }
.co-radio { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); padding: 4px 0; cursor: pointer; }
.co-radio input { padding: 0; }
.co-instructions { margin-bottom: 18px; }
.co-summary { background: var(--bg-alt); border: 1px solid var(--line); padding: 18px 20px; margin-bottom: 20px; }
.co-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: .98rem; }
.co-row span:first-child { color: var(--muted); }
.co-total-row { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.co-total-row span { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }
.co-total-row span:first-child { font-family: var(--sans); align-self: center; }
.co-note { font-size: .76rem; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
.co-sub { font-size: .8rem; color: var(--muted); font-weight: 400; }
@media (max-width: 540px) {
  .co-grid, .co-options { grid-template-columns: 1fr; }
}

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(22px, 3vw, 36px); }
.blog-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.blog-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.blog-card-tag { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: 22px 26px 0; }
.blog-card h3 { font-size: 1.6rem; padding: 8px 26px 0; }
.blog-card p { color: var(--muted); padding: 6px 26px 0; flex: 1; }
.blog-card-more { padding: 16px 26px 26px; color: var(--accent); font-size: .85rem; letter-spacing: .04em; }

/* ---------- Article page ---------- */
.article { max-width: 720px; margin: 0 auto; padding: clamp(48px, 8vw, 90px) clamp(20px, 5vw, 30px); }
.article-tag { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; color: var(--accent); }
.article h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 10px 0 6px; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.article-hero { margin: 0 0 30px; }
.article-hero img { width: 100%; height: auto; max-height: 460px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.article-hero figcaption { font-size: .8rem; color: var(--muted); font-style: italic; margin-top: 8px; text-align: center; }
.article-hero figcaption .credit { display: block; font-style: normal; font-size: .72rem; opacity: .75; margin-top: 2px; }
.article p { margin-bottom: 1.3em; color: #3a3733; font-size: 1.08rem; }
.article h2 { font-size: 1.8rem; margin-top: 1.6em; }
.back-link { display: inline-block; margin-top: 30px; color: var(--accent); font-size: .9rem; }

/* ---------- Lightbox actions (share / add to cart) ---------- */
.lb-actions { display: flex; gap: 10px; margin-top: 12px; }
.lb-action-btn { flex: 1; padding: 11px 14px; font-size: .76rem; }

/* ---------- Cart ---------- */
.cart-float {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s;
}
.cart-float:hover { transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--ink); color: #fff;
  min-width: 22px; height: 22px; border-radius: 11px;
  font-size: .72rem; font-family: var(--sans);
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.cart-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 56px; height: 56px; object-fit: cover; background: var(--bg-alt); border: 1px solid var(--line); }
.cart-row-info { flex: 1; }
.cart-row-info b { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; display: block; }
.cart-row-info span { color: var(--accent); font-size: .9rem; }
@media (max-width: 540px) { .cart-float { right: 16px; bottom: 80px; width: 52px; height: 52px; } }

/* ---------- Share menu ---------- */
.share-modal { position: fixed; inset: 0; z-index: 130; display: none; }
.share-modal.open { display: block; }
.share-overlay { position: absolute; inset: 0; background: rgba(30,28,25,.7); backdrop-filter: blur(3px); }
.share-box {
  position: relative; max-width: 380px; width: calc(100% - 36px);
  margin: 0 auto; top: 50%; transform: translateY(-50%);
  background: var(--white); padding: 28px 26px 32px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.share-title { font-size: 1.6rem; margin-bottom: 4px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; background: none; border: none; font-family: var(--sans); color: var(--muted); font-size: .76rem; }
.share-icon { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: transform .15s; }
.share-item:hover .share-icon { transform: scale(1.08); }
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-x { background: #000; }
.share-instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.share-email { background: #6f6a62; }
.share-copy { background: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 4px;
  font-size: .9rem; z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
@media (max-width: 540px) { .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; } }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav { gap: 16px; font-size: .82rem; }
  .brand-sub { display: none; }
  .about { grid-template-columns: 1fr; }
  .lightbox-content { grid-template-columns: 1fr; }
  .lightbox-image img { max-height: 50vh; }
}
@media (max-width: 540px) {
  .site-header { flex-direction: column; gap: 8px; padding: 14px 18px; }
}
