/* Compatibility with the existing quote, privacy, complaints and gallery modules.
   Load after styles.css and before each module's stylesheet. */
:root {
  --tint-blue: var(--tint);
  --lightblue: var(--tint);
  --blue-line: #c9d7e6;
  --blue-hover-surface: #e1eaf4;
  --petrol: #244b5a;
}

/* Catalogue spacing is independent of service, project and legal pages. */
body[data-page="servicios"] .page-hero { padding: 16px 0 32px; }
body[data-page="servicios"] .breadcrumbs { margin-bottom: 16px; }
body[data-page="servicios"] .page-heading h1 { font-size: clamp(32px,3.4vw,48px); }
body[data-page="servicios"] .page-heading .lead { margin-top: 16px; font-size: 18px; line-height: 1.6; }
body[data-page="servicios"] .catalog-nav { margin-top: 20px; }
body[data-page="servicios"] main > .section { padding-block: 48px; }
body[data-page="servicios"] .section-heading { margin-bottom: 28px; }
@media (max-width: 760px) {
  body[data-page="servicios"] .page-hero { padding: 12px 0 24px; }
  body[data-page="servicios"] .breadcrumbs { margin-bottom: 12px; }
  body[data-page="servicios"] .page-heading .eyebrow { margin-bottom: 10px; }
  body[data-page="servicios"] .page-heading .lead { margin-top: 14px; font-size: 16px; }
  body[data-page="servicios"] .catalog-nav { margin-top: 16px; }
  body[data-page="servicios"] main > .section { padding-block: 32px; }
  body[data-page="servicios"] .section-heading { margin-bottom: 24px; }
}

