/*
Theme Name: Rank 1 Marketing
Theme URI: https://rank1marketing.co.uk/
Author: Rank 1 Marketing
Description: A premium, responsive performance-marketing theme built for Rank 1 Marketing.
Version: 1.0.1
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: rank1-marketing
*/

:root {
  --r1-red: #ef1117;
  --r1-red-dark: #a90008;
  --r1-black: #070707;
  --r1-ink: #141414;
  --r1-grey: #686868;
  --r1-light: #f4f4f4;
  --r1-line: #e2e2e2;
  --r1-white: #fff;
  --r1-radius: 12px;
  --r1-shadow: 0 18px 55px rgba(0,0,0,.09);
  --r1-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--r1-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.screen-reader-text:focus { width: auto; height: auto; clip: auto; background: #fff; color: #000; padding: .75rem; z-index: 99999; }
.r1-wrap { width: min(calc(100% - 40px), var(--r1-width)); margin-inline: auto; }
.r1-section { padding: 96px 0; }
.r1-kicker { margin: 0 0 12px; color: var(--r1-red); font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.r1-title { margin: 0; max-width: 790px; font-size: clamp(2rem, 4.3vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.r1-copy { color: var(--r1-grey); font-size: 1.05rem; }
.r1-red { color: var(--r1-red); }
.r1-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 5px; font-size: .86rem; font-weight: 850; line-height: 1.1; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.r1-btn:hover { transform: translateY(-2px); }
.r1-btn--red { color: #fff; background: var(--r1-red); }
.r1-btn--red:hover { background: #ff292e; }
.r1-btn--ghost { color: #fff; border-color: rgba(255,255,255,.48); }
.r1-btn--ghost:hover { border-color: #fff; }
.r1-btn--light { color: #111; background: #fff; }

.site-header { position: sticky; top: 0; z-index: 1000; color: #fff; background: rgba(5,5,5,.96); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.admin-bar .site-header { top: 32px; }
.r1-header { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.custom-logo-link { flex: 0 0 auto; }
.custom-logo { width: auto; max-height: 66px; }
.r1-brand-text { font-weight: 900; letter-spacing: -.03em; }
.r1-nav { margin-left: auto; }
.r1-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.r1-nav a { font-size: .82rem; font-weight: 700; }
.r1-nav a:hover { color: var(--r1-red); }
.r1-header__actions { display: flex; gap: 10px; }
.r1-header__actions .r1-btn { min-height: 43px; padding-inline: 17px; }
.r1-menu-toggle { display: none; margin-left: auto; width: 46px; height: 42px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; }

.r1-hero { position: relative; overflow: hidden; color: #fff; background: #050505; }
.r1-hero::before { content: ""; position: absolute; inset: 0 0 0 39%; opacity: .38; background-image: linear-gradient(rgba(239,17,23,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(239,17,23,.24) 1px, transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(to right, transparent, #000 18%); }
.r1-hero::after { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(239,17,23,.20), transparent 68%); }
.r1-hero__inner { position: relative; z-index: 2; min-height: 680px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 55px; padding: 84px 0; }
.r1-hero h1 { margin: 0; max-width: 660px; font-size: clamp(3.2rem, 6.7vw, 6.5rem); line-height: .88; letter-spacing: -.066em; }
.r1-hero__lead { max-width: 610px; margin: 28px 0; color: #d4d4d4; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.r1-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.r1-trust { margin-top: 20px; color: #fff; font-size: .82rem; font-weight: 750; letter-spacing: .02em; }
.r1-graph { position: relative; min-height: 455px; }
.r1-graph::before { content: ""; position: absolute; inset: 9% 0 4% 1%; border-left: 1px solid rgba(239,17,23,.28); border-bottom: 1px solid rgba(239,17,23,.28); }
.r1-graph svg { position: absolute; inset: 2% -2% 0 0; width: 102%; height: 98%; overflow: visible; filter: drop-shadow(0 0 12px rgba(239,17,23,.12)); }
.r1-graph__metric { z-index: 2; position: absolute; padding: 10px 14px; background: rgba(5,5,5,.72); }
.r1-graph__metric strong { display: block; color: #fff; font-size: 1.25rem; }
.r1-graph__metric span { color: #999; font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.r1-graph__metric em { display: block; color: var(--r1-red); font-size: .63rem; font-style: normal; }
.r1-graph__metric--a { top: 6%; left: 8%; }
.r1-graph__metric--b { right: 0; bottom: 12%; }

.r1-proof { position: relative; z-index: 3; background: #fff; box-shadow: 0 15px 36px rgba(0,0,0,.08); }
.r1-proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.r1-stat { position: relative; padding: 35px 28px; }
.r1-stat:not(:last-child)::after { content: ""; position: absolute; top: 30%; right: 0; height: 40%; border-right: 1px solid var(--r1-line); }
.r1-stat strong { display: block; color: var(--r1-red); font-size: clamp(1.55rem, 2.7vw, 2.25rem); line-height: 1; letter-spacing: -.04em; }
.r1-stat span { display: block; margin-top: 9px; color: #555; font-size: .77rem; font-weight: 750; }

.r1-experience { background: #f7f7f7; }
.r1-experience__grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 58px; align-items: center; }
.r1-experience .r1-title { max-width: 440px; }
.r1-ticks { list-style: none; margin: 28px 0 0; padding: 0; }
.r1-ticks li { position: relative; margin: 10px 0; padding-left: 28px; font-size: .9rem; font-weight: 750; }
.r1-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--r1-red); font-weight: 900; }
.r1-dashboard { padding: 16px; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; box-shadow: var(--r1-shadow); }
.r1-dashboard__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: .76rem; }
.r1-dashboard__header span { padding: 4px 8px; color: #777; background: #f5f5f5; border: 1px solid #e6e6e6; border-radius: 3px; font-size: .55rem; }
.r1-dashboard__top { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.r1-dashboard__tile { min-width: 0; padding: 12px; border: 1px solid var(--r1-line); border-radius: 4px; }
.r1-dashboard__tile span { display: block; color: #777; font-size: .66rem; font-weight: 800; }
.r1-dashboard__tile strong { display: block; overflow: hidden; font-size: .94rem; line-height: 1.35; text-overflow: ellipsis; }
.r1-dashboard__tile em { display: block; color: #26a85c; font-size: .54rem; font-style: normal; }
.r1-dashboard__body { display: grid; grid-template-columns: 1.4fr .8fr; gap: 8px; }
.r1-chart { height: 240px; padding: 12px; background: linear-gradient(#fff, #fafafa); border: 1px solid var(--r1-line); border-radius: 4px; }
.r1-chart__heading { display: flex; justify-content: space-between; font-size: .58rem; }
.r1-chart__heading span { color: #777; }
.r1-chart__heading i { display: inline-block; width: 12px; border-top: 2px solid var(--r1-red); vertical-align: middle; }
.r1-chart__heading i:nth-of-type(2) { border-color: #252525; }
.r1-chart svg { width: 100%; height: calc(100% - 22px); }
.r1-campaigns { padding: 12px; border: 1px solid var(--r1-line); border-radius: 4px; font-size: .58rem; }
.r1-campaigns > strong { font-size: .65rem; }
.r1-campaigns ul { list-style: none; margin: 10px 0 8px; padding: 0; }
.r1-campaigns li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eee; }
.r1-campaigns li span::before { content: "▣"; margin-right: 5px; color: #777; }
.r1-campaigns b { color: #24a85b; font-size: .53rem; }
.r1-campaigns a { display: block; margin-top: 9px; color: var(--r1-red); font-weight: 800; }
.r1-funnel { display: flex; align-items: center; justify-content: space-around; gap: 8px; margin-top: 8px; padding: 11px; border: 1px solid var(--r1-line); border-radius: 4px; font-size: .58rem; }
.r1-funnel span { text-align: center; }
.r1-funnel b { display: block; margin-bottom: 2px; font-size: 1.05rem; }
.r1-funnel i { color: #bbb; font-size: 1rem; font-style: normal; }

.r1-approach { color: #fff; background: #060606; }
.r1-approach__head { text-align: center; }
.r1-approach__head .r1-title { margin-inline: auto; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.r1-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 45px; }
.r1-step { position: relative; min-height: 230px; padding: 34px 27px; overflow: hidden; background: linear-gradient(145deg, #480005, #a90008); border: 1px solid rgba(255,255,255,.13); }
.r1-step::after { content: ""; position: absolute; right: -50px; bottom: -55px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.12); transform: rotate(45deg); }
.r1-step__num { display: grid; place-items: center; width: 34px; height: 34px; color: var(--r1-red); background: #fff; border-radius: 50%; font-weight: 950; }
.r1-step h3 { margin: 32px 0 5px; font-size: 1.25rem; letter-spacing: -.02em; }
.r1-step strong { display: block; font-size: .82rem; }
.r1-step p { margin-bottom: 0; color: #e5cacc; font-size: .77rem; }

.r1-services { background: #fff; }
.r1-services__head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 45px; }
.r1-services__head .r1-title { font-size: clamp(2.3rem, 4.5vw, 4.2rem); }
.r1-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.r1-service { min-height: 205px; padding: 29px; border: 1px solid var(--r1-line); border-radius: 8px; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.r1-service:hover { transform: translateY(-5px); border-color: var(--r1-red); box-shadow: var(--r1-shadow); }
.r1-service__icon { display: grid; place-items: center; width: 46px; height: 46px; color: var(--r1-red); border: 1.5px solid var(--r1-red); border-radius: 50%; font-size: 1.25rem; font-weight: 900; }
.r1-service h3 { margin: 22px 0 8px; font-size: 1.05rem; line-height: 1.2; }
.r1-service p { margin: 0; color: var(--r1-grey); font-size: .84rem; }

.r1-connected { color: #fff; background: #050505; }
.r1-connected__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.r1-connected .r1-title { max-width: 520px; }
.r1-connected .r1-copy { color: #bbb; max-width: 540px; }
.r1-principle { max-width: 560px; margin-top: 28px; padding: 20px 22px; border: 1px solid #777; border-left: 4px solid var(--r1-red); font-size: 1.05rem; font-weight: 850; line-height: 1.35; }
.r1-orbit { position: relative; width: min(100%, 520px); aspect-ratio: 1; margin-inline: auto; border: 1px dashed #555; border-radius: 50%; }
.r1-orbit__core { position: absolute; inset: 50% auto auto 50%; display: grid; place-items: center; width: 150px; height: 150px; padding: 22px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 55px rgba(239,17,23,.22); }
.r1-orbit__core img { max-height: 108px; width: auto; }
.r1-orbit__item { position: absolute; display: grid; place-items: center; width: 78px; height: 78px; padding: 8px; text-align: center; color: #fff; background: #111; border: 2px solid var(--r1-red); border-radius: 50%; font-size: .68rem; font-weight: 800; }
.r1-orbit__item:nth-child(2) { top: -38px; left: calc(50% - 39px); }
.r1-orbit__item:nth-child(3) { top: 18%; right: -18px; }
.r1-orbit__item:nth-child(4) { bottom: 12%; right: 2%; }
.r1-orbit__item:nth-child(5) { bottom: -23px; left: calc(50% - 39px); }
.r1-orbit__item:nth-child(6) { bottom: 12%; left: 2%; }
.r1-orbit__item:nth-child(7) { top: 18%; left: -18px; }

.r1-cta { color: #fff; background: linear-gradient(120deg, #9c0007, #e20b12 55%, #8e0006); }
.r1-cta__inner { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.r1-cta h2 { margin: 0; max-width: 680px; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.05em; }

.site-footer { color: #d3d3d3; background: #050505; }
.r1-footer { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 60px; padding: 68px 0 42px; }
.r1-footer__brand img { max-height: 90px; width: auto; margin-bottom: 18px; }
.r1-footer__brand p { max-width: 260px; color: #999; font-size: .8rem; }
.r1-footer h3 { color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.r1-footer ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.r1-footer li { margin: 7px 0; font-size: .79rem; }
.r1-footer a:hover { color: var(--r1-red); }
.r1-footer__contact p { margin: 8px 0; font-size: .8rem; }
.r1-footer__bottom { display: flex; justify-content: space-between; padding: 21px 0; border-top: 1px solid #242424; color: #777; font-size: .7rem; }

.r1-content { padding: 80px 0; }
.r1-content__inner { max-width: 850px; margin-inline: auto; }
.r1-content h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.05em; }
.r1-content a { color: var(--r1-red); text-decoration: underline; }
.r1-not-found { min-height: 65vh; display: grid; place-items: center; text-align: center; }

@media (max-width: 1050px) {
  .r1-nav, .r1-header__actions { display: none; }
  .r1-menu-toggle { display: block; }
  .r1-nav.is-open { position: fixed; inset: 84px 0 auto; display: block; padding: 25px 20px 35px; background: #080808; border-top: 1px solid #222; }
  .r1-nav.is-open ul { align-items: stretch; flex-direction: column; gap: 0; }
  .r1-nav.is-open a { display: block; padding: 14px 0; border-bottom: 1px solid #222; font-size: 1rem; }
  .r1-hero__inner { grid-template-columns: 1fr; }
  .r1-graph { min-height: 330px; }
  .r1-proof__grid { grid-template-columns: repeat(2, 1fr); }
  .r1-stat:nth-child(2)::after { display: none; }
  .r1-experience__grid, .r1-connected__grid { grid-template-columns: 1fr; }
  .r1-steps { grid-template-columns: repeat(2, 1fr); }
  .r1-services__grid { grid-template-columns: repeat(2, 1fr); }
  .r1-footer { grid-template-columns: 1fr 1.5fr; }
  .r1-footer__contact { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .admin-bar .site-header { top: 46px; }
  .r1-wrap { width: min(calc(100% - 28px), var(--r1-width)); }
  .r1-section { padding: 68px 0; }
  .r1-header { min-height: 72px; }
  .custom-logo { max-height: 54px; }
  .r1-nav.is-open { top: 72px; }
  .r1-hero__inner { min-height: auto; padding: 68px 0; gap: 30px; }
  .r1-hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
  .r1-graph { min-height: 260px; }
  .r1-proof__grid, .r1-steps, .r1-services__grid { grid-template-columns: 1fr; }
  .r1-stat::after { display: none; }
  .r1-stat { padding: 24px 12px; border-bottom: 1px solid var(--r1-line); }
  .r1-experience__grid { gap: 45px; }
  .r1-dashboard__top { grid-template-columns: repeat(2, 1fr); }
  .r1-dashboard__body { grid-template-columns: 1fr; }
  .r1-funnel i { display: none; }
  .r1-services__head { display: block; }
  .r1-orbit { transform: scale(.78); margin-block: -50px; }
  .r1-cta__inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 54px; }
  .r1-footer { grid-template-columns: 1fr; gap: 32px; }
  .r1-footer__contact { grid-column: auto; }
  .r1-footer ul { columns: 1; }
  .r1-footer__bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
