/* ==========================================================================
   RAZI PROFESSIONAL ACADEMY (RPA)
   Design system: "Ledger meets Terminal"
   Ink navy + deep emerald + amber accent on cool paper.
   Serif display (Fraunces) for editorial weight, Inter for body,
   JetBrains Mono for course codes / stats / eyebrows — the ledger voice.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root{
  --ink:#0F2438;
  --ink-70: rgba(15,36,56,.7);
  --ink-50: rgba(15,36,56,.5);
  --emerald:#0B6E4F;
  --emerald-dark:#084F39;
  --emerald-tint:#E4F0EA;
  --amber:#D9A441;
  --amber-dark:#B8842C;
  --paper:#EFF3EE;
  --paper-deep:#E5EAE2;
  --white:#FFFFFF;
  --line: #D8DFD9;
  --line-strong:#C4CDC6;
  --rose:#B23A48;

  --display: 'Fraunces', ui-serif, Georgia, serif;
  --body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,36,56,.06);
  --shadow-md: 0 8px 24px rgba(15,36,56,.08);
  --shadow-lg: 0 18px 48px rgba(15,36,56,.14);
  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  font-family:var(--body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--display); color:var(--ink); line-height:1.12; margin:0 0 .5em; font-weight:600; }
p{ margin:0 0 1em; color:var(--ink-70); }
button{ font-family:inherit; }

:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

.container{ max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.section{ padding:88px 0; }
.section--tight{ padding:56px 0; }
.section--alt{ background:var(--white); }
.section--ink{ background:var(--ink); color:var(--white); }
.section--ink p{ color:rgba(255,255,255,.72); }
.section--ink h2,.section--ink h3{ color:var(--white); }

.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--emerald);
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  margin-bottom:14px;
}
.eyebrow::before{ content:"§"; color:var(--amber); font-family:var(--mono); }
.section--ink .eyebrow{ color:var(--amber); }

.section-head{ max-width:640px; margin-bottom:48px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
h2{ font-size:clamp(28px,3.6vw,40px); }
h3{ font-size:22px; }
.lede{ font-size:18px; color:var(--ink-70); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px;
  border:1.5px solid transparent; cursor:pointer; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--emerald); color:var(--white); box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--emerald-dark); box-shadow:var(--shadow-md); }
.btn-amber{ background:var(--amber); color:var(--ink); }
.btn-amber:hover{ background:var(--amber-dark); }
.btn-ghost{ background:transparent; border-color:var(--line-strong); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--emerald); color:var(--emerald); }
.btn-white{ background:var(--white); color:var(--ink); }
.btn-white:hover{ background:var(--paper); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:13.5px; }
.btn-whatsapp{ background:#1F7A5C; color:#fff; }
.btn-whatsapp:hover{ background:#175f47; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(239,243,238,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid transparent;
  transition:background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled{
  background:rgba(255,255,255,.92);
  border-bottom-color:var(--line);
  box-shadow:0 2px 16px rgba(15,36,56,.06);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 24px; max-width:var(--maxw); margin:0 auto; }
.brand{ display:flex; align-items:center; gap:12px; font-family:var(--display); font-weight:700; font-size:21px; color:var(--ink); }
.brand-logo{ width:44px; height:44px; border-radius:50%; object-fit:contain; flex-shrink:0; display:block; }
.brand-mark{
  width:42px; height:42px; border-radius:10px; background:var(--ink);
  color:var(--amber); display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-weight:700; font-size:15px; letter-spacing:.02em;
  box-shadow: 3px 3px 0 var(--amber);
}
.brand small{ display:block; font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; color:var(--emerald); font-weight:600; text-transform:uppercase; }

.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{ font-size:14.5px; font-weight:600; color:var(--ink-70); position:relative; padding:4px 0; }
.nav-links a:hover, .nav-links a.active{ color:var(--emerald); }
.nav-links a.active::after{ content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; background:var(--amber); }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--ink); margin:5px 0; border-radius:2px; }

@media (max-width: 400px){
  .brand-logo{ width:36px; height:36px; }
  .brand span{ font-size:15px; }
}

@media (max-width: 900px){
  .nav-links{
    position:fixed; inset:72px 0 0 0; background:var(--white); flex-direction:column;
    padding:32px 24px; gap:22px; align-items:flex-start; transform:translateX(100%);
    transition:transform .25s ease; overflow-y:auto;
  }
  .nav-links.open{ transform:translateX(0); }
  .nav-links a{ font-size:18px; }
  .nav-toggle{ display:block; }
  .nav-cta .btn-ghost{ display:none; }
}

/* ---------- Hero ---------- */
.hero{ padding:64px 0 40px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero h1{ font-size:clamp(34px,5vw,58px); letter-spacing:-.01em; }
.hero h1 em{ font-style:italic; color:var(--emerald); }
.hero-stats{ display:flex; gap:28px; margin-top:36px; flex-wrap:wrap; }
.stat b{ display:block; font-family:var(--mono); font-size:26px; color:var(--ink); }
.stat span{ font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-50); }
.hero-cta{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; }

