/* =========================================================
   Quantyl Global Styles
   File: /assets/css/quantyl.css
   Notes:
   - Load Bootstrap first, then this file.
   - Navbar/footer can keep their own CSS, but this provides
     the global look + reusable components.
   ========================================================= */

/* -------------------------
   Design tokens
-------------------------- */
:root{
  --q-bg: #f5f7fb;
  --q-card: #ffffff;
  --q-fg: #0f172a;
  --q-muted: #64748b;

  /* Brand gradient (keep your existing colors) */
  --q-hero-a: #051937;
  --q-hero-b: #00567a;
  --q-hero-c: #008793;

  --q-accent: #008793;
  --q-accent-ink: #0b3b52;

  --q-border: #e4e7f0;

  --q-radius-lg: 18px;
  --q-radius-md: 14px;
  --q-radius-pill: 999px;

  --q-shadow-sm: 0 10px 24px rgba(0,0,0,0.06);
  --q-shadow-md: 0 18px 42px rgba(0,0,0,0.10);

  --q-container-max: 1140px; /* Bootstrap default container width at xl */
}

/* -------------------------
   Base
-------------------------- */
html, body { height: 100%; }
body{
  font-family: "Poppins", sans-serif;
  background: var(--q-bg);
  color: var(--q-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links (don’t fight Bootstrap, just align) */
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Optional: keep page content from feeling too tight on short pages */
main{ min-height: 60vh; }

/* -------------------------
   Hero
-------------------------- */
.hero{
  background: linear-gradient(to right, var(--q-hero-a), var(--q-hero-b), var(--q-hero-c));
  color: #fff;
  padding: 96px 20px 78px;
  position: relative;
  overflow: hidden;
}

/* Depth overlays (subtle, modern, not busy) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(255,255,255,.14), transparent 55%),
    radial-gradient(700px 360px at 78% 18%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(700px 520px at 55% 85%, rgba(0,0,0,.18), transparent 60%);
  pointer-events:none;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity:.18;
  mix-blend-mode: overlay;
  pointer-events:none;
}
.hero > .container{
  position: relative;
  z-index: 1;
  max-width: var(--q-container-max);
}

.hero .kicker{
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  opacity: .92;
}

.hero h1{
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
  line-height: 1.08;
}

.hero p{
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: .95;
}

.hero-actions{
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-actions .btn{
  border-radius: var(--q-radius-pill);
  font-weight: 900;
  padding: 12px 18px;
}

.hero-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight: 800;
  opacity:.95;
  padding: 12px 10px;
}
.hero-link:hover{
  text-decoration: underline;
  opacity: 1;
}

/* Trust pills under hero actions */
.hero-pill{
  padding: 10px 14px;
  border-radius: var(--q-radius-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 900;
  font-size: .86rem;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

/* Lift the next section up into the hero */
.page-lift{
  margin-top: -34px;
  padding-bottom: 78px;
}

/* -------------------------
   Panels / Cards
-------------------------- */
.panel{
  border-radius: var(--q-radius-lg);
  border: 1px solid var(--q-border);
  background: var(--q-card);
  box-shadow: var(--q-shadow-sm);
}
.panel .panel-body{ padding: 22px; }

.panel-title{
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 6px;
  color: var(--q-fg);
}
.panel-text{
  margin: 0;
  color: var(--q-muted);
  line-height: 1.6;
  font-size: .98rem;
}

.icon-pill{
  width: 44px;
  height: 44px;
  border-radius: var(--q-radius-md);
  display: grid;
  place-items: center;
  background: rgba(0,135,147,0.12);
  color: var(--q-accent-ink);
  border: 1px solid rgba(0,135,147,0.22);
  flex: 0 0 auto;
}

/* Hover delight (subtle) */
.panel, .price-card, .cta-strip{
  transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
}
.panel:hover, .price-card:hover, .cta-strip:hover{
  transform: translateY(-4px);
  box-shadow: var(--q-shadow-md);
  border-color: rgba(0,135,147,0.28);
}
.panel:hover .icon-pill{
  background: rgba(0,135,147,0.18);
  border-color: rgba(0,135,147,0.35);
}

/* -------------------------
   Section headings
-------------------------- */
.section-title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
  font-size: 1.55rem;
}
.section-sub{
  color: var(--q-muted);
  margin: 6px 0 0;
  line-height: 1.6;
}

/* -------------------------
   Pricing cards
-------------------------- */
.price-card{
  border-radius: var(--q-radius-lg);
  border: 1px solid var(--q-border);
  background: var(--q-card);
  box-shadow: var(--q-shadow-sm);
  height: 100%;
  position: relative;
  overflow: hidden;
}
.price-card .inner{ padding: 22px; }

.price-card .plan{
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 2px;
}
.price-card .tagline{
  color: var(--q-muted);
  font-size: .92rem;
  margin-bottom: 12px;
}

.price{
  font-size: 2.1rem;
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--q-fg);
}
.per{
  font-size: .92rem;
  color: var(--q-muted);
  font-weight: 800;
}

.feat{
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}
.feat li{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #334155;
  font-size: .95rem;
}

/* Featured plan */
.price-card.featured{
  border-color: rgba(0,135,147,0.35);
  box-shadow: 0 18px 34px rgba(0,0,0,0.09);
  transform: translateY(-6px);
}
.badge-popular{
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: var(--q-radius-pill);
  color: #fff;
  background: rgba(11,59,82,0.95);
}

/* -------------------------
   Buttons (soft pill)
-------------------------- */
.btn-soft{
  border-radius: var(--q-radius-pill);
  font-weight: 900;
  padding: 10px 14px;
}

/* Optional: consistent primary feel while keeping Bootstrap */
.btn-primary.btn-soft{
  box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

/* -------------------------
   CTA strip
-------------------------- */
.cta-strip{
  border-radius: var(--q-radius-lg);
  border: 1px solid var(--q-border);
  background: var(--q-card);
  box-shadow: var(--q-shadow-sm);
  padding: 22px;
}

/* -------------------------
   Utility: content badges for mini sections
-------------------------- */
.q-badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border-radius: var(--q-radius-pill);
  border: 1px solid var(--q-border);
  background: #fff;
  padding: 10px 14px;
  font-weight: 900;
}

/* -------------------------
   Responsive
-------------------------- */
@media (max-width: 767.98px){
  .hero{ padding: 78px 18px 64px; }
  .price-card.featured{ transform: none; }
  .panel:hover, .price-card:hover, .cta-strip:hover{
    transform: none; /* reduce jumpiness on touch devices */
  }
}
