/* Card Kollect LLC — main stylesheet
   Palette from the logo and the original theme: navy #202073 / #2A417C on white,
   periwinkle #5656B5 and cream #FFF8E1 as accents. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mulish-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mulish-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mulish";
  src: url("assets/fonts/mulish-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* REPLACEABLE IMAGES */
  /* (none: every picture is an <img> in the HTML so it can be swapped by replacing one file) */

  /* Brand colours */
  --navy: #202073;          /* theme navy: headings, bands */
  --navy-logo: #2A417C;     /* logo line colour */
  --navy-deep: #16165A;     /* darker step for the footer */
  --navy-ink: #1B1B4F;      /* body text on white */
  --peri: #5656B5;          /* CTA periwinkle */
  --peri-dark: #45459C;     /* hover step */
  --peri-light: #9C9CE8;    /* CTA on navy grounds */
  --peri-pale: #E2E2F6;     /* hover on navy grounds */
  --cream: #FFF8E1;         /* accent ground */
  --white: #FFFFFF;
  --mist: #F4F4FB;          /* light navy tint for alternate sections */
  --line: #D5D5EA;
  --muted: #4A4A72;

  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 6.5rem);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--navy-ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--peri); text-underline-offset: 3px; }
a:hover { color: var(--peri-dark); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .section-navy :focus-visible { outline-color: var(--peri-light); }
.on-navy .form-card :focus-visible, .credit-card :focus-visible { outline-color: var(--peri); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons: one CTA style across the site ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 52px; padding: 0.8rem 1.5rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border-radius: 12px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .18s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--peri); color: var(--white); }
.btn-primary:hover { background: var(--peri-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.on-navy .btn-primary { background: var(--peri-light); color: var(--navy); }
.on-navy .btn-primary:hover { background: var(--peri-pale); color: var(--navy); }
.on-navy .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.75); }
.on-navy .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: block; flex: none; }
/* the logo file has generous white margins: pull them in without cropping the image */
.brand img { width: 176px; height: auto; margin-left: -22px; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-call { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.95rem; }
.header-call .long { display: none; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 700; font-size: 0.98rem;
  padding: 0.4rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--peri); color: var(--navy); }

