/* ==========================================================================
   Redesign layer — sits on top of style.css, keeps the existing brand colors
   (#17a2b8 / #00394f) but adds real visual identity: type scale, blobs,
   icon cards, and a friendly "product mockup" language reused site-wide.
   ========================================================================== */

:root {
  --brand-primary: #17a2b8;
  --brand-primary-dark: #0f6674;
  --brand-secondary: #00394f;
  --brand-accent: #ffb347;    /* warm apricot — icon fills, highlights */
  --brand-accent-2: #ff6f61;  /* coral — secondary accent, used sparingly */
  --brand-mint: #eaf7f8;      /* soft tinted section background */
  --brand-cream: #fff8ec;     /* warm alt section background */
  --ink: #0b2530;
  --ink-soft: #4b6470;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 48px -24px rgba(0, 57, 79, 0.35);
  --shadow-tight: 0 10px 24px -12px rgba(0, 57, 79, 0.28);
  --font-display: 'Fredoka', 'Nunito', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

body { font-family: var(--font-body); color: var(--ink); }

.rd-h1, .rd-h2, .rd-h3, .rd-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand-secondary);
  line-height: 1.15;
}
.rd-display { font-size: clamp(2.4rem, 4vw + 1rem, 3.6rem); font-weight: 600; }
.rd-h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.4rem); }
.rd-h3 { font-size: 1.3rem; }

.rd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary-dark);
  background: var(--brand-mint);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
}
.rd-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-accent);
  display: inline-block;
}

.rd-lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }

/* Buttons ---------------------------------------------------------------- */
.rd-btn {
  font-family: var(--font-body);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.rd-btn-primary {
  background: var(--brand-primary);
  color: #fff;
  box-shadow: var(--shadow-tight);
}
.rd-btn-primary:hover { background: var(--brand-primary-dark); color: #fff; transform: translateY(-2px); }
.rd-btn-dark { background: var(--brand-secondary); color: #fff; }
.rd-btn-dark:hover { background: #002734; color: #fff; transform: translateY(-2px); }
.rd-btn-outline {
  background: transparent;
  border-color: rgba(0, 57, 79, 0.16);
  color: var(--brand-secondary);
}
.rd-btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary-dark); }
.rd-btn:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 2px; }

/* Navbar ------------------------------------------------------------------ */
.rd-navbar { padding: 14px 0; background: #fff; }
.rd-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  color: var(--brand-secondary) !important; text-decoration: none;
}
.rd-brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: var(--shadow-tight);
}
.rd-brand span { color: var(--brand-primary); }
.rd-nav-links .nav-link {
  font-weight: 700; color: var(--ink-soft) !important; padding: 0.5rem 1rem !important;
  border-radius: 999px; transition: background-color .15s ease, color .15s ease;
}
.rd-nav-links .nav-link:hover,
.rd-nav-links .nav-link.active { background: var(--brand-mint); color: var(--brand-primary-dark) !important; }

/* Decorative blobs --------------------------------------------------------- */
.rd-blob {
  position: absolute;
  border-radius: 62% 38% 55% 45% / 45% 55% 45% 55%;
  z-index: 0;
  filter: blur(0.5px);
}

/* Hero ---------------------------------------------------------------------- */
.rd-hero {
  position: relative;
  overflow: hidden;
  background: var(--brand-mint);
  padding: 72px 0 40px;
}
.rd-hero .rd-blob-1 {
  width: 480px; height: 480px; top: -140px; right: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(23,162,184,0.22), rgba(23,162,184,0.06));
}
.rd-hero .rd-blob-2 {
  width: 260px; height: 260px; bottom: -90px; left: -60px;
  background: radial-gradient(circle at 30% 30%, rgba(255,179,71,0.28), rgba(255,179,71,0.05));
}
.rd-hero-trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 1.75rem; }
.rd-hero-trust .item { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 700; font-size: 0.92rem; }
.rd-hero-trust .item i { color: var(--brand-primary); font-size: 1.1rem; }

/* Hero mockup panel — the signature visual: a live-looking product card ---- */
.rd-mock-wrap { position: relative; z-index: 1; padding: 20px; }
.rd-mock-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
  padding: 26px; position: relative; z-index: 2; max-width: 380px; margin-inline: auto;
}
.rd-mock-card .mock-row { display: flex; align-items: center; gap: 12px; }
.rd-mock-avatar {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(145deg, var(--brand-accent), #ff9d57);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem;
}
.rd-mock-card h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0; color: var(--brand-secondary); }
.rd-mock-card .muted { color: var(--ink-soft); font-size: 0.85rem; }
.rd-mock-bar { height: 8px; border-radius: 999px; background: var(--brand-mint); overflow: hidden; margin-top: 14px; }
.rd-mock-bar span { display: block; height: 100%; width: 68%; background: var(--brand-primary); border-radius: 999px; }
.rd-mock-badge {
  position: absolute; z-index: 3; background: #fff; border-radius: 999px;
  box-shadow: var(--shadow-tight); padding: 10px 16px; display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.85rem; color: var(--brand-secondary);
}
.rd-mock-badge i { color: #2bb673; }
.rd-mock-badge.badge-a { top: 4%; right: -6%; }
.rd-mock-badge.badge-b { bottom: 8%; left: -8%; }
@media (max-width: 991px) {
  .rd-mock-badge.badge-a { top: -4%; right: 2%; }
  .rd-mock-badge.badge-b { bottom: -4%; left: 2%; }
}

/* Feature / icon cards ------------------------------------------------------ */
.rd-feature-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px 24px;
  height: 100%; border: 1px solid rgba(0,57,79,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.rd-feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-tight); }
