/* Bitcoin_Near_Me_Web/app_folder/static/main/css/style.css */
:root { --ink: #023c28; --muted: #52645b; --paper: #faf9f5; --line: #dce2d9; --accent: #c55327; --green: #eaf0e6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
button, input, textarea, select { font: inherit; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .8rem 1.25rem; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: var(--ink); color: var(--paper); text-decoration: underline; }
button:disabled { opacity: .6; cursor: wait; }
.secondary { color: var(--ink); background: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); margin: 0 0 1.4rem; font-weight: 650; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); margin: 0 0 1rem; font-weight: 600; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1rem; }
.site-header, .container, .footer-grid, .footer-bottom, .owner-nav { max-width: 1200px; margin: auto; padding-left: 2rem; padding-right: 2rem; }
.site-header-bar { background: var(--ink); color: var(--paper); }
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-header nav, .actions, .owner-nav, .region-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.site-header nav a { text-decoration: none; font-size: .93rem; font-weight: 550; }
.site-header nav a:hover { color: var(--paper); text-decoration: underline; }
.site-header :focus-visible { outline-color: var(--paper); }
.brand { display: inline-block; flex-shrink: 0; width: 300px; max-width: 100%; background: var(--ink); border-radius: 6px; text-decoration: none; }
.brand img { display: block; width: 100%; height: auto; }
.container { min-height: 55vh; padding-bottom: 5rem; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: center; padding: 4rem 0 5rem; }
.eyebrow { font-size: .75rem; font-weight: 750; letter-spacing: .12em; color: var(--muted); margin-bottom: 1.2rem; text-transform: uppercase; }
.lead { font-size: 1.18rem; line-height: 1.7; max-width: 660px; color: var(--muted); margin-bottom: 2rem; }
.hero-card { position: relative; overflow: hidden; padding: 2rem; border-radius: 16px; background: var(--green); min-height: 390px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-logo { display: block; align-self: center; width: 224px; max-width: 100%; height: auto; margin-bottom: 1.5rem; background: var(--ink); border-radius: 8px; }
.hero-card h2 { font-size: 2rem; }
.hero-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.section { padding: 3rem 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.25rem; }
.card { border: 1px solid var(--line); background: white; border-radius: 10px; padding: 1.8rem; overflow-wrap: anywhere; }
.card p { color: var(--muted); }
.location-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem; align-items: start; }
.location-finder > .card-grid { grid-template-columns: 1fr; }
.map-link { display: block; margin-top: .75rem; }
.map-link[aria-current] { font-weight: 700; }
/* Extend the map link over its tile, keeping the details links above it. */
.location-finder .location-card { position: relative; isolation: isolate; }
.location-finder .location-card a:not(.map-link) { position: relative; z-index: 2; }
.location-finder .map-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 10px; cursor: pointer; }
.location-finder .map-link:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.location-finder .map-link:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 4px; }
.location-map { padding: 1rem; background: var(--green); border-radius: 10px; overflow-wrap: anywhere; }
.location-map h2 { font-size: 1.5rem; }
.map-preview { display: block; width: 100%; height: 400px; border: 0; border-radius: 6px; margin-bottom: 1rem; }
@media (max-width: 850px) { .location-finder { grid-template-columns: 1fr; } }
.card h2 { font-size: 1.5rem; }
.step { color: var(--accent); font-weight: 650; font-size: .85rem; }
.badge { display: inline-block; font-size: .75rem; padding: .25rem .6rem; background: var(--green); color: var(--ink); border-radius: 4px; margin-bottom: 1rem; }
.empty { padding: 2.5rem; background: var(--green); border-radius: 10px; }
.empty p { max-width: 650px; }
.callout { background: var(--green); padding: 2.5rem; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.callout p { max-width: 580px; }
.page-intro { padding-top: 3rem; padding-bottom: 2rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.3rem; }
.prose p, .prose li { color: var(--muted); }
.authenticator-qr { display: block; width: 256px; max-width: 100%; height: auto; margin: 1rem 0; }
.two-column { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.search-form { display: flex; align-items: end; gap: 1rem; margin-bottom: 2rem; }
.search-form > div { flex: 1; }
label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .4rem; }
input:not([type=checkbox]):not([type=hidden]), textarea, select { display: block; width: 100%; padding: .75rem; color: var(--ink); background: white; border: 1px solid #84988b; border-radius: 5px; }
textarea { min-height: 150px; resize: vertical; }
.field { margin-bottom: 1.25rem; }
.checkbox input { width: 18px; height: 18px; margin-right: .6rem; vertical-align: middle; }
.checkbox label { display: inline; font-weight: 400; }
.field-error, .error { color: #9f2117 !important; }
.field-error { font-size: .85rem; margin: .35rem 0 0; }
[aria-invalid=true] { border-color: #9f2117 !important; }
.notice { border-left: 4px solid var(--accent); background: var(--green); padding: 1rem; margin: 1rem 0; }
.small { font-size: .85rem; color: var(--muted); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
.region-nav { margin: 0 0 2rem; }
.breadcrumbs { margin-top: 1.5rem; font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; gap: .6rem; }
.breadcrumbs li + li::before { content: '/'; padding-right: .6rem; color: var(--muted); }
details { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 1rem 0 0; }
.wallet-faq { padding-inline: 1rem; margin-inline: -1rem; border-radius: 8px; }
#prepare-wallet { scroll-margin-top: 35vh; }
html:has(#prepare-wallet:target) { scroll-behavior: smooth; }
.wallet-highlight { animation: wallet-highlight 1s ease-in-out 3; }
@keyframes wallet-highlight {
  0%, 100% { box-shadow: 0 0 0 2px transparent, 0 0 16px transparent; }
  50% { box-shadow: 0 0 0 2px var(--accent), 0 0 16px rgb(197 83 39 / 30%); }
}
.faq-safety { margin-top: 2.3rem; font-size: 1rem; }
.prose .faq-safety h2 { margin-top: 0; font-size: 1.125rem; letter-spacing: normal; }
@media (prefers-reduced-motion: reduce) {
  html:has(#prepare-wallet:target) { scroll-behavior: auto; }
  .wallet-highlight { animation: none; box-shadow: 0 0 0 2px var(--accent); }
}
.owner-nav { padding-top: .7rem; padding-bottom: .7rem; background: var(--green); font-size: .85rem; }
.text-button { background: transparent; color: var(--ink); border: 0; padding: 0; text-decoration: underline; font-size: .85rem; }
.message { margin-bottom: 1.5rem; }
.site-footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h2 { font-size: .85rem; letter-spacing: 0; }
.footer-grid p, .footer-grid > div > a:not(.brand) { font-size: .85rem; color: var(--paper); display: block; margin-bottom: .6rem; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid #405148; margin-top: 2.5rem; padding-top: 1rem; font-size: .75rem; display: flex; justify-content: space-between; }
.skip-link { position: absolute; left: 1rem; top: -100px; background: white; padding: .5rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
@media (max-width: 850px) { .site-header { flex-direction: column; align-items: flex-start; padding-top: 1.2rem; padding-bottom: 1rem; gap: 1rem; } .hero { gap: 2rem; } .footer-grid { grid-template-columns: 1fr 1fr; } .two-column { gap: 1.5rem; } }
@media (max-width: 600px) { .site-header, .container, .footer-grid, .footer-bottom, .owner-nav { padding-left: 1.2rem; padding-right: 1.2rem; } .site-header nav { gap: .75rem 1.2rem; } .hero, .two-column { grid-template-columns: 1fr; } .hero { padding: 2rem 0; } .hero-card { min-height: 300px; } .callout { flex-direction: column; align-items: flex-start; padding: 1.5rem; } .search-form { flex-direction: column; align-items: stretch; } .empty { padding: 1.5rem; } .footer-grid { grid-template-columns: 1fr; } .page-intro { padding-top: 2rem; } }
