/* =========================================================
   RAM e-Solutions — Landing Page Styles
   ========================================================= */

:root {
  --bg:         #0a0f1e;   /* deep navy (hero / dark sections) */
  --bg-2:       #0e1630;
  --surface:    #ffffff;
  --surface-alt:#f3f6fb;
  --ink:        #0f1a2e;   /* primary text on light */
  --muted:      #5b6b84;   /* secondary text on light */
  --muted-light:#9fb1cc;   /* secondary text on dark */
  --line:       #e4eaf3;

  --navy:       #263b7b;   /* RAM logo navy */
  --brand:      #2f4aa0;   /* brightened navy — links & kickers */
  --brand-2:    #2dd4bf;   /* teal accent */
  --brand-3:    #3b5bd6;   /* royal blue (gradient) */
  --accent:     #fbbf24;   /* amber (energy) */

  --grad: linear-gradient(120deg, var(--brand-2), var(--brand-3));

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -24px rgba(12, 26, 54, .35);
  --shadow-lg: 0 40px 90px -40px rgba(12, 26, 54, .5);

  --container: 1160px;
  --ff-display: "Sora", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--ff-display); line-height: 1.12; margin: 0 0 .5em; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1rem; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--ink); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ff-display); font-weight: 600; font-size: .98rem;
  padding: .78em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  background: var(--_bg); color: var(--_fg); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { --_bg: transparent; color: #04121f; background-image: var(--grad); box-shadow: 0 12px 30px -12px rgba(45, 212, 191, .6); }
.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(45, 212, 191, .7); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2d4d; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: .95em 1.9em; font-size: 1.02rem; }
.btn-block { width: 100%; }

.kicker {
  font-family: var(--ff-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin: 0 0 .7rem;
}
.kicker.light { color: var(--brand-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(12,26,54,.4); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand-logo-footer { height: 46px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav > a:not(.btn) { font-family: var(--ff-display); font-weight: 600; font-size: .96rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--grad); transition: width .22s ease; }
.nav > a:not(.btn):hover::after { width: 100%; }
.nav-cta { margin-left: .4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--bg); overflow: hidden; padding: clamp(90px, 14vw, 170px) 0 clamp(70px, 10vw, 120px); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.glow-a { width: 520px; height: 520px; background: radial-gradient(circle, #2dd4bf, transparent 70%); top: -140px; right: -80px; }
.glow-b { width: 460px; height: 460px; background: radial-gradient(circle, #3b82f6, transparent 70%); bottom: -160px; left: -120px; opacity: .45; }
.grid-overlay {
  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: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 40%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 860px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--ff-display); font-weight: 600; font-size: .86rem; letter-spacing: .04em; color: var(--muted-light); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: .5em 1em; border-radius: 999px; }
.eyebrow .pin { color: var(--brand-2); }
.hero-title { color: #fff; margin: 1.1rem 0 1rem; }
.accent-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tag { font-family: var(--ff-display); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.4rem); color: #e8eefb; margin-bottom: .8rem; }
.hero-sub { font-size: 1.1rem; color: var(--muted-light); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 3.5rem); margin-top: 3.5rem; padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.12); }
.hstat strong { display: block; font-family: var(--ff-display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.hstat span { color: var(--muted-light); font-size: .92rem; }

/* ---------- Section head ---------- */
.section-head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- About ---------- */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-copy .lead { font-size: 1.14rem; color: var(--ink); font-weight: 500; }
.about-copy p { color: var(--muted); }
.about-copy .btn { margin-top: .6rem; }
.lead { font-size: 1.12rem; }

.about-cards { display: grid; gap: 1.1rem; }
.feature-card {
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.1rem; align-items: start;
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card h3 { grid-column: 2; margin: 0 0 .25rem; }
.feature-card p { grid-column: 2; margin: 0; color: var(--muted); font-size: .98rem; }
.fc-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; }
.fc-icon svg { width: 24px; height: 24px; fill: none; stroke: #04121f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Divisions ---------- */
.divisions { background: var(--surface-alt); }
.div-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.div-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.7rem; position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.div-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--c1, var(--brand-2)), var(--c2, var(--brand-3))); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.div-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.div-card:hover::before { transform: scaleX(1); }
.div-icon { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, var(--c1, var(--brand-2)), var(--c2, var(--brand-3))); box-shadow: 0 12px 24px -12px var(--c2, var(--brand-3)); }
.div-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.div-card h3 { margin-bottom: .5rem; }
.div-card p { color: var(--muted); margin: 0; font-size: .98rem; }

.div-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--bg); color: #fff; border: 0; }
.div-cta h3 { color: #fff; }
.div-cta p { color: var(--muted-light); margin-bottom: 1.3rem; }
.div-cta::before { display: none; }

/* ---------- Process ---------- */
.process { background: var(--bg); color: #fff; position: relative; }
.process .section-head h2 { color: #fff; }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem 1.8rem; position: relative; }
.step-num { font-family: var(--ff-display); font-weight: 800; font-size: 2.6rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 1rem; }
.step h3 { color: #fff; margin-bottom: .5rem; }
.step p { color: var(--muted-light); margin: 0; }

/* ---------- Recognition ---------- */
.recognition { background: var(--surface); }
.recog-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.recog-inner .lead { color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--surface-alt); }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem 1.7rem; margin: 0; box-shadow: var(--shadow); }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .9rem; font-size: 1.05rem; }
.quote blockquote { margin: 0 0 1.2rem; font-size: 1rem; color: var(--ink); }
.quote blockquote em { color: var(--brand); font-style: italic; }
.quote figcaption { font-family: var(--ff-display); font-weight: 700; color: var(--ink); }

/* ---------- Contact ---------- */
.contact { background: var(--bg); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-copy h2 { color: #fff; }
.contact-copy .lead { color: var(--muted-light); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; color: #e8eefb; font-weight: 500; }
.contact-list span { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--brand-2); }

.contact-form { background: var(--surface); border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.3rem); box-shadow: var(--shadow-lg); }
.contact-form label { display: block; font-family: var(--ff-display); font-weight: 600; font-size: .86rem; color: var(--ink); margin-bottom: 1rem; }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: .4rem; padding: .8em .95em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,74,160,.16); }
.contact-form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row2 label { margin-bottom: 1rem; }
.form-note { margin: .8rem 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #0f9d6b; }
.form-note.err { color: #d1495b; }
.form-note.err a { color: inherit; text-decoration: underline; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: #060a16; color: #cdd7ea; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--muted-light); max-width: 420px; font-size: .96rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted-light); padding: .32rem 0; transition: color .18s ease, padding-left .18s ease; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .9rem; color: var(--muted-light); }
.tagline-mini { color: var(--brand-2); font-family: var(--ff-display); font-weight: 600; margin: 0; }
.footer-bottom p { margin: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .div-grid, .quote-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 20px 1.4rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .3s ease; z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav > a:not(.btn)::after { display: none; }
  .nav-cta { margin: 1rem 0 0; }
}

@media (max-width: 620px) {
  .div-grid, .quote-grid, .steps { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem 2.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .div-card:hover, .feature-card:hover { transform: none; }
}