.rd-icon-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: #fff;
  margin-bottom: 16px;
}
.rd-icon-badge.tone-1 { background: linear-gradient(145deg, var(--brand-primary), var(--brand-primary-dark)); }
.rd-icon-badge.tone-2 { background: linear-gradient(145deg, var(--brand-accent), #ff9d57); }
.rd-icon-badge.tone-3 { background: linear-gradient(145deg, var(--brand-accent-2), #d9483c); }
.rd-icon-badge.tone-4 { background: linear-gradient(145deg, var(--brand-secondary), #002734); }

/* Steps (real sequence → numbering is justified) ---------------------------- */
.rd-step { position: relative; padding-left: 4px; }
.rd-step-num {
  font-family: var(--font-display); font-weight: 600; font-size: 2.4rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-primary); opacity: 0.55;
  line-height: 1; margin-bottom: 6px; display: block;
}
.rd-step:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: calc(100% - 14px);
  width: calc(100% - 16px); border-top: 2px dashed rgba(0,57,79,0.15);
}
@media (max-width: 767px) { .rd-step:not(:last-child)::after { display: none; } }

/* Class cards ---------------------------------------------------------------- */
.rd-class-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-tight); height: 100%; display: flex; flex-direction: column;
  border: 1px solid rgba(0,57,79,0.06);
}
.rd-class-top { background: var(--brand-mint); padding: 22px 24px 18px; position: relative; }
.rd-class-top .rd-icon-badge { margin-bottom: 10px; }
.rd-class-body { padding: 20px 24px; flex-grow: 1; }
.rd-class-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rd-pill {
  background: var(--brand-mint); color: var(--brand-primary-dark); font-weight: 800; font-size: 0.78rem;
  border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 6px;
}
.rd-class-footer { padding: 0 24px 22px; margin-top: auto; }

/* Teacher cards --------------------------------------------------------------- */
.rd-teacher-card { text-align: center; }
.rd-avatar-ring {
  width: 168px; height: 168px; border-radius: 50%; margin: 0 auto 16px;
  padding: 6px; background: linear-gradient(145deg, var(--brand-primary), var(--brand-accent));
}
.rd-avatar-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid #fff; }
.rd-avatar-ring .rd-avatar-fallback {
  width: 100%; height: 100%; border-radius: 50%; border: 4px solid #fff; background: var(--brand-mint);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--brand-primary);
}

/* CTA band --------------------------------------------------------------------- */
.rd-cta-band {
  background: linear-gradient(135deg, var(--brand-secondary), #012f40);
  border-radius: var(--radius-lg); padding: 56px 40px; position: relative; overflow: hidden;
  color: #fff;
}
.rd-cta-band .rd-blob { background: radial-gradient(circle, rgba(23,162,184,0.35), transparent 70%); }
.rd-cta-band .cta-b1 { width: 320px; height: 320px; top: -120px; right: -80px; }
.rd-cta-band .cta-b2 { width: 200px; height: 200px; bottom: -100px; left: -40px; background: radial-gradient(circle, rgba(255,179,71,0.3), transparent 70%); }
.rd-cta-band h2 { color: #fff; }
.rd-cta-band p { color: rgba(255,255,255,0.78); }

/* Footer ------------------------------------------------------------------------ */
.rd-footer { background: var(--brand-secondary); color: rgba(255,255,255,0.82); }
.rd-footer h6 { color: #fff; font-family: var(--font-display); font-weight: 600; letter-spacing: .02em; }
.rd-footer a { color: rgba(255,255,255,0.72); text-decoration: none; }
.rd-footer a:hover { color: var(--brand-accent); }
.rd-footer .rd-social {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  transition: background-color .15s ease, border-color .15s ease;
}
.rd-footer .rd-social:hover { background: var(--brand-primary); border-color: var(--brand-primary); }

/* Section helpers ---------------------------------------------------------------- */
.rd-section { padding: 64px 0; }
.rd-section-cream { background: var(--brand-cream); }

/* Auth pages ----------------------------------------------------------------------- */
.rd-auth-shell { min-height: 100vh; display: flex; }
.rd-auth-visual {
  flex: 1 1 44%; background: linear-gradient(160deg, var(--brand-secondary), #012f40);
  color: #fff; position: relative; overflow: hidden; padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.rd-auth-visual .rd-blob-1 { width: 340px; height: 340px; top: -100px; left: -100px; background: radial-gradient(circle, rgba(23,162,184,0.4), transparent 70%); }
.rd-auth-visual .rd-blob-2 { width: 260px; height: 260px; bottom: -80px; right: -60px; background: radial-gradient(circle, rgba(255,179,71,0.35), transparent 70%); }
.rd-auth-visual .rd-brand { color: #fff !important; }
.rd-auth-visual .rd-brand span { color: var(--brand-accent); }
.rd-auth-quote { position: relative; z-index: 1; }
.rd-auth-quote .rd-h2 { color: #fff; }
.rd-auth-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; position: relative; z-index: 1; }
.rd-auth-points li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.rd-auth-points i { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.12); display: inline-flex; align-items: center; justify-content: center; color: var(--brand-accent); flex-shrink: 0; }
.rd-auth-form-side {
  flex: 1 1 56%; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff;
}
.rd-auth-card { width: 100%; max-width: 440px; }
.rd-auth-card .rd-back-link { color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.rd-auth-card .rd-back-link:hover { color: var(--brand-primary-dark); }

.rd-demo-alert {
  background: var(--brand-mint);
  border: 1.5px solid rgba(23,162,184,0.25);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 1.5rem;
}
.rd-demo-alert-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 0.9rem; color: var(--brand-primary-dark);
  margin-bottom: 4px;
}
.rd-demo-alert-head i { font-size: 1.05rem; }
.rd-demo-alert-sub { color: var(--ink-soft); font-size: 0.8rem; margin: 0 0 12px; }
.rd-demo-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 8px 8px 8px 12px; cursor: pointer; border: 1.5px solid transparent;
  transition: border-color .15s ease, transform .15s ease;
}
.rd-demo-row + .rd-demo-row { margin-top: 8px; }
.rd-demo-row:hover { border-color: var(--brand-primary); transform: translateY(-1px); }
.rd-demo-role {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
  color: var(--brand-primary-dark); background: var(--brand-mint);
  padding: 3px 9px; border-radius: 999px; flex-shrink: 0;
}
.rd-demo-creds {
  color: var(--brand-secondary); font-weight: 700; font-size: 0.82rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.rd-demo-creds small { color: var(--ink-soft); font-weight: 600; }
.rd-demo-fill-btn {
  border: none; background: var(--brand-mint); color: var(--brand-primary-dark);
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.rd-demo-row:hover .rd-demo-fill-btn,
.rd-demo-fill-btn.is-filled { background: var(--brand-primary); color: #fff; }

.rd-field { margin-bottom: 1.1rem; }
.rd-field label { font-weight: 800; font-size: 0.86rem; color: var(--brand-secondary); margin-bottom: 6px; display: block; }
.rd-input-group { position: relative; }
.rd-input-group i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); }
.rd-input-group .form-control {
  border-radius: var(--radius-sm); border: 1.5px solid rgba(0,57,79,0.12);
  padding: 0.75rem 1rem 0.75rem 2.6rem; font-weight: 600;
}
.rd-input-group .form-control:focus {
  border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(23,162,184,0.14);
}
.rd-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 575px) { .rd-field-grid { grid-template-columns: 1fr; } }

@media (max-width: 991px) {
  .rd-auth-visual { display: none; }
}

/* Inner page header (About / Classes / Teachers / Contact) --------------------- */
.rd-page-header {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-secondary), #012f40);
  color: #fff; padding: 64px 0 56px; margin-bottom: 8px;
}
.rd-page-header .rd-blob-1 { width: 360px; height: 360px; top: -140px; right: -80px; background: radial-gradient(circle, rgba(23,162,184,0.35), transparent 70%); }
.rd-page-header .rd-blob-2 { width: 200px; height: 200px; bottom: -90px; left: 6%; background: radial-gradient(circle, rgba(255,179,71,0.3), transparent 70%); }
.rd-page-header h1 { color: #fff; position: relative; z-index: 1; }
.rd-breadcrumb { position: relative; z-index: 1; display: flex; gap: 8px; color: rgba(255,255,255,0.72); font-weight: 700; font-size: 0.9rem; }
.rd-breadcrumb a { color: rgba(255,255,255,0.72); text-decoration: none; }
.rd-breadcrumb a:hover { color: #fff; }

/* Checklist rows (About page) --------------------------------------------------- */
.rd-check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rd-check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 700; color: var(--brand-secondary); }
.rd-check-list i { color: var(--brand-primary); font-size: 1.15rem; margin-top: 2px; }

/* Contact page ------------------------------------------------------------------- */
.rd-contact-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.rd-contact-row .rd-icon-badge { width: 46px; height: 46px; font-size: 1.05rem; margin-bottom: 0; flex-shrink: 0; }
.rd-contact-row h6 { color: var(--brand-secondary); font-family: var(--font-display); margin-bottom: 2px; }
.rd-contact-row p { color: var(--ink-soft); margin: 0; }

textarea.form-control { padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid rgba(0,57,79,0.12); font-weight: 600; }
textarea.form-control:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(23,162,184,0.14); }

@media (prefers-reduced-motion: reduce) {
  .rd-feature-card, .rd-btn { transition: none; }
}
