/* ==========================================================================
   RUPESHRAJAN.COM — shared brand stylesheet
   Single source of truth for the site header, footer and design tokens.
   Loaded on the standalone home page (www/index.html) AND on every
   Frappe-rendered website page (blog, blog list, web pages) via the
   custom base template rr_base.html. Keep header/footer styling here only.
   ========================================================================== */

:root{
  --blue:#1a56f0;
  --blue-dark:#0f3fd6;
  --teal:#00b5ad;
  --navy:#131f4d;
  --ink:#1b2a55;
  --muted:#5d6b8a;
  --line:#e3e9f5;
  --bg-soft:#f4f7fd;
  --bg-hero:#e9f1fc;
  --radius:14px;
}

/* ---- base ---- */
.rr-scope,
body.rr-web{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
.serif{font-family:'Fraunces',Georgia,'Times New Roman',serif}

/* ============ Header ============ */
.site-header{
  position:sticky;top:0;z-index:100;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.site-header img{max-width:100%;display:block}
.site-header a{text-decoration:none;color:inherit}
.header-inner{
  max-width:1240px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;gap:28px;
}
.brand{display:flex;align-items:center;margin-right:auto}
.brand-logo{height:26px;width:auto;display:block}
.main-nav{display:flex;align-items:center;gap:26px}
.main-nav a{
  font-size:14.5px;font-weight:500;color:#3c4a6b;
  padding:6px 0;position:relative;transition:color .2s;
}
.main-nav a:hover{color:var(--blue)}
.main-nav a.active{color:var(--blue);font-weight:600}
.main-nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-4px;height:3px;
  background:var(--blue);border-radius:2px;
}
.site-header .btn,
.site-footer .btn,
.rr-scope .btn{
  display:inline-flex;align-items:center;gap:9px;
  font-family:inherit;font-size:14.5px;font-weight:600;
  border-radius:10px;padding:12px 22px;cursor:pointer;
  border:2px solid transparent;transition:all .2s;white-space:nowrap;
  line-height:1.2;
}
.site-header .btn-primary,
.site-footer .btn-primary,
.rr-scope .btn-primary{background:var(--blue);color:#fff;box-shadow:0 6px 16px rgba(26,86,240,.28)}
.site-header .btn-primary:hover,
.site-footer .btn-primary:hover,
.rr-scope .btn-primary:hover{background:var(--blue-dark);transform:translateY(-1px);color:#fff}
.site-header .btn-outline,
.rr-scope .btn-outline{background:#fff;color:var(--blue);border-color:var(--blue)}
.site-header .btn-outline:hover,
.rr-scope .btn-outline:hover{background:#eef3ff}
.site-header .btn svg,
.rr-scope .btn svg{width:17px;height:17px;flex:0 0 auto}
.site-footer .btn[disabled]{opacity:.6;cursor:default}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:6px}
.nav-toggle span{display:block;width:24px;height:2.5px;background:var(--navy);margin:5px 0;border-radius:2px}

/* ============ Modal / Contact form ============ */
.rr-modal-backdrop{
  position:fixed;inset:0;background:rgba(3,8,24,.72);display:none;align-items:center;justify-content:center;padding:24px;z-index:200;
}
.rr-modal-backdrop.is-open{display:flex}
.rr-modal{
  width:min(100%, 620px);max-height:90vh;overflow:auto;background:#fff;border-radius:20px;box-shadow:0 18px 50px rgba(0,0,0,.24);padding:24px 24px 28px;
}
.rr-modal-header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}
.rr-modal-title{font-size:24px;font-weight:700;color:var(--navy)}
.rr-modal-close{background:none;border:0;color:#637093;font-size:26px;cursor:pointer;line-height:1;padding:2px}
.rr-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rr-form-field{display:flex;flex-direction:column;gap:7px}
.rr-form-field.full{grid-column:1 / -1}
.rr-form-field label{font-size:13px;font-weight:600;color:var(--navy)}
.rr-form-field input,.rr-form-field textarea,.rr-form-field select{
  border:1px solid var(--line);border-radius:10px;padding:11px 12px;font:inherit;color:var(--ink);background:#fff;
}
.rr-form-field textarea{min-height:110px;resize:vertical}
.rr-form-field input:focus,.rr-form-field textarea:focus,.rr-form-field select:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,86,240,.14)}
.rr-form-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center;margin-top:16px;flex-wrap:wrap}
.rr-form-msg{min-height:22px;font-size:13px;margin-top:10px}
.rr-form-msg.is-success{color:#15803d}
.rr-form-msg.is-error{color:#b91c1c}
.rr-captcha{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.rr-captcha strong{color:var(--navy)}
@media (max-width:640px){.rr-form-grid{grid-template-columns:1fr}.rr-modal{padding:20px}.rr-modal-title{font-size:20px}}

/* ============ Footer ============ */
.site-footer{background:#0c1534;color:#8fa0c9;font-size:13px}
.site-footer .container{max-width:1140px;margin:0 auto;padding:0 24px}
.site-footer a{color:#c3d0ee}
.footer-copy{text-align:center;padding:18px 24px;border-top:1px solid rgba(255,255,255,.07)}

/* --- newsletter subscribe --- */
.footer-subscribe{max-width:1140px;margin:0 auto;padding:40px 24px 30px}
.footer-subscribe-inner{
  display:flex;align-items:center;justify-content:space-between;gap:30px 40px;flex-wrap:wrap;
}
.footer-subscribe-copy{max-width:520px}
.footer-subscribe-title{color:#fff;font-size:22px;font-weight:600;margin-bottom:6px}
.footer-subscribe-sub{color:#9fb0d6;font-size:14px;line-height:1.55;margin:0}
.footer-subscribe-form{display:flex;gap:10px;flex:1 1 320px;max-width:440px;min-width:260px}
.footer-subscribe-input{
  flex:1;min-width:0;border:1px solid #26355f;border-radius:10px;
  background:#0a1230;color:#eaf0ff;padding:12px 14px;font-size:14.5px;
  font-family:'Inter',sans-serif;transition:border-color .2s,box-shadow .2s;
}
.footer-subscribe-input::placeholder{color:#66759c}
.footer-subscribe-input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,86,240,.25)}
.footer-subscribe-msg{
  max-width:1140px;margin:0 auto;padding:0 24px 6px;font-size:13.5px;min-height:1px;
}
.footer-subscribe-msg.is-success{color:#4ade80}
.footer-subscribe-msg.is-error{color:#fca5a5}
@media (max-width:720px){
  .footer-subscribe-inner{flex-direction:column;align-items:flex-start;gap:18px}
  .footer-subscribe-form{width:100%;max-width:none}
}

/* ============ Header/nav responsive ============ */
@media (max-width:820px){
  .main-nav{
    display:none;position:absolute;top:100%;left:0;right:0;
    background:#fff;border-bottom:1px solid var(--line);
    flex-direction:column;gap:0;padding:10px 24px 18px;
  }
  .main-nav.open{display:flex}
  .main-nav a{padding:12px 0;width:100%}
  .main-nav a.active::after{display:none}
  .nav-toggle{display:block}
  .header-cta{display:none}
}
@media (max-width:640px){
  .brand-logo{height:22px}
}

/* ==========================================================================
   Blog — brand skin for Frappe's built-in blog templates
   Targets stable Frappe classes: .blog-container, .blog-content, .blog-title,
   .blog-intro, .from-markdown, plus the comment section markup.
   ========================================================================== */
body.rr-web{background:var(--bg-soft)}

.blog-container,
.blog-list-container{
  max-width:820px;margin:0 auto;padding:44px 24px 72px;
}
.blog-list-container{max-width:1000px}

.blog-header .blog-title,
.blog-title{
  font-family:'Fraunces',Georgia,serif;
  font-weight:700;color:var(--navy);
  font-size:40px;line-height:1.15;margin:10px 0 14px;letter-spacing:-.01em;
}
.blog-header a{color:var(--blue);font-weight:500}
.blog-intro{color:var(--muted);font-size:18px;line-height:1.6}
.blog-header .text-muted,
.blog-container .text-muted{color:var(--muted)!important}

.from-markdown{font-size:17px;line-height:1.75;color:var(--ink)}
.from-markdown h1,.from-markdown h2,.from-markdown h3,.from-markdown h4{
  font-family:'Fraunces',Georgia,serif;color:var(--navy);
  margin:1.6em 0 .5em;line-height:1.25;
}
.from-markdown h2{font-size:28px}
.from-markdown h3{font-size:22px}
.from-markdown p{margin:0 0 1.1em}
.from-markdown a{color:var(--blue);text-decoration:underline}
.from-markdown a:hover{color:var(--blue-dark)}
.from-markdown img{border-radius:var(--radius);margin:1.4em 0}
.from-markdown blockquote{
  border-left:4px solid var(--blue);background:#fff;
  padding:14px 20px;margin:1.4em 0;color:var(--muted);border-radius:0 10px 10px 0;
}
.from-markdown pre,.from-markdown code{
  background:#0f1c3f;color:#e6ecff;border-radius:8px;
}
.from-markdown code{padding:2px 6px;font-size:.9em}
.from-markdown pre{padding:16px 18px;overflow:auto}
.from-markdown pre code{background:none;padding:0}

/* Blog card list */
.blog-list-container .blog-card,
.blog-list-container .post-list-item{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:22px 24px;margin-bottom:18px;transition:box-shadow .2s,transform .2s;
}
.blog-list-container .blog-card:hover,
.blog-list-container .post-list-item:hover{
  box-shadow:0 12px 30px rgba(19,31,77,.10);transform:translateY(-2px);
}

/* ============ Comment section ============ */
.comment-view{max-width:100%;margin-top:40px}
.comment-view .form-label{
  font-weight:600;color:var(--navy);font-size:14px;
}
.comment-view .form-control{
  border:1px solid var(--line);border-radius:10px;
  padding:11px 14px;font-family:'Inter',sans-serif;font-size:15px;
  color:var(--ink);background:#fff;transition:border-color .2s,box-shadow .2s;
}
.comment-view .form-control:focus{
  border-color:var(--blue);box-shadow:0 0 0 3px rgba(26,86,240,.14);outline:none;
}
.comment-view .btn-primary,
.comment-view #submit-comment,
.comment-view .add-comment-button{
  background:var(--blue);border:2px solid transparent;color:#fff;
  font-weight:600;border-radius:10px;padding:10px 20px;
  box-shadow:0 6px 16px rgba(26,86,240,.24);transition:all .2s;
}
.comment-view .btn-primary:hover,
.comment-view #submit-comment:hover,
.comment-view .add-comment-button:hover{
  background:var(--blue-dark);color:#fff;transform:translateY(-1px);
}
.comment-view .comment-row{
  background:#fff;border:1px solid var(--line);border-radius:12px;
  padding:16px 18px;margin-bottom:14px;
}
.comment-view .no-comment{color:var(--muted)}
