/*
Theme Name: One Priority
Theme URI: https://example.com/one-priority
Author: One Priority
Description: A block theme for the One Priority consultancy: navy and amber palette, Manrope and Inter fonts, and ready-made layouts for Home, About, Services, Work, Insights and Contact.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: one-priority
Tags: block-theme, full-site-editing, custom-colors, custom-logo, editor-style, wide-blocks, blog
*/

/* Layout */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
.op-main > * { margin-block: 0; }
.op-section { padding-block: 2rem; /*clamp(3.5rem, 7vw, 6rem);*/ }
.op-page { padding-block: clamp(3rem, 6vw, 5rem); }
.op-split { gap: clamp(2rem, 5vw, 4rem); align-items: flex-start; }

/* Header */
.op-site-header { position: sticky; top: 0; z-index: 50; background: var(--wp--preset--color--white); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .op-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .op-site-header { top: 46px; } }
.op-header { padding-block: 0.85rem; }
.op-logo { display: inline-block; line-height: 0; }
.op-logo img { display: block; height: 34px; width: auto; }
.op-header .wp-block-button__link { padding: 0.6rem 1.15rem; font-size: 0.95rem; }
@media (max-width: 781px) { .op-header-cta { display: none !important; } }

/* Hero */
.op-hero { padding-block: clamp(4.5rem, 10vw, 8rem); background-image: url(assets/images/motif.svg); background-repeat: no-repeat; background-position: right -8rem center; background-size: min(44rem, 80vw); }
.op-hero-small { padding-block: clamp(3.5rem, 7vw, 5.5rem); background-size: min(30rem, 70vw); background-position: right -6rem center; }
.op-hero-title { max-width: 20ch; }
.op-lead { font-size: 1.25rem; line-height: 1.5; max-width: 40rem; margin-inline: 0 !important; }
.op-lead-dark { font-size: 1.25rem; line-height: 1.55; /*max-width: 44rem; margin-inline: 0 !important; */}
.has-ink-navy-background-color .op-lead { color: var(--wp--preset--color--silver); }
.op-eyebrow { font-family: var(--wp--preset--font-family--manrope); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--teal); margin-bottom: 0.75rem; }
.has-ink-navy-background-color .op-eyebrow { color: var(--wp--preset--color--teal); }
.has-ink-navy-background-color a:not(.wp-element-button) { color: var(--wp--preset--color--teal); }
.has-ink-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.has-ink-navy-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink-navy) !important; }
.is-style-outline > .wp-block-button__link:not(.has-text-color) { color: var(--wp--preset--color--ink-navy); }
.is-style-outline > .wp-block-button__link:not(.has-background) { background: transparent; border: 2px solid currentColor; }

/* Width */
:root { --op-content: 1200px; }
.op-hero-title,
.op-lead,
.op-lead-dark,
.op-quote-text,
.op-quote-by {
  margin-left: max(0px, calc((100% - var(--op-content)) / 2)) !important;
  margin-right: auto !important;
}

/* Cards, stats, steps, quotes */
.op-cards, .op-steps { gap: 1.5rem; margin-top: 2.5rem; }
.op-card { background: var(--wp--preset--color--mist); border: 1px solid var(--wp--preset--color--line); border-radius: 14px; padding: 2rem; height: 100%; box-sizing: border-box; }
.has-mist-background-color .op-card { background: var(--wp--preset--color--white); }
.op-card > * + * { margin-top: 1rem; }
.op-card h3 { margin-top: 0; }
.op-card ul { padding-left: 1.2rem; }
.op-stats-band { border-block: 1px solid var(--wp--preset--color--line); padding-block: clamp(2.5rem, 5vw, 4rem); }
.op-stats { gap: 2rem; }
.op-stat-number { font-family: var(--wp--preset--font-family--manrope); font-weight: 800; font-size: clamp(2.75rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.02em; color: var(--wp--preset--color--ink-navy); margin: 0; }
.op-stat-label { font-weight: 700; color: var(--wp--preset--color--ink-navy); margin: 0.5rem 0 0.25rem; }
.op-step-number { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--wp--preset--color--ink-navy); color: var(--wp--preset--color--white); font-family: var(--wp--preset--font-family--manrope); font-weight: 800; margin: 0 0 1rem; }
.op-quote-text { font-family: var(--wp--preset--font-family--manrope); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--wp--preset--color--ink-navy); max-width: 44rem; margin-inline: 0 !important; }
.op-quote-by { margin-top: 1.5rem; margin-inline: 0 !important; }
.op-link a { font-weight: 700; text-decoration: none; }
.op-link a:hover { text-decoration: underline; }
.op-cta { text-align: left; }
.op-cta .op-lead { margin-bottom: 1.5rem; }
.op-img-circle {padding:0px;margin:0px;}
.op-img-circle img {border-radius: 50%;}

