/*
Theme Name: RS NEXT LLC
Theme URI: https://www.rsnext.com
Author: RS NEXT LLC
Author URI: https://www.rsnext.com
Description: Single-page corporate theme for RS NEXT LLC, presenting the company and its family of apps (starting with Voiczer), with a dedicated SMS/messaging consent section for A2P 10DLC / toll-free verification.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rsnext
*/

/* ─── Design tokens ─────────────────────────────────────────────── */
:root {
  --navy: #0b1a2b;
  --navy-800: #10233a;
  --navy-700: #16304d;
  --ink: #0d1b2a;
  --slate: #4a5a6a;
  --muted: #6b7a8a;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --accent: #2f81f7;
  --accent-600: #1f6fe5;
  --accent-soft: #e8f1ff;
  --success: #1f9d63;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 27, 42, 0.14);
  --maxw: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ─── Base ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; color: var(--slate); }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-600); margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 62ch; margin-bottom: 40px; }

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.98rem;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(47, 129, 247, 0.28); }
.btn--primary:hover { background: var(--accent-600); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-600); }

/* ─── Header / nav ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 38px; height: 38px; }
.brand span { display: inline-block; line-height: 1.3; }
.brand__sub { display: block; margin-top: 2px; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--slate); font-weight: 500; font-size: 0.95rem; }
.nav__links a:hover { color: var(--navy); text-decoration: none; }
.nav__cta { margin-left: 8px; }
.nav__cta .btn--primary,
.nav__cta .btn--primary:hover { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; transition: 0.2s; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; background:
  radial-gradient(1200px 500px at 80% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge {
  font-size: 0.82rem; font-weight: 600; color: var(--navy-700); background: #fff;
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__card {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%); color: #dbe7f5;
  border-radius: 20px; padding: 30px; box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; }
.hero__card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.hero__card li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.95rem; }
.hero__card li:first-child { border-top: 0; }
.hero__card .tick { color: #7dd3a3; font-weight: 800; }

/* ─── Cards / grids ─────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-600); font-size: 1.2rem; margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ─── Messaging / SMS consent ───────────────────────────────────── */
.sms { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.sms__panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.sms__list { list-style: none; padding: 0; margin: 0; }
.sms__list li { padding: 12px 0; border-top: 1px solid var(--line); }
.sms__list li:first-child { border-top: 0; padding-top: 0; }
.sms__list strong { color: var(--navy); display: block; margin-bottom: 2px; }
.kw { display: inline-block; font-weight: 700; color: var(--navy); background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; }
.notice {
  margin-top: 20px; font-size: 0.9rem; color: var(--muted); background: var(--bg-alt);
  border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
}

/* ─── Contact ───────────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact__item { padding: 16px 0; border-top: 1px solid var(--line); }
.contact__item:first-child { border-top: 0; }
.contact__label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.contact__value { font-size: 1.05rem; color: var(--navy); }

/* ─── Footer ────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: #a9bed4; padding: 54px 0 30px; }
.site-footer a { color: #cfe0f2; }
.footer__top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__brand { font-weight: 800; color: #fff; font-size: 1.15rem; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 22px; font-size: 0.86rem; color: #7f97b0; }

/* ─── Legal page ────────────────────────────────────────────────── */
.legal { padding: 64px 0; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin-top: 34px; }
.legal ul { color: var(--slate); }

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__grid, .sms, .contact { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-140%); transition: transform 0.25s ease; z-index: 40;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: block; }
}
@media (max-width: 560px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer__top, .footer__bottom { flex-direction: column; }
}