/* Signature element: the Ledger Card */
.ledger-card{
  background:var(--white); border:1.5px solid var(--line-strong); border-radius:var(--radius);
  box-shadow:var(--shadow-lg); padding:26px; position:relative; transform:rotate(1.2deg);
}
.ledger-card::before{
  content:""; position:absolute; inset:10px; border:1.5px dashed var(--line-strong); border-radius:8px; pointer-events:none;
}
.ledger-head{ display:flex; justify-content:space-between; align-items:center; font-family:var(--mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-50); margin-bottom:14px; padding-bottom:12px; border-bottom:1px dashed var(--line-strong); }
.ledger-row{ display:flex; align-items:center; gap:12px; padding:11px 4px; border-bottom:1px solid var(--paper-deep); }
.ledger-row:last-child{ border-bottom:none; }
.ledger-code{ font-family:var(--mono); font-size:12px; background:var(--emerald-tint); color:var(--emerald-dark); padding:3px 8px; border-radius:5px; font-weight:700; min-width:64px; text-align:center; }
.ledger-name{ flex:1; font-size:14px; font-weight:600; }
.ledger-check{ width:20px; height:20px; border-radius:50%; background:var(--emerald); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; flex-shrink:0; }
.ledger-stamp{
  position:absolute; right:-14px; bottom:-14px; width:104px; height:104px; border-radius:50%;
  border:2.5px solid var(--rose); color:var(--rose); display:flex; align-items:center; justify-content:center;
  text-align:center; font-family:var(--mono); font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  transform:rotate(-14deg); background:rgba(255,255,255,.9); line-height:1.3;
}

@media (max-width: 900px){
  .hero-grid{ grid-template-columns:1fr; }
  .ledger-card{ transform:none; max-width:420px; margin:0 auto; }
}

/* ---------- Marquee / trust strip ---------- */
.trust-strip{ background:var(--ink); color:var(--white); padding:14px 0; overflow:hidden; }
.trust-track{ display:flex; gap:48px; white-space:nowrap; font-family:var(--mono); font-size:13px; letter-spacing:.08em; text-transform:uppercase; animation:scroll-left 28s linear infinite; width:max-content; }
.trust-track span{ color:var(--amber); margin-right:8px; }
@keyframes scroll-left{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- Grids & Cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
@media (max-width: 980px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 620px){ .grid-3,.grid-4,.grid-2{ grid-template-columns:1fr; } }

.card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:28px; transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--line-strong); }

.icon-badge{ width:46px; height:46px; border-radius:10px; background:var(--emerald-tint); color:var(--emerald-dark); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.icon-badge svg{ width:22px; height:22px; }

.course-card .course-tag{ font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase; background:var(--ink); color:var(--amber); display:inline-block; padding:4px 9px; border-radius:5px; margin-bottom:14px; font-weight:700; }
.course-card ul{ margin:14px 0 18px; }
.course-card li{ font-size:14px; color:var(--ink-70); padding:5px 0 5px 20px; position:relative; }
.course-card li::before{ content:"—"; position:absolute; left:0; color:var(--amber); font-weight:700; }
.course-meta{ display:flex; justify-content:space-between; align-items:center; padding-top:14px; border-top:1px solid var(--line); font-family:var(--mono); font-size:12.5px; color:var(--ink-50); }

/* Mode cards (Zoom/Teams/Meet) */
.mode-card{ text-align:center; }
.mode-card .icon-badge{ margin:0 auto 16px; width:56px; height:56px; border-radius:14px; }

/* Testimonials */
.quote-card{ position:relative; }
.quote-mark{ font-family:var(--display); font-size:56px; color:var(--amber); line-height:1; margin-bottom:6px; display:block; }
.quote-stars{ color:var(--amber); font-size:14px; letter-spacing:2px; margin-bottom:10px; }
.quote-person{ display:flex; align-items:center; gap:12px; margin-top:18px; }
.quote-avatar{ width:42px; height:42px; border-radius:50%; background:var(--emerald); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--mono); font-weight:700; font-size:14px; }
.quote-person span{ display:block; font-size:12.5px; color:var(--ink-50); font-family:var(--mono); }

/* Blog */
.blog-card .blog-meta{ font-family:var(--mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--emerald); margin-bottom:10px; }
.blog-card h3{ margin-bottom:10px; }
.blog-card .read-more{ font-weight:700; color:var(--ink); font-size:14px; display:inline-flex; align-items:center; gap:6px; margin-top:6px; }
.blog-thumb{ height:150px; border-radius:10px; margin-bottom:18px; background:linear-gradient(135deg,var(--emerald-tint),var(--paper-deep)); display:flex; align-items:center; justify-content:center; font-family:var(--mono); color:var(--emerald-dark); font-weight:700; font-size:12px; letter-spacing:.08em; text-transform:uppercase; border:1px dashed var(--line-strong); }

