/*
 * SukhNexus Theme Layer
 * Loaded AFTER style.css + inline page styles.
 * Modernizes every legacy template class globally.
 * Tokens are set by page-level :root or fallback here.
 */

/* ── Fallback tokens (pages with own <style> define these first) ── */
:root {
  --brand:       var(--brand, #06A3DA);
  --brand-dk:    var(--brand-dk, #047caa);
  --brand-lt:    var(--brand-lt, #e0f5fc);
  --dark:        var(--dark, #081828);
  --navy:        var(--navy, #0d2b4e);
  --slate:       var(--slate, #334155);
  --muted:       var(--muted, #64748b);
  --border:      var(--border, #deeaf5);
  --bg:          var(--bg, #f3f8fd);
  --white:       #ffffff;
  --gold:        #f59e0b;
  --green:       #10b981;
  --r:           16px;
  --r-lg:        22px;
  --sh:          0 4px 20px rgba(6,163,218,.09);
  --sh-md:       0 10px 38px rgba(6,163,218,.15);
}

/* ── Base typography ── */
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 1.03rem;               /* ~16.5px — Google mobile-readability floor */
  color: var(--slate);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Unified heading scale (SEO/AEO hierarchy: H1 → H2 → H3 → H4) ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--dark);
  font-weight: 800;
  letter-spacing: -.018em;
}
h1 { font-size: clamp(1.95rem, 4vw, 2.8rem);   line-height: 1.16; }  /* page hero — ONE per page */
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem);  line-height: 1.22; }  /* section title */
h3 { font-size: clamp(1.16rem, 2vw, 1.38rem);  line-height: 1.32; font-weight: 700; }  /* sub-section */
h4 { font-size: 1.09rem;                       line-height: 1.42; font-weight: 700; }  /* card/item title */
h5 { font-size: .97rem;                        line-height: 1.45; font-weight: 700; }
h6 { font-size: .87rem;                        line-height: 1.5;  font-weight: 700; letter-spacing: .01em; }

/* ── Body copy rhythm ── */
p { font-size: 1rem; }
.lead { font-size: 1.14rem; line-height: 1.68; }
small, .small, figcaption { font-size: .84rem; }
strong, b { font-weight: 700; }

/* ── Focus + selection ── */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection {
  background: var(--brand-lt);
  color: var(--dark);
}
img { border-radius: 12px; }

/* ── Section titles (override legacy .section-title) ── */
.section-title h5.fw-bold,
.section-title h5.text-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-lt);
  color: var(--brand);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.9rem;
  border-radius: 50px;
  border: 1px solid rgba(6,163,218,.25);
  margin-bottom: 0.85rem;
}
.section-title h1,
.section-title h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
}
.section-title h3 { font-size: clamp(1.16rem, 2vw, 1.38rem); font-weight: 700; }
.section-title {
  border: none;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  padding: 0.65rem 1.6rem;
  transition: all .25s ease;
  box-shadow: 0 4px 14px rgba(6,163,218,.25);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--brand-dk) !important;
  border-color: var(--brand-dk) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,163,218,.35);
}
.btn-dark {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  transition: all .25s ease;
}
.btn-dark:hover {
  background: var(--dark) !important;
  transform: translateY(-2px);
}
.btn-outline-primary {
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  border-color: var(--brand);
  color: var(--brand);
  transition: all .25s ease;
}
.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* ── Card defaults (legacy .bg-light rounded boxes) ── */
.bg-light.rounded {
  border-radius: var(--r-lg) !important;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh);
  transition: transform .26s, box-shadow .26s;
}
.bg-light.rounded:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.shadow {
  box-shadow: var(--sh-md) !important;
}

/* ── Feature icon blocks ── */
.bg-primary.rounded.d-flex {
  border-radius: var(--r) !important;
  width: 56px !important;
  height: 56px !important;
}

/* ── Pricing table rows (price.blade.php legacy uses d-flex justify-content-between) ── */
.d-flex.justify-content-between.mb-3,
.d-flex.justify-content-between.mb-2 {
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.88rem;
}
.d-flex.justify-content-between.mb-3:last-child,
.d-flex.justify-content-between.mb-2:last-child {
  border-bottom: none;
}
.fa-check.text-primary { color: var(--green) !important; }
.fa-times.text-danger  { color: var(--muted) !important; opacity: 0.45; }

/* ── Forms ── */
.form-control,
.form-select {
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 0.7rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(6,163,218,.15);
  outline: none;
}

/* ── Page header / hero inner (about/contact/price/feature use this) ── */
.page-header-wrapper,
.hero-inner {
  background: linear-gradient(135deg, var(--navy) 0%, #0f2e52 100%);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header-wrapper::before,
.hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='200' cy='200' r='180' fill='none' stroke='%2306A3DA' stroke-opacity='0.06' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
  background-size: 400px;
  opacity: 0.6;
}

/* ── bg-header (testimonial, old pages) ── */
.bg-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0a2342 100%) !important;
  position: relative;
  overflow: hidden;
}
.bg-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(6,163,218,.12) 0%, transparent 60%);
}
.bg-header h1, .bg-header h2, .bg-header h3 {
  color: #fff !important;
}
.bg-header p, .bg-header span {
  color: rgba(255,255,255,.75);
}

/* ── Testimonial items ── */
.testimonial-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--sh);
  transition: transform .26s, box-shadow .26s;
}
.testimonial-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}

