/* Cardenas Auctions showcase site */

:root {
  --ink: #1c1b1a;
  --ink-soft: #5d5a55;
  --paper: #ffffff;
  --cream: #f7f5f1;
  --line: #e3e0da;
  --gold: #a4813c;
  --gold-dark: #8a6b2f;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.wordmark {
  text-align: left;
}

.wordmark .mark {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.2em;
}

.wordmark .sub {
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

nav a:hover {
  color: var(--gold-dark);
}

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--gold-dark);
  color: #fff;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #fff;
  color: var(--ink);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

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

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.btn-outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

nav .btn {
  padding: 10px 20px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: var(--ink) url("images/hero.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 27, 26, 0.66), rgba(28, 27, 26, 0.56), rgba(28, 27, 26, 0.78));
}

.hero-content h1,
.hero-content p {
  text-shadow: 0 2px 18px rgba(20, 19, 18, 0.45);
}

.hero-content {
  position: relative;
  padding: 90px 24px;
  max-width: 860px;
}

.hero .label {
  color: var(--gold);
  letter-spacing: 0.4em;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.15;
  margin-top: 18px;
}

.hero p {
  margin: 20px auto 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.hero-buttons {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Stats strip ---------- */

.stats {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.stats-inner {
  display: flex;
  justify-content: center;
  gap: clamp(30px, 8vw, 110px);
  padding: 44px 24px;
  flex-wrap: wrap;
  text-align: center;
}

.stat .num {
  font-family: var(--serif);
  font-size: 34px;
}

.stat .cap {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head .label {
  color: var(--ink-soft);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  margin-top: 10px;
}

.lede {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

.lede + .lede {
  margin-top: 16px;
}

/* ---------- Highlights ---------- */

.highlights {
  background: var(--cream);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.card .frame {
  background: #fff;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px;
}

.card .frame img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.card:hover .frame img {
  transform: scale(1.04);
}

.card .cap {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.card .meta {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 3px;
}

/* ---------- Bid band / Consign band ---------- */

.band {
  position: relative;
  color: #fff;
  text-align: center;
  background: var(--ink) center / cover no-repeat;
}

.band.consign-band {
  background-image: url("images/consign.jpg");
}

.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 27, 26, 0.78);
}

.band-content {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 90px 24px;
}

.band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
}

.band p {
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  max-width: 540px;
}

.band .btn {
  margin-top: 34px;
}

.band .alt-contact {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.band .alt-contact a {
  color: var(--gold);
}

.band .alt-contact a:hover {
  text-decoration: underline;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step .n {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold-dark);
}

.step h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin-top: 16px;
}

.step p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */

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

.contact-card {
  border: 1px solid var(--line);
  padding: 32px;
}

.contact-card h3 {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-card p,
.contact-card address {
  margin-top: 14px;
  font-style: normal;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.contact-card a {
  color: var(--gold-dark);
}

.contact-card a:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
}

.footer-links {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-main {
  text-align: center;
  padding: 44px 24px 18px;
}

.footer-main .mark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.2em;
  color: #fff;
}

.footer-main .sub {
  font-size: 9px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
}

.footer-main address {
  font-style: normal;
  font-size: 13.5px;
  line-height: 1.9;
  margin-top: 20px;
}

.footer-main a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  padding: 16px 24px 30px;
}

/* ---------- Terms page ---------- */

.terms-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px;
}

.terms-body h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  text-align: center;
}

.terms-body h2 {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 38px;
}

.terms-body p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- Multi-page nav ---------- */

nav a.active {
  color: var(--ink);
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--gold);
}

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 62px 24px 58px;
}

.page-hero .label {
  color: var(--gold-dark);
  letter-spacing: 0.35em;
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 46px);
  margin-top: 12px;
}

.page-hero p {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Buttons on light backgrounds ---------- */

.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline-dark:hover {
  border-color: var(--gold-dark);
  color: var(--gold-dark);
}

.btn-ext::after {
  content: " \2197";
  font-size: 12px;
}

/* ---------- Auction calendar card (Buy page) ---------- */

.auction-card {
  border: 1px solid var(--line);
  background: #fff;
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 36px;
  text-align: center;
}

.auction-card .label {
  color: var(--gold-dark);
}

.auction-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 36px);
  margin-top: 14px;
}

.auction-card .when {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.auction-card .note {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.auction-card .buttons {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.auction-card .last-sale {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Catalog gallery (Buy page) ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery-grid .frame {
  background: #fff;
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

.gallery-grid .frame img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.gallery-grid .frame:hover img {
  transform: scale(1.04);
}

/* ---------- Trust strip ---------- */

.trust {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-inner {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 6vw, 80px);
  padding: 40px 24px;
  flex-wrap: wrap;
  text-align: center;
}

.trust .num {
  font-family: var(--serif);
  font-size: 26px;
}

.trust .cap {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- What we sell (Sell page) ---------- */

.categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.category {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 0 22px;
  font-size: 14px;
  text-align: center;
}

.category .frame {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px 20px 8px;
}

.category .frame img {
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.category:hover .frame img {
  transform: scale(1.03);
}

.category strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  margin-top: 10px;
}

.category span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---------- Split section (text + image) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.split .lede {
  text-align: left;
  margin: 0;
  max-width: none;
}

.split .lede + .lede {
  margin-top: 16px;
}

.split .frame {
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split .frame img {
  max-height: 520px;
  object-fit: contain;
}

/* ---------- Notable results ---------- */

.names {
  text-align: center;
  max-width: 820px;
  margin: 34px auto 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2.1;
  color: var(--ink-soft);
}

.names .sep {
  color: var(--gold);
  padding: 0 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split .lede {
    text-align: center;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }
  nav {
    justify-content: center;
    gap: 18px;
  }
  section {
    padding: 60px 0;
  }
  .categories {
    grid-template-columns: 1fr;
  }
  nav a.active::after {
    bottom: -3px;
  }
}
