/* ToolsHubPro — Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Lora:ital,wght@0,600;0,700;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0C1E35;
  --navy2:  #152D4A;
  --blue:   #1B5FCE;
  --blue2:  #1450B0;
  --accent: #2B8EF0;
  --gold:   #F59E0B;
  --bg:     #F4F7FB;
  --white:  #FFFFFF;
  --text:   #0C1E35;
  --muted:  #5A6B7F;
  --border: #DDE5EF;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(12,30,53,.09);
  --shadow-lg: 0 10px 40px rgba(12,30,53,.14);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: 'Lora', serif; line-height: 1.18; }
main { flex: 1; }

.site-nav {
  background: var(--navy);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.28);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 38px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: rgba(255,255,255,.72); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--blue); color: #fff; padding: 8px 18px; border-radius: 8px; font-weight: 700; }
.nav-cta:hover { background: var(--blue2); }

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: rgba(255,255,255,.85);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
/* Mobile slide-in menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 270px;
  height: 100vh;
  background: var(--navy);
  z-index: 300;
  transition: right .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.4);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 32px;
  cursor: pointer;
  padding: 0 0 16px;
  line-height: 1;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu-links a {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.mobile-menu-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobile-menu-links .mobile-menu-cta {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-weight: 700;
  margin-top: 8px;
}
.mobile-menu-links .mobile-menu-cta:hover { background: var(--blue2); }
/* Mobile overlay backdrop */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 250;
}
.mobile-overlay.open { display: block; }

.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 5%; font-size: .8rem; color: var(--muted); }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

