/* ====== YOUR BASE (unchanged) ====== */

/* Gradient background */
body {
  background: radial-gradient(1200px 800px at 20% -10%, rgba(62,122,255,.20), transparent 60%),
              radial-gradient(1200px 800px at 100% 20%, rgba(0,212,255,.12), transparent 60%),
              #0b0d10;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
}

.container { max-width: 2000px; }

/* Accent buttons */
.btn-accent { background: linear-gradient(135deg, #4f8cff, #35c0ff); border: none; color: #0b0d10; font-weight: 600; }
.btn-accent:hover { filter: brightness(0.95); color: #0b0d10; }
.btn-outline-accent { border: 1px solid #4f8cff; color: #e5eefb; }
.btn-outline-accent:hover { background: rgba(79,140,255,.12); color: #fff; }

/* Glassmorphism */
.glass { background: rgba(18,22,27,.55); border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.hero { padding: 56px 0 28px; }
.hero-grid { display:grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.hero-copy { padding: 28px; }
.hero-side { padding: 24px; }
.hero-title { font-size: 2.3rem; line-height: 1.15; margin-bottom: .5rem; }
.hero-title .thin { font-weight: 500; color: #cfd8e3; }
.hero-sub { color: #9aa5b1; margin-bottom: .75rem; }
.hero-bullets { color: #9aa5b1; margin: 0 0 16px 1rem; }
.hero-ctas .btn { min-width: 160px; }
.badge-row .badge { margin-right:.35rem; margin-bottom:.35rem; }

.section { padding: 34px 0; }
.grid-4 { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.step-no { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); display:inline-flex; align-items:center; justify-content:center; margin-bottom:.5rem; }

.pricing-strip { display:flex; gap:12px; flex-wrap:wrap; padding: 14px; border-radius: 16px; justify-content: center; }
.pill { background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); border-radius:999px; padding:10px 16px; display:flex; align-items:center; text-align:center; gap:10px; justify-content: center; }
.pill .label { color:#9aa5b1; }
.pill .value { font-weight:600; }

@media (max-width: 992px){
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* --- makes pills --- */
/* ===== Makes strip — 1 centered row, 5 items ===== */
.makes-grid{
  display:flex;
  justify-content:center;   /* center the row */
  gap:24px;                 /* spacing between coins */
  flex-wrap:nowrap;         /* 1 row only */
}

/* card */
.make-card{
  display:flex; flex-direction:column; align-items:center; gap:8px;
  text-decoration:none; color:inherit; outline:none;
}

/* coin */
.make-logo{
  width:72px; height:72px; border-radius:999px; overflow:hidden;
  display:grid; place-items:center;
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(255,255,255,.18), rgba(255,255,255,.05)),
    rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 14px rgba(0,0,0,.26);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.make-logo img, .make-logo svg{
  width:64%; height:64%; object-fit:contain; display:block;
  /* force monochrome white so all brands look consistent on dark */
  filter: brightness(0) invert(1) grayscale(1) contrast(1.05);
  opacity:.95;
}

/* hover */
.make-card:hover .make-logo,
.make-card:focus-visible .make-logo{
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 22px rgba(0,0,0,.30);
}

/* pill label */
.make-pill{
  font-size:.8rem; font-weight:600; letter-spacing:.02em; line-height:1;
  padding:.45rem .9rem;
  border-radius:999px; text-transform:uppercase;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  color: rgba(255,255,255,.92);
}

/* initials fallback if an image is missing */
.make-initials{ font-weight:700; letter-spacing:.04em; font-size:1.0rem; opacity:.95; }

/* button spacing + look */
.makes-more-btn{
  margin-top:14px;          /* tuck closer to the row */
  border-radius:999px;
  padding:.6rem 1.4rem;
}

/* small screens: keep 1 row that can scroll rather than shrinking too much */
@media (max-width: 560px){
  .makes-grid{ gap:18px; overflow-x:auto; padding-bottom:6px; }
  .make-logo{ width:64px; height:64px; }
  .make-logo img, .make-logo svg{ width:62%; height:62%; }
}

.make-card:hover .make-pill{ border-color: var(--accent, #6fb7ff); }

/* Transition container */
#makes_grid {
  transition: opacity .35s ease, transform 3s ease;
  will-change: opacity, transform;
}
#makes_grid.is-out {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  #makes_grid { transition: none !important; }
}

.trust-strip {
  margin: 3rem 0 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .6rem 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .15s ease, border-color .15s ease;
}
.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.24);
}
.trust-item i {
  font-size: 1.1rem;
  color: var(--accent, #6fb7ff);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: .9rem;
}

.site-footer a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .15s ease;
}
.site-footer a:hover {
  color: var(--accent, #6fb7ff);
}

.footer-social a {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ====== ADD-ONS FOR NAV/CARDS/AUTH UI ====== */

/* navbar + brand */
.navbar {
  background: rgba(15,18,22,.85);
  border-bottom: 1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.navbar .navbar-brand { font-weight: 700; letter-spacing: .2px; }

/* cards & generic surfaces */
.card {
  background: rgba(18,22,27,.58);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
}
.card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* forms */
.form-label { color: #dfe7f3; }
.form-control,
.form-select {
  color: #e5eefb;
  background: rgba(11,13,16,.6);
  border: 1px solid rgba(255,255,255,.10);
}
.form-control::placeholder { color: #8a95a5; }
.form-control:focus,
.form-select:focus {
  background: rgba(11,13,16,.75);
  border-color: rgba(111,183,255,.45);
  box-shadow: 0 0 0 .25rem rgba(111,183,255,.20);
}

/* modal -> glass */
.modal-content {
  background: rgba(18,22,27,.70);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.modal-header { border-bottom: 1px solid rgba(255,255,255,.10); }
.modal-footer { border-top: 1px solid rgba(255,255,255,.10); }

/* alerts */
.alert {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  color: #e5eefb;
}
.alert-success { background-color: rgba(25,135,84,.18); }
.alert-danger  { background-color: rgba(220,53,69,.18); }
.alert-warning { background-color: rgba(255,193,7,.20); }

/* tables (e.g., appointments-on-login) */
.table {
  --bs-table-color: #e5eefb;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(255,255,255,.10);
  --bs-table-striped-bg: rgba(255,255,255,.04);
  --bs-table-hover-bg: rgba(255,255,255,.07);
}
.table td, .table th { border-color: rgba(255,255,255,.10); }
.table thead th { font-weight: 600; }

/* minor utilities */
.text-muted { color: #9aa5b1 !important; }
.border-bottom { border-bottom: 1px solid rgba(255,255,255,.10) !important; }
main { padding-bottom: 2rem; }




/* Smoother anchor jumps (doesn't affect perf much, but feels nicer) */
html { scroll-behavior: smooth; }

/* Huge sections/lists: let the browser skip rendering off-screen parts */
.big-section, .estimate-list, .long-panel {
  content-visibility: auto;
  /* Reserve space to prevent layout jumps while off-screen content is skipped */
  contain-intrinsic-size: 1000px 800px; /* tune to your typical block size */
}

/* Isolate paint for complex blocks (lots of box-shadows, backgrounds) */
.card, .sidebar, .sticky-toolbar {
  contain: paint; /* avoids repainting the entire page when they update */
}

/* If you translate elements on scroll, hint the GPU path */
.sticky-toolbar, .floating-summary {
  will-change: transform; /* apply sparingly to hot elements only */
}

/* Prevent scroll chaining rubber-band if you have nested scrollers */
.scroll-pane {
  overscroll-behavior: contain;
}


/* alert dots for Finances/Admin when taxes due */
#nav_admin, #nav_finances { position: relative; }
#nav_admin.nav-alert-soon::after,
#nav_finances.nav-alert-soon::after,
#nav_admin.nav-alert-imminent::after,
#nav_finances.nav-alert-imminent::after,
#nav_admin.nav-alert-overdue::after,
#nav_finances.nav-alert-overdue::after{
  content:"";
  position:absolute;
  top:-6px; right:-6px;
  width:10px; height:10px; border-radius:50%;
  box-shadow:0 0 0 2px rgba(0,0,0,.45);
}
#nav_admin.nav-alert-soon::after,
#nav_finances.nav-alert-soon::after{ background:#f59e0b; }     /* amber */
#nav_admin.nav-alert-imminent::after,
#nav_finances.nav-alert-imminent::after{ background:#ef4444; } /* red */
#nav_admin.nav-alert-overdue::after,
#nav_finances.nav-alert-overdue::after{
  background:#ef4444; animation:kpiDotPulse 1s infinite;
}
@keyframes kpiDotPulse{
  0%{ transform:scale(1); box-shadow:0 0 0 2px rgba(239,68,68,.45); }
  70%{ transform:scale(1.35); box-shadow:0 0 0 0 rgba(239,68,68,0); }
  100%{ transform:scale(1); box-shadow:0 0 0 2px rgba(239,68,68,.45); }
}


/* =========================
   MOBILE OPTIMIZATIONS
   ========================= */

/* Baseline: reduce side padding on small viewports */
@media (max-width: 640px){
  .container { padding-inline: 14px; }
  main { padding-bottom: 2.25rem; }
}

/* Hero: stack, tighten copy, make CTAs thumb-friendly */
@media (max-width: 640px){
  .hero { padding: 28px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy { padding: 18px; }
  .hero-side { padding: 16px; }

  .hero-title {
    font-size: clamp(1.4rem, 3.6vw + .9rem, 1.9rem);
    line-height: 1.2;
    margin-bottom: .35rem;
  }
  .hero-sub { font-size: .96rem; margin-bottom: .5rem; }
  .hero-bullets { margin-left: .8rem; font-size: .92rem; }

  .hero-ctas { display: grid; gap: 10px; }
  .hero-ctas .btn { min-width: 0; width: 100%; padding-block: .8rem; }
}

/* Inputs: prevent iOS zoom, give comfy hit area */
@media (max-width: 640px){
  input, select, textarea, button { font-size: 16px; } /* stops iOS auto-zoom */
  #hc_address, #hc_city, #hc_zip {
    padding: .7rem .8rem;
    border-radius: 12px;
  }
  #hc_check { padding: .85rem 1rem; border-radius: 12px; }
}

/* “How it works” grid: one-per-row and denser spacing on phones */
@media (max-width: 640px){
  .section { padding: 22px 0; }
  .grid-4 { grid-template-columns: 1fr; gap: 10px; }
  .card.glass .card-body { padding: 14px; }
  .step-no { width: 28px; height: 28px; font-size: .9rem; }
}

/* Makes row: horizontal scroll with snap + hidden scrollbar */
.makes-grid {
  scroll-snap-type: x mandatory;
}
.make-card { scroll-snap-align: center; }

@media (max-width: 560px){
  .makes-grid{
    gap: 16px;
    overflow-x: auto;
    padding: 6px 2px 10px;
    -webkit-overflow-scrolling: touch;
  }
  .makes-grid::-webkit-scrollbar{ height: 0; }
  .make-logo{ width: 60px; height: 60px; }
  .make-logo img, .make-logo svg{ width: 60%; height: 60%; }
  .make-pill{ font-size: .75rem; padding: .38rem .8rem; }
}

/* Pricing pills: center, legible on small screens */
@media (max-width: 640px){
  .pricing-strip {
    padding: 10px;
    gap: 8px;
  }
  .pill{
    padding: .5rem .9rem;
    line-height: 1.1;
  }
  .pill .label{ font-size: .8rem; }
  .pill .value{ font-size: .95rem; }
}

/* Footer: stack and enlarge tap targets */
@media (max-width: 640px){
  .site-footer { padding: 1.2rem 0 1.6rem; }
  .footer-top { flex-direction: column; align-items: flex-start !important; gap: 10px !important; }
  .footer-nav { flex-wrap: wrap; gap: 10px !important; }
  .footer-nav a, .footer-social a {
    padding: 6px 10px; border-radius: 10px;
  }
  .footer-bottom { margin-top: .75rem; }
}

/* Micro-viewport support (≤360px) */
@media (max-width: 360px){
  .hero-title { font-size: 1.35rem; }
  .pill .value { font-size: .9rem; }
}

/* Respect reduced motion beyond your existing rule set */
@media (prefers-reduced-motion: reduce){
  .hero-ctas .btn,
  .make-logo,
  .trust-item { transition: none !important; }
}

/* Accordion (FAQ) */
.accordion.glass {
  padding: 8px; border-radius: 16px;
}

.accordion .item + .item { border-top: 1px solid rgba(255,255,255,.08); }

.acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  background: transparent; border: 0; color: #e5eefb;
  text-align: left; font-weight: 600; padding: 14px 12px;
  cursor: pointer;
}

.acc-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(111,183,255,.25);
  border-radius: 10px;
}

.acc-ico {
  flex: 0 0 auto; opacity: .8; transition: transform .18s ease;
}

.acc-content {
  color: #9aa5b1;
  max-height: 0; overflow: hidden;
  padding: 0 12px;
  transition: max-height .22s ease, opacity .18s ease, padding-top .18s ease;
  opacity: 0;
}

.item.is-open .acc-content {
  padding-top: 6px;
  opacity: 1;
  max-height: 200px; /* enough for a short answer; content expands smoothly */
}

.item.is-open .acc-btn .acc-ico { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce){
  .acc-ico, .acc-content { transition: none !important; }
}


/* Accordion container */
.accordion.glass {
  padding: 18px 22px;
  border-radius: 20px;
  background: rgba(20,24,30,.55);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

/* Grid for 2 columns */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px){ .faq-grid { grid-template-columns: 1fr 1fr; gap: 22px 28px; } }

/* Card-like items inside grid */
.faq-grid .item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 6px 10px;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.faq-grid .item:hover { background: rgba(255,255,255,.06); transform: translateY(-1px); }

/* Question button */
.acc-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  font: 600 1.02rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #e8eef8;
  background: transparent; border: 0; padding: 14px 6px; text-align: left; cursor: pointer;
  border-radius: 10px;
}
.acc-btn:hover { color: var(--accent); }
.acc-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(78,169,255,.4); }

/* Chevron */
.acc-ico { flex: 0 0 auto; opacity: .8; transition: transform .25s ease, opacity .25s ease; }
.item.is-open .acc-ico { transform: rotate(180deg); opacity: 1; }

/* Answer content (height animated via JS; no fixed max-height here) */
.acc-content {
  color: #b6bdc8;
  font-size: .95rem; line-height: 1.6;
  padding: 0 6px;
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
}

/* extra breathing room when open */
.item.is-open { padding-bottom: 10px; border-color: rgba(255,255,255,.12); }
.item.is-open .acc-content { margin-top: 6px; }
