/* ============================================================
   Chalkwell Auctions — Design System
   v3 · June 2026
   ============================================================ */

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

/* --- TOKENS ------------------------------------------------ */
:root {
  --cream:    #F5F0E8;
  --parchment:#EAE2D0;
  --ink:      #1A1714;
  --ink-60:   rgba(26,23,20,0.6);
  --ink-20:   rgba(26,23,20,0.12);
  --gold:     #B8912A;
  --gold-lt:  #E8D49A;
  --white:    #FDFAF5;
  --max-w:    1440px;
}

/* --- BASE -------------------------------------------------- */
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAV --------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--ink-20);
  height: 80px;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 58px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-60);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-bid {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 9px 22px !important;
  border-radius: 2px;
  letter-spacing: 0.1em !important;
  font-size: 11px !important;
  transition: background 0.2s !important;
}

.nav-bid:hover { background: var(--gold) !important; color: var(--white) !important; }

/* --- HERO (homepage) --------------------------------------- */
/*
  The outer .hero uses a 50/50 split gradient so the ink and
  cream background colours bleed to the viewport edges on wide
  screens, while the actual content stays capped at --max-w.
*/
.hero {
  min-height: 88vh;
  background: linear-gradient(to right, var(--ink) 50%, var(--cream) 50%);
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-left {
  background: var(--ink);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.5vw, 60px);
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
}

/* --- HERO WORD CYCLE ----------------------------------------
   All words occupy the same grid cell, so the browser sizes
   the cell to the widest word up front — nothing shifts or
   reflows as the visible word changes. Each word fades in,
   holds, and fades out in its own quarter of an 8s loop.
*/
.word-cycle {
  display: inline-grid;
  vertical-align: top;
}

.word-cycle .cycle-word {
  grid-area: 1 / 1;
  font-style: italic;
  color: var(--gold-lt);
  white-space: nowrap;
  opacity: 0;
  animation: wordFade 8s ease-in-out infinite;
}

.word-cycle .cycle-word:nth-child(1) { animation-delay: 0s; }
.word-cycle .cycle-word:nth-child(2) { animation-delay: 2s; }
.word-cycle .cycle-word:nth-child(3) { animation-delay: 4s; }
.word-cycle .cycle-word:nth-child(4) { animation-delay: 6s; }

@keyframes wordFade {
  0%, 100% { opacity: 0; }
  4%       { opacity: 1; }
  21%      { opacity: 1; }
  25%      { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .word-cycle .cycle-word {
    animation: none;
    opacity: 0;
  }
  .word-cycle .cycle-word:nth-child(1) { opacity: 1; }
}

.hero-body {
  color: rgba(253,250,245,0.62);
  font-size: 15px;
  max-width: 380px;
  line-height: 1.8;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.hero-right {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

/* --- PAGE HERO (inner pages) ------------------------------- */
/*
  Simpler single-column dark header used on Buying, Valuations,
  About etc. Full-bleed ink background, text centred.
*/
.page-hero {
  background: var(--ink);
  padding: 80px 48px 72px;
  text-align: center;
}

.page-hero .hero-eyebrow {
  animation: fadeUp 0.5s ease both 0.05s;
}

.page-hero .hero-title {
  font-size: clamp(34px, 4vw, 56px);
  animation: fadeUp 0.5s ease both 0.15s;
}

.page-hero .hero-body {
  max-width: 540px;
  margin: 0 auto;
  animation: fadeUp 0.5s ease both 0.25s;
}

/* --- BUTTONS ----------------------------------------------- */
.btn-primary {
  background: var(--gold);
  color: var(--white);
  padding: 14px 32px;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover { background: #9A7A22; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  padding: 13px 32px;
  border: 1px solid var(--ink-20);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover { border-color: var(--ink); background: var(--cream); }

.btn-ghost {
  color: rgba(253,250,245,0.65);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(253,250,245,0.25);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* --- AUCTION CARD ------------------------------------------ */
.next-auction-card {
  background: var(--white);
  border: 1px solid var(--ink-20);
  border-radius: 4px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(26,23,20,0.07);
}

.auction-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.auction-date {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.1;
}

.auction-meta {
  color: var(--ink-60);
  font-size: 13px;
  margin-bottom: 28px;
}

.auction-divider {
  border: none;
  border-top: 1px solid var(--ink-20);
  margin-bottom: 20px;
}

.lot-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink-20);
  font-size: 13px;
}

.lot-row:last-of-type { border-bottom: none; }
.lot-name { color: var(--ink); }
.lot-est  { color: var(--gold); font-weight: 500; font-size: 12px; }

.register-btn {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 14px;
  margin-top: 20px;
  border-radius: 2px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.register-btn:hover { background: var(--gold); }

/* --- STRIP ------------------------------------------------- */
.strip {
  background: var(--ink);
  padding: 28px 48px;
}

.strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 80px;
}

.strip-item { text-align: center; }

.strip-num {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--gold-lt);
  display: block;
  line-height: 1;
}

.strip-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(253,250,245,0.45);
  margin-top: 5px;
  display: block;
}

/* --- SECTION SCAFFOLDING ----------------------------------- */
.section-wrap {
  padding: 96px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-wrap--cream {
  background: var(--cream);
  max-width: none;
  padding: 96px 64px;
}

.section-wrap--cream .section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}

.section-header--center {
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.15;
  font-weight: 400;
}

.section-body {
  color: var(--ink-60);
  font-size: 15px;
  line-height: 1.8;
  align-self: end;
}

/* --- SERVICES (homepage) ----------------------------------- */
/* Re-used as .services on homepage */
.services {
  padding: 96px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink-20);
}

.service-card {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.25s;
}

.service-card:hover { background: var(--cream); }

.service-number {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  color: var(--ink-20);
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 400;
}

.service-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 400;
}

