/*
Theme Name: CoreResolve
Theme URI: https://coreresolve.es/
Author: CoreResolve
Description: Lightweight, code-driven business theme for CoreResolve. No page builder required.
Version: 1.0.21
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: coreresolve
*/

:root {
  --cr-navy: #173B57;
  --cr-green: #2F7D68;
  --cr-blue: #4F7FA3;
  --cr-charcoal: #263238;
  --cr-offwhite: #F7F9F8;
  --cr-white: #FFFFFF;
  --cr-border: #DDE5E2;
  --cr-muted: #607078;
  --cr-max: 1200px;
  --cr-reading: 760px;
  --cr-radius: 10px;
  --cr-shadow: 0 12px 32px rgba(23, 59, 87, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cr-charcoal);
  background: var(--cr-white);
  font-family: "Manrope", "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--cr-green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--cr-navy); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
  color: var(--cr-navy);
  margin: 0 0 .6em;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
p { margin: 0 0 1.2em; }

.cr-container { width: min(calc(100% - 40px), var(--cr-max)); margin: 0 auto; }
.cr-reading { width: min(100%, var(--cr-reading)); }
.cr-section { padding: clamp(62px, 8vw, 100px) 0; }
.cr-section--soft { background: var(--cr-offwhite); }
.cr-section--navy { background: var(--cr-navy); color: var(--cr-white); }
.cr-section--navy h2, .cr-section--navy h3 { color: var(--cr-white); }
.cr-eyebrow {
  margin: 0 0 18px;
  color: var(--cr-green);
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.cr-lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: #465760; max-width: 760px; }
.cr-section--navy .cr-lead { color: rgba(255,255,255,.84); }

/* Header */
.cr-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(23,59,87,.08);
  backdrop-filter: blur(10px);
}
/* Keep the sticky header clear of the WordPress admin bar while logged in. */
.admin-bar .cr-site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .cr-site-header { top: 46px; }
}

.cr-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cr-brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.cr-brand img { display: block; width: auto; max-width: 255px; max-height: 64px; }
.cr-wordmark { color: var(--cr-navy); font-size: 1.55rem; font-weight: 760; letter-spacing: -.03em; }
.cr-wordmark span { color: var(--cr-green); }
.cr-nav { display: flex; align-items: center; gap: 28px; }
.cr-nav ul { display:flex; align-items:center; gap:28px; list-style:none; margin:0; padding:0; }
.cr-nav li { margin:0; padding:0; }
.cr-nav a { color: var(--cr-navy); text-decoration: none; font-size: .95rem; font-weight: 620; }
.cr-nav a:hover, .cr-nav a:focus, .cr-nav .current-menu-item > a, .cr-nav .current_page_item > a { color: var(--cr-green); }
.cr-mobile-nav { display: none; }

/* Buttons */
.cr-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 2px solid var(--cr-navy);
  border-radius: 7px;
  background: var(--cr-navy);
  color: var(--cr-white);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  transition: .18s ease;
}
.cr-button:hover, .cr-button:focus { background: var(--cr-green); border-color: var(--cr-green); color: var(--cr-white); transform: translateY(-1px); }
.cr-button--secondary { background: transparent; color: var(--cr-navy); }
.cr-button--secondary:hover, .cr-button--secondary:focus { color: var(--cr-white); }
.cr-section--navy .cr-button { background: var(--cr-white); border-color: var(--cr-white); color: var(--cr-navy); }
.cr-section--navy .cr-button:hover { background: var(--cr-green); border-color: var(--cr-green); color: var(--cr-white); }
.cr-section--navy .cr-button--secondary { background: transparent; border-color: rgba(255,255,255,.75); color: var(--cr-white); }

/* Hero */
.cr-hero {
  padding: clamp(64px, 8vw, 104px) 0 clamp(58px, 7vw, 92px);
  background: linear-gradient(135deg, #F7F9F8 0%, #FFFFFF 72%);
  overflow: hidden;
}
.cr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: clamp(32px, 5vw, 70px);
}
.cr-hero-copy { padding: 8px 0; }
.cr-hero h1 { max-width: 820px; }
.cr-hero .cr-lead {
  margin-top: 20px;
  color: #394B54;
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  max-width: 720px;
}
.cr-hero-visual {
  min-height: 320px;
  display: grid;
  place-items: center;
}
.cr-business-visual {
  display: block;
  width: min(700px, 138%);
  max-width: none;
  height: auto;
  object-fit: contain;
  margin-right: -82px;
  filter: drop-shadow(0 18px 42px rgba(23, 59, 87, .05));
}
.cr-services-intro { padding-top: clamp(58px, 7vw, 86px); }

