:root {
    --primary-color: #005A9C;
    --primary-dark: #004475;
    --secondary-color: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.5;
    background-color: #ffffff;
}

/* --- Navigation Bar --- */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
}
.brand h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.brand p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}
.nav-links a:hover {
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0;
}

section {
    padding: 80px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
}
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}
.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}
.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
}
.btn-on-dark {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.btn-on-dark:hover {
    background-color: #f1f5f9;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #0f172aed, #005a9ced);
    color: white;
    padding: 100px 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}
.hero-copy {
    flex: 1 1 480px;
    max-width: 560px;
}
.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}
.hero p {
    font-size: 1.2rem;
    margin: 0;
    opacity: 0.9;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.hero-visual {
    position: relative;
    flex: 0 0 340px;
    width: 340px;
    height: 320px;
}
.hero-image {
    position: absolute;
    background-color: white;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.35);
    object-fit: contain;
}
.hero-image-back {
    width: 220px;
    height: 220px;
    top: 0;
    right: 0;
}
.hero-image-front {
    width: 200px;
    height: 200px;
    bottom: 0;
    left: 0;
    z-index: 2;
}

/* --- Feature Layout --- */
.section-subtitle {
    color: #64748b;
    margin-top: -10px;
    margin-bottom: 10px;
}
.assets-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.feature-box {
    padding: 24px;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.feature-box h4 {
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}
.feature-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
}

.industries-strip {
    margin-top: 56px;
    text-align: center;
}
.industries-strip h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 16px;
}
.industries-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.industries-list span {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #334155;
    font-weight: 500;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 40px;
    text-align: center;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 12px;
}
.step h4 {
    margin: 8px 0;
}
.step p {
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Costing Tool Teaser --- */
.costing-teaser {
    padding: 60px 0;
}
.costing-teaser-inner {
    max-width: 760px;
    text-align: center;
}
.costing-teaser-copy {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 12px 24px -8px rgba(0, 90, 156, 0.12);
}
.costing-teaser-copy h2 {
    margin-top: 0;
}
.costing-teaser-copy > p {
    color: #475569;
    max-width: 60ch;
    margin: 0 auto 24px auto;
}
.costing-teaser-points {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}
.costing-teaser-points li {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 500;
}
.costing-teaser-points li::before {
    content: "\2713";
    color: var(--primary-color);
    font-weight: 700;
    margin-right: 8px;
}

/* --- Call to Action Banner --- */
.toll-service {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 60px 0;
}
.toll-service h2 { margin: 0 0 15px 0; }
.toll-service p { max-width: 700px; margin: 0 auto 30px auto; opacity: 0.9; }

/* --- Form Fields --- */
form {
    max-width: 550px;
    margin: 40px auto 0 auto;
    padding: 32px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.hidden-field {
    position: absolute;
    left: -9999px;
}
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}
button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}
button:hover { background-color: var(--primary-dark); }

.address-info { text-align: center; margin-top: 40px; color: #475569; }
.address-info a { color: var(--primary-color); text-decoration: none; }
.address-info a:hover { text-decoration: underline; }
.prefer-whatsapp { font-size: 0.85rem; color: #64748b; margin-top: 8px; }

footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 30px 5%;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #1e293b;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
}
.footer-links a:hover { color: #ffffff; }

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 200;
    transition: transform 0.2s;
}
.whatsapp-float:hover {
    transform: scale(1.08);
}

/* --- Blog --- */
.breadcrumb {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 24px;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.blog-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: white;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.05);
}
.blog-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}
.post-meta {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 12px;
}
.blog-card .excerpt {
    color: #475569;
    font-size: 0.95rem;
    flex: 1;
}
.blog-card .read-more {
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}
.blog-card .read-more:hover { text-decoration: underline; }

.post-content {
    max-width: 760px;
    margin: 0 auto;
}
.post-content h2 {
    color: var(--text-color);
    margin-top: 40px;
}
.post-content p {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 20px;
}
.post-content ul {
    color: #334155;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 20px;
}
.post-content li {
    margin-bottom: 8px;
}

