/* WordPress form and admin rendering refinements */
.contact-success,.contact-error {padding:14px 16px;margin:10px 0 16px;border-left:5px solid #21861b;background:#f6f6f6;color:#134270}
.contact-error{border-left-color:#c80000}
.inf-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.form-shell .contact-consent {display:flex!important;flex-direction:row;align-items:flex-start;gap:10px;color:#575757;font-size:.84rem;line-height:1.5}
.form-shell .contact-consent input{width:18px!important;height:18px!important;margin:2px 0 0!important;flex:0 0 auto}
.custom-logo-link .custom-logo{max-width:176px;height:auto;display:block}
@media(max-width:760px){.custom-logo-link .custom-logo{max-width:148px}}

/* Primary navigation dropdown (About Us → Careers, Why Infinitive) */
.menu .menu-parent{position:relative;display:flex;align-items:center}
.menu .menu-parent>a{padding-right:14px}
.menu .menu-parent>a:before{content:"";position:absolute;right:0;top:50%;width:5px;height:5px;margin-top:-5px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.menu .menu-parent>a:after{right:100%}
.menu .menu-parent>a:hover:after,.menu .menu-parent>a.active:after{right:14px}
.menu .submenu{position:absolute;top:100%;left:-18px;z-index:120;display:none;flex-direction:column;min-width:220px;padding:8px 0;background:#fff;border:1px solid var(--line);border-top:3px solid var(--inf-orange);border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow)}
.menu .menu-parent:hover>.submenu,.menu .menu-parent:focus-within>.submenu{display:flex}
.menu .submenu a{padding:11px 18px;white-space:nowrap}
.menu .submenu a:after{display:none}
.menu .submenu a:hover,.menu .submenu a:focus-visible,.menu .submenu a.active{background:var(--inf-gray-1);color:var(--inf-blue)}
.menu .submenu-toggle{display:none}
/* Header layout: logo left; menu, CTA and hamburger right-aligned */
.menu{justify-content:flex-end}
.nav-cta{grid-column:3;justify-self:end}
/* The full menu needs ~1200px with the logo at full size, so the hamburger takes over below that
   (styles.css switches at 1080px; the display/toggle rules below extend it up to 1199px). */
@media(min-width:1200px){.brand-logo{min-width:176px}.menu a,.nav-cta .btn{white-space:nowrap}}
@media(min-width:1200px) and (max-width:1279px){.nav{gap:18px}.menu{gap:16px}.menu .menu-parent>a{padding-right:12px}.nav-cta .btn{padding-left:16px;padding-right:16px}}
@media(max-width:1199px){
  .menu{display:none}
  .menu.open{display:flex}
  .mobile-toggle{display:inline-flex;align-items:center;justify-content:center}
  /* Hamburger panel: anchored under the header, right-aligned with the toggle */
  .menu{position:absolute;inset:auto;top:100%;right:var(--gutter);left:auto;width:min(300px,calc(100vw - var(--gutter)*2));max-height:calc(100vh - 140px);overflow-y:auto;margin-top:8px;padding:8px 0;flex-direction:column;align-items:stretch;gap:0;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
  .menu>a,.menu .menu-parent>a{display:block;padding:14px 22px;background:#fff}
  .menu>a+a,.menu>a+.menu-parent,.menu>.menu-parent+a{border-top:1px solid var(--line)}
  .menu a:after,.menu .menu-parent>a:before{display:none}
  .menu a.active{box-shadow:inset 3px 0 0 var(--inf-orange);color:var(--inf-blue)}
  .menu .menu-parent{display:grid;grid-template-columns:1fr auto;align-items:stretch}
  .menu>.menu-parent+.menu-parent{border-top:1px solid var(--line)}
  .menu .submenu-toggle{display:flex;align-items:center;justify-content:center;width:52px;border:0;border-left:1px solid var(--line);background:#fff;color:var(--inf-blue);cursor:pointer}
  .menu .submenu-toggle:before{content:"";width:7px;height:7px;margin-top:-4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform .2s ease}
  .menu .menu-parent.submenu-open>.submenu-toggle:before{margin-top:4px;transform:rotate(-135deg)}
  .menu .submenu-toggle:focus-visible{outline:3px solid var(--inf-cyan);outline-offset:-3px}
  .menu .submenu,.menu .menu-parent:hover>.submenu,.menu .menu-parent:focus-within>.submenu{display:none}
  .menu .menu-parent.submenu-open>.submenu{grid-column:1/-1;display:flex;position:static;flex-direction:column;min-width:0;padding:0;background:#fff;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none}
  .menu .submenu a{padding:12px 22px 12px 38px;font-size:.68rem;white-space:normal}
  .menu .submenu a+a{border-top:1px solid var(--line)}
  .menu .submenu a:hover,.menu .submenu a:focus-visible,.menu .submenu a.active{background:#fff}
}

/* Latest from Infinitive (Insights page): search, category filters, post cards, pagination */
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#latest .section-header h2{max-width:none}
.latest-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;margin-bottom:30px;padding:22px 24px;background:#fff;border:1px solid var(--line);border-top:5px solid var(--inf-orange);border-radius:var(--radius);box-shadow:var(--shadow)}
.latest-search{display:flex;gap:10px;flex:1 1 340px;max-width:520px}
.latest-search input{flex:1;min-width:0;min-height:48px;padding:12px 14px;border:1px solid #c6c6c6;border-radius:5px;background:#fff;color:var(--text);font:inherit}
.latest-search input:focus{outline:3px solid rgba(0,118,173,.16);border-color:var(--inf-cyan)}
.latest-filters{display:flex;flex-wrap:wrap;gap:8px}
.latest-filters a{padding:10px 16px;border:1px solid var(--inf-gray-2);border-radius:4px;background:#fff;color:var(--inf-blue);font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.latest-filters a:hover{border-color:var(--inf-blue)}
.latest-filters a.active{background:var(--inf-blue);border-color:var(--inf-blue);color:#fff}
.latest-card{display:flex;flex-direction:column}
.latest-card .latest-thumb{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:6px;margin-bottom:20px}
.latest-card .latest-date{margin-top:auto;padding-top:14px;padding-right:36px;color:var(--inf-gray);font-size:.78rem}
.latest-card.anchor-card:before{top:auto;bottom:22px}
.latest-card.anchor-card h3{margin-top:14px;padding-right:0}
.latest-empty{padding:28px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.latest-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:34px}
.latest-pagination a,.latest-pagination span{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--inf-gray-2);border-radius:4px;background:#fff;color:var(--inf-blue);font-size:.85rem;font-weight:700}
.latest-pagination a:hover{border-color:var(--inf-blue)}
.latest-pagination span[aria-current]{background:var(--inf-blue);border-color:var(--inf-blue);color:#fff}
@media(max-width:760px){.latest-search{flex-basis:100%;max-width:none}.latest-tools{padding:18px}}

/* Single posts */
.post-single .post-meta{margin-top:10px;font-size:.85rem!important;opacity:.85}
.post-single .editorial-article img{max-width:100%;height:auto}
.post-single .post-title-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(32px,5vw,72px);align-items:center}
.post-single .post-hero img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);box-shadow:0 18px 40px rgba(0,0,0,.25)}
@media(max-width:900px){.post-single .post-title-grid{grid-template-columns:1fr}.post-single .post-hero{max-width:560px}}
.post-single .post-figure{margin:0 0 32px}
.post-single .editorial-article:has(.post-split){max-width:1200px}
.post-single .post-split{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(32px,5vw,64px);align-items:start}
.post-single .post-split .post-figure{margin:0}
.post-single .post-split>div>p:first-child{margin-top:0}
@media(max-width:900px){.post-single .post-split{grid-template-columns:1fr}}
.post-single .post-figure img{display:block;width:100%;max-width:480px;border-radius:var(--radius);box-shadow:var(--shadow)}
.post-single .post-back{margin-top:44px}

/* Capability groups (What We Do page) */
.service-capabilities{display:grid;grid-template-columns:1fr 3fr 1fr;gap:18px;align-items:stretch}
.service-group{min-width:0;display:flex;flex-direction:column}
.service-group>h3{display:flex;align-items:center;min-height:46px;margin:0 0 12px;font-size:.78rem;line-height:1.4;letter-spacing:.06em;text-transform:uppercase}
.service-items{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}
.service-group:first-child .service-items,.service-group:last-child .service-items{grid-template-columns:1fr}
.service-summary{display:grid;grid-template-rows:4.2em 1fr auto;gap:16px;height:100%;padding:24px 18px;background:#fff;border:1px solid var(--line);border-top:5px solid var(--inf-orange);border-radius:var(--radius);color:var(--inf-gray);transition:border-color .18s ease,box-shadow .18s ease}
.service-summary:hover{border-color:var(--inf-sky);border-top-color:var(--inf-orange);box-shadow:var(--shadow)}
.service-summary:focus-visible{outline:3px solid var(--inf-cyan);outline-offset:4px}
.service-summary h4{min-height:0;margin:0;font-size:1.08rem;line-height:1.4;text-transform:none;letter-spacing:0}
.service-summary h4{color:var(--inf-blue)}
.service-summary .service-description{font-size:.93rem;line-height:1.55;margin:0;color:var(--inf-blue)}
.service-summary .text-link{font-size:.75rem;line-height:1.6;display:block;margin:0;padding-top:8px}
.service-summary:hover .text-link{color:var(--inf-orange)}
@media(max-width:1080px){.service-capabilities{grid-template-columns:1fr;gap:28px}.service-group>h3{min-height:0}.service-summary h4{min-height:0}}
@media(max-width:760px){.service-items{grid-template-columns:1fr}.service-summary{padding:24px}}

/* Overview pages (What We Do): main.services-overview */
.services-overview .page-title{padding:clamp(48px,5vw,76px) 0}
.services-overview .page-title h1{max-width:22ch;font-size:clamp(2.5rem,4.7vw,4.8rem);line-height:1.08}
.services-overview .page-title p{max-width:920px;font-size:clamp(1rem,1.35vw,1.2rem)}
.services-overview .section{padding:clamp(52px,6vw,88px) 0}
.services-overview .section-header{margin-bottom:32px}
.services-overview .section-header h2,.services-overview .cta-panel h2{max-width:25ch;font-size:clamp(2rem,3.5vw,3.4rem)}
@media(max-width:760px){.services-overview .section{padding:52px 0}}

/* Footer: brand column + four link columns (What We Do, Explore, About Infinitive, Contact) */
.footer-grid{grid-template-columns:minmax(0,1fr) repeat(4,max-content);column-gap:clamp(32px,4vw,64px);row-gap:clamp(24px,3.5vw,48px)}
.footer-grid>div:first-child{max-width:340px}
@media(max-width:1080px){.footer-grid{grid-template-columns:repeat(2,1fr)}.footer-grid>div:first-child{max-width:none}}
@media(max-width:760px){.footer-grid{grid-template-columns:1fr}}
