/*
Theme Name: Ranking Factory
Theme URI: https://rankingfactory.nl
Author: Ranking Factory
Description: Lichtgewicht zakelijke WordPress-theme voor Ranking Factory.
Version: 1.6.0
Text Domain: ranking-factory
*/

:root {
  --rf-ink: #011b35;
  --rf-muted: #536b7c;
  --rf-blue: #0879c9;
  --rf-blue-dark: #07518a;
  --rf-light-blue: #e6f2fb;
  --rf-orange: #f28c28;
  --rf-orange-dark: #d66c0a;
  --rf-paper: #f4f8fc;
  --rf-white: #ffffff;
  --rf-line: #dce4e8;
  --rf-radius: 18px;
  --rf-shadow: 0 18px 50px rgba(1, 27, 53, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rf-ink);
  background: var(--rf-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: #fff; padding: 10px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(220,228,232,.8); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.brand-logo { display: block; width: min(285px, 43vw); height: auto; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(145deg, var(--rf-blue), var(--rf-blue-dark)); font-size: 15px; letter-spacing: -1px; }
.custom-logo { max-height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 27px; font-size: 15px; font-weight: 650; }
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--rf-blue); }
.nav-cta { padding: 10px 16px; border-radius: 999px; color: white !important; background: var(--rf-ink); }
.menu-toggle { display: none; border: 1px solid var(--rf-line); border-radius: 9px; background: white; padding: 8px 11px; font: inherit; }

.hero { position: relative; overflow: hidden; padding: 110px 0 94px; background: linear-gradient(135deg, #f8fbfc 0%, #eaf6f9 58%, #dff1f6 100%); }
.hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; background: linear-gradient(90deg, var(--rf-ink) 0 32%, var(--rf-blue-dark) 32% 62%, var(--rf-blue) 62% 86%, var(--rf-orange) 86%); opacity: .96; }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -225px; transform: rotate(45deg); border-radius: 54px; background: linear-gradient(145deg, rgba(8,121,201,.13), rgba(1,27,53,.035)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; gap: 76px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: var(--rf-blue-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--rf-orange); }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 800px; margin-bottom: 23px; font-size: clamp(42px, 6vw, 72px); }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4vw, 49px); }
h3 { font-size: 22px; }
.hero-copy { max-width: 720px; margin: 0 0 34px; color: var(--rf-muted); font-size: 20px; }
.button-row { display: flex; flex-wrap: wrap; gap: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 21px; border-radius: 999px; text-decoration: none; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(120deg, var(--rf-blue-dark), var(--rf-blue)); }
.button-secondary { border: 1px solid var(--rf-line); background: white; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 21px; border: 0; border-radius: 999px; color: white; background: linear-gradient(120deg, var(--rf-blue-dark), var(--rf-blue)); text-decoration: none; font-weight: 750; }
.wp-block-button.is-style-outline .wp-block-button__link { color: var(--rf-ink); border: 1px solid var(--rf-line); background: white; }
.hero-card { padding: 30px; border: 1px solid rgba(255,255,255,.75); border-radius: 24px; background: rgba(255,255,255,.78); box-shadow: var(--rf-shadow); }
.hero-card strong { display: block; margin-bottom: 17px; font-size: 15px; }
.funnel { list-style: none; margin: 0; padding: 0; counter-reset: funnel; }
.funnel li { position: relative; padding: 11px 0 11px 45px; border-bottom: 1px solid var(--rf-line); font-weight: 650; }
.funnel li:last-child { border: 0; }
.funnel li::before { counter-increment: funnel; content: counter(funnel); position: absolute; left: 0; top: 8px; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--rf-orange-dark); background: #fff0e1; font-size: 13px; }