/* FAQ accordion */
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{ width:100%; text-align:left; background:none; border:none; padding:22px 4px; display:flex; justify-content:space-between; align-items:center; gap:16px; cursor:pointer; font-family:var(--body); font-weight:700; font-size:16px; color:var(--ink); }
.faq-q .plus{ font-family:var(--mono); font-size:20px; color:var(--amber-dark); transition:transform .2s ease; flex-shrink:0; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.faq-a p{ padding:0 4px 22px; margin:0; }

/* Forms */
.form-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:32px; box-shadow:var(--shadow-sm); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:13px; font-weight:700; margin-bottom:7px; font-family:var(--mono); letter-spacing:.02em; text-transform:uppercase; color:var(--ink-70); }
.field input, .field select, .field textarea{
  width:100%; padding:13px 14px; border:1.5px solid var(--line-strong); border-radius:var(--radius-sm);
  font-family:var(--body); font-size:15px; background:var(--paper); color:var(--ink); transition:border-color .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color:var(--emerald); background:var(--white); outline:none; }
.field textarea{ resize:vertical; min-height:110px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:600px){ .field-row{ grid-template-columns:1fr; } }
.form-note{ font-size:12.5px; color:var(--ink-50); margin-top:14px; }
.form-success{ display:none; background:var(--emerald-tint); color:var(--emerald-dark); padding:14px 16px; border-radius:var(--radius-sm); font-weight:600; font-size:14px; margin-top:16px; }

/* Two column split section */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:start; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; } }

/* CTA banner */
.cta-banner{ background:var(--emerald); border-radius:20px; padding:56px; display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; color:#fff; }
.cta-banner h2{ color:#fff; margin-bottom:8px; }
.cta-banner p{ color:rgba(255,255,255,.82); margin:0; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink); color:rgba(255,255,255,.7); padding:72px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.12); }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:#fff; font-family:var(--mono); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:18px; }
.footer-grid li{ margin-bottom:11px; font-size:14.5px; }
.footer-grid a:hover{ color:var(--amber); }
.footer-brand p{ color:rgba(255,255,255,.6); font-size:14.5px; max-width:280px; }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition:background .15s ease; }
.social-row a:hover{ background:var(--amber); color:var(--ink); }
.social-row svg{ width:17px; height:17px; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding:24px 0; flex-wrap:wrap; gap:12px; font-size:13px; color:rgba(255,255,255,.5); }
.footer-bottom a{ color:rgba(255,255,255,.5); margin-left:16px; }
.footer-bottom a:hover{ color:var(--amber); }

/* ---------- Misc pages ---------- */
.page-hero{ padding:64px 0 40px; }
.page-hero h1{ font-size:clamp(30px,4.6vw,46px); }
.breadcrumb{ font-family:var(--mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-50); margin-bottom:16px; }
.breadcrumb a{ color:var(--emerald); }
.prose{ max-width:760px; }
.prose h2{ margin-top:2em; font-size:26px; }
.prose h3{ margin-top:1.6em; font-size:19px; }
.prose ul{ margin:0 0 1em; padding-left:1.2em; list-style:disc; }
.prose li{ margin-bottom:.4em; color:var(--ink-70); }
.prose table{ width:100%; border-collapse:collapse; margin:1.5em 0; }
.prose th,.prose td{ text-align:left; padding:10px 12px; border:1px solid var(--line); font-size:14.5px; }
.prose th{ background:var(--paper-deep); font-family:var(--mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; }

.tag-list{ display:flex; gap:8px; flex-wrap:wrap; margin:20px 0 0; }
.tag-list button{ font-family:var(--mono); font-size:12px; text-transform:uppercase; letter-spacing:.05em; padding:7px 14px; border-radius:999px; border:1.5px solid var(--line-strong); background:var(--white); cursor:pointer; font-weight:700; color:var(--ink-70); }
.tag-list button.active,.tag-list button:hover{ border-color:var(--emerald); color:var(--emerald); background:var(--emerald-tint); }

.map-embed{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--line); filter:grayscale(.15); }

.back-to-top{ position:fixed; right:22px; bottom:22px; width:48px; height:48px; border-radius:50%; background:var(--ink); color:var(--amber); display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg); opacity:0; pointer-events:none; transition:opacity .2s ease, transform .2s ease; z-index:90; border:none; cursor:pointer; }
.back-to-top.visible{ opacity:1; pointer-events:auto; }
.back-to-top:hover{ transform:translateY(-3px); }

.reveal{ opacity:0; transform:translateY(18px); transition:opacity .5s ease, transform .5s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

.whatsapp-float{
  position:fixed; left:22px; bottom:22px; z-index:90; width:56px; height:56px; border-radius:50%;
  background:#1F7A5C; color:#fff; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow-lg);
}
.whatsapp-float svg{ width:26px; height:26px; }

.divider-dash{ border:none; border-top:1.5px dashed var(--line-strong); margin:0; }
