/* RL IT Consulting — styles */
:root {
  --navy: #0B1F3A;
  --navy-2: #12305a;
  --navy-3: #071529;
  --teal: #14B8C4;
  --teal-dark: #0a8f99;
  --orange: #FF7A2F;
  --orange-dark: #e9620f;
  --bg: #F5F8FB;
  --white: #ffffff;
  --text: #1c2b3f;
  --muted: #55667c;
  --line: #dbe4ee;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.10);
  --font-head: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 16px; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; position: relative; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--orange); vertical-align: middle; margin-right: 12px; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(255, 122, 47, .35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 122, 47, .45); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 21, 41, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; }
.logo:hover { color: #fff; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--teal), #2c7be5);
  display: grid; place-items: center; color: #fff; font-size: .95rem; letter-spacing: -0.02em;
  box-shadow: 0 0 0 3px rgba(20, 184, 196, .2);
}
.logo small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb4cf; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav {
  position: absolute; top: 72px; left: 0; right: 0;
  background: var(--navy-3);
  display: none; flex-direction: column; padding: 12px 24px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav.open { display: flex; }
.nav a { color: #cfdcee; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { margin-top: 16px; border: 2px solid transparent; padding: 13px 24px; color: #fff; }
.nav .btn:hover { color: #fff; }

/* Hero */
.hero {
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(20, 184, 196, .28), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255, 122, 47, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-3), var(--navy) 55%, var(--navy-2));
  color: #fff;
  padding: 72px 0 120px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--teal), #7be7ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .eyebrow { color: var(--teal); }
.hero p.lead { color: #b9c9de; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 40px 0 0; padding: 0; list-style: none; color: #9fb4cf; font-size: .9rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.hero-visual { width: 100%; max-width: 520px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.float { animation: float 6s ease-in-out infinite; }
.float.delay { animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Services */
.services { background: var(--bg); margin-top: -1px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.cards { display: grid; gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--teal), var(--orange)); transition: width .4s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { width: 100%; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(20, 184, 196, .15), rgba(44, 123, 229, .15)); color: var(--teal-dark);
}
.card-icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Approach */
.approach-grid { display: grid; gap: 48px; align-items: start; }
.principles { display: grid; gap: 20px; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--bg); border-left: 4px solid var(--teal); }
.principle:nth-child(2) { border-left-color: var(--orange); }
.principle:nth-child(3) { border-left-color: #2c7be5; }
.principle .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--navy); opacity: .25; line-height: 1; }
.principle h3 { margin-bottom: 6px; }
.principle p { margin: 0; color: var(--muted); }

/* Process */
.process { background: var(--navy); color: #fff; clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); padding: 120px 0; }
.process h2 { color: #fff; }
.process .lead { color: #b9c9de; }
.process .eyebrow { color: var(--teal); }
.steps { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .3s ease, transform .3s ease; }
.step:hover { background: rgba(255, 255, 255, .09); transform: translateY(-4px); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; display: block; margin-bottom: 12px;
  background: linear-gradient(90deg, var(--teal), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { color: #fff; }
.step p { margin: 0; color: #b9c9de; font-size: .96rem; }

/* About */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-card {
  border-radius: 24px; padding: 40px 32px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow);
}
.about-card::before { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(20, 184, 196, .5), transparent 70%); }
.avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--orange), #ffb067); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--navy); margin-bottom: 20px; position: relative; }
.about-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; position: relative; }
.about-card .role { color: var(--teal); font-weight: 600; margin-bottom: 20px; position: relative; }
.about-card p { color: #c5d3e6; position: relative; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; position: relative; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: #e6eef9; font-size: .95rem; }
.facts svg { width: 20px; height: 20px; color: var(--teal); flex: none; margin-top: 3px; }

/* Contact */
.contact { background: var(--bg); }
.contact-grid { display: grid; gap: 40px; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ci { width: 48px; height: 48px; border-radius: 12px; flex: none; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--teal-dark); }
.contact-list .ci svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .9rem; }
.contact-list span, .contact-list a { color: var(--muted); font-size: 1rem; word-break: break-word; }
.contact-list a:hover { color: var(--orange-dark); }
.form { background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(20, 184, 196, .18); }
.field.invalid input, .field.invalid textarea { border-color: #d6336c; }
.field .error { display: none; color: #b4234f; font-size: .85rem; margin-top: 6px; }
.field.invalid .error { display: block; }
.form .btn { width: 100%; }
.form-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.form-status { margin-top: 16px; font-weight: 600; color: var(--teal-dark); }

/* Footer */
.site-footer { background: var(--navy-3); color: #9fb4cf; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: #9fb4cf; }
.site-footer a:hover { color: var(--teal); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; font-size: .85rem; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Privacy page */
.page-hero {
  background: radial-gradient(600px 300px at 90% 0%, rgba(20, 184, 196, .3), transparent 60%), linear-gradient(160deg, var(--navy-3), var(--navy));
  color: #fff; padding: 64px 0 72px; clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.page-hero p { color: #b9c9de; margin: 0; }
.page-hero .eyebrow { color: var(--teal); }
.policy-layout { display: grid; gap: 40px; padding: 56px 0 96px; }
.toc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.toc h2 { font-size: 1rem; margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: .94rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--orange-dark); }
.policy section { margin-bottom: 40px; scroll-margin-top: 90px; }
.policy h2 { font-size: 1.45rem; padding-bottom: 10px; border-bottom: 2px solid var(--line); margin-bottom: 18px; }
.policy ul { padding-left: 22px; margin: 0 0 16px; }
.policy li { margin-bottom: 8px; }
.policy .callout { background: var(--bg); border-left: 4px solid var(--teal); padding: 18px 22px; border-radius: 0 12px 12px 0; }
.policy address { font-style: normal; background: var(--bg); padding: 18px 22px; border-radius: 12px; border: 1px solid var(--line); line-height: 1.8; }

/* Tablet */
@media (min-width: 768px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .form { padding: 40px; }
  .section { padding: 96px 0; }
}

/* Desktop */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 30px; padding: 0; background: none; border: 0; }
  .nav a { padding: 8px 0; border: 0; font-size: .95rem; position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--teal); transition: width .3s ease; }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { width: 100%; }
  .nav .btn { margin: 0; padding: 11px 22px; font-size: .88rem; }
  .hero { padding: 96px 0 150px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .approach-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; position: relative; }
  .approach-grid .section-head { position: sticky; top: 120px; margin-bottom: 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .contact-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
  .policy-layout { grid-template-columns: 280px 1fr; gap: 64px; }
  .toc { position: sticky; top: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
