/* Lanternvale Bank: fictional test website. Plain CSS, no frameworks, system fonts. */
:root {
  --brand: #9E3F24;
  --brand-dark: #7A2E19;
  --brand-tint: #F6E6DF;
  --gold: #D9A441;
  --ink: #1D2230;
  --ink-2: #2B3142;
  --muted: #5A6070;
  --sand: #F8F4EE;
  --line: #E7DED3;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 34, 48, .06), 0 8px 24px rgba(29, 34, 48, .06);
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font: 16px/1.6 system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.lang-ar { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", Arial, sans-serif; line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
.lang-ar h1, .lang-ar h2, .lang-ar h3 { letter-spacing: 0; line-height: 1.4; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 750; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 100; }

/* Fictional notice */
.notice { background: var(--ink); color: #F3EEE6; font-size: .84rem; padding: 8px 20px; display: flex; gap: 8px 32px; justify-content: center; flex-wrap: wrap; text-align: center; }
.notice p { margin: 0; }
.notice p[lang="ar"] { font-family: "Segoe UI", Tahoma, Arial, sans-serif; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.head-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 750; font-size: 1.15rem; white-space: nowrap; }
.logo-mark { width: 38px; height: 38px; flex: none; }
.main-nav { flex: 1; }
.main-nav > ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 24px 10px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.main-nav > ul > li > a:hover { color: var(--brand); }
.mega { display: none; position: absolute; top: 100%; inset-inline-start: -20px; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 20px 24px; gap: 28px; width: max-content; max-width: 90vw; }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: flex; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li a { display: block; padding: 4px 0; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.mega-col li a:hover { color: var(--brand); }
.mega-h { margin: 0 0 6px; font-weight: 700; }
.mega-h a { text-decoration: none; color: var(--brand); }
.head-tools { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.lang-switch { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.lang-switch:hover { border-color: var(--brand); }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-weight: 600; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px; min-width: 220px; }
.mnav li a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); }
.lang-tag { font-size: .75em; color: var(--muted); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0 0; margin: 0; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #B9AFA3; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs { padding-inline: 20px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--sand), var(--white)); padding: 32px 0 40px; }
.hero-slim { padding: 32px 0 16px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-media img { border-radius: 20px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 56ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.lang-ar .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 8px; }
.apply-note { font-size: .82rem; color: var(--muted); }
.validity { display: inline-block; background: var(--brand-tint); color: var(--brand-dark); border-radius: 8px; padding: 6px 12px; font-size: .92rem; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--white); text-decoration: none; padding: 12px 22px; border-radius: 10px; font-weight: 650; border: 2px solid var(--brand); }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--brand-tint); color: var(--brand-dark); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }

/* Promo strip */
.promo { margin-top: -8px; }
.promo p { background: var(--brand); color: var(--white); border-radius: var(--radius); padding: 14px 20px; font-weight: 650; margin: 0; }

/* Content */
.content { padding-bottom: 56px; }
.block { margin: 48px 0; }
.intro { font-size: 1.08rem; color: var(--ink-2); max-width: 70ch; margin-top: 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.prose { max-width: 75ch; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.benefit { background: var(--sand); border-radius: var(--radius); padding: 20px; border-top: 4px solid var(--brand); }
.benefit p { margin: 0; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-inline-start: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 14px; height: 8px; border-inline-start: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(-45deg); }
.lang-ar .ticks li::before { transform: rotate(45deg); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--white); font-weight: 700; margin-bottom: 8px; }
.terms { padding-inline-start: 1.2em; color: var(--ink-2); }
.terms li { margin-bottom: 6px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 8px; }
table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .95rem; }
table.narrow { min-width: 0; }
caption { text-align: start; font-weight: 700; padding: 12px 16px; background: var(--sand); border-bottom: 1px solid var(--line); }
th, td { text-align: start; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: #FBF8F4; font-size: .85rem; color: var(--muted); font-weight: 650; }
tbody th { font-weight: 600; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #FDFBF8; }
.table-note { font-size: .82rem; color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; position: relative; padding-inline-end: 32px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 10px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }
.faq-group { margin: 40px 0; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-body .meta { font-size: .82rem; margin-bottom: 6px; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 16px 0 24px; }
.mini-card { background: var(--sand); border-radius: var(--radius); padding: 18px; }
.mini-card p { margin: 0; color: var(--ink-2); }
.sub-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.sub-list ul { padding-inline-start: 1.1em; margin: 0; }

/* Cross-sell and bands */
.cross, .band { display: grid; grid-template-columns: 1fr 1.2fr; background: var(--ink); color: #EEE8DF; border-radius: 20px; overflow: hidden; margin: 56px 0; }
.cross-media img, .band-media img { height: 100%; object-fit: cover; aspect-ratio: auto; min-height: 240px; }
.cross-text, .band-text { padding: 32px 36px; align-self: center; }
.cross h2, .band h2 { color: var(--white); }
.cross .eyebrow { color: var(--gold); }
.band-islamic { background: #2A2A24; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.note { background: var(--brand-tint); border-radius: 10px; padding: 12px 16px; }
.tip { background: var(--sand); border-inline-start: 4px solid var(--gold); padding: 14px 18px; border-radius: 8px; margin: 20px 0; }
.tip p { margin: 0; }

/* Home */
.quick { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.quick-link { display: block; padding: 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; background: var(--white); }
.quick-link:hover { border-color: var(--brand); color: var(--brand); }
.rates-strip { background: var(--brand); color: var(--white); border-radius: 20px; padding: 28px 32px; margin: 40px 0; }
.rates-strip h2 { color: var(--white); }
.rates-strip a { color: var(--white); }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.rate { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 16px; }
.rate-v { font-size: 1.6rem; font-weight: 750; margin: 0; }
.rate-l { margin: 0; opacity: .9; font-size: .92rem; }
.biz-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; }
.biz-strip img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; background: var(--sand); border-radius: 20px; padding: 28px; }
.stat-v { font-size: 2rem; font-weight: 800; color: var(--brand); margin: 0; }
.stat-l { margin: 0; color: var(--muted); }
.stats-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); margin: 0; }

/* Offers (image heavy) */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; }
.mosaic img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; }
.offer-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.offer-tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile-strip { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 90px; gap: 3px; }
.tile-strip img { width: 100%; height: 100%; object-fit: cover; }
.tile-strip img:first-child { grid-row: span 2; }
.lead-sm { font-weight: 650; color: var(--ink) !important; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* Articles */
.article { padding-top: 24px; padding-bottom: 56px; }
.article-head { max-width: 780px; }
.article-img img { border-radius: 20px; aspect-ratio: 21 / 9; object-fit: cover; }
.article-img { margin: 24px 0 32px; }
.meta { color: var(--muted); font-size: .9rem; }
.article .prose h2 { margin-top: 1.6em; }
.pager { display: flex; gap: 20px; align-items: center; justify-content: center; margin-top: 40px; }
.pager .current { font-weight: 700; }
.sitemap { columns: 3 260px; list-style: none; padding: 0; }
.sitemap li { break-inside: avoid; padding: 3px 0; }
.sitemap .d1 { font-weight: 700; margin-top: 10px; }
.sitemap .d2 { padding-inline-start: 14px; }
.sitemap .d3 { padding-inline-start: 28px; font-size: .94rem; }
.sitemap .d4 { padding-inline-start: 42px; font-size: .9rem; }
.download { margin-top: 16px; }
.page-blocks h2 { margin-top: 1.6em; }

/* Calculator (JS rendered) */
.calc-presets { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.calc-presets button { font: inherit; padding: 10px 16px; border-radius: 10px; border: 2px solid var(--brand); background: var(--white); color: var(--brand); cursor: pointer; font-weight: 600; }
.calc-presets button[aria-pressed="true"] { background: var(--brand); color: var(--white); }
.calc-result { font-size: 1.4rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: #D8D2C8; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: #F0EAE0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-h { color: var(--white); font-weight: 700; }
.foot-notice { margin-top: 32px; border-top: 1px solid #3A4153; padding-top: 20px; }
.foot-notice p { margin: 0 0 6px; color: #F2C98E; }
.foot-small p { margin: 8px 0 0; color: #A9A397; font-size: .82rem; }

/* Responsive */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mnav { display: block; }
}
@media (max-width: 860px) {
  .hero-grid, .two-col, .cross, .band { grid-template-columns: 1fr; }
  .hero-grid { gap: 24px; }
  .hero-media { order: -1; }
  .stats, .foot-grid, .biz-strip, .mosaic { grid-template-columns: repeat(2, 1fr); }
  .cross-text, .band-text { padding: 24px; }
  .block { margin: 36px 0; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1rem; }
  .notice { font-size: .78rem; }
  .rates-strip { padding: 20px; }
}