/* ── Team items ── */
.team-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .26s, box-shadow .26s;
}
.team-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.team-item img {
  border-radius: 0;
}

/* ── Blog items ── */
.blog-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .26s, box-shadow .26s;
}
.blog-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.blog-item img {
  border-radius: 0;
}

/* ── Facts strip (homepage already restyled; this catches legacy) ── */
.facts .fact-item,
.facts .col-lg-3,
.facts .col-sm-6 {
  text-align: center;
}
.facts h2,
.facts .display-5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--brand);
}

/* ── Vendor carousel (dead images — hide gracefully) ── */
.vendor-carousel img {
  opacity: 0.25;
  filter: grayscale(100%);
  border-radius: 8px;
}
.owl-carousel .owl-nav { display: none !important; }
.owl-carousel .owl-dots { display: none !important; }

/* ── Search modal (carried from old template) ── */
.modal-fullscreen .form-control {
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.modal-fullscreen .form-control::placeholder {
  color: rgba(255,255,255,.5);
}

/* ── Back to top ── */
.back-to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(6,163,218,.3);
  transition: all .25s ease;
  border: none;
}
.back-to-top:hover {
  background: var(--brand-dk);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6,163,218,.4);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 99px;
}

/* ── Plan cards (price page reuse — mirrors homepage .pc-card) ── */
.pc-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  box-shadow: var(--sh); transition: transform .26s, box-shadow .26s, border-color .26s; position: relative; }
.pc-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.pc-card.featured { border-color: var(--gold); box-shadow: 0 6px 30px rgba(245,158,11,.18); }
.pc-card.featured:hover { box-shadow: 0 16px 50px rgba(245,158,11,.28); }
.pc-popular-tag { position: absolute; top: 16px; right: -32px; background: linear-gradient(90deg, var(--gold), #ea6c00);
  color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: .28rem 2.8rem; transform: rotate(35deg); z-index: 10; }
.pc-head { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid var(--border); }
.pc-badge { display: inline-flex; align-items: center; gap: .4rem; background: var(--bg); color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .7rem; font-weight: 600;
  padding: .25rem .7rem; border-radius: 50px; border: 1px solid var(--border); margin-bottom: .8rem; }
.pc-name { font-size: 1.2rem; font-weight: 800; margin-bottom: .3rem; }
.pc-target { font-size: .82rem; color: var(--muted); margin-bottom: 1rem; }
.pc-pr { display: flex; flex-direction: column; gap: .15rem; }
.pc-pr-main { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.pc-pr-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--dark); line-height: 1; }
.pc-pr-per { font-size: .82rem; color: var(--muted); }
.pc-pr-alt { font-size: .82rem; color: var(--muted); font-weight: 500; }
.pc-pr-alt span { font-weight: 700; color: var(--slate); }
.pc-body { padding: 1.5rem 2rem; flex: 1; }
.pc-ft { display: flex; align-items: center; gap: .6rem; padding: .42rem 0; border-bottom: 1px solid #f1f5f9; font-size: .87rem; color: var(--slate); }
.pc-ft:last-child { border-bottom: none; }
.pc-ftck { width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: var(--green);
  display: flex; align-items: center; justify-content: center; font-size: .62rem; flex-shrink: 0; }
.pc-cbtn { width: 100%; padding: .75rem; margin-top: 1rem; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--brand); cursor: pointer; transition: all .2s; display: flex; align-items: center; justify-content: center; gap: .4rem; }
.pc-cbtn:hover { background: var(--brand-lt); border-color: var(--brand); }
.pc-cbody { background: var(--bg); border-radius: var(--r); padding: 1.2rem 1.4rem; margin-top: .75rem; }
.pc-clbl { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .75rem; font-weight: 700; color: var(--brand);
  text-transform: uppercase; letter-spacing: .07em; border-bottom: 2px solid var(--brand-lt); padding-bottom: .3rem; margin-bottom: .6rem; display: block; }
.pc-ci { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--slate); padding: .25rem 0; }
.pc-ci i { color: var(--brand); font-size: .7rem; }
.pc-tl { text-align: center; font-size: .8rem; color: var(--green); font-weight: 700; margin-top: .8rem; padding: .4rem; background: #dcfce7; border-radius: 8px; }
.pc-foot { padding: 1.2rem 2rem 1.8rem; }
.pc-cta { width: 100%; padding: .9rem; border-radius: 10px; border: none; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  transition: all .25s ease; }
.pc-cta.solid { background: var(--brand); color: #fff; }
.pc-cta.solid:hover { background: var(--brand-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(6,163,218,.3); }
.pc-cta.gld { background: linear-gradient(135deg, var(--gold), #ea6c00); color: #fff; }
.pc-cta.gld:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,.3); }

/* ── Utility ── */
.text-primary { color: var(--brand) !important; }
.bg-primary   { background-color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }

/* ── Responsive tweaks ── */
@media (max-width: 767.98px) {
  .section-title h5.fw-bold,
  .section-title h5.text-primary { font-size: .65rem; }
  h1 { font-size: clamp(1.72rem, 7.2vw, 2.05rem); }
  h2 { font-size: clamp(1.42rem, 6vw, 1.66rem); }
  body { font-size: 1rem; }
  .pc-pr-num { font-size: 1.8rem; }
}
