/* ============================================================
   Charles Rose — 2026 Engagement Ring Trends landing page
   Rebuilt 2026-08-05 to match charlesrose.com.au:
   black / white / warm cream, champagne buttons with BLACK
   labels (the accent is background-only — see client.config
   notes), Ovo headings (single 400 weight), Mulish body.
   ============================================================ */

/* --------------------------------------------------
   TOKENS — new-client.mjs re-applies client.config.json
   colors into this block by variable name. Keep names.
-------------------------------------------------- */
:root {
  --brand-primary:      #000000;   /* main CTA / accent colour */
  --brand-primary-dark: #2b2b2b;   /* hover state of primary */
  --brand-accent:       #fff2ae;   /* champagne — BACKGROUND ONLY, black text on it */
  --brand-cream:        #fdf8f1;   /* warm section background */
  --brand-border:       #e2e2e2;
  --gradient-brand:     linear-gradient(135deg, #000000 0%, #2b2b2b 100%);

  --text:       #000000;
  --text-meta:  #717171;
  --white:      #ffffff;

  --font-heading: 'Ovo', 'Times New Roman', serif;
  --font-body:    'Mulish', 'Helvetica Neue', Arial, sans-serif;

  --radius-btn: 2px;
  --radius-card: 3px;
  --shadow-card: 0 10px 40px rgba(0, 0, 0, .12);
  --nav-h: 108px;                  /* top bar + nav, for scroll offsets */
  --container: 1180px;
}

/* --------------------------------------------------
   RESET / BASE
-------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;              /* Ovo ships one weight; do not fake-bold it */
  line-height: 1.15;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------
   BUTTONS — matching the main site: champagne
   background + BLACK label for the primary action.
   Never use the champagne as text on a light ground.
-------------------------------------------------- */
.btn-primary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-btn);
  padding: 15px 30px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--brand-accent);
  color: #000;
  border: 1px solid var(--brand-accent);
}
.btn-primary:hover { background: #f7e88f; border-color: #f7e88f; }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid currentColor;
}
.btn-outline:hover { background: rgba(0, 0, 0, .05); }

/* --------------------------------------------------
   NAVIGATION
-------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand-primary);
  color: var(--white);
}

.nav-top-bar {
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .85);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* The only logo artwork the client publishes is black-on-transparent;
   their own theme shows it white on the black header the same way. */
.nav-logo img { filter: invert(1); width: 280px; height: auto; }

.nav-actions { display: flex; align-items: center; gap: 22px; }

.nav-phone {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.nav-phone:hover { text-decoration: underline; }

.btn-nav { padding: 11px 22px; font-size: .8rem; white-space: nowrap; }

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
  position: relative;
  background: #0c0b09;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center right / cover no-repeat;
  opacity: .92;
}
/* Left-side scrim so the copy never fights the photo. */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(5, 4, 3, .93) 0%, rgba(5, 4, 3, .82) 38%, rgba(5, 4, 3, .28) 72%, rgba(5, 4, 3, .15) 100%);
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 84px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brand-accent);   /* champagne on near-black: ~16:1 — dark grounds only */
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  max-width: 46ch;
  margin-bottom: 24px;
}

.hero-points {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.hero-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .92);
}
.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 1px;
  background: var(--brand-accent);
}

/* The scroll-to-form CTA exists for phones; on desktop the form is beside the copy. */
.hero-mobile-cta { display: none; margin-top: 18px; }

/* ----- Hero form card ----- */
.hero-form-col { position: relative; }

.hero-form-wrap {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 30px 28px 26px;
  scroll-margin-top: var(--nav-h);  /* CTAs land on the form, clear of the sticky nav */
}

.hero-form-title {
  font-family: var(--font-heading);
  font-size: 2.05rem;
  line-height: 1.15;
  margin: 0 0 4px;
}

/* Marker highlight: the champagne is BACKGROUND-ONLY (black text on it is
   ~17:1; as text on white it would vanish) — this is the compliant way to
   use the brand accent on a light card. */
.hl-marker {
  background: linear-gradient(transparent 58%, var(--brand-accent) 58%, var(--brand-accent) 94%, transparent 94%);
  padding: 0 2px;
}

.hero-form-sub {
  font-size: .85rem;
  color: var(--text-meta);
  margin: 0 0 18px;
}

/* --------------------------------------------------
   FORM — class names are a CONTRACT with
   modules/lead-form.js: .qf-trap, .qf-fields, .field,
   .field-row, .form-msg, .btn-label, .btn-spinner.
   Restyle freely; never rename.
-------------------------------------------------- */