/* Cards / grids */
.cr-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin-top: 36px; }
.cr-card { height: 100%; padding: 30px; border: 1px solid var(--cr-border); border-radius: var(--cr-radius); background: var(--cr-white); box-shadow: 0 8px 28px rgba(23,59,87,.04); }
.cr-card-number { display:inline-flex; align-items:center; justify-content:center; width: 42px; height:42px; border-radius:50%; background: rgba(47,125,104,.11); color: var(--cr-green); font-weight:800; margin-bottom:22px; }
.cr-card p:last-child { margin-bottom: 0; }
.cr-card-link { display:inline-block; margin-top:16px; font-weight:700; text-decoration:none; }

/* Approach */
.cr-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap: 0; margin-top: 48px; border:1px solid rgba(255,255,255,.22); border-radius: var(--cr-radius); overflow:hidden; }
.cr-step { padding: 34px; border-right:1px solid rgba(255,255,255,.18); }
.cr-step:last-child { border-right:0; }
.cr-step-kicker { color:#9FD4C5; font-weight:800; letter-spacing:.1em; text-transform:uppercase; font-size:.78rem; }
.cr-step p { color:rgba(255,255,255,.82); margin-bottom:0; }

/* Split */
.cr-split { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(44px,7vw,88px); align-items:start; }
.cr-stat-list { display:grid; gap: 16px; }
.cr-stat { padding: 20px 0; border-bottom:1px solid var(--cr-border); }
.cr-stat strong { display:block; color:var(--cr-navy); font-size:1.15rem; }

/* Page hero */
.cr-page-hero { padding: 82px 0 54px; background: var(--cr-offwhite); border-bottom:1px solid var(--cr-border); }
.cr-page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); max-width: 900px; }
.cr-page-main { padding: 72px 0 100px; }
.cr-prose { width:min(100%, var(--cr-reading)); }
.cr-prose h2 { margin-top: 2.2em; }
.cr-prose ul { padding-left:1.25em; }

/* Contact */
.cr-contact-card { padding: 36px; background: var(--cr-offwhite); border:1px solid var(--cr-border); border-radius: var(--cr-radius); }
.cr-contact-card a { font-size:1.15rem; font-weight:750; }

/* Footer */
.cr-site-footer { background:#102C40; color:rgba(255,255,255,.78); padding:58px 0 30px; }
.cr-footer-grid { display:grid; grid-template-columns: 1.4fr .7fr .9fr; gap:48px; align-items:start; }
.cr-footer-brand { color:var(--cr-white); font-size:1.4rem; font-weight:800; }
.cr-footer-brand span { color:#7CC6B2; }
.cr-footer-nav { display:grid; gap:9px; }
.cr-footer-nav a { color:rgba(255,255,255,.82); text-decoration:none; }
.cr-footer-nav a:hover { color:#9FD4C5; }
.cr-footer-bottom { margin-top:42px; padding-top:22px; border-top:1px solid rgba(255,255,255,.14); display:flex; justify-content:space-between; gap:20px; font-size:.88rem; }
.cr-footer-bottom a { color:rgba(255,255,255,.82); }

/* WP content */
.alignwide { width:min(calc(100% - 40px), var(--cr-max)); margin-left:auto; margin-right:auto; }
.alignfull { width:100%; }
.wp-block-image img { border-radius: 6px; }

.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute!important; width:1px; word-wrap:normal!important; }
.screen-reader-text:focus { background:#f1f1f1; clip:auto!important; clip-path:none; color:#21759b; display:block; font-size:14px; height:auto; left:5px; line-height:normal; padding:15px 23px 14px; text-decoration:none; top:5px; width:auto; z-index:100000; }

@media (max-width: 960px) {
  .cr-header-inner { min-height:72px; }
  .cr-brand img { max-width: 195px; max-height: 52px; }
  .cr-nav { display:none; }
  .cr-mobile-nav { display:block; position:relative; }
  .cr-mobile-nav summary { list-style:none; cursor:pointer; color:var(--cr-navy); font-weight:750; border:1px solid var(--cr-border); border-radius:7px; padding:9px 12px; }
  .cr-mobile-nav summary::-webkit-details-marker { display:none; }
  .cr-mobile-panel { position:absolute; right:0; top:calc(100% + 10px); min-width:220px; background:var(--cr-white); border:1px solid var(--cr-border); border-radius:8px; box-shadow:var(--cr-shadow); padding:10px; }
  .cr-mobile-panel a { display:block; color:var(--cr-navy); text-decoration:none; padding:10px 12px; border-radius:6px; font-weight:650; }
  .cr-mobile-panel a:hover { background:var(--cr-offwhite); color:var(--cr-green); }
  .cr-hero-grid, .cr-split { grid-template-columns:1fr; }
  .cr-hero-visual { min-height: 250px; }
  .cr-business-visual { width:min(760px, 100%); max-width:100%; margin-right:0; }
  .cr-grid-3, .cr-steps { grid-template-columns:1fr; }
  .cr-step { border-right:0; border-bottom:1px solid rgba(255,255,255,.18); }
  .cr-step:last-child { border-bottom:0; }
  .cr-footer-grid { grid-template-columns:1fr; gap:30px; }
}

@media (max-width: 560px) {
  body { font-size:16px; }
  .cr-container { width:min(calc(100% - 28px), var(--cr-max)); }
  .cr-header-inner { min-height:66px; }
  .cr-brand img { max-width:165px; max-height:44px; }
  .cr-section { padding:62px 0; }
  .cr-hero { padding:58px 0 54px; }
  .cr-card { padding:26px; }
  .cr-buttons { flex-direction:column; align-items:stretch; }
  .cr-button { width:100%; }
  .cr-footer-bottom { flex-direction:column; }
}

/* v1.0.6 — concise service-focus metadata on homepage cards */
.cr-card-focus {
  margin-top: 1rem;
  color: var(--cr-muted);
  font-size: .9rem;
  line-height: 1.5;
}
.cr-card-focus strong {
  color: var(--cr-navy);
  font-weight: 650;
}

/* v1.0.11 — contact, privacy and footer refinements */
.cr-check-list { margin: 1.4rem 0 0; padding: 0; list-style: none; display: grid; gap: .85rem; }
.cr-check-list li { position: relative; padding-left: 1.65rem; }
.cr-check-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--cr-green); }
.cr-contact-email { margin: .25rem 0 1.5rem; }
.cr-contact-card .cr-contact-email a { font-size: clamp(1.15rem, 2.1vw, 1.45rem); overflow-wrap: anywhere; }
.cr-contact-note { margin-top: 1.75rem; padding-top: 1.35rem; border-top: 1px solid var(--cr-border); display: grid; gap: .35rem; }
.cr-contact-note strong { color: var(--cr-navy); }
.cr-contact-note span { color: var(--cr-muted); }
.cr-footer-audience { color: rgba(255,255,255,.62); font-size: .92rem; max-width: 440px; }


/* Integrated Delivery capability */
.cr-delivery-route {
  color: var(--cr-navy);
  font-size: 1.03rem;
  letter-spacing: .01em;
  margin: 1.45em 0;
}
.cr-delivery-capability {
  border-top: 1px solid var(--cr-border);
}

/* v1.0.14 — partner network, footer legal links and release-candidate polish */
.cr-partner-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 1.5rem 0 1rem;
}
.cr-partner-list > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 14px 18px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  background: var(--cr-white);
  color: var(--cr-navy);
  font-weight: 800;
  letter-spacing: .01em;
}
.cr-partner-note {
  color: var(--cr-muted);
  font-size: .92rem;
}
.cr-footer-legal-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 560px) {
  .cr-partner-list { grid-template-columns: 1fr; }
  .cr-footer-legal-links { gap: 10px; }
}

