/* =========================================================================
   Md. Hafijur Rahman — portfolio styles
   Executive navy + warm gold. Playfair Display headings / Inter body.
   Light + dark themes via [data-theme="dark"].
   ========================================================================= */
:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #f0f2f6;
  --text: #18213a;
  --muted: #5a657f;
  --navy: #1c2c4d;
  --navy-deep: #0f1830;
  --gold: #bf9235;
  --gold-soft: #e7d5a8;
  --border: #e5e8ef;
  --shadow: 0 2px 4px rgba(16,24,46,.05), 0 12px 32px rgba(16,24,46,.08);
  --shadow-sm: 0 1px 2px rgba(16,24,46,.04), 0 6px 18px rgba(16,24,46,.06);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --ff-display: "Playfair Display", Georgia, serif;
  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
[data-theme="dark"] {
  --bg: #0f1830;
  --surface: #16203a;
  --surface-2: #1b2743;
  --text: #e7ecf5;
  --muted: #9aa6c2;
  --navy: #33477a;
  --navy-deep: #0b1226;
  --gold: #d7b45f;
  --gold-soft: #4a4127;
  --border: #26324f;
  --shadow: 0 2px 4px rgba(0,0,0,.25), 0 14px 36px rgba(0,0,0,.35);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 6px 18px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--ff-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--ff-display); color: var(--text); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
.accent-text {
  background: linear-gradient(120deg, var(--gold), #9c7420);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font-family: var(--ff-body); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s, color .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem 1rem; font-size: .85rem; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
[data-theme="dark"] .btn-primary { background: var(--gold); color: #14203a; }
[data-theme="dark"] .btn-primary:hover { filter: brightness(1.07); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
[data-theme="dark"] .btn-outline { border-color: var(--gold); color: var(--gold); }
.btn-outline:hover { background: rgba(28,44,77,.06); }
.btn-ghost { color: var(--muted); padding-left: .4rem; padding-right: .4rem; }
.btn-ghost:hover { color: var(--gold); }

/* ---- header ---- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 100; transition: width .1s linear; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.02rem; }
.brand img { border-radius: 7px; }
.nav { display: flex; gap: 1.7rem; }
.nav a { color: var(--muted); font-weight: 500; font-size: .93rem; position: relative; }
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.theme-toggle { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem; display: grid; place-items: center; }
.theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="dark"] .theme-icon-dark { display: inline; }
.nav-burger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; padding: 0 24px 16px; gap: .2rem; }
.mobile-nav a { padding: .7rem 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500; }
.mobile-nav.open { display: flex; }

/* ---- sections ---- */
main { padding-top: 68px; }
.section { padding: 92px 0; }
.section-muted { background: var(--surface-2); }
.page-top { padding-top: 60px; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 1rem; }
.page-intro { color: var(--muted); font-size: 1.08rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.eyebrow .rule { width: 30px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }

/* ---- hero ---- */
.hero { position: relative; padding: 132px 0 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(/images/hero-background.webp) center/cover; opacity: .06; z-index: 0; }
[data-theme="dark"] .hero-bg { opacity: .1; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3.5rem; align-items: center; }
.hero-text h1 { margin: .4rem 0 1.1rem; }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 40rem; margin-bottom: 1.4rem; }
.badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.8rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.badge .dot-green { background: #2fae63; box-shadow: 0 0 0 3px rgba(47,174,99,.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.5 } }
@media (prefers-reduced-motion: reduce){ .badge .dot-green { animation: none; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-photo { display: flex; justify-content: center; }
.photo-frame { position: relative; padding: 10px; border-radius: 26px; background: linear-gradient(150deg, color-mix(in srgb, var(--navy) 30%, transparent), color-mix(in srgb, var(--gold) 30%, transparent)); box-shadow: var(--shadow); }
.photo-frame img { width: 300px; max-width: 62vw; border-radius: 18px; object-fit: cover; aspect-ratio: 4/5; }

/* ---- stats ---- */
.stat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-bottom: 2rem; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.7rem; box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--ff-display); font-size: 2.7rem; font-weight: 800; color: var(--navy); }
[data-theme="dark"] .stat-value { color: var(--gold); }
.stat-label { font-weight: 700; margin: .2rem 0 .5rem; }
.stat-desc { color: var(--muted); font-size: .92rem; margin: 0; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); font-size: 1.08rem; }
.summary-card p { margin: 0; }

/* ---- timeline ---- */
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-left: 2.4rem; margin-bottom: 1.5rem; }
.timeline-dot { position: absolute; left: 0; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); }
.exp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 1.7rem; box-shadow: var(--shadow-sm); }
.period { display: inline-block; font-size: .76rem; font-weight: 700; color: var(--navy); background: color-mix(in srgb, var(--gold) 22%, transparent); padding: .28rem .7rem; border-radius: 999px; margin-bottom: .7rem; }
[data-theme="dark"] .period { color: var(--gold-soft); }
.exp-card h3 { color: var(--navy); margin-bottom: .1rem; }
[data-theme="dark"] .exp-card h3 { color: #cdd8f0; }
.company { color: var(--gold); font-weight: 600; font-size: .92rem; margin-bottom: .7rem; }
.exp-summary { color: var(--muted); font-size: .95rem; }
.achievements { list-style: none; padding: 0; margin: .5rem 0 0; }
.achievements li { position: relative; padding-left: 1.4rem; margin-bottom: .45rem; font-size: .93rem; }
.achievements li::before { content: "▹"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ---- expertise ---- */
.expertise-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-bottom: 2.4rem; }
.expertise-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.expertise-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.expertise-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--navy) 10%, transparent); color: var(--navy); margin-bottom: 1rem; }
[data-theme="dark"] .expertise-icon { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.expertise-icon svg { width: 24px; height: 24px; }
.expertise-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.skills-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .5rem 1.8rem; box-shadow: var(--shadow-sm); }
.skill-row { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.skill-row:last-child { border-bottom: none; }
.skill-title { font-weight: 700; color: var(--navy); }
[data-theme="dark"] .skill-title { color: var(--gold); }
.skill-desc { color: var(--muted); font-size: .95rem; }

/* ---- education ---- */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.edu-heading { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.3rem; }
.edu-item { padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.edu-item:last-child { border-bottom: none; }
.edu-title { font-weight: 700; }
.edu-org { color: var(--muted); font-size: .93rem; }
.edu-note { color: var(--gold); font-size: .84rem; font-weight: 600; margin-top: .2rem; }

/* ---- case studies / testimonials ---- */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }
.case-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.case-cover { width: 100%; height: 180px; object-fit: cover; }
.case-body { padding: 1.5rem; }
.case-client { color: var(--gold); font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.case-result { margin-top: .8rem; font-weight: 700; color: var(--navy); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; }
.quote-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); margin: 0; }
.quote-card blockquote { margin: 0 0 1.2rem; font-size: 1.05rem; font-style: italic; }
.quote-card figcaption { display: flex; align-items: center; gap: .8rem; }
.quote-card figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.q-name { display: block; font-weight: 700; }
.q-role { display: block; color: var(--muted); font-size: .85rem; }