/* Mobile header: without JS the nav simply wraps below the logo row */
@media (max-width: 919px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; padding: 0 0 0.75rem; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; padding: 0.25rem 0 1rem; }
  .js .site-nav.is-open ul { flex-direction: column; gap: 0; }
  .js .site-nav.is-open a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 400px) {
  .brand img { width: 160px; margin-left: -20px; }
}
@media (min-width: 920px) {
  :root { --header-h: 90px; }
  .header-inner { gap: 2rem; }
  .brand img { width: 222px; margin-left: -28px; }
  .site-nav { margin-left: auto; }
  .header-call .long { display: inline; }
  .header-call .short { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding: clamp(1.5rem, 4vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero-arches {
  position: absolute; right: -60px; bottom: -40px; width: 520px; max-width: 80vw;
  color: var(--peri-light); opacity: .16; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 1.75rem; align-items: center; }
.hero-photo { order: -1; }
.hero-photo figure { margin: 0; }
.photo-frame {
  background: var(--white); padding: 8px; border-radius: 20px;
  box-shadow: 0 18px 50px rgba(5, 5, 40, .35);
}
.photo-frame img { border-radius: 13px; width: 100%; }
.welcome {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 500;
  color: var(--peri-pale); margin: 0 0 0.6rem; letter-spacing: 0.01em;
}
.hero h1 { color: var(--white); margin-bottom: 0.5em; }
.hero .lead { font-size: 1.1rem; color: #E6E6F7; max-width: 36em; margin-bottom: 1.5rem; }
.promises {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  font-weight: 700; font-size: 0.95rem; color: var(--white);
}
.promises li { display: inline-flex; align-items: center; gap: 0.45rem; }
.promises svg { width: 18px; height: 18px; color: var(--peri-light); flex: none; }

@media (max-width: 599px) {
  .hero .lead { font-size: 1.02rem; }
  .hero-photo .photo-frame { padding: 6px; border-radius: 16px; }
  .hero-photo .photo-frame img { border-radius: 11px; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .hero-photo { order: 0; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-mist { background: var(--mist); }
.section-navy { background: var(--navy); color: #E6E6F7; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-navy .section-head p { color: #D9D9F2; }

/* What we do */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features { counter-reset: feature; }
.feature { background: var(--white); padding: 1.75rem 1.5rem 1.6rem; counter-increment: feature; }
/* numbered with a counter so rows added in the owner panel number themselves */
.feature::before {
  content: counter(feature);
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy-logo);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--navy-logo);
  margin-bottom: 1rem;
}
.feature p { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }

.games {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
}
.games-label { font-weight: 800; color: var(--navy); margin: 0; }
.games ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.games li {
  padding: 0.45rem 1rem; border-radius: 999px; background: var(--mist); border: 1px solid var(--line);
  font-weight: 700; color: var(--navy); font-size: 0.97rem;
}

/* Selling & trading */
.sell-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; }
.step {
  position: relative; counter-increment: step;
  background: rgba(255,255,255,.06); border: 1px solid rgba(156,156,232,.4); border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.3rem 4.4rem;
}
.step::before {
  content: counter(step);
  position: absolute; left: 1.2rem; top: 1.2rem;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--peri-light); color: var(--navy);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.08rem; margin: 0 0 .3rem; }
.step p { margin: 0; color: #D9D9F2; }
.step a { color: var(--white); font-weight: 700; }
.credit-card {
  background: var(--cream); color: var(--navy-ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.credit-card h3 { color: var(--navy); font-size: clamp(1.45rem, 2.6vw, 1.8rem); font-weight: 500; }
.credit-card p { color: var(--navy-ink); }
.credit-card .btn-row { margin-top: 1.25rem; }
.sell-aside { display: grid; gap: 1.25rem; }
.guarantee {
  display: flex; gap: 0.9rem; align-items: flex-start;
  border: 1px solid rgba(156,156,232,.4); border-radius: var(--radius); padding: 1.25rem 1.35rem;
}
.guarantee svg { width: 30px; height: 30px; color: var(--peri-light); flex: none; margin-top: 2px; }
.guarantee p { margin: 0; color: #D9D9F2; }
.guarantee strong { color: var(--white); }
@media (min-width: 900px) { .sell-grid { grid-template-columns: 1.15fr 1fr; } }

/* About */
.about-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-photo { margin: 0; }
.about-photo .photo-frame { box-shadow: 0 14px 40px rgba(32, 32, 115, .16); border: 1px solid var(--line); }
.about-text p { font-size: 1.08rem; }
.about-text .quote-line {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.6rem); color: var(--navy);
  border-left: 3px solid var(--peri); padding-left: 1rem; margin: 1.5rem 0;
  line-height: 1.3;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq-wrap { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.faq-list { display: grid; gap: 0.75rem; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 1.15rem 3.5rem 1.15rem 1.35rem; position: relative;
  font-weight: 800; color: var(--navy); font-size: 1.06rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--peri); border-bottom: 2px solid var(--peri);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary:hover { color: var(--peri-dark); }
.faq-item p { margin: 0; padding: 0 1.35rem 1.3rem; color: var(--muted); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 0.8fr 1.2fr; } }

/* Contact */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--peri-light); flex: none; margin-top: 3px; }
.contact-list .label { display: block; font-size: 0.85rem; font-weight: 800; color: var(--peri-light); letter-spacing: 0.04em; text-transform: uppercase; }
.contact-list a, .contact-list .value { color: var(--white); font-weight: 700; font-size: 1.08rem; text-decoration: none; word-break: break-word; }
.contact-list a:hover { text-decoration: underline; color: var(--white); }
.contact-list .small-link { font-size: 0.95rem; font-weight: 700; color: var(--peri-light); text-decoration: underline; }
.call-note {
  background: rgba(255,255,255,.07); border-radius: var(--radius); padding: 1rem 1.2rem; color: #E6E6F7;
  border: 1px solid rgba(156,156,232,.4);
}
.call-note p { margin: 0; }

.form-card {
  background: var(--white); color: var(--navy-ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: 0 18px 50px rgba(5, 5, 40, .3);
}
.form-card h3 { color: var(--navy); font-size: 1.55rem; font-weight: 500; margin-bottom: .3rem; }
.form-card .form-intro { color: var(--muted); margin-bottom: 1.25rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.97rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--navy-ink);
  padding: 0.75rem 0.9rem; border: 1.5px solid #B9B9D8; border-radius: var(--radius-sm); background: var(--white);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--peri); box-shadow: 0 0 0 3px rgba(86,86,181,.25); }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0.25rem 0 1rem; min-height: 65px; }
.form-card .btn { width: 100%; }
.on-navy .form-card .btn-primary { background: var(--peri); color: var(--white); }
.on-navy .form-card .btn-primary:hover { background: var(--peri-dark); color: var(--white); }
.form-status { margin: 1rem 0 0; padding: 0.9rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E7F4EC; color: #1D5B33; }
.form-status.err { background: #FBEAEA; color: #8A1F1F; }
.form-status.err a { color: #8A1F1F; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4rem) 0 2rem; color: var(--muted); font-size: 0.97rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 250px; margin: -17px 0 -26px -32px; }
.footer-brand p { margin-top: 0.75rem; max-width: 22rem; }
.site-footer h2 { font-family: var(--font-body); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: var(--navy); font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--peri); text-decoration: underline; }
.site-footer address { font-style: normal; }
.footer-fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.85rem; display: grid; gap: 0.35rem; }
.footer-fine p { margin: 0; }
.footer-fine a { font-weight: 400; color: var(--muted); text-decoration: underline; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { padding: clamp(4rem, 10vw, 7rem) 0; }
.notfound .lead { font-size: 1.1rem; color: #E6E6F7; max-width: 34em; }
.notfound ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.notfound ul a { color: var(--white); font-weight: 700; }