.tool-hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy2) 55%, #1a3c70 100%);
  padding: 48px 5% 56px;
  position: relative;
  overflow: hidden;
}
.tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 100% 50%, rgba(43,142,240,.15) 0%, transparent 60%);
  pointer-events: none;
}
.tool-hero-inner { max-width: 820px; position: relative; z-index: 1; }
.tool-category-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .73rem; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--accent); background: rgba(43,142,240,.12); border: 1px solid rgba(43,142,240,.25);
  padding: 5px 12px; border-radius: 50px; margin-bottom: 14px;
}
.tool-hero h1 { font-size: clamp(1.85rem, 4vw, 2.85rem); font-weight: 700; color: #fff; margin-bottom: 14px; }
.tool-hero h1 em { color: var(--accent); font-style: normal; }
.tool-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 580px; line-height: 1.7; }
.hero-meta { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.hero-meta span { font-size: .79rem; color: rgba(255,255,255,.58); display: flex; align-items: center; gap: 5px; }
.hero-meta span::before { content: '✓'; color: var(--accent); font-weight: 800; }

.page-layout {
  max-width: 1180px; margin: 0 auto; padding: 32px 5% 56px;
  display: grid; grid-template-columns: 1fr 295px; gap: 26px; width: 100%;
}
.main-col { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.calc-box { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 26px; }
.calc-header { background: linear-gradient(135deg, var(--navy), var(--navy2)); color: #fff; padding: 14px 22px; font-weight: 700; font-size: .93rem; display: flex; align-items: center; gap: 8px; }
.calc-header .icon { font-size: 1.1rem; }
.calc-body { padding: 22px; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-weight: 700; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.form-group input, .form-group select {
  padding: 11px 14px; border: 2px solid var(--border); border-radius: 8px; font-size: .95rem;
  color: var(--text); background: var(--bg); outline: none; transition: border .2s, background .2s, box-shadow .2s;
  font-family: 'Plus Jakarta Sans', sans-serif; width: 100%;
}
.form-group input:focus, .form-group select:focus { border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(27,95,206,.1); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-full { grid-column: 1 / -1; }

.input-prefix-wrap { position: relative; }
.input-prefix-wrap .prefix { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; pointer-events: none; font-size: .9rem; }
.input-prefix-wrap input { padding-left: 24px; }

.calc-btn {
  width: 100%; padding: 13px; background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff; border: none; border-radius: 9px; font-size: 1rem; font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif; cursor: pointer; transition: all .2s; margin-top: 6px;
}
.calc-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(27,95,206,.38); }
.calc-btn:active { transform: translateY(0); }

.result-area { display: none; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 18px; }
.result-area.visible { display: block; }
.result-primary { background: linear-gradient(135deg, #EBF3FF, #D5E8FD); border: 1px solid rgba(27,95,206,.2); border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.result-primary-label { font-size: .76rem; font-weight: 700; color: var(--blue2); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.result-primary-value { font-family: 'Lora', serif; font-size: 2rem; font-weight: 700; color: var(--navy); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.result-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 11px 13px; }
.result-item-label { font-size: .73rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.result-item-value { font-weight: 700; font-size: 1rem; color: var(--navy); }
.result-note { font-size: .8rem; color: #78530A; line-height: 1.55; padding: 10px 14px; background: #FFFBEB; border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; }

.content-section { margin-bottom: 34px; }
.content-section h2 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.content-section h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 18px 0 8px; font-family: 'Plus Jakarta Sans', sans-serif; }
.content-section p { color: #364B62; line-height: 1.78; margin-bottom: 13px; font-size: .96rem; }
.content-section ul, .content-section ol { padding-left: 22px; margin-bottom: 13px; }
.content-section li { color: #364B62; line-height: 1.78; margin-bottom: 6px; font-size: .96rem; }
.content-section a { color: var(--blue); font-weight: 600; }
.content-section a:hover { text-decoration: underline; }

.example-box { background: #EEF5FF; border: 1px solid #BDD6FD; border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.example-box h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: #1440A0; margin-bottom: 10px; font-size: .93rem; }
.example-box p { color: #1E3F7A; margin-bottom: 6px; font-size: .92rem; }
.example-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.example-table th { background: #1B5FCE; color: #fff; padding: 8px 12px; font-size: .79rem; text-align: left; font-weight: 700; }
.example-table td { padding: 8px 12px; font-size: .87rem; border-bottom: 1px solid #BDD6FD; color: #1E3F7A; }
.example-table tr:last-child td { border-bottom: none; }
.example-table tr:nth-child(even) td { background: rgba(189,214,253,.18); }

.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 9px; overflow: hidden; }
.faq-question { padding: 15px 20px; background: var(--white); font-weight: 700; font-size: .93rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; user-select: none; }
.faq-question:hover { background: var(--bg); }
.faq-arrow { color: var(--blue); font-size: 1.1rem; transition: transform .25s; flex-shrink: 0; margin-left: 10px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { display: none; padding: 14px 20px 16px; background: var(--white); font-size: .91rem; color: #364B62; line-height: 1.72; border-top: 1px solid var(--border); }
.faq-item.open .faq-answer { display: block; }

.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.sidebar-card-header { background: var(--navy); color: #fff; padding: 11px 18px; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.sidebar-card-body { padding: 14px 16px; }
.related-tool-link { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); transition: all .2s; }
.related-tool-link:last-child { border-bottom: none; }
.related-tool-link:hover { padding-left: 4px; }
.related-tool-link .tool-icon { font-size: 1.2rem; width: 34px; height: 34px; background: var(--bg); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.related-tool-link .tool-info .tool-name { font-weight: 700; font-size: .86rem; color: var(--navy); }
.related-tool-link:hover .tool-name { color: var(--blue); }
.related-tool-link .tool-info .tool-desc { font-size: .74rem; color: var(--muted); }

.disclaimer-box { background: #FFFBEB; border: 1px solid #FDE68A; border-radius: var(--radius); padding: 14px 18px; margin-top: 8px; }
.disclaimer-box p { font-size: .79rem; color: #78530A; margin: 0; line-height: 1.6; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.62); padding: 50px 5% 26px; margin-top: auto; }
.footer-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 12px; object-fit: contain; }
.footer-brand p { font-size: .84rem; line-height: 1.66; max-width: 250px; }
.footer-col h4 { font-size: .79rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.9); margin-bottom: 13px; }
.footer-col a { display: block; font-size: .84rem; color: rgba(255,255,255,.54); margin-bottom: 7px; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .79rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--accent); }

.hidden { display: none !important; }

@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-nav { padding: 0 4%; }
  .nav-links { gap: 10px; }
  .nav-links .nav-hide-sm { display: none; }
  .hamburger { display: flex; }
  .nav-cta-pro { display: none; }
  .tool-hero { padding: 32px 4% 40px; }
  .page-layout { padding: 20px 4% 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .breadcrumb { padding: 8px 4%; }
}

/* Email Capture Widget */
.email-capture-widget {
  margin: 30px 0;
  padding: 25px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 100%);
  border-radius: 12px;
  border: 1px solid #c8e1f5;
}
.ec-inner { max-width: 500px; margin: 0 auto; text-align: center; }
.ec-heading { font-size: 18px; font-weight: 700; margin: 0 0 15px; color: #1a365d; }
.ec-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.ec-input { flex: 1; min-width: 200px; padding: 12px 16px; border: 2px solid #c8e1f5; border-radius: 8px; font-size: 15px; }
.ec-btn { padding: 12px 24px; background: #1a73e8; color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.ec-btn:hover { background: #1557b0; }
.ec-note { font-size: 12px; color: #666; margin: 10px 0 0; }
.ec-success { color: #27ae60; font-weight: 600; font-size: 16px; }

/* Newsletter Mini */
.newsletter-mini { margin: 30px 0 20px; padding: 20px; background: #f8fafc; border-radius: 10px; }
.newsletter-mini h4 { margin: 0 0 12px; font-size: 16px; }
.ns-input:focus { outline: none; border-color: #1a73e8; }

/* Touch target sizing for footer links */
.touch-target { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
