/* =====================================================================
   Ra3y Consulting - style.css
   1. COLOR TOKENS  (change every color of the site here)
   2. EFFECT TOKENS (speed / on-off of every animation here)
   3. Base  4. Layout  5. Components  6. Sections  7. Responsive
   ===================================================================== */

/* ---------- 1. COLOR TOKENS : LIGHT (default) ---------- */
:root {
  --brand: #0047AB;            /* primary blue (identity) */
  --brand-dark: #00357f;
  --ink: #3d3b3a;              /* identity gray */
  --bg: #ffffff;
  --bg-alt: #f3f6fc;
  --surface: #ffffff;
  --text: #3d3b3a;
  --muted: #6a6766;
  --line: #e1e7f2;
  --link: #0047AB;             /* blue used for text/links */
  --brand-soft: rgba(0, 71, 171, .08);
  --on-brand: #ffffff;
  --shadow: 0 18px 40px -22px rgba(0, 40, 100, .35);
  --nav-bg: rgba(255, 255, 255, .82);
  --logo-bg: transparent;
  --dark-band: #3d3b3a;        /* dark call-to-action band */
  --dark-band-text: #ffffff;
  /* section background glows + dots */
  --glow-1: rgba(0, 71, 171, .13);
  --glow-2: rgba(70, 135, 240, .12);
  --dot: rgba(0, 71, 171, .20);
  /* globe */
  --globe-ocean-1: #f7faff; --globe-ocean-2: #d3e2f9;
  --globe-land: #bccbe4; --globe-stroke: #ffffff; --globe-eu: #6f9be0;
  --globe-hl: #0047AB; --globe-arc: #3d3b3a; --globe-dot: #0047AB;
  --globe-line: rgba(0, 71, 171, .13); --globe-rim: rgba(0, 71, 171, .28);
}
/* ---------- COLOR TOKENS : DARK (identity colors kept) ---------- */
:root[data-theme="dark"] {
  --bg: #0d1117;
  --bg-alt: #121821;
  --surface: #171e29;
  --text: #e8ebf1;
  --muted: #a2aab8;
  --line: #273041;
  --link: #6ea3f5;             /* lighter blue for readable text on dark */
  --brand-soft: rgba(110, 163, 245, .12);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
  --nav-bg: rgba(13, 17, 23, .82);
  --logo-bg: #ffffff;          /* white chip so the logo stays readable */
  --dark-band: #0047AB;
  --glow-1: rgba(110, 163, 245, .16);
  --glow-2: rgba(0, 71, 171, .35);
  --dot: rgba(110, 163, 245, .22);
  --globe-ocean-1: #1d2839; --globe-ocean-2: #0e1520;
  --globe-land: #2b3850; --globe-stroke: #0d1117; --globe-eu: #3f6fc0;
  --globe-hl: #4f8df0; --globe-arc: #ffffff; --globe-dot: #4f8df0;
  --globe-line: rgba(110, 163, 245, .15); --globe-rim: rgba(110, 163, 245, .4);
}

/* ---------- 2. EFFECT TOKENS ----------
   To disable ALL effects: add class "no-fx" on <html> or set
   CONFIG.effects = false in assets/js/main.js                      */
:root {
  --fx-fast: .25s;
  --fx-base: .6s;
  --fx-slow: 1s;
  --fx-ease: cubic-bezier(.22, 1, .36, 1);
  --fx-reveal-shift: 28px;
}
html.no-fx *, html.no-fx *::before, html.no-fx *::after {
  animation: none !important; transition: none !important;
}
html.no-fx [data-reveal], html.no-fx .hero-anim { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal], .hero-anim { opacity: 1 !important; transform: none !important; }
}

/* ---------- 3. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.7 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  transition: background var(--fx-base), color var(--fx-base);
  overflow-x: hidden;
}
h1, h2, h3 { font-family: "Sora", "Manrope", sans-serif; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--link); }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- 4. LAYOUT ---------- */
.wrap { width: min(1200px, 92%); margin-inline: auto; }
section { padding: clamp(72px, 10vw, 128px) 0; scroll-margin-top: 70px; }
.alt { background: var(--bg-alt); }
.head { max-width: 680px; margin-bottom: 3rem; }
.head p { color: var(--muted); }