/* Lists */
.wp-block-list li::marker { color: var(--wp--preset--color--amber); }

/* Posts */
.op-post-card > * + * { margin-top: 0.5rem; }
.op-post-card .wp-block-post-featured-image img { border-radius: 10px; }
.op-post-card .wp-block-post-title { font-size: 1.375rem; margin-block: 0.25rem 0.5rem; }
.op-post-card .wp-block-post-title a { text-decoration: none; }
.op-post-card .wp-block-post-title a:hover { text-decoration: underline; }
.op-post-card .wp-block-post-date { color: var(--wp--preset--color--slate); }
.wp-block-query-pagination { margin-top: 3rem; gap: 1rem; }
.wp-block-post-title { margin-bottom: 1rem; }

/* Footer */
.op-footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.op-footer-columns { gap: 3rem; }
.op-footer-text { color: var(--wp--preset--color--silver); max-width: 22rem; margin-top: 1rem; }
.op-footer-heading { font-family: var(--wp--preset--font-family--manrope); font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--teal); margin-bottom: 0.75rem; }
.op-footer .wp-block-list { list-style: none; padding: 0; margin: 0; }
.op-footer .wp-block-list li { margin-bottom: 0.5rem; }
.op-footer a { color: var(--wp--preset--color--silver) !important; text-decoration: none; }
.op-footer a:hover { color: var(--wp--preset--color--white) !important; text-decoration: underline; }
.op-footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #2C4663; font-size: 0.875rem; color: var(--wp--preset--color--silver); }

/* Accessibility */
a:focus-visible, button:focus-visible, .wp-element-button:focus-visible { outline: 3px solid var(--wp--preset--color--amber); outline-offset: 3px; }
.wp-element-button { transition: background-color 0.15s ease, color 0.15s ease; }
@media (prefers-reduced-motion: reduce) { .wp-element-button { transition: none; } }
@media (max-width: 781px) { .op-hero { background-position: right -14rem top 1rem; } .op-hero-title { max-width: none; } }

