/* Small additions on top of the original Odoo theme (web-assets_frontend-min-*.css). */

/* contact form honeypot (anti-spam), never visible */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }

/* Case studies page (/case-studies): before / after layout per project */
.cs-head { max-width: 860px; margin-bottom: 32px; }
.cs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; font-size: .9rem; opacity: .75; }
.cs-chip { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #003EFF; color: #fff; opacity: 1; font-weight: 600; }
.cs-meta .cs-chip { opacity: 1; }
.cs-client { font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.cs-title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.15; margin: 0; }
.cs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.cs-facts > div { border-top: 2px solid #003EFF; padding-top: 12px; }
.cs-facts strong { display: block; font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 400; }
.cs-facts span { font-size: .9rem; opacity: .75; }
.cs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cs-col { border-radius: 16px; padding: 28px 32px; }
.cs-col h3 { font-size: 1.25rem; margin-bottom: 16px; }
.cs-col ul { margin: 0; padding-left: 1.1em; }
.cs-col li { margin-bottom: 10px; }
.cs-col li:last-child { margin-bottom: 0; }
.cs-before { background: rgba(127, 127, 127, .12); }
.cs-before h3::before { content: "✕ "; opacity: .6; }
.cs-after { background: #003EFF; color: #fff; }
.cs-after h3 { color: #fff; }
.cs-after h3::before { content: "✓ "; }
.cs-delivered { margin: 24px 0 0; font-size: .95rem; opacity: .8; }
@media (max-width: 767.98px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-facts { grid-template-columns: 1fr; gap: 12px; }
  .cs-col { padding: 22px 20px; }
}

/* Industries page cards */
.ind-card .card-body { padding: 24px; }
.ind-card h2 { margin-bottom: 8px; }
.ind-card a { font-weight: 600; }

/* Home: case studies teaser */
.home-case { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; border-radius: 16px; background: rgba(127, 127, 127, .12); color: inherit; text-decoration: none; transition: background .2s, color .2s; }
.home-case:hover { background: #003EFF; color: #fff; text-decoration: none; }
.home-case .cs-chip { align-self: flex-start; }
.home-case .cs-client { margin: 0; }
.home-case-txt { font-size: 1.25rem; line-height: 1.3; flex: 1; }
.home-case-more { font-size: 1.5rem; }

/* Custom solution: what we automate */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.svc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 24px; }
.svc-item { border-top: 2px solid #003EFF; padding-top: 16px; }
.svc-item h3 { font-size: 1.25rem; margin-bottom: 8px; }
.svc-item p { margin: 0; }
.svc-accent { border-top: 0; border-radius: 16px; padding: 28px 32px; background: #003EFF; color: #fff; }
.svc-accent h3 { color: #fff; }
@media (max-width: 991.98px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .svc-grid, .svc-grid-2 { grid-template-columns: 1fr; } .svc-accent { padding: 22px 20px; } }

/* Blog: index cards */
.blog-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 32px; border-radius: 16px; background: rgba(127, 127, 127, .12); color: inherit; text-decoration: none; transition: background .2s, color .2s; }
.blog-card:hover { background: #003EFF; color: #fff; text-decoration: none; }
.blog-date { font-size: .85rem; opacity: .7; }
.blog-card-title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; margin: 0; color: inherit; }
.blog-card-desc { flex: 1; opacity: .85; }
.blog-card-more { font-weight: 600; }

/* Blog: article */
.post-container { max-width: 820px; }
.post-lead { max-width: 760px; }
.post-meta { font-size: .9rem; opacity: .8; margin-bottom: 16px; }
.post-meta a { color: inherit !important; text-decoration: underline; }
.post-body { font-size: 1.05rem; line-height: 1.75; }
.post-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 48px 0 16px; line-height: 1.2; }
.post-body h3 { font-size: 1.25rem; margin: 32px 0 12px; }
.post-body p, .post-body ul, .post-body ol { margin-bottom: 20px; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: #003EFF; text-decoration: underline; }
.post-body .post-note { border-left: 3px solid #003EFF; padding: 12px 20px; background: rgba(0, 62, 255, .06); border-radius: 0 12px 12px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: .95rem; }
.post-body th, .post-body td { border-bottom: 1px solid rgba(127, 127, 127, .3); padding: 10px 8px; text-align: left; vertical-align: top; }
@media (max-width: 767.98px) { .blog-card { padding: 24px 20px; } .post-body table { display: block; overflow-x: auto; } }

/* ---------- forms: call booking note, careers ---------- */
.booking-note { font-size: .9rem; opacity: .8; }
#cf_date, #cf_time { min-height: 46px; }
.careers-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.careers-list li { padding: .75rem 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.careers-list li:last-child { border-bottom: 0; }
.careers-form .s_website_form_label { display: block; margin-bottom: .35rem; font-weight: 500; }
.form-success { padding: 1.5rem; border-radius: 12px; background: #0032CC; color: #fff; font-size: 1.1rem; }

/* ---------- step-by-step contact form (site.js, form[data-steps]) ---------- */
.is-stepped .step-off { display: none !important; }
.form-steps-head { margin-bottom: 1.75rem; }
.form-steps-count { margin: 0 0 .5rem; font-size: .9rem; font-weight: 600; letter-spacing: .02em; opacity: .7; }
.form-steps-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); overflow: hidden; }
.form-steps-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: #003EFF; transition: width .35s ease; }
.is-stepped .s_website_form_field { flex: 0 0 100%; max-width: 100%; }
.is-stepped .s_website_form_field[data-step="5"] { flex: 0 0 50%; max-width: 50%; }
.is-stepped .s_website_form_label { width: auto !important; display: block; margin-bottom: .75rem; }
.is-stepped .s_website_form_field:not([data-step="5"]) .s_website_form_label_content,
.form-steps-question { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem); font-weight: 500; line-height: 1.25; }
.form-steps-question { margin: 0 0 1rem; }
.is-stepped .s_website_form_mark { display: none; }
.is-stepped .s_website_form_input { min-height: 54px; font-size: 1.1rem; }
.is-stepped textarea.s_website_form_input { min-height: 160px; }
.form-steps-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form-steps-back { order: -1; margin-right: auto; padding: .5rem 0; border: 0; background: none; color: inherit; font-weight: 500; opacity: .7; cursor: pointer; }
.form-steps-back:hover { opacity: 1; text-decoration: underline; }
.form-steps-next { margin-left: auto; }
.form-steps-hint { width: 100%; text-align: right; font-size: .8rem; opacity: .55; }
.form-steps-nav button[hidden], .form-steps-hint[hidden] { display: none; }
.is-stepped .s_website_form_submit { display: flex; justify-content: flex-end; }
@media (max-width: 575.98px) {
  .is-stepped .s_website_form_field[data-step="5"] { flex: 0 0 100%; max-width: 100%; }
  .form-steps-next { flex: 1; }
  .form-steps-hint { display: none; }
}

/* ---------- fast background video (see fastBgVideo in build.mjs) ---------- */
.bgv { container-type: size; background: #000 center / cover no-repeat; }
.bgv-iframe {
  position: absolute !important; top: 50%; left: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity .8s ease;
}
.bgv-iframe.is-ready { opacity: 1; }

/* ---------- blog: call-to-action in the middle of articles ---------- */
.post-cta { margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: 14px; background: #0032CC; color: #fff; }
.post-cta p { color: #fff; margin-bottom: .75rem; }
.post-cta .post-cta-title { font-size: 1.25rem; font-weight: 600; margin-bottom: .4rem; }
.post-cta .btn { background: #fff !important; color: #0032CC !important; border: 0; padding: .55rem 1.4rem; text-decoration: none !important; font-weight: 600; }

/* ---------- region pages ---------- */
.region-intro { max-width: 900px; }
.region-towns { padding: 24px 28px; border-radius: 16px; background: rgba(127, 127, 127, .12); }
.region-faq { border-bottom: 1px solid rgba(127, 127, 127, .3); padding: 14px 0; }
.region-faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.region-faq summary::-webkit-details-marker { display: none; }
.region-faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.region-faq[open] summary::after { content: "−"; }
.region-faq p { margin: 10px 0 0; }
.region-all { color: #fff !important; opacity: .85; text-decoration: underline; }

/* ---------- ROI calculator ---------- */
.roi-field { margin-bottom: 1.25rem; }
.roi-field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.roi-field label span { font-weight: 400; opacity: .75; }
.roi-field small { display: block; margin-top: .35rem; opacity: .75; font-size: .85rem; }
.roi-field .form-control, .roi-field .form-select { min-height: 46px; }
.roi-results { position: sticky; top: 110px; padding: 28px; border-radius: 16px; background: #0032CC; color: #fff; }
.roi-results p { color: #fff; }
.roi-label { margin: 0; font-size: .9rem; opacity: .85; }
.roi-big { font-size: 2rem; font-weight: 600; line-height: 1.15; margin: 0 0 1rem; }
.roi-note { font-size: .95rem; margin: .5rem 0 1.25rem; }
.roi-cta { display: inline-block; background: #fff !important; color: #0032CC !important; border-radius: 999px; padding: .65rem 1.4rem; font-weight: 600; text-decoration: none !important; }
.roi-small { font-size: .8rem; opacity: .8; margin: .75rem 0 0; }
.roi-method { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(127, 127, 127, .3); max-width: 900px; }
@media (max-width: 991.98px) { .roi-results { position: static; } }
.region-reads { padding-left: 1.1rem; } .region-reads li { margin-bottom: .35rem; }