.service-body {
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.75;
}

.service-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--gold-lt);
  padding-bottom: 2px;
}

/* --- FEATURED LOTS ---------------------------------------- */
.featured {
  background: var(--cream);
  padding: 96px 64px;
}

.featured-inner { max-width: var(--max-w); margin: 0 auto; }

.lots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--parchment);
  margin-top: 56px;
}

.lot-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lot-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(26,23,20,0.1); }

.lot-img {
  height: 220px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--ink-20);
}

.lot-img svg { width: 56px; height: 56px; opacity: 0.18; }

.lot-info { padding: 24px 28px; }

.lot-category {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.lot-title {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 16px;
  font-weight: 400;
}

.lot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--ink-20);
  font-size: 12px;
}

.lot-estimate { color: var(--ink-60); }
.lot-estimate strong { color: var(--ink); font-weight: 500; }
.lot-date { color: var(--ink-60); font-size: 11px; }

/* --- INFO GRID (inner pages) ------------------------------ */
/* Two-column text+visual layout for inner page sections */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.info-grid--reverse { direction: rtl; }
.info-grid--reverse > * { direction: ltr; }

.info-grid__text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}

.info-grid__text h2 em { font-style: italic; color: var(--gold); }

.info-grid__text p {
  color: var(--ink-60);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.info-grid__text .btn-primary,
.info-grid__text .btn-secondary { margin-top: 12px; }

.info-grid__visual {
  background: var(--cream);
  border: 1px solid var(--ink-20);
  border-radius: 4px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

/* --- STEPS / PROCESS --------------------------------------- */
.steps {
  background: var(--parchment);
  padding: 80px 64px;
}

.steps-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ink-20);
  margin-top: 56px;
}

.step-card {
  background: var(--white);
  padding: 40px 32px;
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--ink-20);
  line-height: 1;
  margin-bottom: 20px;
  font-weight: 400;
}

.step-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 400;
}

.step-body {
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.75;
}

/* --- FAQ ACCORDION ---------------------------------------- */
.faq {
  padding: 80px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.faq-list { margin-top: 48px; }

.faq-item {
  border-top: 1px solid var(--ink-20);
  padding: 24px 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--ink-20); }

.faq-question {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}

.faq-question::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 20px;
  color: var(--gold);
  font-weight: 300;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 640px;
}

/* --- TEAM GRID -------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink-20);
  margin-top: 56px;
}

.team-card {
  background: var(--white);
  padding: 48px 40px;
  transition: background 0.25s;
}

.team-card:hover { background: var(--cream); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--parchment);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold);
}

.team-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 4px;
}

.team-role {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
}

.team-bio {
  color: var(--ink-60);
  font-size: 14px;
  line-height: 1.75;
}

/* --- BANNER (newsletter — hidden by default) -------------- */
.banner { display: none; }

/* --- CTA STRIP -------------------------------------------- */
.cta-strip {
  background: var(--ink);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px,
    transparent 0, transparent 50%);
  background-size: 20px 20px;
}

.cta-strip__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 46px);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 16px;
  position: relative;
}

.cta-strip__body {
  color: rgba(253,250,245,0.65);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
  position: relative;
}

.cta-strip__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* --- FOOTER ----------------------------------------------- */
footer {
  background: var(--ink);
  color: rgba(253,250,245,0.55);
  padding: 64px 64px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto 48px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer-tagline {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 240px;
  font-style: italic;
  color: rgba(253,250,245,0.45);
}

.footer-social { display: flex; gap: 10px; }

.social-link {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(253,250,245,0.15);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(253,250,245,0.4);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, color 0.2s;
}

.social-link:hover { border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: rgba(253,250,245,0.45);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }

.footer-contact-item {
  font-size: 13px;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
  color: rgba(253,250,245,0.45);
}

.footer-contact-item span:first-child { opacity: 0.5; }

.footer-bottom {
  border-top: 1px solid rgba(253,250,245,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 12px;
  color: rgba(253,250,245,0.3);
}

.footer-bottom a { color: rgba(253,250,245,0.3); text-decoration: none; }
.footer-bottom a:hover { color: rgba(253,250,245,0.6); }

/* --- ANIMATIONS ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow { animation: fadeUp 0.55s ease both 0.1s; }
.hero-title   { animation: fadeUp 0.55s ease both 0.2s; }
.hero-body    { animation: fadeUp 0.55s ease both 0.3s; }
.hero-actions { animation: fadeUp 0.55s ease both 0.4s; }

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 1024px) {
  .nav-inner { padding: 0 32px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero { background: var(--ink); }
  .hero-right { min-height: 400px; }
  .services, .featured, .section-wrap { padding: 64px 32px; }
  .info-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 32px; }
  .info-grid--reverse { direction: ltr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-left { padding: 56px 24px; }
  .hero-right { padding: 32px 24px; }
  .strip-inner { gap: 32px; flex-wrap: wrap; }
  .services-grid, .lots-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .section-header { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .info-grid { padding: 48px 24px; }
  .faq { padding: 48px 24px; }
}
