/* ==========================================================================
   nbiclear-components.css — reference-inspired template components
   Architecture mirrors nbiclear.ph page patterns; original implementation.
   Palette: maroon #5f1200 / peach #ffe7c2 / cream #fff7ed / slate text.
   Typeface: Poppins (loaded in <head>). Loads AFTER site.css; overrides win.
   ========================================================================== */

/* ---------- 1. Top utility bar ---------- */
.topbar{background:#5f1200;color:#fff;font-size:13px;line-height:1.4}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0}
.topbar-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0;padding:0;list-style:none}
.topbar-links a{color:#f3e4d3;font-weight:600;font-size:13px}
.topbar-links a:hover{color:#ffe7c2;text-decoration:none}
.topbar-cta{background:#ffe7c2;color:#5f1200;font-weight:800;font-size:12px;letter-spacing:.05em;text-transform:uppercase;padding:9px 18px;border-radius:999px;white-space:nowrap;border:0}
.topbar-cta:hover{background:#ffffff;color:#5f1200;text-decoration:none}

/* ---------- 2. Header / primary nav (keeps .menu + nav.nav for site.js) ---------- */
.site-header{box-shadow:0 2px 14px rgba(95,18,0,.07)}
.header .nav a{font-weight:700;font-size:15px;color:#2D3748;padding:8px 2px;position:relative}
.header .nav a:hover{color:#5f1200;text-decoration:none}
.header .nav a::after{content:"";position:absolute;left:0;right:100%;bottom:2px;height:2px;background:#5f1200;transition:right .2s ease}
.header .nav a:hover::after{right:0}
.header .logo img{width:300px}

/* ---------- 3. Pill CTAs (reference button language) ---------- */
.btn{border-radius:999px;padding:13px 28px}
.actions .btn{margin:4px 6px 4px 0}

/* ---------- 4. Maroon bar section titles (reference h2 pattern) ---------- */
.content-section h2{background:#5f1200;color:#ffe7c2;text-align:center;border-radius:12px;padding:14px 22px;font-size:clamp(22px,3vw,28px);line-height:1.3;letter-spacing:0;margin:0 0 20px;font-weight:700}
.content-section h2 a{color:#ffe7c2}

/* ---------- 5. "Discover more" link box ---------- */
.discover-more{border:1px solid #E2E8F0;border-radius:14px;background:#fff;padding:20px 22px;margin:26px 0;box-shadow:0 8px 24px rgba(95,18,0,.06)}
.discover-more>strong,.discover-more>.dm-title{display:block;font-size:17px;font-weight:800;color:#1A202C;margin-bottom:10px}
.discover-more ul{list-style:none;margin:0;padding:0}
.discover-more li{border-top:1px solid #EDF2F7}
.discover-more li:first-child{border-top:0}
.discover-more li a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px;font-weight:700;color:#2D3748;font-size:15px}
.discover-more li a:hover{color:#5f1200;text-decoration:none}
.discover-more li a::after{content:"›";font-size:22px;line-height:1;color:#5f1200;font-weight:400}

/* ---------- 6. Two-column icon cards ---------- */
.icon-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:22px 0}
.icon-card{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:22px;box-shadow:0 8px 24px rgba(95,18,0,.05)}
.icon-card .ic{width:44px;height:44px;border-radius:50%;background:#5f1200;color:#ffe7c2;display:grid;place-items:center;font-weight:800;font-size:18px;margin-bottom:12px}
.icon-card h3{margin:0 0 8px;font-size:18px;color:#1A202C}
.icon-card p{margin:0;font-size:15px;color:#4A5568}

/* ---------- 7. Numbered step badges ---------- */
.step-badge{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 8px;border-radius:50%;background:#5f1200;color:#fff;font-weight:800;font-size:16px}
ol.steps-numbered{list-style:none;margin:20px 0;padding:0;counter-reset:step}
ol.steps-numbered>li{counter-increment:step;display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:16px 18px;margin:10px 0}
ol.steps-numbered>li::before{content:counter(step);flex:0 0 auto;width:36px;height:36px;border-radius:50%;background:#5f1200;color:#fff;display:grid;place-items:center;font-weight:800;font-size:16px}

/* ---------- 8. FAQ: cream accordions, maroon questions, chevron ---------- */
.faq details{background:#fff7ed;border:1px solid #f0d9b5;border-radius:12px;padding:0 18px;margin:10px 0}
.faq details[open]{background:#fffdf8}
.faq summary{font-size:16px;font-weight:800;color:#5f1200;padding:15px 34px 15px 0;cursor:pointer;list-style:none;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"›";position:absolute;right:6px;top:50%;transform:translateY(-50%) rotate(90deg);font-size:20px;color:#5f1200;transition:transform .2s ease;font-weight:400}
.faq details[open] summary::after{transform:translateY(-50%) rotate(-90deg)}
.faq summary:hover{color:#7c1f00}
.faq details p,.faq details ul{font-size:15px;color:#4A5568}

/* ---------- 9. Tables: maroon header row (reinforces base) ---------- */
.table-wrap{border:1px solid #E2E8F0;border-radius:12px;overflow:hidden}
.table-wrap table{margin:0}
th{background:#5f1200;color:#fff}
td{border-color:#EDF2F7}

/* ---------- 10. Footer: 3-column reference layout ---------- */
.footer{background:#5f1200;color:#f3e4d3}
.footer-grid{grid-template-columns:1.4fr 1fr 1fr;gap:36px}
.footer .logo img{width:250px;filter:brightness(0) invert(1)}
.footer-brand p{color:#f3e4d3;font-size:14px;max-width:340px}
.footer h3{font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:#ffe7c2;margin:0 0 6px}
.footer a{color:#f3e4d3}
.footer a:hover{color:#ffe7c2}
.footer-bottom{border-top:1px solid rgba(255,237,194,.18);flex-direction:column;gap:8px;font-size:12.5px;color:#e8d5bd}
.footer-bottom .fine{line-height:1.6}

/* ---------- 11. Hero: centered reference-style treatment ---------- */
.hero{text-align:center}
.hero .kicker{display:inline-block}
.hero h1{max-width:900px;margin-left:auto;margin-right:auto}
.hero p.lead{margin-left:auto;margin-right:auto}
.hero .byline{justify-content:center}
.hero .actions{justify-content:center}
.hero-grid{grid-template-columns:1fr;max-width:860px;margin:0 auto}
.hero-visual{max-width:640px;margin:26px auto 0}

/* ---------- 12. Responsive ---------- */
@media(max-width:1000px){
  .topbar-links{gap:14px}
  .icon-card-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .topbar{font-size:12px}
  .topbar-links a:not(:first-child){display:none}
  .topbar-cta{padding:8px 14px;font-size:11px}
  .header .logo img{width:230px;max-width:calc(100vw - 120px)}
  .content-section h2{border-radius:10px;padding:12px 16px}
  .footer-grid{grid-template-columns:1fr}
  .discover-more li a{font-size:14px}
}

/* ---------- 13. Homepage additions: disclaimer strip + checklist ---------- */
.disclaimer-strip{font-size:13px;color:#4A5568;background:#fff7ed;border:1px dashed #f0d9b5;border-radius:10px;padding:10px 16px;margin:18px auto 0;max-width:640px}
.disclaimer-strip a{color:#5f1200;font-weight:700}
ul.checklist{list-style:none;margin:16px 0;padding:0}
ul.checklist li{position:relative;padding:9px 0 9px 36px;border-bottom:1px solid #EDF2F7;font-size:15.5px;color:#2D3748}
ul.checklist li:last-child{border-bottom:0}
ul.checklist li::before{content:"✓";position:absolute;left:2px;top:9px;width:22px;height:22px;border-radius:50%;background:#5f1200;color:#fff;font-size:13px;font-weight:800;display:grid;place-items:center}

/* 2026 fidelity pass: measured against nbiclear.ph at 1440px and 650px. */
:root{--reference-maroon:#5f1200;--reference-orange:#b86200;--reference-peach:#ffe7c2;--reference-ink:#2d3748;--reference-line:#dbe3ee}
body{background:#fff;font-size:17px;line-height:1.6;color:var(--reference-ink)}
.container{width:min(1384px,calc(100% - 56px))}
.topbar{height:132px;background:var(--reference-maroon);position:relative;color:#fff}
.topbar-inner{height:100%;padding:0;display:block;position:relative}
.topbar-links{position:absolute;left:0;right:0;bottom:7px;height:47px;border-radius:999px;background:var(--reference-orange);display:grid;grid-template-columns:repeat(5,1fr);gap:0;padding:0 40px}
.topbar-links a{display:flex;align-items:center;justify-content:center;color:var(--reference-peach);font-size:17px;font-weight:400;white-space:nowrap}
.topbar-cta{position:absolute;right:20px;top:22px;background:var(--reference-peach);color:var(--reference-maroon);font-size:15px;line-height:24px;font-weight:600;padding:5px 15px;border-radius:120px;letter-spacing:0}
.site-header{height:0;min-height:0;border:0;box-shadow:none;position:relative;top:auto;background:transparent;z-index:90}
.header{height:0;min-height:0;position:relative}
.header .logo{position:absolute;left:25px;bottom:58px;width:70px;height:70px;overflow:hidden;display:block}
.header .logo img{height:70px;width:403px;max-width:none;object-fit:contain;object-position:left center}
.header .nav,.header .menu{display:none}
.hero{background:var(--reference-peach);padding:0 0 16px;text-align:center}
.hero-grid{max-width:none;width:min(100%,1384px);padding:0 24px;display:block}
.hero h1{font-size:32px;line-height:48px;font-weight:700;letter-spacing:0;color:var(--reference-maroon);max-width:none;margin:0 0 16px}
.hero p.lead{font-size:17px;line-height:27.2px;font-weight:600;color:var(--reference-ink);max-width:none;margin:0 0 12px}
.hero .byline{display:none}
.hero .actions{display:block;margin:0 auto}
.hero .actions .btn{display:flex;width:500px;max-width:100%;min-height:56px;margin:10px auto 18px;padding:2px 27px;border:2px dotted #fff;border-radius:20px;background:var(--reference-maroon);color:#fff;font-size:30px;font-weight:600;line-height:48px}
.hero .actions .btn.dark{width:350px}
.hero .actions .btn::before{content:"➜";font-size:29px;margin-right:13px;color:#fff}
.hero .actions .btn:hover{background:#7b2108;text-decoration:none;transform:none}
.disclaimer-strip{font-size:14px;line-height:21.7px;color:#3d3413;background:#fffaf0;border:1px solid #ead7aa;border-left:4px solid #d49b00;border-radius:8px;padding:10px 16px;margin:12px auto 24px;max-width:760px;text-align:left}
main>.container{background:var(--reference-peach);width:100%;padding:0 28px 28px}
main article{width:min(1180px,100%);margin:0 auto;padding-bottom:0;background:transparent}
.discover-more{border:1px solid var(--reference-line);border-radius:0;background:#fff;padding:0;margin:0 0 28px;box-shadow:none;overflow:hidden}
.discover-more>strong,.discover-more>.dm-title{display:block;background:#eef4fd;padding:12px 20px;margin:0;font-size:17px;font-weight:500;color:var(--reference-ink)}
.discover-more li{border-top:1px solid #edf0f4}
.discover-more li a{padding:16px 20px;font-size:17px;font-weight:400}
.content-section{padding:8px 0 28px;margin-bottom:0;border:0;background:#fff}
.content-section>p,.content-section>ul,.content-section>ol,.content-section>figure,.content-section>.icon-card-grid,.content-section>.table-wrap{margin-left:24px;margin-right:24px}
.content-section p,.content-section li{font-size:17px;line-height:27.2px}
.content-section h2{background:var(--reference-maroon);color:var(--reference-peach);border:2px solid #efdcca;border-radius:20px;padding:0 18px;margin:28px 8px 12px;text-align:center;font-size:24px;line-height:36px;font-weight:700}
.content-section h3{color:var(--reference-maroon);font-size:19px;line-height:28px}
.icon-card-grid{grid-template-columns:repeat(2,1fr);gap:0;border-radius:0}
.icon-card{border:0;border-radius:0;box-shadow:none;padding:24px;text-align:center}
.icon-card .ic{margin:0 auto 12px;background:var(--reference-maroon);color:var(--reference-peach)}
.image-block img{border-radius:0;box-shadow:none!important;border:0;background:transparent}
ol.steps-numbered>li{border-radius:10px;box-shadow:none}
.table-wrap{border:1px solid var(--reference-line);border-radius:12px;box-shadow:0 2px 10px rgba(20,40,80,.06)}
.faq details{background:var(--reference-peach);border:0;border-radius:10px;margin:10px 8px;padding:0 16px}
.faq summary{font-size:18px;font-weight:400;color:#444;padding:14px 30px 10px 0}
.footer{background:var(--reference-maroon);padding:26px 0 0;color:var(--reference-peach)}
.footer .container{width:min(1180px,calc(100% - 48px))}
.footer-grid{grid-template-columns:1.4fr 1fr 1fr;gap:36px}
.footer-bottom{padding:16px 0 22px;margin-top:22px}

@media(max-width:1000px){
  .container{width:calc(100% - 32px)}
  .topbar{height:85px}
  .topbar-inner{display:none}
  .site-header{height:0}
  .header{height:0;min-height:0;width:100%}
  .header .logo{left:20px;bottom:10px;width:70px;height:70px}
  .header .menu{display:block;position:absolute;right:0;bottom:24px;color:var(--reference-peach);font-size:0;padding:0;width:37px;height:31px}
  .header .menu::before{content:"☰";font-size:25px;line-height:31px}
  .header .nav.open{display:flex;position:absolute;top:0;left:0;right:0;background:var(--reference-maroon);padding:16px 24px;z-index:100;box-shadow:0 10px 22px rgba(0,0,0,.2)}
  .header .nav.open a{color:var(--reference-peach);font-size:16px;border-bottom:1px solid rgba(255,231,194,.2);padding:10px 4px}
  .hero-grid{padding:0 24px}
  .icon-card-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .hero h1{font-size:32px;line-height:48px}
  .hero .actions .btn{font-size:25px;line-height:40px;min-height:54px}
  main>.container{padding-left:8px;padding-right:8px}
  .content-section>p,.content-section>ul,.content-section>ol,.content-section>figure,.content-section>.icon-card-grid,.content-section>.table-wrap{margin-left:10px;margin-right:10px}
  .content-section h2{font-size:24px;line-height:36px}
  .footer-grid{grid-template-columns:1fr}
}