/* Shared controls retained by the existing modules. */
.button-outline { background: #fff; border-color: #8ca8bc; color: var(--blue); }
.button-outline:hover { background: var(--tint); border-color: var(--blue); color: var(--blue); }
.button-light { background: #fff; border-color: #fff; color: var(--navy); }
.button-light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.button-dark { background: var(--navy); border-color: var(--navy); }
.button-dark:hover { background: #244b5a; border-color: #244b5a; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--blue); text-align: left; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.icon-button { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 1px solid #8ca8bc; border-radius: 5px; background: #fff; color: var(--ink); }
.icon-button:hover { background: var(--tint); }
input::placeholder, textarea::placeholder { color: #586773; font-size: 14px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-card input:not([type=checkbox],[type=radio]), .form-card select, .form-card textarea { border-color: #718497; }

/* Both the new breadcrumb and the retained legal-page list are supported. */
.breadcrumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: flex; align-items: center; gap: 12px; min-height: 36px; margin: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); }
.breadcrumbs a { min-height: 44px; }
.policy-page .breadcrumbs, .book-page .breadcrumbs { padding-top: 24px; margin-bottom: 24px; }
.policy-page .policy-index li { margin: 0; }

/* Brand art stays at its intrinsic aspect ratio. */
.brand-logo { object-fit: contain; }
.site-header { box-shadow: inset 0 1px var(--cyan); }
.menu-icon--open, .menu-icon--close { display: inline-grid; place-items: center; }
.menu-icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-icon--close { display: inline-grid; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--tint); }
.site-footer { border-top: 4px solid var(--cyan); }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer .footer-social-link { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px; gap: 10px; }
.footer-social-link > span { min-width: 0; }
.footer-social-link > .social-icon { width: 26px; height: 26px; flex: none; }
.footer-social-link > svg:not(.social-icon) { width: 16px; height: 16px; }
.footer-phone-number { white-space: nowrap; }
.footer-brand .footer-owner { margin-top: 14px; max-width: 100%; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-identity { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.footer-policy-links { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; min-width: 0; }
.footer-policy-links a, .footer-policy-links .text-button { min-height: 44px; color: #dfebf2; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer-policy-links a:hover, .footer-policy-links .text-button:hover { color: #fff; }
.footer-policy-links a[aria-current] { font-weight: 700; }

/* Existing quote form: field IDs, radios and validation remain unchanged. */
.quote-tool { min-width: 0; padding: 30px; border: 1px solid var(--blue-line); border-top: 4px solid var(--blue); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.quote-tool-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 20px; }
.quote-tool h2 { font-size: 26px; }
.quote-tool-heading > span { padding-top: 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.quote-terms { margin-bottom: 22px; font-size: 14px; overflow-wrap: anywhere; }
.quote-terms .text-link { display: inline; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
#quote-fallback p + p { margin-top: 12px; }
#quote-form fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
#quote-form legend { display: block; margin-bottom: 9px; padding: 0; color: #28485e; font-size: 14px; font-weight: 650; }
#quote-form .field > label { font-size: 14px; }
#quote-form input:not([type=checkbox],[type=radio]), #quote-form select, #quote-form textarea { border-color: #718497; }
#quote-form textarea { min-height: 130px; }
.segmented { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; padding: 4px; border: 1px solid var(--blue-line); border-radius: 5px; background: var(--tint); }
.segmented label { position: relative; min-width: 0; cursor: pointer; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segmented span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px; border: 1px solid transparent; border-radius: 3px; color: var(--ink); font-size: 14px; }
.segmented input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; font-weight: 650; }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.optional { color: var(--muted); font-weight: 400; }
.field-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 14px; padding-top: 5px; color: var(--muted); font-size: 12px; }
.consent { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; color: #485862; font-size: 14px; line-height: 1.6; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.privacy-link { margin-left: 31px; font-size: 14px; }
.form-warning { display: flex; align-items: flex-start; gap: 9px; padding: 14px; margin-block: 12px 20px; background: var(--soft); color: var(--muted); font-size: 13px; }
.form-warning svg { width: 18px; height: 20px; }
.submit-button { width: 100%; justify-content: space-between; }
/* Focused software and cloud enquiries share a compact layout. */
.quote-software-summary { display: none; }
:is(.software-enquiry,.cloud-enquiry) .quote-default-summary, :is(.software-enquiry,.cloud-enquiry) .quote-tool > .field-help { display: none; }
:is(.software-enquiry,.cloud-enquiry) .quote-software-summary { display: inline; }
:is(.software-enquiry,.cloud-enquiry) .quote-tool { padding: 24px; }
:is(.software-enquiry,.cloud-enquiry) .quote-tool-heading { display: block; margin-bottom: 12px; }
:is(.software-enquiry,.cloud-enquiry) .quote-tool-heading .eyebrow { margin-bottom: 8px; }
:is(.software-enquiry,.cloud-enquiry) .quote-tool h2 { margin-bottom: 0; }
:is(.software-enquiry,.cloud-enquiry) .quote-tool > .quote-terms { margin: 0 0 18px; line-height: 1.6; }
:is(.software-enquiry,.cloud-enquiry) #quote-form .field { margin-bottom: 14px; }
:is(.software-enquiry,.cloud-enquiry) #quote-form textarea { min-height: 112px; }
:is(.software-enquiry,.cloud-enquiry) .form-warning { padding: 10px; margin-block: 8px 14px; }
:is(.software-enquiry,.cloud-enquiry) .contact-detail a[data-quote-whatsapp] { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.cloud-enquiry .cloud-enquiry-scope { margin: 0 0 14px; color: var(--blue); font-size: 13px; font-weight: 650; line-height: 1.6; }
.cloud-enquiry #quote-form .cloud-enquiry-help { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
@media (min-width: 1051px) {
  :is(.software-enquiry,.cloud-enquiry) .diagnostic-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 48px; }
}
#quote-form .field-error { font-size: 13px; }
.error-summary { padding: 14px 16px; margin-bottom: 22px; border-left: 3px solid var(--error); background: #fff3f4; color: #8e2824; font-size: 14px; }
.error-summary p { color: inherit; font-weight: 650; }
.error-summary ul { padding-left: 20px; margin-block: 6px 0; }
.error-summary a { text-decoration: underline; text-underline-offset: 3px; }
.support-cta { max-width: 100%; }
.support-cta span { min-width: 0; overflow-wrap: anywhere; }
.service-row, .intent-card, .project-card { position: relative; }
.anchor-alias { position: absolute; display: block; width: 0; height: 0; overflow: hidden; scroll-margin-top: 116px; }
.project-actions, .project-external-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.project-actions > *, .project-external-links > * { min-width: 0; overflow-wrap: anywhere; }
@media (min-width: 1051px) {
  .portfolio-page .project-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 34px; }
  .portfolio-page .project-card:last-child:nth-child(odd) .project-info { padding-top: 0; }
}

/* Approved project stories share the site palette and the existing gallery. */
.case-story-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); align-items: center; gap: 48px; }
.case-story .page-heading h1 { font-size: clamp(34px,3.3vw,48px); }
.case-story .page-heading .lead { font-size: 18px; }
.case-story .page-heading .case-story-status { color: var(--muted); font-size: 13px; line-height: 1.6; }
.case-story-proof { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.case-story-proof .eyebrow { font-size: 11px; }
.case-story-proof .project-shot { margin: 0; }
.case-story-proof .project-shot img { display: block; height: auto; object-fit: contain; }
.case-story-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; list-style: none; padding: 24px 0 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.case-story-steps li { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--ink); font-size: 15px; font-weight: 650; }
.case-story-steps span { color: var(--blue); font-size: 12px; }
.case-story-context, .case-story-demo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 64px; align-items: start; }
.case-story h2 { font-size: clamp(28px,2.7vw,38px); margin-bottom: 22px; }
.case-story-context p + p, .case-story-value p + p { margin-top: 18px; }
.case-story-functions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.case-story-functions li { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.case-story-functions svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 4px; }
.case-story-functions h3 { font-size: 20px; margin-bottom: 10px; }
.case-story-functions p { font-size: 15px; }
.case-story-scenario { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.case-story-scenario li { padding: 19px 0; margin: 0; border-bottom: 1px solid var(--line); }
.case-story-scenario strong { display: block; font-size: 18px; color: var(--ink); }
.case-story-scenario p { margin-top: 5px; font-size: 15px; }
.case-story-demo-note { margin-top: 24px; padding: 18px; border-left: 3px solid var(--blue); background: var(--tint); font-size: 14px; }
.case-story-value { max-width: 880px; }
.case-story-value .text-link { margin-top: 24px; }
.service-case-link { margin-block: -20px 40px; }
.laboratory-evidence-context { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; margin-bottom: 32px; }
.laboratory-evidence-meta { margin: 0; font-size: 15px; }
.laboratory-evidence-meta div + div { margin-top: 18px; }
.laboratory-evidence-meta dt { margin-bottom: 6px; color: var(--ink); font-weight: 700; }
.laboratory-evidence-meta dd { margin: 0; }
.laboratory-method h3 { margin-bottom: 12px; font-size: 20px; }
.laboratory-method p, .laboratory-count p { font-size: 15px; }
.laboratory-checks li:last-child { grid-column: 1 / -1; }
.laboratory-checks p + p { margin-top: 14px; }
.laboratory-count h3 { margin-bottom: 10px; font-size: 18px; }
.laboratory-limits { margin-top: 32px; }
.laboratory-limits h3 { margin-bottom: 12px; font-size: 20px; }
.laboratory-related { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.laboratory-actions { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }
.laboratory-actions .button { justify-content: center; white-space: normal; text-align: center; }
.laboratory-actions .secondary { color: var(--blue); border-color: var(--blue); background: var(--paper); }
.laboratory-actions .secondary:hover { background: var(--tint); }
.laboratory-case .closing-inner { gap: 32px; }
.service-laboratory-case { padding: 24px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 8px; background: var(--soft); margin-block: 32px; }
.service-laboratory-case h2 { font-size: 24px; }
@media (max-width: 760px) {
  .laboratory-evidence-context { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .laboratory-actions { width: 100%; }
  .laboratory-actions .button { padding-inline: 14px; font-size: 14px; }
  .laboratory-case .closing-inner { align-items: stretch; }
  .service-laboratory-case { padding: 20px; }
}
@media (max-width: 1050px) {
  .case-story-hero { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .case-story-proof { width: 100%; max-width: 820px; justify-self: center; }
}
@media (max-width: 760px) {
  .case-story-context, .case-story-demo, .case-story-functions { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .case-story-steps { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 28px; }
  .case-story-proof { padding: 16px; }
  .case-story-functions li { padding: 20px; }
  .case-story .hero-actions { align-items: stretch; }
  .case-story .hero-actions .button { width: 100%; justify-content: center; padding-inline: 14px; font-size: 14px; }
}
.book-access { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; border-top: 1px solid var(--line); padding-block: 32px; }
.book-access h2 { margin-bottom: 12px; font-size: 26px; }
.book-access .eyebrow { margin-bottom: 10px; }
.book-access p { max-width: 750px; font-size: 14px; }
.book-access-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 650; }
.book-access-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Native dialogs used by the existing quote/privacy JavaScript. */
#quote-dialog, #privacy-dialog { width: min(620px,calc(100% - 32px)); max-width: calc(100% - 32px); max-height: calc(100dvh - 40px); padding: 28px; overflow: auto; overscroll-behavior: contain; border: 1px solid #c4d7e4; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 30px 80px #071e4b38; }
#quote-dialog::backdrop, #privacy-dialog::backdrop { background: rgb(8 28 43 / 62%); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.dialog-top .eyebrow { margin: 0; }
#quote-dialog h2, #privacy-dialog h2 { margin-bottom: 22px; font-size: 30px; }
#quote-dialog > p, #quote-dialog .dialog-body > p, #privacy-dialog > p { margin-block: 16px; font-size: 15px; }
#quote-dialog a, #privacy-dialog a { overflow-wrap: anywhere; }
#privacy-dialog p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
#quote-message { padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); font: inherit; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
#quote-dialog .dialog-actions { justify-content: flex-start; }
#quote-dialog .dialog-actions .button { flex: 1 1 220px; padding-inline: 15px; font-size: 14px; }
#quote-dialog .alternative { font-size: 13px; }

/* Desktop keeps the floating entry point; mobile uses space inside the header. */
.header-whatsapp { display: none; }
.header-whatsapp:hover { background: #08623b; }
.whatsapp-float { position: fixed; z-index: 9; right: calc(24px + env(safe-area-inset-right,0px)); bottom: calc(24px + env(safe-area-inset-bottom,0px)); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 999px; background: #0b7b49; color: #fff; font-size: 15px; font-weight: 700; box-shadow: 0 8px 24px #10241b40; transition: background .18s,box-shadow .18s; }
.whatsapp-float:hover { background: #08623b; box-shadow: 0 10px 28px #10241b55; }
.whatsapp-float svg { width: 24px; height: 24px; }
.whatsapp-float + .site-footer .footer-bottom { padding-inline-end: calc(160px + env(safe-area-inset-right,0px)); }
@media (min-width: 761px) {
  .whatsapp-float--quick + .site-footer .footer-bottom { padding-inline-end: calc(330px + env(safe-area-inset-right,0px)); }
}

@media (max-width: 1050px) {
  /* No review banner is present in the integrated site. */
  .site-header { --mobile-header-height: 85px; }
  html.js .site-header .nav { max-height: calc(100dvh - var(--mobile-header-height) - 12px); }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .header-inner { flex-wrap: wrap; gap: 0; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-header .nav { position: static; display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; width: 100%; max-height: none; gap: 4px 16px; padding: 0 0 18px; border: 0; box-shadow: none; }
  html:not(.js) .nav-link { padding-inline: 0; }
  html:not(.js) .nav-link[aria-current]::after { inset: auto 0 3px; width: auto; height: 2px; }
  html:not(.js) .header-action { margin-top: 0; }
}

@media (max-width: 760px) {
  .site-header { --mobile-header-height: 78px; }
  .quote-tool { padding: 24px 20px; }
  .quote-tool h2 { font-size: 24px; }
  .quote-tool-heading { gap: 8px; }
  :is(.software-enquiry,.cloud-enquiry) .quote-tool { padding: 20px 16px; }
  .footer-policy-links { width: 100%; column-gap: 20px; }
  .breadcrumbs ol, .breadcrumbs li { gap: 8px; }
  .policy-page .breadcrumbs, .book-page .breadcrumbs { padding-top: 14px; margin-bottom: 18px; }
  #quote-dialog, #privacy-dialog { padding: 22px; }
  #quote-dialog h2, #privacy-dialog h2 { font-size: 26px; }
  #quote-dialog .dialog-actions { display: grid; grid-template-columns: minmax(0,1fr); }
  #quote-dialog .dialog-actions .button { width: 100%; }
  .header-inner--contact { gap: 6px; }
  .header-inner--contact .menu-toggle { flex: none; }
  .header-whatsapp { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; background: #0b7b49; color: #fff; }
  .header-whatsapp svg { width: 24px; height: 24px; }
  .whatsapp-float { display: none; }
  .whatsapp-float + .site-footer .footer-bottom { padding-inline-end: 0; }
}

@media (max-width: 420px) {
  .site-header { --mobile-header-height: 72px; }
  .quote-tool { padding: 22px 16px; }
  #quote-dialog, #privacy-dialog { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
}

@media print {
  .whatsapp-float, .header-whatsapp { display: none !important; }
}

/* Shared visual service cards and explanatory service-page heroes. */
.service-list-visual { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 26px; }
.service-list-count-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.service-list-count-1 { grid-template-columns: minmax(0,1fr); }
.service-row-visual { position: relative; flex-direction: column; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; transition: border-color .18s, box-shadow .18s; }
.service-row-visual:hover { border-color: #87afcb; box-shadow: 0 10px 28px #17324512; }
.service-row-visual:focus-visible { outline-offset: 4px; }
.service-card-body { display: flex; width: 100%; flex: 1; padding: 24px; }
.service-card-body .service-row-copy { display: flex; flex-direction: column; min-width: 0; }
.service-card-body .eyebrow { font-size: 10px; letter-spacing: .1em; }
.service-card-body h3 { font-size: 21px; }
.service-card-body p { margin-bottom: 22px; }
.service-card-body .service-card-note { margin: -8px 0 16px; font-size: 12px; }
.service-card-link { display: inline-flex; align-items: center; gap: 10px; padding-top: 6px; margin-top: auto; color: var(--blue); font-size: 13px; font-weight: 650; }
.service-card-link svg { width: 17px; height: 17px; }
.service-list-count-1 .service-row-visual { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 900px; }
.service-list-count-1 .service-card-body { padding: 32px; }
.service-visual-hero { padding-bottom: 56px; background: linear-gradient(120deg,#f6f9fc,#eaf2f8); }
.service-visual-hero .breadcrumbs { margin-bottom: 28px; }
.service-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 50px; align-items: center; }
.service-hero-grid .page-heading { min-width: 0; }
.service-hero-grid h1 { font-size: clamp(34px,3.65vw,52px); line-height: 1.1; }
.service-hero-grid .lead { font-size: 18px; line-height: 1.7; }
.service-hero-grid .hero-actions { gap: 12px 24px; }
.page-heading .service-hero-note { font-size: 13px; line-height: 1.65; }
.service-visual-page .service-layout { padding-top: 55px; }
.service-visual-page .service-main > .content-block:first-child { margin-top: 0; }
@media (max-width: 1100px) {
  .service-list-visual { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
  .service-list-count-1 { grid-template-columns: minmax(0,1fr); }
  .service-hero-grid { gap: 30px; }
  .service-hero-grid .hero-actions { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 800px) {
  .service-hero-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .service-hero-grid .service-proof { width: 100%; max-width: 600px; justify-self: center; }
  .service-hero-grid .hero-actions { flex-direction: row; align-items: center; }
}
@media (max-width: 600px) {
  .service-list-visual { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .service-list-count-1 .service-row-visual { display: flex; }
  .service-card-body, .service-list-count-1 .service-card-body { padding: 22px; }
  .service-hero-grid h1 { font-size: clamp(32px,8.5vw,40px); }
  .service-hero-grid .lead { font-size: 17px; }
  .service-hero-grid .hero-actions { align-items: stretch; flex-direction: column; }
  .service-hero-grid .hero-actions .text-link { justify-content: center; }
  .service-visual-hero { padding-bottom: 36px; }
  .service-visual-page .service-layout { padding-top: 36px; }
}

/* Commercial evidence and the focused website-development journey. */
.visual-caption a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.home-projects { padding-top: 72px; }
/* Home introduces the main journeys; full service details stay in the catalog. */
.home-page .home-solutions .intent-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 54px; }
.home-page .home-solutions .intent-card h3 { max-width: 460px; }
.home-page .home-solutions .intent-card p { max-width: 460px; }
.home-page .home-solutions .text-link, .home-page .home-projects .text-link { min-height: 44px; }
.home-page .home-more-services, .home-page .home-other-project { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; }
.home-page .home-more-services a, .home-page .home-other-project a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.home-page .home-projects .project-card { display: flex; flex-direction: column; }
.home-page .home-projects .project-info { display: flex; flex: 1; flex-direction: column; }
.home-page .home-projects .project-headline { margin-bottom: 12px; color: var(--navy); font-size: 18px; font-weight: 650; line-height: 1.5; }
.home-page .home-projects .project-actions { margin-top: auto; padding-top: 20px; }
.home-page .home-diagnostic { padding-block: 48px; }
.home-page .home-diagnostic > .container { grid-template-columns: minmax(0,1fr) auto; gap: 48px; }
.home-page .home-diagnostic h2 { font-size: 36px; line-height: 1.2; }
.home-page .home-diagnostic .diagnostic-copy .eyebrow { margin-top: 0; }
.home-page .home-diagnostic .diagnostic-copy > p:last-child { margin-top: 16px; }
.home-page .home-diagnostic-action > p { margin-top: 14px; color: #c6d8e4; font-size: 13px; line-height: 1.7; }
.web-service-page .section { padding-block: 76px; }
.web-hero { padding: 24px 0 0; background: linear-gradient(125deg,#f5f9fc,#eaf2f8); }
.web-hero .breadcrumbs { margin-bottom: 28px; }
.web-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; padding-bottom: 48px; }
.web-hero h1 { max-width: 650px; font-size: clamp(38px,4vw,58px); line-height: 1.08; }
.web-hero .lead { margin-top: 24px; max-width: 580px; font-size: 18px; line-height: 1.7; }
.web-action-note { margin-top: 14px; max-width: 460px; font-size: 13px; }
.web-device-proof { min-width: 0; }
.web-device-stage { display: block; position: relative; padding: 32px 48px 46px 0; }
.web-desktop-frame { overflow: hidden; border: 1px solid #b4c8d7; border-radius: 10px; background: #fff; box-shadow: 0 20px 50px #1732451c; }
.web-desktop-frame img { width: 100%; }
.web-desktop-frame .browser-address { white-space: normal; font-size: 11px; }
.web-phone-frame { position: absolute; right: 0; bottom: 22px; width: 26%; max-width: 150px; padding: 5px; border: 1px solid #b4c8d7; border-radius: 16px; background: #fff; box-shadow: 0 12px 30px #17324530; }
.web-phone-frame img { width: 100%; border-radius: 11px; }
.web-proof-label { position: absolute; left: 12px; bottom: 4px; display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 12px; font-weight: 650; }
.web-proof-label svg { width: 17px; height: 17px; color: var(--blue); }
.web-device-proof figcaption { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.web-assurances { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; list-style: none; margin: 0; padding: 22px 0; border-top: 1px solid #ccdce7; }
.web-assurances li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: #425c6d; }
.web-assurances svg { width: 19px; height: 19px; color: var(--blue); }
.web-case-section { background: var(--navy); color: #fff; }
.web-case-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; margin-bottom: 32px; }
.web-case-heading .eyebrow { color: #8fd8ef; }
.web-case-heading > p { color: #d6e3ed; font-size: 17px; }
.web-example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.web-example { min-width: 0; }
.web-example a { display: block; overflow: hidden; border-radius: 8px; border: 1px solid #537087; background: #fff; }
.web-example img { width: 100%; height: auto; }
.web-example figcaption { padding-top: 18px; }
.web-example strong { display: block; font-size: 18px; line-height: 1.4; }
.web-example figcaption span { display: block; margin-top: 7px; color: #d6e3ed; font-size: 14px; }
.web-case-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #3d596c; }
.web-case-footer p { color: #c5d8e6; font-size: 12px; }
.web-case-footer .text-link { color: #fff; }
.web-case-section :focus-visible { outline-color: #9be6ff; }
.web-format-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; }
.web-format { position: relative; padding-top: 24px; border-top: 2px solid var(--line); display: flex; flex-direction: column; }
.web-format-icon { color: var(--blue); margin-bottom: 26px; }
.web-format-number { position: absolute; right: 0; top: 24px; color: var(--muted); font-size: 12px; }
.web-format h3 { margin-bottom: 16px; }
.web-format p { font-size: 16px; }
.web-format .web-format-scope { padding-top: 18px; margin-bottom: 20px; font-size: 14px; }
.web-format .text-link { margin-top: auto; align-self: flex-start; }
.web-delivery-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 70px; }
.web-delivery-grid h2 { font-size: 35px; }
.web-delivery-intro { margin-top: 20px; }
.web-delivery-grid .scope-list { margin-top: 24px; }
.web-delivery-grid .conditions-note { margin-top: 30px; }
.web-delivery-grid .conditions-note h3 { font-size: 20px; margin-bottom: 12px; }
.web-process ol { list-style: none; padding: 0; margin: 30px 0 0; }
.web-process li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); margin: 0; }
.web-process li > span { flex: none; font-size: 13px; color: var(--blue); font-weight: 700; padding-top: 3px; }
.web-process h3 { font-size: 20px; margin-bottom: 9px; }
.web-process p { font-size: 15px; }
.web-materials-note { padding: 20px; background: #e3edf5; border-left: 3px solid var(--blue); }
.web-existing-site { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.web-existing-site h3 { font-size: 21px; margin-bottom: 10px; }
.web-existing-site p { max-width: 680px; font-size: 15px; }

/* The evidence stays readable in its natural aspect ratio. */
.case-proof { padding-block: 0 50px; }
.case-proof-grid { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; gap: 48px; }
.case-proof .project-shot { margin-block: 16px; }
.case-proof .project-shot--mobile { width: 100%; max-width: 240px; justify-self: center; }
.project-shot--mobile img { width: 100%; max-width: 240px; margin-inline: auto; }
.case-proof h2 { margin-bottom: 20px; }
.project-detail .project-delivery h2 { margin: 0 0 16px; font-size: clamp(22px,2.2vw,28px); line-height: 1.3; }
.project-delivery > p:not(.eyebrow) { font-size: 16px; }
.project-delivery p + p { margin-top: 12px; }
.consultation-hours { margin-block: 20px; padding: 16px; background: var(--soft); border-left: 3px solid var(--blue); }
.consultation-hours p { font-size: 14px; line-height: 1.65; }
.consultation-hours p + p { margin-top: 10px; }
/* About: editorial context and real work, without changing shared page heroes. */
.about-hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); align-items: center; gap: 52px; }
.about-hero .page-heading h1 { font-size: clamp(36px,3.5vw,50px); }
.about-hero .page-heading .lead { font-size: 18px; line-height: 1.65; }
.about-editorial img { display: block; width: 100%; height: auto; border-radius: 12px; }
.about-editorial figcaption { max-width: 520px; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.about-evidence-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: end; gap: 52px; margin-bottom: 36px; }
.about-evidence-heading > p { max-width: 480px; }
.about-evidence-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.about-project { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.about-project > img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.about-project figcaption { padding: 24px; }
.about-project h3 { font-size: 24px; margin-bottom: 12px; }
.about-project p { font-size: 15px; }
.about-project small { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.about-project .text-link { margin-top: 18px; }
.about-direct { background: var(--soft); }
.about-direct-card { padding: 32px; margin-top: 28px; border-left: 3px solid var(--blue); background: #fff; }
.about-direct-card h3 { font-size: 26px; margin-block: 20px 12px; }
.about-direct .lead + h3 { margin-top: 26px; }
.diagnostic-example-card { padding: 26px; border: 1px solid var(--blue-line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.diagnostic-example-card h3 { font-size: 23px; }
.diagnostic-example-details { margin: 20px 0 0; }
.diagnostic-example-details > div { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.diagnostic-example-details dt { color: var(--blue); font-size: 13px; font-weight: 700; }
.diagnostic-example-details dd { margin: 0; color: var(--muted); font-size: 14px; }
.diagnostic-example-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

@media (max-width: 1050px) {
  .about-hero-grid, .about-evidence-heading { gap: 30px; }
  .about-evidence-grid { gap: 24px; }
  .web-hero-grid { gap: 28px; }
  .web-hero h1 { font-size: 43px; }
  .web-hero .lead { font-size: 16px; }
  .web-desktop-frame .browser-address { font-size: 10px; }
  .web-device-stage { padding-right: 30px; }
  .web-delivery-grid { gap: 40px; }
  .case-proof-grid { gap: 28px; grid-template-columns: minmax(0,1fr) 200px; }
}
@media (max-width: 760px) {
  .about-hero-grid, .about-evidence-heading, .about-evidence-grid { grid-template-columns: minmax(0,1fr); }
  .about-hero-grid { gap: 28px; }
  .about-hero .page-heading h1 { font-size: clamp(34px,8.7vw,43px); }
  .about-hero .page-heading .lead { font-size: 17px; }
  .about-evidence-heading { gap: 20px; margin-bottom: 28px; }
  .about-project figcaption { padding: 22px; }
  .web-service-page .section, .home-projects { padding-block: 52px; }
  .home-page .home-solutions .intent-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .home-page .home-more-services, .home-page .home-other-project { margin-top: 24px; padding-top: 20px; }
  .home-page .home-diagnostic > .container { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .home-page .home-diagnostic h2 { font-size: 30px; }
  .home-page .home-diagnostic-action .button { width: 100%; }
  .web-hero { padding-top: 14px; }
  .web-hero .breadcrumbs { margin-bottom: 22px; }
  .web-hero-grid, .web-case-heading, .web-example-grid, .web-format-grid, .web-delivery-grid { grid-template-columns: minmax(0,1fr); }
  .web-hero-grid { gap: 20px; padding-bottom: 24px; }
  .web-hero h1 { font-size: clamp(33px,8.8vw,43px); }
  .web-hero .lead { margin-top: 18px; font-size: 16px; line-height: 1.65; }
  .web-hero .eyebrow { font-size: 11px; margin-bottom: 14px; }
  .web-hero .hero-actions { margin-top: 23px; gap: 8px 16px; }
  .web-hero .hero-actions .button { width: 100%; }
  .web-device-stage { max-width: 520px; margin-inline: auto; padding-top: 16px; padding-right: 36px; padding-bottom: 46px; }
  .web-phone-frame { width: 28%; max-width: 140px; bottom: 22px; padding: 3px; border-radius: 12px; }
  .web-phone-frame img { border-radius: 9px; }
  .web-device-proof figcaption { font-size: 11px; }
  .web-assurances { display: grid; gap: 14px; padding-block: 20px; }
  .web-case-heading { gap: 20px; margin-bottom: 26px; }
  .web-case-heading > p { font-size: 16px; }
  .web-example-grid { gap: 28px; }
  .web-example strong { font-size: 17px; }
  .web-format-grid { gap: 32px; }
  .web-format-icon { margin-bottom: 18px; }
  .web-format .web-format-scope { padding-top: 12px; margin-bottom: 10px; }
  .web-delivery-grid { gap: 42px; }
  .web-delivery-grid h2 { font-size: 30px; }
  .web-existing-site { margin-top: 30px; }
  .case-proof-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .case-proof { padding-bottom: 30px; }
  .about-direct-card { padding: 24px; }
  .diagnostic-example-card { padding: 20px; }
  .diagnostic-example-details > div { grid-template-columns: minmax(0,1fr); gap: 7px; }
}
