/* Instant Cash Advance Corp — site styles. Colours match the logo and the customer portal flyer. */
:root {
  --green-900: #0b3d1f;
  --green-700: #136b33;
  --green-600: #1b7d3c;
  --green-50: #eef6f0;
  --gold-400: #f6c90e;
  --gold-100: #fff6cc;
  --ink: #1d2420;
  --muted: #55605a;
  --line: #dde5df;
  --bg: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(11, 61, 31, .06), 0 6px 20px rgba(11, 61, 31, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.2; color: var(--green-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; line-height: 1.2; min-height: 48px;
}
.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; }
.btn-gold { background: var(--gold-400); color: var(--green-900); }
.btn-gold:hover { background: #ffd83d; color: var(--green-900); }
.btn-outline { border-color: var(--green-700); color: var(--green-700); background: #fff; }
.btn-outline:hover { background: var(--green-50); }

/* Top bar + header */
.topbar { background: var(--green-900); color: #e6f2ea; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar strong { color: var(--gold-400); }

/* Closures and holiday hours, from site.json "notices" */
.site-notice { background: var(--gold-100); border-bottom: 2px solid var(--gold-400); color: var(--green-900); font-weight: 700; }
.site-notice .wrap { padding-top: 12px; padding-bottom: 12px; }
.site-notice[hidden] { display: none; }

/* Branch bios, from stores/<city>.md */
.loc-bio { color: var(--muted); font-size: .92rem; }
.loc-bio p, .loc-bio ul { margin: 0 0 .5em; }
.loc-bio ul { padding-left: 1.2em; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { flex: 0 1 260px; }
.logo img { width: 260px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; padding: 10px 10px; border-radius: 8px; }
.nav a:hover { background: var(--green-50); color: var(--green-900); }
.nav .btn { margin-left: 8px; padding: .6em 1.1em; min-height: 44px; font-size: .95rem; color: #fff; }
.nav .btn:hover { background: var(--green-900); color: #fff; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .logo img { width: 200px; }
  .menu-toggle {
    display: inline-flex; margin-left: auto; align-items: center; gap: 8px;
    background: none; border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px;
    font: inherit; font-weight: 700; color: var(--green-900); min-height: 44px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 12px 0 0; border-bottom: 0; border-radius: 999px; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--green-50), #fff); padding: 56px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--gold-100); color: var(--green-900); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hours-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border-top: 6px solid var(--gold-400); padding: 24px 26px; }
.hours-card .big { font-size: 2.6rem; font-weight: 800; color: var(--green-700); line-height: 1; }
.hours-card .big span { font-size: 1rem; font-weight: 700; color: var(--green-900); display: block; margin-top: 6px; letter-spacing: .04em; text-transform: uppercase; }
.hours-card dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.hours-card dt { font-weight: 700; }
.hours-card dd { margin: 0; text-align: right; }
.hours-card .closed { color: var(--muted); }
@media (max-width: 800px) {
  .hero { padding: 36px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
}

/* Portal band */
.portal { background: var(--green-900); color: #fff; padding: 44px 0; }
.portal .wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
.portal h2 { color: #fff; }
.portal p { color: #d7e9dd; max-width: 40em; }
.portal .tag { color: var(--gold-400); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; margin-bottom: 6px; }
.qr-card { background: #fff; border-radius: var(--radius); padding: 14px; width: 200px; text-align: center; }
.qr-card img { width: 172px; height: 172px; margin: 0 auto; }
.qr-card small { display: block; color: var(--green-900); font-weight: 800; letter-spacing: .06em; margin-top: 6px; }
.portal-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0 0 20px; color: #fff; font-weight: 600; }
.portal-steps li::before { content: "✓"; color: var(--gold-400); margin-right: 8px; font-weight: 800; }
.portal-url { font-size: .9rem; color: #b9d6c3; margin-top: 12px; }
.portal-url a { color: #fff; }
@media (max-width: 700px) {
  .portal .wrap { grid-template-columns: 1fr; }
  /* On a phone the visitor is already on the device that would scan — lead with the button. */
  .qr-card { order: 2; width: 170px; }
  .qr-card img { width: 142px; height: 142px; }
}

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: #f7faf8; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
@media (max-width: 700px) { .section { padding: 44px 0; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { display: flex; align-items: center; gap: 10px; }
.num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-400); color: var(--green-900); font-size: .9rem; font-weight: 800; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 8px 0 8px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Gold */
.gold { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; }
.gold-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--gold-100); }
.gold-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.callout { background: var(--gold-100); border-left: 5px solid var(--gold-400); border-radius: 10px; padding: 16px 20px; margin: 20px 0; }
@media (max-width: 800px) { .gold { grid-template-columns: 1fr; gap: 24px; } }

/* Locations */
.loc { display: flex; flex-direction: column; gap: 6px; }
.loc h3 { margin: 0; font-size: 1.1rem; }
.loc address { font-style: normal; color: var(--muted); }
.loc-hours { margin: 4px 0 0; font-size: .9rem; font-weight: 600; color: var(--green-900); background: var(--gold-100); border-radius: 8px; padding: 6px 10px; }
.loc .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 10px; }
.loc .actions a { flex: 1 1 auto; display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.loc .call { background: var(--green-700); color: #fff; }
.loc .call:hover { background: var(--green-900); color: #fff; }
.loc .dir { border: 2px solid var(--line); color: var(--green-900); }
.loc .dir:hover { border-color: var(--green-700); }

/* Application */
.apply { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; background: var(--green-50); border-radius: 20px; padding: 36px; }
.doc-links { display: grid; gap: 12px; }
.doc-link { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 700; }
.doc-link:hover { border-color: var(--green-700); }
.doc-link .ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--green-700); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.doc-link small { display: block; color: var(--muted); font-weight: 400; }
.warn { color: var(--green-900); font-weight: 600; }
@media (max-width: 800px) { .apply { grid-template-columns: 1fr; padding: 24px; } }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; color: var(--green-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--green-700); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 20px 16px; }
.faq .answer > :last-child { margin-bottom: 0; }

/* Consumer information */
.notice { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 28px; margin-bottom: 20px; }
.notice.alert { border-left: 6px solid #c0392b; }
.notice.info { border-left: 6px solid var(--green-700); }
.notice h3 { font-size: 1.3rem; }
.notice h4 { margin: 1.4em 0 .5em; color: var(--green-900); }
.notice dl dt { font-weight: 700; margin-top: .8em; }
.notice dl dd { margin: .2em 0 0; }
.scam-email { display: inline-block; background: #fdecea; color: #8e2a1e; font-weight: 700; padding: 2px 8px; border-radius: 6px; word-break: break-all; }

/* Footer */
.site-footer { background: var(--green-900); color: #cfe3d6; padding: 44px 0 28px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 220px; }
.copyright { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: .85rem; color: #a9c7b4; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media print {
  .topbar, .site-header, .portal, .menu-toggle { display: none; }
  .faq details { break-inside: avoid; }
}