/* ---- insights ---- */
.insight-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 1.5rem; }
.insight-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.insight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.insight-cat { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: .7rem; }
.insight-card h3 { margin-bottom: .5rem; }
.insight-card p { color: var(--muted); font-size: .93rem; }
.insight-meta { color: var(--muted); font-size: .82rem; margin-top: .8rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: .4rem 1rem; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-theme="dark"] .chip.active { background: var(--gold); color: #14203a; border-color: var(--gold); }
.empty-note { color: var(--muted); padding: 3rem 0; text-align: center; }

/* ---- article ---- */
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 101; }
.back-link { color: var(--muted); font-size: .9rem; font-weight: 600; display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--gold); }
.article-cat { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6rem; }
.article-title { margin-bottom: .8rem; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }
.article-meta .tag { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); padding: .1rem .6rem; border-radius: 999px; font-size: .78rem; margin-left: .2rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.article-body { font-size: 1.08rem; line-height: 1.8; }
.article-body h2 { margin: 2rem 0 .8rem; font-size: 1.6rem; }
.article-body h3 { margin: 1.6rem 0 .6rem; font-size: 1.25rem; font-family: var(--ff-display); }
.article-body ul, .article-body ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.article-body li { margin-bottom: .5rem; }
.article-body code { background: var(--surface-2); padding: .1rem .4rem; border-radius: 5px; font-size: .9em; }
.article-body blockquote { border-left: 3px solid var(--gold); margin: 1.4rem 0; padding: .3rem 0 .3rem 1.2rem; color: var(--muted); font-style: italic; }
.article-body a { color: var(--gold); text-decoration: underline; }
.share-bar { display: flex; align-items: center; gap: .6rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-label { font-weight: 700; font-size: .85rem; color: var(--muted); margin-right: .3rem; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; font-weight: 700; font-size: .85rem; cursor: pointer; transition: all .15s; }
.share-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.contact-intro { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }
.contact-actions { margin: 1.6rem 0; display: flex; flex-direction: column; gap: .7rem; }
.contact-line { display: flex; align-items: center; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1.1rem; font-size: .95rem; color: var(--text); cursor: pointer; text-align: left; font-family: var(--ff-body); width: 100%; }
.contact-line.static { cursor: default; }
.contact-line:hover:not(.static) { border-color: var(--gold); }
.contact-line .ci { width: 30px; height: 30px; border-radius: 8px; background: color-mix(in srgb, var(--navy) 10%, transparent); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: .82rem; flex-shrink: 0; }
[data-theme="dark"] .contact-line .ci { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.copy-hint { margin-left: auto; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.contact-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.newsletter { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); }.newsletter h3 { margin-bottom: .4rem; }
.newsletter p { color: var(--muted); font-size: .92rem; }
.nl-form { display: flex; gap: .6rem; margin-top: 1rem; }
.nl-form input { flex: 1; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: .92rem; }
.nl-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.nl-msg { font-size: .86rem; margin-top: .7rem; min-height: 1.1rem; }
.nl-msg.ok { color: #2fae63; }
.nl-msg.err { color: #d9534f; }

/* ---- footer ---- */
.site-footer { background: var(--navy-deep); color: #d5dcec; padding: 2.4rem 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.1rem; color: #fff; }
.footer-role { color: #9aa6c2; font-size: .88rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: #c3cbdf; font-size: .9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { display: flex; align-items: center; gap: 1.2rem; color: #8b96b3; font-size: .84rem; }
.visitor-count b { color: var(--gold); }

/* ---- back to top ---- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: var(--shadow); z-index: 80; }
[data-theme="dark"] .to-top { background: var(--gold); color: #14203a; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }

.center-col { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* ---- reveal animation (only when JS is active; content always visible otherwise) ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- focus visibility ---- */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav-burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photo { order: -1; }
  .stat-grid, .expertise-grid { grid-template-columns: 1fr; }
  .edu-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .skill-row { grid-template-columns: 1fr; gap: .2rem; }
  .section { padding: 64px 0; }
  .hero { padding: 108px 0 68px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---- print ---- */
@media print {
  .site-header, .to-top, .scroll-progress, .reading-bar, .share-bar, .newsletter, .hero-cta, .theme-toggle, .nav-burger, .badges { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero { padding: 18px 0; }
  .exp-card, .stat-card, .summary-card, .expertise-card, .insight-card { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: none; }
}

/* ---- services / inquiry ---- */
.inquiry { max-width: 640px; margin: 2.5rem auto 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm); text-align: center; }
.inquiry h3 { margin-bottom: .3rem; }
.inquiry p { color: var(--muted); font-size: .93rem; }
.inquiry-form { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; text-align: left; }
.inquiry-form .two-up { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.inquiry-form input, .inquiry-form textarea { width: 100%; padding: .7rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: .92rem; }
.inquiry-form textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.inquiry-form .btn { align-self: flex-start; }
@media (max-width: 560px) { .inquiry-form .two-up { grid-template-columns: 1fr; } .inquiry-form .btn { width: 100%; justify-content: center; } }

/* ---- tool page ---- */
.tool-wrap { max-width: 760px; margin: 0 auto; }
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.calc-field { margin-bottom: 1.2rem; }
.calc-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.calc-field input[type=number], .calc-field input[type=range] { width: 100%; }
.calc-field input[type=number] { padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-family: var(--ff-body); font-size: 1rem; }
.calc-field .rng-row { display: flex; align-items: center; gap: 1rem; }
.calc-field .rng-val { font-weight: 700; color: var(--gold); min-width: 56px; text-align: right; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.5rem; }
.calc-out { background: var(--surface-2); border-radius: 12px; padding: 1.3rem; text-align: center; }
.calc-out .big { font-family: var(--ff-display); font-size: 2rem; font-weight: 800; color: var(--navy); }
[data-theme="dark"] .calc-out .big { color: var(--gold); }
.calc-out .cap { color: var(--muted); font-size: .82rem; margin-top: .3rem; }
.calc-note { color: var(--muted); font-size: .82rem; margin-top: 1.2rem; }
@media (max-width: 560px) { .calc-result { grid-template-columns: 1fr; } }
