/* ===== Construction Calculators — Global Styles ===== */
:root {
  --blue-600: #1e40af;
  --blue-500: #2563eb;
  --blue-100: #dbeafe;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .75rem; padding-bottom: .75rem;
}
.site-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--blue-600);
  display: flex; align-items: center; gap: .5rem;
}
.site-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 1.25rem; list-style: none; font-size: .9rem; }
.nav-links a { color: var(--gray-700); font-weight: 500; }
.nav-links a:hover { color: var(--blue-600); text-decoration: none; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--gray-700); }

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ---- Ad Slot ---- */
.ad-slot {
  background: var(--gray-100); border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm); text-align: center; padding: 1.5rem .5rem;
  color: var(--gray-500); font-size: .8rem; margin: 1.5rem 0;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--green-600) 100%);
  color: var(--white); padding: 4rem 0; text-align: center;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .75rem; line-height: 1.2; }
.hero p { font-size: 1.15rem; opacity: .9; max-width: 640px; margin: 0 auto 1.5rem; }
@media (max-width: 768px) { .hero h1 { font-size: 1.75rem; } .hero p { font-size: 1rem; } }

/* ---- Calculator Cards (Homepage) ---- */
.calc-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem; margin: 2.5rem 0;
}
.calc-card {
  background: var(--white); border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: .75rem;
  text-decoration: none; color: var(--gray-900);
  border: 1px solid var(--gray-100);
}
.calc-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); text-decoration: none; }
.calc-card .icon { font-size: 2rem; }
.calc-card h3 { font-size: 1.2rem; font-weight: 700; }
.calc-card p { font-size: .9rem; color: var(--gray-500); flex-grow: 1; }
.calc-card .arrow { color: var(--blue-500); font-weight: 600; font-size: .9rem; }

/* ---- Calculator Page Layout ---- */
.calc-page { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; padding: 2rem 0 4rem; }
@media (max-width: 900px) { .calc-page { grid-template-columns: 1fr; } }
.calc-main {}
.calc-sidebar {}

/* ---- Calculator Widget ---- */
.calc-widget {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  margin-bottom: 1.5rem;
}
.calc-widget h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; }

.input-group { margin-bottom: 1rem; }
.input-group label {
  display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; color: var(--gray-700);
}
.input-group input, .input-group select {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 1rem; transition: border-color .2s, box-shadow .2s;
  background: var(--white);
}
.input-group input:focus, .input-group select:focus {
  outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px var(--blue-100);
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .input-row { grid-template-columns: 1fr; } }

.btn-calc {
  width: 100%; padding: .85rem; border: none; border-radius: var(--radius-sm);
  background: var(--blue-600); color: var(--white); font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: background .2s; margin-top: .5rem;
}
.btn-calc:hover { background: var(--blue-500); }
.btn-calc:active { transform: scale(.98); }

/* ---- Results ---- */
.results {
  background: var(--green-100); border: 1px solid var(--green-500);
  border-radius: var(--radius-sm); padding: 1.25rem; margin-top: 1.25rem;
  display: none;
}
.results.show { display: block; }
.results h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-600); margin-bottom: .75rem; }
.result-item { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .95rem; }
.result-item .label { color: var(--gray-700); }
.result-item .value { font-weight: 700; color: var(--gray-900); }
.result-divider { border-top: 1px solid rgba(0,0,0,.08); margin: .5rem 0; }

/* ---- Content Section ---- */
.content-section {
  background: var(--white); border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow); border: 1px solid var(--gray-100);
  line-height: 1.75;
}
.content-section h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .75rem; color: var(--gray-900); }
.content-section h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 .5rem; color: var(--gray-900); }
.content-section p { margin-bottom: .75rem; color: var(--gray-700); }
.content-section ul, .content-section ol { margin: .5rem 0 .75rem 1.5rem; color: var(--gray-700); }
.content-section li { margin-bottom: .35rem; }

/* ---- Related Calculators ---- */
.related { margin-top: 1.5rem; }
.related h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
.related-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-links a {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--gray-100); padding: .45rem .85rem; border-radius: 999px;
  font-size: .85rem; font-weight: 500; color: var(--gray-700); border: 1px solid var(--gray-300);
  transition: background .2s, color .2s;
}
.related-links a:hover { background: var(--blue-100); color: var(--blue-600); text-decoration: none; }

/* ---- Footer ---- */
.site-footer {
  background: var(--gray-900); color: var(--gray-300); padding: 2.5rem 0 1.5rem;
  margin-top: 3rem; font-size: .85rem;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-col h4 { color: var(--white); font-weight: 700; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .35rem; }
.footer-col a { color: var(--gray-300); }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; padding-top: 1rem; text-align: center; }

/* ---- Breadcrumb ---- */
.breadcrumb { font-size: .85rem; color: var(--gray-500); padding: 1rem 0; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--blue-500); }

/* ---- Utility ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
/** deploy: 20260416235051 **/