/* static/css/pages.css
   CTFLY Public Site — generic page content + richtext defaults
*/

/* Generic richtext defaults */
.rich-text p{ color:var(--muted); }

.rich-text h2,
.rich-text h3,
.rich-text h4{
  color:var(--text);
  margin:1.6rem 0 .7rem;
  letter-spacing:-.01em;
}

.rich-text ul,
.rich-text ol{
  color:var(--muted);
  padding-left:1.2rem;
}

.rich-text a{
  color:var(--brand-2);
  text-decoration:none;
  border-bottom:1px solid rgba(29,78,216,.25);
}

.rich-text a:hover{
  border-bottom-color:rgba(29,78,216,.45);
}

/* =========================
   Services Grid
   ========================= */

.services-hero {
  padding: 80px 0 40px;
}

.services-grid {
  padding: 40px 0 80px;
}

.services-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

.service-card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.service-card-content {
  padding: 22px 24px 26px;
}

.service-card h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
  margin-bottom: 16px;
}

.service-card-cta {
  font-weight: 600;
  text-decoration: none;
}
/* =========================
   Trust & Credibility Block
   ========================= */

.trust-block {
  padding: 80px 0;
  background: #f7f9fc;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.trust-item h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.trust-item p {
  color: #555;
  line-height: 1.6;
}

.service-trust {
  padding: 60px 0;
  background: #ffffff;
}
/* ===============================
   SERVICES HIGHLIGHTS
================================ */

.services-highlight {
    padding: 80px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.service-link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: #0073e6;
}

/* ======================================================
   ENTERPRISE ENHANCEMENTS — Pages
====================================================== */

/* ===============================
   Page Hero Refinement
=============================== */
.page-hero{
  background:linear-gradient(180deg, var(--surface), #ffffff);
  border-bottom:1px solid var(--border);
}

/* ===============================
   Rich Text Improvements
=============================== */
.rich-text p{
  color:var(--muted);
  line-height:1.7;
}

.rich-text h2,
.rich-text h3{
  margin-top:2rem;
  letter-spacing:-0.01em;
}

/* ===============================
   Card Layout Utility
=============================== */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.5rem;
  box-shadow:var(--shadow-sm);
}

/* ===============================
   Divider Utility
=============================== */
.divider{
  height:1px;
  background:var(--border);
  margin:2.5rem 0;
}

/* ===============================
   Enterprise Layout Polish
=============================== */
.section{
  position:relative;
}

.section::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:1px;
  background:linear-gradient(to right, transparent, var(--border), transparent);
  opacity:.4;
}
