/* ============================================================
   demir.loans — LANDING PAGE STYLES (chunky retro)
   Shared by visa-home-loans.html (B2C) and partners.html (B2B).
   Square corners. Ink borders. Hard shadows. Snap motion.
   ============================================================ */

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

body {
  font-family: Figtree, Verdana, sans-serif;
  font-size: 16px;
  color: #16120F;
  background: #F3EDE3;
  background-image: radial-gradient(#DED4C4 1px, transparent 1px);
  background-size: 22px 22px;
}

a { color: #16120F; text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: #C56A4A; }
:focus-visible { outline: 3px solid #C56A4A; outline-offset: 2px; }
::selection { background: #E8C37E; color: #16120F; }

/* ===== header (matches legal-style.css) ===== */
header {
  background: #FAF7F2;
  border-bottom: 3px solid #16120F;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
  position: sticky; top: 0; z-index: 20;
}
header img { height: 26px; display: block; }
header nav { display: flex; gap: 4px; margin-left: auto; }
header nav a {
  text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 7px 14px; border: 2px solid transparent;
}
header nav a:hover, header nav a.on { border-color: #16120F; background: #F3EDE3; box-shadow: 3px 3px 0 #16120F; }
header .cta { background: #C56A4A; color: #FAF7F2; border: 2px solid #16120F !important; box-shadow: 3px 3px 0 #16120F; }

/* ===== layout ===== */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
section { padding: 60px 0; }
section + section { border-top: 3px solid #16120F; }
.band-cream { background: #FAF7F2; }
.band-mustard { background: #F6E3B8; }
.band-ink { background: #16120F; color: #FAF7F2; }
.band-ink h2, .band-ink h3 { color: #FAF7F2; }

/* ===== stickers + mono ===== */
.sticker {
  display: inline-block;
  background: #16120F; color: #FAF7F2;
  font-family: 'Courier New', monospace; font-weight: bold; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border: 2px solid #16120F;
}
.sticker.mustard { background: #D9A441; color: #16120F; }
.sticker.clay    { background: #C56A4A; color: #FAF7F2; }
.sticker.cream   { background: #FAF7F2; color: #16120F; }
.mono { font-family: 'Courier New', monospace; font-weight: bold; font-size: 13px; color: #8B3D22; letter-spacing: 0.04em; }
.band-ink .mono { color: #D9A441; }

/* ===== type ===== */
h1, h2, h3 { font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 62px); margin-top: 18px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); border-bottom: 3px double #16120F; padding-bottom: 8px; }
.band-ink h2 { border-bottom-color: #FAF7F2; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { line-height: 1.65; text-wrap: pretty; }
section p + p { margin-top: 14px; }
h2 + p, h2 + .grid, h2 + .steps, h2 + .compare, h2 + .faq, h2 + .quotes, h2 + .chips { margin-top: 22px; }
.lead { font-size: 19px; line-height: 1.6; margin-top: 18px; max-width: 44em; }

/* ===== buttons ===== */
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 900; font-size: 17px;
  padding: 15px 26px;
  border: 2px solid #16120F;
  box-shadow: 4px 4px 0 #16120F;
  background: #C56A4A; color: #FAF7F2;
  transition: transform 100ms steps(1, end), box-shadow 100ms steps(1, end), background 100ms steps(1, end);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #16120F; color: #FAF7F2; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #16120F; }
.btn.ink { background: #16120F; color: #FAF7F2; }
.btn.outline { background: #FAF7F2; color: #16120F; }
.btn.outline:hover { background: #F6E3B8; color: #16120F; }
.band-ink .btn { box-shadow: 4px 4px 0 #C56A4A; }
.band-ink .btn:hover { box-shadow: 6px 6px 0 #C56A4A; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.cta-note { margin-top: 16px; font-size: 15px; line-height: 1.6; max-width: 40em; }

/* ===== hero ===== */
.hero { padding: 64px 0 56px; }
.hero .wrap { max-width: 1100px; }

/* trust strip */
.trust {
  border-top: 3px solid #16120F; border-bottom: 3px solid #16120F;
  background: #FAF7F2;
  padding: 14px 0;
}
.trust .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
.trust span { font-family: 'Courier New', monospace; font-weight: bold; font-size: 13px; letter-spacing: 0.04em; }

/* ===== cards ===== */
.card {
  background: #FAF7F2; border: 3px solid #16120F; box-shadow: 6px 6px 0 #16120F;
  padding: 22px 24px;
}
.card p { margin-top: 10px; font-size: 15px; }
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid .card:nth-child(2) { background: #F6E3B8; }

/* quote cards (the "sound familiar" block) */
.quotes { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.quotes blockquote {
  margin: 0; background: #FAF7F2; border: 3px solid #16120F; box-shadow: 5px 5px 0 #16120F;
  padding: 20px 22px; font-size: 17px; font-weight: 700; line-height: 1.45;
}
.quotes cite { display: block; margin-top: 12px; font-style: normal; font-family: 'Courier New', monospace; font-size: 13px; font-weight: bold; color: #8B3D22; }

/* ===== numbered steps (the workflow) ===== */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps.three { grid-template-columns: repeat(3, 1fr); }
.steps .step {
  position: relative; background: #FAF7F2; border: 3px solid #16120F; box-shadow: 6px 6px 0 #16120F;
  padding: 30px 22px 22px;
}
.steps .step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -3px; left: -3px;
  background: #16120F; color: #FAF7F2;
  font-family: 'Courier New', monospace; font-weight: bold; font-size: 13px;
  padding: 4px 10px; border: 2px solid #16120F;
}
.steps .step h3 { margin-top: 6px; }
.steps .step p { margin-top: 10px; font-size: 15px; }
.steps-out { margin-top: 22px; }

/* ===== comparison table ===== */
.compare { border: 3px solid #16120F; box-shadow: 6px 6px 0 #16120F; background: #FAF7F2; overflow-x: auto; }
.compare table { border-collapse: collapse; width: 100%; min-width: 720px; }
.compare th, .compare td { border: 2px solid #16120F; padding: 14px 16px; text-align: left; font-size: 15px; line-height: 1.5; vertical-align: top; }
.compare thead th { background: #16120F; color: #FAF7F2; font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.compare tbody th { background: #F6E3B8; font-weight: 900; width: 27%; }
.compare td.ours { background: #FAF7F2; font-weight: 700; }
.compare td.theirs { color: #5e5147; }

/* secondary line inside a row header, e.g. the visa table's "Employer sponsored" */
.compare tbody th .sub {
  display: block; margin-top: 4px;
  font-family: 'Courier New', monospace; font-weight: bold; font-size: 12px;
  letter-spacing: 0.04em; color: #8B3D22;
}
/* row hover, so the eye can track across a wide row */
.compare tbody tr:hover td { background: #F6E3B8; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #FAF7F2; border: 3px solid #16120F; box-shadow: 4px 4px 0 #16120F; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 20px;
  font-weight: 900; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Courier New', monospace; font-weight: bold; font-size: 20px; color: #8B3D22; }
.faq details[open] summary { background: #F6E3B8; border-bottom: 2px solid #16120F; }
.faq details[open] summary::after { content: "-"; }
.faq .answer { padding: 16px 20px; font-size: 15px; line-height: 1.65; }
.faq .answer p + p { margin-top: 12px; }

/* ===== booking ===== */
.booking { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: start; }
.calendar-slot {
  background: #FAF7F2; border: 3px solid #16120F; box-shadow: 6px 6px 0 #16120F;
  padding: 0; min-height: 620px;
}
.calendar-slot iframe { display: block; width: 100%; height: 620px; border: 0; }
/* empty state, shown until the Google Calendar iframe is pasted in */
.calendar-slot.slot-empty {
  border: 3px dashed #C56A4A;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 14px; padding: 34px; text-align: center;
}
.calendar-slot.slot-empty p { font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; color: #8B3D22; max-width: 34em; }
.tbp {
  font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; color: #8B3D22;
  background: #FAF7F2; border: 2px dashed #C56A4A; box-shadow: 4px 4px 0 #16120F;
  padding: 14px 16px; margin-top: 18px;
}
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  background: #FAF7F2; border: 3px solid #16120F; box-shadow: 4px 4px 0 #16120F;
  padding: 12px 16px; font-size: 15px; line-height: 1.55;
}
.band-ink .checklist li { background: #FAF7F2; color: #16120F; box-shadow: 4px 4px 0 #C56A4A; }

/* ===== disclaimer ===== */
.disclaimer { font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.7; margin-top: 26px; max-width: 70em; }

/* ===== footer ===== */
footer { background: #FAF7F2; border-top: 3px solid #16120F; padding: 34px 0 30px; }
footer .fine { font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.7; text-align: center; }
/* .site-map lives in the shared site-footer.css, linked by every page */

/* ===== mobile ===== */
@media (max-width: 900px) {
  .grid, .grid.two, .quotes, .steps, .steps.three, .booking { grid-template-columns: 1fr; }
  .compare table { min-width: 560px; }
}
@media (max-width: 640px) {
  header { position: static; flex-wrap: wrap; gap: 10px 14px; padding: 12px 16px; }
  header img { height: 22px; }
  header nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 2px; }
  header nav a { padding: 6px 10px; font-size: 13px; }
  .wrap { padding: 0 18px; }
  section { padding: 44px 0; }
  .hero { padding: 40px 0 36px; }
  .lead { font-size: 17px; }
  .btn { display: block; text-align: center; font-size: 16px; }
  .compare th, .compare td { padding: 11px 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .chip { transition: none; }
  .btn:hover, .chip:hover { transform: none; }
}