/* Honeypot. Off-canvas rather than display:none, because some bots skip
   fields they can tell are hidden. Never focusable, never announced. */
.qf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-btn);
  padding: 11px 12px;
  transition: border-color .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: #d64545; }

/* Locked while sending, so a slow connection cannot produce two submissions. */
.qf-fields.is-sending {
  opacity: .6;
  pointer-events: none;
}

/* Mailing-list opt-in: two pill radios, "yes" preselected to match the
   client's long-standing Unbounce form (they hand-enter the yeses). */
.field-optin .optin-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.optin-choices { display: flex; gap: 10px; }

.optin-pill input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.optin-pill span {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-btn);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.optin-pill input:checked + span {
  border-color: var(--brand-primary);
  background: var(--brand-cream);
  font-weight: 700;
}

.optin-pill input:focus-visible + span {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
}

.form-submit-btn {
  width: 100%;
  margin-top: 6px;
  padding: 16px 24px;
  font-size: .95rem;
}

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0, 0, 0, .25);   /* black spinner: the button is champagne */
  border-top-color: #000;
  border-radius: 50%;
  animation: qf-spin .8s linear infinite;
}

.is-sending .btn-label { display: none; }
.is-sending .btn-spinner { display: block; }
@keyframes qf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation-duration: 1.6s; }
  html { scroll-behavior: auto; }
}

.form-privacy {
  font-size: .76rem;
  color: var(--text-meta);
  margin: 12px 0 0;
  line-height: 1.5;
}
.form-privacy a { color: inherit; }

/* Post-success enrichment pane (lead-form.js data-enrich): the consultation
   ask, revealed only after the report request is already captured. The entry
   animation runs when the module removes [hidden] — display flipping from
   none restarts it, so it plays exactly once per reveal and never on load. */
.qf-enrich {
  animation: enrich-in .45s ease both;
}

.qf-enrich[hidden] { display: none !important; animation: none; }

@keyframes enrich-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .qf-enrich { animation: none; }
}

.qf-enrich.is-sending {
  opacity: .6;
  pointer-events: none;
}

.enrich-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0 0 6px;
}

.enrich-sub {
  font-size: .9rem;
  color: var(--text-meta);
  line-height: 1.6;
  margin: 0 0 16px;
}

/* The skip is a full secondary button, deliberately as visible as the send:
   nobody should hunt for the way to their guide. */
.enrich-skip {
  display: block;
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 1px solid var(--text);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  padding: 14px 16px;
  transition: background .18s ease;
}
.enrich-skip:hover { background: rgba(0, 0, 0, .05); }

/* Status line: errors and, if the client ever moves to in-page success mode,
   the thank-you message. role=status aria-live=polite is set in the markup. */
.form-msg {
  display: none;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  font-size: .9rem;
}
.form-msg.is-ok  { display: block; background: #e7f6ec; color: #1e7a41; }
.form-msg.is-err { display: block; background: #fcf3f3; color: #b23b3b; }

/* --------------------------------------------------
   TRUST BAND
-------------------------------------------------- */
.trust-band {
  background: var(--brand-cream);
  border-bottom: 1px solid var(--brand-border);
}

.trust-items {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 22px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  flex: 1;
}

.trust-item svg { width: 28px; height: 28px; }

/* --------------------------------------------------
   SECTION SCAFFOLD
-------------------------------------------------- */
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.section-eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-meta);
  margin-bottom: 12px;
}

.section-heading h2,
.craft-content h2,
.heritage-content h2,
.final-cta-content h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.section-sub { color: var(--text-meta); font-size: 1.02rem; }

.section-cta { text-align: center; margin-top: 48px; }

/* --------------------------------------------------
   TRENDS GRID
-------------------------------------------------- */
.trends { padding: 88px 0; background: var(--white); }

.trend-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.trend-card {
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}

.trend-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.trend-card-wide .trend-card-img { height: 100%; }
.trend-card-wide .trend-card-body { align-self: center; }

.trend-card-img { aspect-ratio: 3 / 2; overflow: hidden; }
.trend-card-wide .trend-card-img { aspect-ratio: auto; }
.trend-card-img img { width: 100%; height: 100%; object-fit: cover; }

.trend-card-body { padding: 24px 26px 26px; }

.trend-num {
  display: block;
  font-family: var(--font-heading);
  font-size: .95rem;
  letter-spacing: .2em;
  color: var(--text-meta);
  margin-bottom: 8px;
}

.trend-card h3 { font-size: 1.45rem; margin-bottom: 8px; }
.trend-card p { margin: 0; color: var(--text-meta); }