.section { padding: 92px 0; }
.section-alt { background: var(--rf-paper); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--rf-muted); font-size: 18px; }
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service { padding: 31px; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); background: white; transition: transform .2s ease, box-shadow .2s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--rf-shadow); }
.service-number { display: inline-grid; width: 42px; height: 42px; place-items: center; margin-bottom: 20px; border-radius: 7px 14px 7px 7px; color: white !important; background: linear-gradient(145deg, var(--rf-orange-dark), var(--rf-orange)); font-size: 14px; font-weight: 800; }
.service p { margin-bottom: 0; color: var(--rf-muted); }
.services.wp-block-columns { flex-wrap: wrap !important; }
.services.wp-block-columns > .wp-block-column { flex-basis: calc(50% - 10px); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: steps; }
.step { position: relative; padding-top: 25px; border-top: 4px solid var(--rf-orange); }
.step small { display: block; margin-bottom: 12px; color: var(--rf-blue-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.step p { color: var(--rf-muted); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.quote-box { padding: 33px; border-radius: var(--rf-radius); color: white; background: var(--rf-ink); }
.quote-box p { margin: 0; font-size: 23px; line-height: 1.45; }
.check-list { list-style: none; margin: 27px 0 0; padding: 0; }
.check-list li { position: relative; padding: 8px 0 8px 31px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--rf-blue); font-weight: 900; }
.cta { position: relative; overflow: hidden; padding: 50px; border-radius: 14px 30px 14px 14px; color: white; background: linear-gradient(125deg, var(--rf-ink), var(--rf-blue-dark)); }
.cta::after { content: ""; position: absolute; right: -45px; bottom: -65px; width: 180px; height: 180px; transform: rotate(45deg); border-radius: 28px; background: rgba(242,140,40,.23); }
.cta-grid { position: relative; z-index: 1; }
.cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { max-width: 700px; margin-bottom: 12px; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }
.cta .button { color: var(--rf-ink); background: white; }
.cta .wp-block-button__link { color: var(--rf-ink); background: white; }
.rf-contact-form { display: grid; gap: 9px; min-width: min(100%, 430px); padding: 27px; border-radius: 13px 24px 13px 13px; color: var(--rf-ink); background: white; box-shadow: 0 20px 45px rgba(0,0,0,.16); }
.rf-contact-form label { font-size: 14px; font-weight: 750; }
.rf-contact-form input:not([type="checkbox"]), .rf-contact-form textarea { width: 100%; padding: 12px 13px; border: 1px solid #c9d6dc; border-radius: 8px; color: var(--rf-ink); background: #fbfdfe; font: inherit; }
.rf-contact-form input:focus, .rf-contact-form textarea:focus { outline: 3px solid rgba(8,121,201,.18); border-color: var(--rf-blue); }
.rf-contact-form textarea { resize: vertical; }
.rf-contact-form button { min-height: 49px; margin-top: 8px; border: 0; border-radius: 999px; color: white; background: linear-gradient(120deg, var(--rf-blue-dark), var(--rf-blue)); font: inherit; font-weight: 800; cursor: pointer; }
.rf-contact-form button:hover { filter: brightness(.94); }
.rf-consent { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; margin-top: 7px; color: var(--rf-muted); font-size: 12px !important; font-weight: 500 !important; }
.rf-consent input { margin-top: 4px; }
.rf-consent a { color: var(--rf-blue-dark); }
.rf-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-notice { margin: 0 0 13px; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.form-success { color: #064c7d; background: var(--rf-light-blue); }
.form-error { color: #7b2430; background: #fbe4e7; }

.site-footer { padding: 42px 0; border-top: 1px solid var(--rf-line); color: var(--rf-muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; gap: 20px; }
.page-content { padding: 80px 0; }
.page-content article { max-width: 800px; }

@media (max-width: 900px) {
  .hero-grid, .split, .cta-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 45px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 25px 20px; flex-direction: column; align-items: stretch; background: white; border-bottom: 1px solid var(--rf-line); }
  .main-nav.is-open { display: flex; }
  .menu-toggle { display: block; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { width: min(100% - 28px, 1160px); }
  .hero { padding: 75px 0 70px; }
  .services, .steps { grid-template-columns: 1fr; }
  .services.wp-block-columns > .wp-block-column { flex-basis: 100%; }
  .section { padding: 70px 0; }
  .cta { padding: 35px 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* Luxury blue & burnt orange identity */
:root {
  --rf-ink: #071a2f;
  --rf-muted: #506174;
  --rf-blue: #153a61;
  --rf-blue-dark: #071a2f;
  --rf-light-blue: #e9eef3;
  --rf-orange: #c86a2a;
  --rf-orange-dark: #a94e19;
  --rf-paper: #eef1f4;
  --rf-line: #cbd2d9;
  --rf-radius: 2px;
  --rf-shadow: 18px 18px 0 rgba(7, 26, 47, .08);
}
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.045em; }
.site-header { background: rgba(248, 248, 246, .96); border-bottom: 3px solid var(--rf-orange); }
.header-inner { min-height: 88px; }
.brand-logo { width: min(310px, 48vw); }
.nav-cta { border-radius: 2px; background: var(--rf-orange); }
.hero { min-height: 690px; display: flex; align-items: center; color: white; background: var(--rf-ink); }
.hero::before { height: 14px; background: linear-gradient(90deg, var(--rf-orange) 0 24%, transparent 24% 27%, var(--rf-orange) 27% 56%, transparent 56% 59%, var(--rf-orange) 59% 100%); }
.hero::after { width: 620px; height: 620px; right: -220px; top: -310px; border: 2px solid rgba(200, 106, 42, .52); border-radius: 0; background: transparent; }
.hero .eyebrow, .hero-copy { color: #d7dee5; }
.hero h1 { max-width: 870px; font-size: clamp(48px, 7vw, 82px); }
.button, .wp-block-button__link { border-radius: 2px; background: var(--rf-orange); }
.wp-block-button.is-style-outline .wp-block-button__link { color: white; border-color: rgba(255,255,255,.55); background: transparent; }
.hero-card { border: 1px solid rgba(200,106,42,.75); border-radius: 0; color: white; background: rgba(21,58,97,.35); box-shadow: 18px 18px 0 rgba(200,106,42,.13); }
.funnel li { border-color: rgba(255,255,255,.16); }
.funnel li::before { border-radius: 0; color: white; background: var(--rf-orange); }
.section { padding: 110px 0; }
.service { position: relative; overflow: hidden; border: 0; border-radius: 0; background: #f7f7f5; box-shadow: 13px 13px 0 rgba(7,26,47,.08); }
.service::after { content: ""; position: absolute; top: 0; right: 0; width: 58px; height: 7px; background: var(--rf-orange); }
.service-number { border-radius: 0; background: var(--rf-orange); }
.section-alt { color: white; background: var(--rf-blue); }
.section-alt .eyebrow, .section-alt .step p { color: #d5dde5; }
.step { border-top-color: var(--rf-orange); }
.step small { color: #e5a375; }
.quote-box { border-radius: 0; background: var(--rf-orange); }
.quote-box p { font-family: Georgia, "Times New Roman", serif; font-size: 29px; }
.check-list li::before { color: var(--rf-orange); }
.cta { border-radius: 0; background: var(--rf-ink); box-shadow: 18px 18px 0 rgba(200,106,42,.22); }
.cta::after { width: 230px; height: 230px; right: -95px; bottom: -120px; border: 2px solid rgba(200,106,42,.6); border-radius: 0; background: transparent; }
.rf-contact-form { border-top: 7px solid var(--rf-orange); border-radius: 0; box-shadow: none; }
.rf-contact-form button { border-radius: 0; background: var(--rf-orange); }
.form-success { color: white; background: var(--rf-blue); }
@media (max-width: 620px) {
  .hero { min-height: auto; }
  .header-inner { min-height: 74px; }
  .brand-logo { width: min(260px, 62vw); }
}