/* --- Tooling Cost Calculator --- */
.calc-intro {
    padding-bottom: 24px;
}
.calc-intro h1 {
    margin: 8px 0 12px 0;
}
.calc-intro .section-subtitle {
    max-width: 720px;
    margin: 0;
    text-align: left;
}
.calc-tool {
    padding-top: 24px;
}
.calc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}
.calc-form {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.calc-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}
.calc-card h3 {
    margin: 0 0 16px 0;
    font-size: 1.05rem;
    color: var(--text-color);
}
.calc-card label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 16px;
}
.calc-card label:last-child { margin-bottom: 0; }
.calc-card input[type="number"],
.calc-card input[type="text"],
.calc-card select {
    display: block;
    width: 100%;
    margin: 6px 0 0 0;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: white;
}
.calc-card input:focus,
.calc-card select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 90, 156, 0.15);
}
.calc-toggle {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.calc-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.calc-radio input { margin: 0; }
.calc-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}
.calc-checkbox input { margin: 0; }
.calc-hint-inline {
    color: #64748b;
    font-weight: 400;
}
.calc-hint {
    display: block;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 400;
    margin-top: 4px;
}
.calc-advanced-toggle {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0;
    cursor: pointer;
    width: auto;
}
.calc-advanced-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}
.calc-calculate-btn {
    width: 100%;
}

.calc-preset-label {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 10px 0;
}
.calc-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.calc-preset-btn {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}
.calc-preset-btn:hover,
.calc-preset-btn:focus-visible {
    background-color: rgba(0, 90, 156, 0.08);
    border-color: var(--primary-color);
}
.calc-preset-btn.is-active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.calc-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.calc-results[hidden] {
    display: none;
}
.calc-result-card {
    text-align: left;
}
.calc-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}
.calc-range {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 8px 0;
    font-variant-numeric: tabular-nums;
}
.calc-muted {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}
.calc-breakdown {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.calc-bar-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}
.calc-bar-label {
    color: #475569;
}
.calc-bar-track {
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 999px;
    overflow: hidden;
}
.calc-bar-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 999px;
}
.calc-bar-value {
    font-variant-numeric: tabular-nums;
    color: var(--text-color);
    font-weight: 600;
    text-align: right;
}
.calc-assumptions h4 {
    margin: 0 0 12px 0;
    font-size: 0.95rem;
}
.calc-assumptions ul {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 0.88rem;
}
.calc-assumptions li {
    margin-bottom: 6px;
}
.calc-disclaimer {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
}
.calc-disclaimer p {
    margin: 0;
    font-size: 0.88rem;
    color: #475569;
}
.calc-quote-form {
    max-width: none;
    margin: 0;
}
.calc-quote-form h4 {
    margin: 0 0 16px 0;
}

/* --- Calculator chart --- */
.calc-chart-card h4 {
    margin: 0 0 6px 0;
    font-size: 0.95rem;
}
.calc-chart-wrap {
    position: relative;
    margin-top: 16px;
}
#calc-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}
.calc-chart-grid line {
    stroke: var(--border-color);
    stroke-width: 1;
}
.calc-chart-area {
    fill: rgba(0, 90, 156, 0.1);
}
.calc-chart-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.calc-chart-point {
    fill: white;
    stroke: var(--primary-color);
    stroke-width: 2;
}
.calc-chart-point.is-current {
    fill: var(--primary-color);
    stroke: white;
    stroke-width: 2;
    r: 6;
}
.calc-chart-hit {
    cursor: crosshair;
}
.calc-chart-crosshair {
    stroke: #94a3b8;
    stroke-width: 1;
    stroke-dasharray: 3 3;
}
.calc-chart-axis-label {
    fill: #64748b;
    font-size: 10px;
    font-family: var(--font-family);
}
.calc-chart-tooltip {
    position: absolute;
    pointer-events: none;
    background-color: #0f172a;
    color: white;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transform: translate(-50%, -115%);
    z-index: 5;
}
.calc-chart-tooltip[hidden] {
    display: none;
}
.calc-chart-table-toggle {
    margin-top: 14px;
}
.calc-chart-table-toggle summary {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
}
.twrap-calc {
    overflow-x: auto;
    margin-top: 12px;
}
.twrap-calc table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.twrap-calc th,
.twrap-calc td {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-color);
    font-variant-numeric: tabular-nums;
}

/* --- Calculator FAQ --- */
.calc-faq {
    background-color: var(--secondary-color);
}
.faq-list {
    max-width: 720px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::before {
    content: "+";
    display: inline-block;
    width: 18px;
    color: var(--primary-color);
    font-weight: 700;
}
.faq-item[open] summary::before {
    content: "\2212";
}
.faq-item p {
    margin: 12px 0 0 18px;
    color: #475569;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .calc-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    section { padding: 50px 0; }
    .site-nav { flex-direction: column; text-align: center; gap: 12px; }
    .nav-links { justify-content: center; }
    .whatsapp-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-copy { max-width: none; }
    .hero-actions { justify-content: center; }
    .hero-visual { width: 260px; height: 240px; margin: 8px auto 0 auto; }
    .hero-image-back { width: 170px; height: 170px; }
    .hero-image-front { width: 150px; height: 150px; }
}
