/* FIRE Number Calculator — Main Stylesheet */
:root {
  --clr-primary:      #2D6A4F;
  --clr-primary-dk:   #1B4332;
  --clr-primary-lt:   #52B788;
  --clr-accent:       #40916C;
  --clr-bg:           #F0FBF4;
  --clr-bg-alt:       #FFFFFF;
  --clr-text:         #1A1A1A;
  --clr-text-muted:   #555555;
  --clr-border:       #D8EDE3;
  --clr-result-bg:    #E8F5EE;
  --radius:           8px;
  --shadow:           0 2px 12px rgba(45,106,79,.10);
  --transition:       .2s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: var(--clr-text); background: var(--clr-bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3rem 0; }
.section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: .5rem; color: var(--clr-primary-dk); }
.section-sub { text-align: center; color: var(--clr-text-muted); margin-bottom: 2rem; }
.site-header { background: var(--clr-primary-dk); color: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 1rem; }
.site-logo { font-size: 1.2rem; font-weight: 700; color: #fff; white-space: nowrap; }
.site-logo:hover { text-decoration: none; opacity: .9; }
.nav-menu { list-style: none; display: flex; gap: .25rem; align-items: center; }
.nav-menu a { color: rgba(255,255,255,.88); padding: .4rem .7rem; border-radius: var(--radius); font-size: .93rem; transition: background var(--transition); display: block; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }
.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-size: .7rem; }
.drop-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 230px; z-index: 200; list-style: none; padding: .4rem 0; }
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
.drop-menu li a { color: var(--clr-text); padding: .5rem 1rem; font-size: .9rem; display: block; }
.drop-menu li a:hover { background: var(--clr-bg); color: var(--clr-primary); text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .4rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 60px; left: 0; right: 0; background: var(--clr-primary-dk); padding: 1rem; gap: .25rem; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .drop-menu { position: static; box-shadow: none; border: none; background: rgba(0,0,0,.2); min-width: 0; display: none; }
  .nav-drop:hover .drop-menu { display: none; }
  .nav-drop.open .drop-menu { display: block; }
  .drop-menu li a { color: rgba(255,255,255,.85); padding: .4rem 1rem; }
  .drop-menu li a:hover { background: rgba(255,255,255,.1); color: #fff; }
}
.hero { background: linear-gradient(135deg, var(--clr-primary-dk) 0%, var(--clr-primary) 100%); color: #fff; padding: 4rem 0; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 640px; margin: 0 auto 1.75rem; }
.btn { display: inline-block; padding: .65rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; cursor: pointer; border: none; transition: opacity var(--transition), transform var(--transition); text-align: center; }
.btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
.btn-lg { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-primary { background: var(--clr-primary); color: #fff; }
.trust-strip { background: #fff; border-bottom: 1px solid var(--clr-border); padding: .75rem 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: center; }
.trust-item { font-size: .88rem; color: var(--clr-text-muted); display: flex; align-items: center; gap: .3rem; }
.ck { color: var(--clr-primary); font-weight: 700; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.tool-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; transition: box-shadow var(--transition), transform var(--transition); }
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.tool-icon { font-size: 2rem; }
.tool-card h3 { font-size: 1rem; font-weight: 700; color: var(--clr-primary-dk); }
.tool-card p { font-size: .9rem; color: var(--clr-text-muted); flex: 1; }
.tool-card .btn { align-self: flex-start; margin-top: auto; font-size: .88rem; padding: .5rem 1rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.why-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.wi { font-size: 2rem; margin-bottom: .5rem; }
.why-card h3 { font-weight: 700; margin-bottom: .4rem; color: var(--clr-primary-dk); }
.why-card p { font-size: .9rem; color: var(--clr-text-muted); }
.page-hdr { background: linear-gradient(135deg, var(--clr-primary-dk) 0%, var(--clr-primary) 100%); color: #fff; padding: 2.5rem 0; }
.page-hdr h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: .4rem; }
.page-hdr p { opacity: .88; font-size: 1rem; }
.breadcrumb { font-size: .82rem; margin-bottom: .6rem; opacity: .75; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 768px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 1.5rem; }
.calc-card h2 { font-size: 1.1rem; font-weight: 700; color: var(--clr-primary-dk); margin-bottom: 1.1rem; border-bottom: 2px solid var(--clr-border); padding-bottom: .6rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--clr-text); margin-bottom: .3rem; }
.field input, .field select { width: 100%; padding: .55rem .75rem; border: 1px solid var(--clr-border); border-radius: var(--radius); font-size: 1rem; color: var(--clr-text); background: #fff; transition: border-color var(--transition); }
.field input:focus, .field select:focus { outline: none; border-color: var(--clr-primary); }
.field .hint { font-size: .78rem; color: var(--clr-text-muted); margin-top: .2rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.result-item { background: var(--clr-result-bg); border-radius: var(--radius); padding: .85rem 1rem; }
.result-label { font-size: .78rem; color: var(--clr-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.result-value { font-size: 1.4rem; font-weight: 700; color: var(--clr-primary-dk); margin-top: .1rem; word-break: break-word; }
.result-value.big { font-size: 1.7rem; }
.result-item.highlight { background: var(--clr-primary); }
.result-item.highlight .result-label { color: rgba(255,255,255,.8); }
.result-item.highlight .result-value { color: #fff; }
.result-item.span2 { grid-column: 1 / -1; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 1rem; }
.data-table th { background: var(--clr-primary-dk); color: #fff; padding: .6rem .85rem; text-align: left; font-size: .82rem; }
.data-table td { padding: .55rem .85rem; border-bottom: 1px solid var(--clr-border); }
.data-table tr:nth-child(even) td { background: var(--clr-bg); }
.data-table tr:hover td { background: var(--clr-result-bg); }
.table-wrap { overflow-x: auto; margin-top: 1rem; border-radius: var(--radius); border: 1px solid var(--clr-border); }
.affiliate-cta { background: linear-gradient(135deg, var(--clr-primary-dk), var(--clr-primary)); color: #fff; border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 2rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.affiliate-cta p { font-size: .95rem; opacity: .92; margin: .25rem 0 0; }
.affiliate-cta h3 { font-size: 1.05rem; font-weight: 700; }
.affiliate-cta .btn { background: #fff; color: var(--clr-primary-dk); white-space: nowrap; flex-shrink: 0; }
.ad-unit { background: #f9f9f9; border: 1px dashed #ccc; border-radius: var(--radius); text-align: center; color: #aaa; font-size: .8rem; }
.ad-unit-leader { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-unit-rect { min-height: 250px; display: flex; align-items: center; justify-content: center; max-width: 336px; margin: 1.5rem auto; }
.ad-unit-banner { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.content-section { background: #fff; border-radius: var(--radius); border: 1px solid var(--clr-border); padding: 2rem; margin: 2rem 0; }
.content-section h2 { color: var(--clr-primary-dk); font-size: 1.25rem; margin-bottom: .75rem; margin-top: 1.5rem; }
.content-section h2:first-child { margin-top: 0; }
.content-section p { color: var(--clr-text-muted); margin-bottom: .75rem; line-height: 1.7; }
.content-section ul { padding-left: 1.25rem; color: var(--clr-text-muted); margin-bottom: .75rem; }
.content-section ul li { margin-bottom: .35rem; line-height: 1.6; }
.faq-section { margin: 2rem 0; }
.faq-item { border: 1px solid var(--clr-border); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden; background: #fff; }
.faq-q { width: 100%; background: none; border: none; padding: 1rem 1.25rem; text-align: left; font-size: .95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--clr-text); }
.faq-q::after { content: "+"; font-size: 1.2rem; color: var(--clr-primary); transition: transform var(--transition); flex-shrink: 0; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .2s; padding: 0 1.25rem; }
.faq-a.open { max-height: 500px; padding: 0 1.25rem 1rem; }
.faq-a p { color: var(--clr-text-muted); font-size: .92rem; line-height: 1.65; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.related-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 1rem; text-align: center; transition: box-shadow var(--transition); display: block; }
.related-card:hover { box-shadow: var(--shadow); text-decoration: none; }
.related-card .ri { font-size: 1.5rem; margin-bottom: .4rem; }
.related-card span { display: block; font-size: .85rem; font-weight: 600; color: var(--clr-primary-dk); }
.static-page { padding: 2.5rem 0 3rem; }
.static-inner { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 2rem 2.5rem; }
.static-inner h2 { color: var(--clr-primary-dk); font-size: 1.2rem; margin: 1.5rem 0 .6rem; }
.static-inner h2:first-child { margin-top: 0; }
.static-inner p { color: var(--clr-text-muted); line-height: 1.7; margin-bottom: .75rem; }
.static-inner ul { padding-left: 1.25rem; color: var(--clr-text-muted); margin-bottom: .75rem; }
.static-inner ul li { margin-bottom: .4rem; }
.static-inner a { color: var(--clr-primary); }
.disclaimer-box { background: #FFF8E7; border: 1px solid #F0D070; border-radius: var(--radius); padding: 1rem 1.25rem; font-size: .88rem; color: #6B5A2A; margin-bottom: 1rem; }
.site-footer { background: var(--clr-primary-dk); color: rgba(255,255,255,.82); padding: 2.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.footer-brand .site-logo { font-size: 1.1rem; margin-bottom: .5rem; display: block; }
.footer-brand p { font-size: .85rem; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .85rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bot { border-top: 1px solid rgba(255,255,255,.15); padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.5); }
.footer-bot a { color: rgba(255,255,255,.6); }
.footer-bot a:hover { color: #fff; }
@media (max-width: 640px) {
  .result-grid { grid-template-columns: 1fr; }
  .affiliate-cta { flex-direction: column; text-align: center; }
  .static-inner { padding: 1.5rem; }
  .hero { padding: 2.5rem 0; }
}