/* v1.0.15 — partner capability labels and live-ready status */
.cr-partner-card {
  display: flex;
  min-height: 86px;
  padding: 16px 18px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  background: var(--cr-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cr-partner-card strong {
  color: var(--cr-navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.cr-partner-card span {
  margin-top: 3px;
  color: var(--cr-muted);
  font-size: .88rem;
  font-weight: 650;
  line-height: 1.35;
}


/* v1.0.16 — multilingual EN / NL / ES integration */
.cr-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.cr-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid var(--cr-border);
}
.cr-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--cr-muted);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .04em;
}
.cr-language-switcher a:hover,
.cr-language-switcher a:focus,
.cr-language-switcher a.is-current {
  background: var(--cr-offwhite);
  color: var(--cr-green);
}
.cr-nav a.is-current { color: var(--cr-green); }
.cr-language-switcher--mobile { display:none; }

@media (max-width: 960px) {
  .cr-header-actions { gap: 0; }
  .cr-language-switcher--desktop { display:none; }
  .cr-language-switcher--mobile {
    display:flex;
    margin-top:8px;
    padding:10px 8px 2px;
    border-left:0;
    border-top:1px solid var(--cr-border);
  }
  .cr-mobile-panel a.is-current { color: var(--cr-green); background:var(--cr-offwhite); }
}


/* v1.0.20 — final QA: multilingual header resilience and accessibility */
@media (max-width: 1120px) {
  .cr-header-actions { gap: 0; }
  .cr-nav { display: none; }
  .cr-mobile-nav { display: block; position: relative; }
  .cr-language-switcher--desktop { display: none; }
  .cr-language-switcher--mobile {
    display: flex;
    margin-top: 8px;
    padding: 10px 8px 2px;
    border-left: 0;
    border-top: 1px solid var(--cr-border);
  }
}

a:focus-visible,
summary:focus-visible,
.cr-button:focus-visible {
  outline: 3px solid var(--cr-blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cr-button { transition: none; }
  .cr-button:hover, .cr-button:focus { transform: none; }
}


/* v1.0.21 — integrated business-at-a-glance hero illustration */
@media (min-width: 961px) {
  .cr-hero-visual { justify-items: end; }
}
@media (max-width: 960px) {
  .cr-hero-visual { min-height: 0; margin-top: 12px; }
}
@media (max-width: 560px) {
  .cr-business-visual { width: 100%; }
}
