/* Yelize shared styles. Sections are written so each can be pasted into Odoo as a custom block. */
:root {
  --frame: #065131;
  --gold: #dcad5d;
  --gold-soft: #ecd09a;
  --emerald: #03301d;
  --emerald-2: #065131;
  --ivory: #f3e7c4;
  --cream: #fbf6ea;
  --maroon: #6d1526;
  --maroon-deep: #5f0d20;
  --wa: #25d366;
  --wa-ink: #04310f;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; background: var(--cream); color: #2a2320; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-wa { background: var(--wa); color: var(--wa-ink); font-weight: 600; }
.btn-gold { background: var(--gold); color: #1a1408; }
.btn-ghost { border-color: var(--gold); color: var(--gold-soft); background: transparent; }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Top bar */
.topbar { --logo: var(--gold); background: var(--frame); color: var(--gold-soft); border-bottom: 1px solid #dcad5d55; position: sticky; top: 0; z-index: 40; }
.topbar.light { --logo: var(--frame); background: #fbf6eaf2; color: var(--frame); backdrop-filter: blur(8px); border-bottom-color: #dcad5d88; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .emblem { width: 36px; margin: 0; background: var(--logo); }
.brand .wordmark { background: var(--logo); }
.wordmark { display: block; width: 132px; aspect-ratio: 186.8 / 34.05; background: var(--gold); -webkit-mask: url("img/yelize-wordmark.svg") center / contain no-repeat; mask: url("img/yelize-wordmark.svg") center / contain no-repeat; text-indent: -9999px; overflow: hidden; flex: none; }
.topbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 22px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.topbar nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; opacity: .85; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { opacity: 1; color: var(--gold); }
.topbar.light nav a:hover, .topbar.light nav a[aria-current="page"] { color: #a67c2e; }

/* Home: two doors, framed on cream */
.home-hero { padding: 44px 0 56px; text-align: center; }
.home-hero .eyebrow { color: #a67c2e; }
.home-hero h1 { font-size: clamp(34px, 4.4vw, 54px); color: var(--frame); margin: 10px 0 34px; }
.home-hero h1 .fashion-tone { color: var(--maroon-deep); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.door { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid #eadfc4; border-radius: 18px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.door:hover { transform: translateY(-4px); box-shadow: 0 18px 40px #3a2a1022; border-color: #dcad5d; }
.door-photo { overflow: hidden; height: clamp(280px, 50vh, 500px); background: #efe6d2; }
.door-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.door:hover .door-photo img { transform: scale(1.03); }
.door-fashion .door-photo img { object-position: center 14%; }
.door-body { padding: 26px 24px 30px; }
.door-body h2 { font-size: clamp(30px, 3.2vw, 40px); margin: 6px 0 8px; }
.door-body p { font-size: 16px; color: #4a403b; margin-bottom: 18px; }
.door-gems h2 { color: var(--frame); }
.door-gems .eyebrow { color: #a67c2e; }
.door-fashion h2 { color: var(--maroon-deep); }
.door-fashion .eyebrow { color: var(--maroon); }
.btn-green { background: var(--frame); color: var(--gold-soft); }

/* Promise strip */
.strip { background: #f3ead6; color: var(--frame); font-size: 13px; letter-spacing: .08em; border-top: 1px solid #e6d9b8; border-bottom: 1px solid #e6d9b8; }
.strip ul { list-style: none; margin: 0; padding: 14px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 34px; }
.strip li::before { content: "◆"; color: var(--gold); font-size: 9px; margin-right: 10px; vertical-align: 2px; }
.strip a { text-decoration: none; }

/* Home: about */
.about { padding: 72px 0; text-align: center; }
.about .eyebrow { color: #a67c2e; }
.about h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--frame); margin: 10px 0 16px; }
.about p { max-width: 620px; margin: 0 auto 26px; color: #4a403b; }

/* Gem page */
.gems { background: var(--emerald); color: var(--ivory); }
.gems section { padding: 76px 0; border-top: 1px solid #dcad5d22; }
.gems h2 { font-size: clamp(30px, 3.4vw, 44px); text-align: center; color: var(--gold-soft); margin: 10px 0 12px; }
.gems .lede { max-width: 580px; margin: 0 auto 40px; text-align: center; opacity: .82; }
.gems .center { text-align: center; }

.gem-hero { position: relative; isolation: isolate; border-top: 0 !important; padding: 0 !important; min-height: min(84vh, 720px); display: flex; align-items: center; background: var(--emerald) url("img/gem-hero.jpg") right center / cover no-repeat; }
.gem-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #03301df5 0%, #03301dcc 38%, #03301d22 70%); }
.gem-hero .wrap { width: 100%; }
.gem-hero .inner { max-width: 560px; padding: 72px 0; }
.gem-hero h1 { font-size: clamp(42px, 6vw, 72px); color: var(--ivory); margin: 14px 0 18px; }
.gem-hero p { font-size: 18px; opacity: .88; margin-bottom: 30px; max-width: 460px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--emerald-2); border: 1px solid #dcad5d44; border-radius: 14px; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.card h3 { font-size: 26px; color: var(--gold-soft); margin-bottom: 8px; }
.card p { font-size: 15px; opacity: .82; margin-bottom: 22px; flex: 1; }
.card .icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: 16px; }
.card .num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); margin-bottom: 10px; }

.piece { padding: 0; overflow: hidden; }
.piece .photo { width: 100%; aspect-ratio: 1; background-color: #04402a; background-repeat: no-repeat; }
.piece .body { padding: 20px 18px 24px; display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
.piece h3 { font-size: 23px; }
.piece p { margin-bottom: 12px; flex: 0; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 18px; flex: 1; align-content: flex-start; }
.tags span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid #dcad5d77; color: var(--gold-soft); border-radius: 999px; padding: 3px 10px; }
/* Temporary photos are Facebook posts; these crops hide the text printed on them. */
.ph-sapphire-rings { background-image: url("img/gem-sapphire-rings.jpg"); background-size: 193%; background-position: 52% 69%; }
.ph-sapphire-pendant { background-image: url("img/gem-sapphire-pendant.jpg"); background-size: 145%; background-position: 52% 59%; }
.ph-garnet-ring { background-image: url("img/gem-garnet-ring.jpg"); background-size: 200%; background-position: 50% 54%; }
.ph-opal-ring { background-image: url("img/gem-opal-ring.jpg"); background-size: 156%; background-position: 29% 55%; }

.trust { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust li { border: 1px solid #dcad5d55; border-radius: 999px; padding: 10px 20px; font-size: 14px; letter-spacing: .04em; }

.closing .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.closing h2 { text-align: left; }
.closing .lede { text-align: left; margin: 0 0 26px; }

/* Inquiry form */
.inquiry { background: var(--emerald-2); border: 1px solid #dcad5d44; border-radius: 14px; padding: 28px 24px; }
.inquiry h3 { font-size: 26px; color: var(--gold-soft); margin-bottom: 6px; }
.inquiry > p { font-size: 14px; opacity: .8; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; opacity: .85; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 8px; border: 1px solid #dcad5d66; background: #03301d; color: var(--ivory); font: inherit; font-size: 16px; }
.field textarea { min-height: 110px; resize: vertical; }
.field .err { color: #ffb4a8; font-size: 13px; margin-top: 4px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inquiry .btn { width: 100%; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; }
.form-status.bad { color: #ffb4a8; }
.form-status a { color: var(--wa); }
.thanks { text-align: center; padding: 26px 0 8px; }
.thanks .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #1a1408; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }

/* Light variant of the form, for the contact page */
.contact-page { padding: 64px 0 80px; }
.contact-page h1 { font-size: clamp(34px, 4vw, 48px); color: var(--maroon-deep); text-align: center; margin: 10px 0 12px; }
.contact-page .lede { text-align: center; max-width: 540px; margin: 0 auto 36px; color: #4a403b; }
.contact-page .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; margin: 0 auto; }
.contact-page .ways h2 { font-size: 26px; color: var(--maroon-deep); margin-bottom: 14px; }
.contact-page .ways p { margin-bottom: 18px; color: #4a403b; }
.contact-page .ways .btn { margin: 0 8px 10px 0; }
.inquiry.light { background: #fff; border-color: #e2d6b8; color: #2a2320; }
.inquiry.light h3 { color: var(--maroon-deep); }
.inquiry.light .field input, .inquiry.light .field select, .inquiry.light .field textarea { background: #fff; color: #2a2320; border-color: #cdbf9c; }
.inquiry.light .field .err, .inquiry.light .form-status.bad { color: #a3261a; }
.inquiry.light .form-status a { color: #0a7d36; }

/* Refinements */
[id] { scroll-margin-top: 84px; }
/* Diamond rule under section headings, echoing the diamond in the Yelize emblem */
.gems h2::after, .about h2::after, .steps-home h2::after { content: ""; display: block; width: 120px; height: 9px; margin: 18px auto 0; background:
  linear-gradient(var(--gold), var(--gold)) left center / 46px 1px no-repeat,
  linear-gradient(var(--gold), var(--gold)) right center / 46px 1px no-repeat,
  conic-gradient(from 45deg at 50% 50%, var(--gold) 0 100%) center / 7px 7px no-repeat; transform-origin: center; }
.gems h2::after, .about h2::after, .steps-home h2::after { clip-path: polygon(0 0, 44% 0, 50% -30%, 56% 0, 100% 0, 100% 100%, 56% 100%, 50% 130%, 44% 100%, 0 100%); }
.closing h2::after { margin-left: 0; }
.card { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); border-color: #dcad5d99; box-shadow: 0 14px 34px #0005; }
.piece .photo { transition: filter .3s ease; }
.piece:hover .photo { filter: brightness(1.08) saturate(1.08); }
.hero-points { list-style: none; margin: 30px 0 0; padding: 18px 0 0; border-top: 1px solid #dcad5d55; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); max-width: 520px; }
.hero-points li::before { content: "◆"; font-size: 8px; margin-right: 9px; vertical-align: 2px; color: var(--gold); }

/* Home: how ordering works */
.steps-home { background: #fff; padding: 72px 0; text-align: center; border-top: 1px solid #eadfc4; }
.steps-home h2 { font-size: clamp(30px, 3.4vw, 42px); color: var(--frame); margin: 10px 0 40px; }
.steps-home .eyebrow { color: #a67c2e; }
.steps-home ol { list-style: none; margin: 0 auto 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 900px; counter-reset: step; }
.steps-home li { counter-increment: step; }
.steps-home li::before { content: counter(step); display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--serif); font-size: 26px; color: var(--frame); }
.steps-home h3 { font-size: 24px; color: var(--frame); margin-bottom: 6px; }
.steps-home p { color: #4a403b; font-size: 15px; }
@media (max-width: 860px) { .steps-home ol { grid-template-columns: 1fr; } .closing h2::after { margin-left: auto; } }

/* Footer */
.footer { background: var(--frame); color: #e6dcc0; border-top: 1px solid #dcad5d55; padding: 44px 0 34px; text-align: center; font-size: 14px; }
.emblem { display: block; width: 62px; aspect-ratio: 69.23 / 56.55; margin: 0 auto 14px; background: var(--gold); -webkit-mask: url("img/yelize-emblem.svg") center / contain no-repeat; mask: url("img/yelize-emblem.svg") center / contain no-repeat; }
.footer .wordmark { width: 190px; margin: 0 auto 16px; }
.footer address { font-style: normal; opacity: .85; margin-top: 6px; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; margin: 14px 0 18px; }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--gold-soft); }
.footer small { opacity: .6; }

/* Floating WhatsApp button */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; box-shadow: 0 8px 26px #0007; }

/* Phones and small tablets */
@media (max-width: 860px) {
  .doors { grid-template-columns: 1fr; gap: 20px; }
  .door-photo { height: 300px; }
  .home-hero { padding: 28px 0 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .closing .cols, .contact-page .cols { grid-template-columns: 1fr; gap: 32px; }
  .closing h2, .closing .lede { text-align: center; }
  .closing .btn-row { justify-content: center; }
  .gems section { padding: 56px 0; }
  .gem-hero { background-position: 78% center; }
  .gem-hero::after { background: linear-gradient(180deg, #03301dd9 0%, #03301db3 55%, #03301df2 100%); }
  .topbar .wrap { flex-direction: column; padding-top: 10px; gap: 0; }
  .topbar nav { justify-content: center; gap: 0 18px; font-size: 11px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .fab span { display: none; }
  .fab { padding: 0; width: 56px; min-height: 56px; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