/* --------------------------------------------------
   CRAFT (cream) + HERITAGE (white) split sections
-------------------------------------------------- */
.craft { background: var(--brand-cream); padding: 88px 0; }

.craft-inner,
.heritage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.craft-img img,
.heritage-img img {
  border-radius: var(--radius-card);
  width: 100%;
  height: auto;
}

.heritage { background: var(--white); padding: 88px 0; }

/* --------------------------------------------------
   SHOWROOMS (dark)
-------------------------------------------------- */
.showrooms {
  background: var(--brand-primary);
  color: var(--white);
  padding: 88px 0;
}

.showrooms .section-eyebrow { color: var(--brand-accent); }
.showrooms .section-sub { color: rgba(255, 255, 255, .78); }

.showroom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto;
}

.showroom-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.showroom-card > img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }

.showroom-card-body { padding: 26px 28px 30px; text-align: center; }

.showroom-card h3 { font-size: 1.6rem; margin-bottom: 4px; }
.showroom-card-body p { color: rgba(255, 255, 255, .72); font-size: .95rem; margin-bottom: 14px; }

.showroom-addr { min-height: 0; }

/* Static Google rating: inline four-colour G, no third-party request. The
   figures are claims — provenance and refresh rule live in client.config
   notes, never on the page. */
.showroom-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 16px;
  font-size: .88rem;
}

.showroom-rating svg { width: 17px; height: 17px; flex: none; }
.rating-val { font-weight: 700; color: var(--white); }
.rating-stars { color: #fbbc04; letter-spacing: .08em; font-size: .82rem; }
.rating-count { color: rgba(255, 255, 255, .72); }

.showroom-phone {
  display: block;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  margin-bottom: 18px;
}
.showroom-phone:hover { text-decoration: underline; }

.showroom-card .btn-outline { color: var(--white); }
.showroom-card .btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* --------------------------------------------------
   FINAL CTA
-------------------------------------------------- */
.final-cta { background: var(--brand-cream); }

.final-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.final-cta-img { align-self: stretch; }
.final-cta-img img { width: 100%; height: 100%; object-fit: cover; }

.final-cta-content { padding: 72px 0; }
.final-cta-content p { color: var(--text-meta); max-width: 44ch; margin-bottom: 26px; }

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
.site-footer {
  background: var(--brand-primary);
  color: var(--white);
}

.footer-inner {
  padding: 56px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-logo { filter: invert(1); width: 260px; height: auto; }

.footer-tagline { color: rgba(255, 255, 255, .72); max-width: 52ch; margin: 0; }

.footer-contact a,
.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}
.footer-contact a:hover,
.footer-links a:hover { text-decoration: underline; }

.footer-links a { color: rgba(255, 255, 255, .72); font-weight: 400; font-size: .9rem; }

.footer-sep { color: rgba(255, 255, 255, .4); margin: 0 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
  padding: 18px 16px;
  font-size: .8rem;
  color: rgba(255, 255, 255, .55);
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; }
  .hero-bg { background-position: 78% center; }
  .hero-bg::after {
    background: linear-gradient(180deg, rgba(5, 4, 3, .9) 0%, rgba(5, 4, 3, .78) 100%);
  }
  .hero-form-col { max-width: 460px; }

  .craft-inner,
  .heritage-inner,
  .final-cta-inner { grid-template-columns: 1fr; gap: 36px; }

  .heritage-img { order: -1; }   /* image above copy, matching the craft section */
  .final-cta-content { padding: 0 0 72px; }
  .final-cta-img { margin: 0 -24px; }   /* full-bleed on tablet/mobile */

  .trust-items { flex-wrap: wrap; }
  .trust-item { flex: 1 1 40%; }
}

@media (max-width: 767px) {
  .nav-top-bar { font-size: .62rem; letter-spacing: .16em; }
  .nav-inner { padding: 12px 16px; }
  .nav-logo img { width: 190px; }
  .nav-actions { gap: 12px; }
  .btn-nav { padding: 10px 14px; font-size: .72rem; letter-spacing: .08em; }
  .nav-phone { display: none; }   /* number stays in showrooms + footer; header stays uncrowded */

  :root { --nav-h: 92px; }

  .hero-inner { padding: 52px 20px 64px; }
  .hero-mobile-cta { display: inline-flex; }

  .trend-grid { grid-template-columns: 1fr; }
  .trend-card-wide { grid-template-columns: 1fr; }
  .trend-card-wide .trend-card-img { aspect-ratio: 3 / 2; }

  .showroom-grid { grid-template-columns: 1fr; }

  .trends, .craft, .heritage, .showrooms { padding: 64px 0; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
}