/* ---------- 5. COMPONENTS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  font: 600 1rem "Manrope", sans-serif; text-decoration: none; border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); padding: .85rem 1.6rem; border-radius: 999px;
  transition: transform var(--fx-fast), background var(--fx-fast), box-shadow var(--fx-fast);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--brand); }
.btn.ghost { background: transparent; color: var(--link); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--link); background: var(--brand-soft); box-shadow: none; }
.badge {
  display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600;
  padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted);
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 2rem;
  transition: transform var(--fx-base) var(--fx-ease), box-shadow var(--fx-base), border-color var(--fx-fast);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--brand); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 7px; border-left: 2.5px solid var(--link); border-bottom: 2.5px solid var(--link); transform: rotate(-45deg) translateY(-50%); }

/* Scroll reveal (effect) */
[data-reveal] { opacity: 0; transform: translateY(var(--fx-reveal-shift)); transition: opacity var(--fx-slow) var(--fx-ease), transform var(--fx-slow) var(--fx-ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- 6. SECTIONS ---------- */
/* Navbar */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--fx-fast), box-shadow var(--fx-fast), background var(--fx-base); }
.nav.scrolled { border-color: var(--line); box-shadow: 0 8px 30px -22px rgba(0,0,0,.5); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.logo { background: var(--logo-bg); border-radius: 10px; padding: 3px 8px; display: flex; transition: background var(--fx-base); }
.logo img { height: 44px; width: auto; }
.menu { display: flex; align-items: center; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .98rem; position: relative; padding: .3rem 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--link); transform: scaleX(0); transform-origin: left; transition: transform var(--fx-fast) var(--fx-ease); }
.menu a:not(.btn):hover::after, .menu a.active::after { transform: scaleX(1); }
.menu .btn { padding: .6rem 1.3rem; color: var(--on-brand); }
.nav-tools { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: transform var(--fx-fast), border-color var(--fx-fast); }
.icon-btn:hover { border-color: var(--link); transform: rotate(18deg); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-moon { display: none; } [data-theme="dark"] .ico-moon { display: block; } [data-theme="dark"] .ico-sun { display: none; }
.burger { display: none; }
.burger .b-close { display: none; }
.burger[aria-expanded="true"] .b-open { display: none; }
.burger[aria-expanded="true"] .b-close { display: block; }
.burger[aria-expanded="true"] { border-color: var(--link); }

/* Hero */
.hero { padding-top: 150px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, var(--brand-soft), transparent); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-60px, 50px) scale(1.08); } }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; }
.hero .badge { margin-bottom: 1.4rem; }
.hero h1 span { display: block; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-anim { opacity: 0; transform: translateY(26px); }
.loaded .hero-anim { animation: rise var(--fx-slow) var(--fx-ease) forwards; animation-delay: calc(var(--i, 0) * .12s + .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }
/* Hero globe (static SVG, animated arc + markers) */
.route { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; width: 100%; }
.route svg { width: 100%; height: 100%; overflow: visible; animation: float 9s ease-in-out infinite; }
.g-halo { fill: var(--brand-soft); }
.g-grat { fill: none; stroke: var(--globe-line); stroke-width: .6; }
.g-land { fill: var(--globe-land); stroke: var(--globe-stroke); stroke-width: .5; }
.g-eu { fill: var(--globe-eu); stroke: var(--globe-stroke); stroke-width: .5; }
.g-hl { fill: var(--globe-hl); stroke: var(--globe-stroke); stroke-width: .6; }
.g-rim { fill: none; stroke: var(--globe-rim); stroke-width: 1.5; }
.g-arc { fill: none; stroke: var(--globe-arc); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.g-dot { fill: var(--globe-dot); stroke: #fff; stroke-width: 2.2; }
.g-ring { fill: var(--globe-hl); opacity: .4; transform-box: fill-box; transform-origin: center; animation: ping 2.4s infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }
.g-label rect { fill: var(--surface); stroke: var(--line); }
.g-label text { fill: var(--text); font: 700 13px "Manrope", sans-serif; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { padding: 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-alt); }
.track { display: flex; width: max-content; animation: scroll-x 38s linear infinite; }
.track span { padding: 1.3rem 2.4rem; font: 600 1.05rem "Sora", sans-serif; color: var(--muted); white-space: nowrap; }
.track span::after { content: "\2022"; margin-left: 4.8rem; color: var(--link); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillars .card { padding: 1.4rem; } .pillars h3 { font-size: 1.05rem; margin-bottom: .3rem; } .pillars p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Services */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service .tagline { color: var(--link); font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--muted); }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; }
.mini .card { padding: 1.3rem; } .mini h3 { font-size: 1.02rem; margin-bottom: .3rem; } .mini p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.step { padding-top: 1.4rem; border-top: 3px solid var(--line); position: relative; }
.step::before { content: ""; position: absolute; top: -3px; left: 0; height: 3px; width: 0; background: var(--brand); transition: width 1.2s var(--fx-ease); transition-delay: var(--d, 0s); }
.step.in::before { width: 100%; }
.step b { font: 700 .95rem "Sora", sans-serif; color: var(--link); display: block; margin-bottom: .6rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); margin-bottom: .8rem; transition: border-color var(--fx-fast); }
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 1.5rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 "Sora", sans-serif; color: var(--link); transition: transform var(--fx-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.3rem; margin: 0; color: var(--muted); animation: fade var(--fx-base) var(--fx-ease); }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.contact-info { background: var(--dark-band); color: var(--dark-band-text); border-radius: 26px; padding: 2.4rem; position: relative; overflow: hidden; }
.contact-info::after { content: ""; position: absolute; width: 280px; height: 280px; right: -90px; bottom: -90px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); }
.contact-info a { color: #fff; font-weight: 700; word-break: break-all; }
.contact-info p { opacity: .85; }
form.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 2.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; } .field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: .85rem 1rem; transition: border-color var(--fx-fast), box-shadow var(--fx-fast); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px var(--brand-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.full { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--brand); flex: none; }
.status { grid-column: 1 / -1; padding: .9rem 1.1rem; border-radius: 14px; font-weight: 600; display: none; }
.status.ok { display: block; background: rgba(20, 140, 80, .12); color: #1a8f55; }
.status.err { display: block; background: rgba(200, 40, 40, .12); color: #d04545; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Footer */
.footer { background: var(--dark-band); color: #fff; padding: 56px 0 28px; }
:root[data-theme="dark"] .footer { background: #0a0e14; }
.footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.footer .logo { background: #fff; align-self: flex-start; } .footer p { opacity: .75; max-width: 360px; margin-top: 1rem; }
.footer nav { display: flex; flex-direction: column; gap: .5rem; } .footer nav a { color: #fff; opacity: .85; text-decoration: none; } .footer nav a:hover { opacity: 1; text-decoration: underline; }
.footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.4rem; font-size: .92rem; opacity: .85; }
.yt { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; color: #fff; transition: background var(--fx-fast), transform var(--fx-fast); }
.yt:hover { background: #fff; color: var(--brand); transform: translateY(-3px); }
.yt svg { width: 22px; height: 22px; fill: currentColor; }
.to-top { background: var(--brand); color: #fff; border-color: var(--brand); position: fixed; right: 20px; bottom: 20px; z-index: 90; opacity: 0; pointer-events: none; transition: opacity var(--fx-fast), transform var(--fx-fast); }
.to-top:hover { transform: translateY(-3px); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Section backgrounds (soft gradients + dot grid). Remove class "fx-bg" from a section to drop its background. */
.fx-bg { position: relative; overflow: hidden; isolation: isolate; }
.fx-bg::before, .fx-bg::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.bg-a::before { width: 680px; height: 680px; left: -240px; top: -160px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); animation: drift 16s ease-in-out infinite alternate; }
.bg-a::after { width: 560px; height: 560px; right: -180px; bottom: -180px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-2), transparent); animation: drift 20s ease-in-out infinite alternate-reverse; }
.bg-b { background-image: linear-gradient(160deg, var(--bg-alt) 0%, var(--brand-soft) 100%); }
.bg-b::before { inset: 0; background-image: radial-gradient(var(--dot) 1.4px, transparent 1.7px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.bg-b::after { width: 620px; height: 620px; right: -200px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-2), transparent); animation: drift 18s ease-in-out infinite alternate; }
.bg-c::before { width: 760px; height: 420px; left: 50%; top: 0; margin-left: -380px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); animation: drift 18s ease-in-out infinite alternate; }
.bg-c::after { inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: .45; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); }
.bg-d { background-image: linear-gradient(180deg, var(--bg) 0%, var(--brand-soft) 100%); }
.bg-d::before { width: 700px; height: 700px; left: -200px; bottom: -260px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-2), transparent); animation: drift 17s ease-in-out infinite alternate; }
.bg-d::after { width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-1), transparent); animation: drift 21s ease-in-out infinite alternate-reverse; }

/* ---------- 7. RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero .wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .route { max-width: 420px; }
  .grid3 { grid-template-columns: 1fr; } .mini, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: grid; }
  .menu { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 5%; transform: translateY(-120%); transition: transform var(--fx-base) var(--fx-ease); box-shadow: var(--shadow); }
  .menu.open { transform: none; }
  .menu li { border-bottom: 1px solid var(--line); } .menu li:last-child { border: 0; padding-top: 1rem; }
  .menu a { display: block; padding: .9rem 0; } .menu a::after { display: none; } .menu .btn { display: inline-flex; justify-content: center; width: 100%; }
}
@media (max-width: 600px) {
  .pillars, .mini, .steps, form.contact { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; } .logo img { height: 38px; }
  form.contact, .contact-info { padding: 1.5rem; }
}