/* One Priority: Work page cards */
.opw-hero .op-eyebrow { color: #00A3A3; }
.opw-hero .op-hero-title, .opw-hero .op-lead, .opw-cta .op-lead, .opw-cta h2 { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.op-work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.op-work-grid.is-three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.op-work-grid > * { margin: 0 !important; }
.op-work-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #DDE3E8; border-radius: 14px; overflow: hidden; }
.op-work-card > * { margin: 0 !important; }
.op-work-tile { height: 150px; background-repeat: no-repeat; background-position: center; background-size: 64px; }
.op-work-tile.is-navy { background-color: #0F2A43; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 4.5 55 55'%3E%3Ccircle cx='30' cy='32' r='26' fill='none' stroke='%23FFFFFF' stroke-width='3'/%3E%3Ccircle cx='39' cy='32' r='17' fill='none' stroke='%23FFFFFF' stroke-width='3'/%3E%3Ccircle cx='48' cy='32' r='8' fill='%2300A3A3'/%3E%3C/svg%3E"); }
.op-work-tile.is-mist { background-color: #F3F5F7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 4.5 55 55'%3E%3Ccircle cx='30' cy='32' r='26' fill='none' stroke='%230F2A43' stroke-width='3'/%3E%3Ccircle cx='39' cy='32' r='17' fill='none' stroke='%230F2A43' stroke-width='3'/%3E%3Ccircle cx='48' cy='32' r='8' fill='%2300A3A3'/%3E%3C/svg%3E"); }
.op-work-tile.is-teal { background-color: #00A3A3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 4.5 55 55'%3E%3Ccircle cx='30' cy='32' r='26' fill='none' stroke='%230F2A43' stroke-width='3'/%3E%3Ccircle cx='39' cy='32' r='17' fill='none' stroke='%230F2A43' stroke-width='3'/%3E%3Ccircle cx='48' cy='32' r='8' fill='%23FFFFFF'/%3E%3C/svg%3E"); }
.op-work-tile.is-amber { background-color: #E8A33D; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='2.5 4.5 55 55'%3E%3Ccircle cx='30' cy='32' r='26' fill='none' stroke='%230F2A43' stroke-width='3'/%3E%3Ccircle cx='39' cy='32' r='17' fill='none' stroke='%230F2A43' stroke-width='3'/%3E%3Ccircle cx='48' cy='32' r='8' fill='%23FFFFFF'/%3E%3C/svg%3E"); }
.op-work-body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.25rem 1.4rem; }
.op-work-body > * { margin: 0 !important; }
.op-work-sector { font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif); font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: #00A3A3; margin-bottom: 0.5rem !important; }
.op-work-title { font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif); font-size: 2rem !important; line-height: 1.2 !important; margin-bottom: 0.65rem !important; }
.op-work-desc { flex: 1; font-size: 1rem; line-height: 1.5; color: #4A5B6C; }
.op-work-result { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 1rem !important; padding-top: 0.875rem; border-top: 1px solid #DDE3E8; }
.op-work-number { font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif); font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: -0.02em; color: #0F2A43; }
.op-work-label { font-size: 1rem; color: #4A5B6C; }
.op-btn-teal .wp-block-button__link { background: #00A3A3; color: #0F2A43; }
.op-btn-teal .wp-block-button__link:hover, .op-btn-teal .wp-block-button__link:focus { background: #fff; color: #0F2A43; }

/* One Priority: Services page stages (colour panels + 1-2-3 journey line) */
.op-stages { counter-reset: op-stage; }
.op-stage { position: relative; counter-increment: op-stage; padding-top: 4.5rem; }
.op-stage.is-navy  { --op-stage: var(--wp--preset--color--ink-navy); --op-stage-ink: #fff; }
.op-stage.is-teal  { --op-stage: var(--wp--preset--color--teal);     --op-stage-ink: #fff; }
.op-stage.is-amber { --op-stage: var(--wp--preset--color--amber);    --op-stage-ink: var(--wp--preset--color--ink-navy); }

/* Numbered circle */
.op-stage::before {
  content: counter(op-stage);
  position: absolute; top: 0; left: 0; z-index: 1;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--op-stage); color: var(--op-stage-ink);
  font-family: var(--wp--preset--font-family--manrope); font-weight: 800; font-size: 1.25rem;
}
/* Line joining each circle to the next */
.op-stage::after {
  content: ""; position: absolute; top: 23px; left: 60px; right: -20px; height: 2px;
  background: var(--wp--preset--color--line);
}
.op-stage:last-child::after { display: none; }

/* Coloured stage panel */
.op-stage__head { border-radius: 14px; padding: 1.75rem 2rem; min-height: 10rem; box-sizing: border-box; margin-bottom: 1.5rem; }
.op-stage__head > * { margin: 0 !important; }
.op-stage__head .op-eyebrow { margin-bottom: 0.5rem !important; }
.op-stage__head.has-teal-background-color .op-eyebrow,
.op-stage__head.has-amber-background-color .op-eyebrow { color: var(--wp--preset--color--ink-navy); }

/* Cards pick up their stage colour */
.op-stage .op-card { border-top: 4px solid var(--op-stage); }
.op-stage .op-card li::marker { color: var(--op-stage); }

/* Phones: columns stack, so drop the joining line */
@media (max-width: 781px) {
  .op-stage { padding-top: 4rem; }
  .op-stage::after { display: none; }
}
