/* static/css/home.css
   CTFLY Public Site — homepage-only sections
*/

/* ===============================
   HERO (homepage)
=============================== */
.hero{ color:#fff; }

.hero-home{
  background:
    radial-gradient(900px 380px at 20% 10%, rgba(37,99,235,.28), transparent 60%),
    radial-gradient(700px 320px at 85% 20%, rgba(14,165,233,.18), transparent 60%),
    linear-gradient(135deg, #0f172a, #020617);
}

.hero .container{
  padding-top:5rem;
  padding-bottom:5rem;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:3rem;
  align-items:center;
}

.hero-text h1{
  font-size:clamp(2.2rem, 4vw, 3.15rem);
  line-height:1.08;
  margin:0 0 1rem;
  letter-spacing:-.02em;
}

.hero-subtitle{
  font-size:1.25rem;
  opacity:.92;
  margin:1.25rem 0 2rem;
  max-width:60ch;
  color:rgba(226,232,240,.92);
}

.hero-actions{
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}

.hero-media img{
  width:100%;
  max-width:520px;
  max-height:420px;
  height:auto;
  object-fit:contain;
  object-position:center;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  border:1px solid rgba(255,255,255,.08);
  margin-left:auto;
}

/* ===============================
   TRUST STRIP (homepage)
=============================== */
.trust-strip{
  background:#0b1220;
  color:rgba(226,232,240,.88);
  border-top:1px solid rgba(255,255,255,.07);
  border-bottom:1px solid rgba(255,255,255,.07);
}

.trust-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:1rem;
  text-align:center;
  padding:1.25rem 0;
  font-weight:700;
  font-size:.95rem;
}

.trust-grid strong{ color:#ffffff; }

/* ===============================
   Intro (homepage)
=============================== */
.section-intro .rich-text,
.section-intro{ color:var(--text); }

.section-intro p{
  color:var(--muted);
  font-size:1.05rem;
  margin:0;
}

/* ===============================
   Services (homepage)
=============================== */
.section-services{
  background:linear-gradient(180deg, var(--bg), var(--surface));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:2rem;
}

.service-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(37,99,235,.28);
}

.service-card img{
  width:100%;
  height:180px;
  object-fit:cover;
}

.service-card h3{
  margin:1rem 1rem .35rem;
  font-size:1.1rem;
  color:var(--text);
}

.service-card p{
  margin:0 1rem 1.5rem;
  color:var(--muted);
  font-size:.97rem;
}

/* ===============================
   Process (homepage)
=============================== */
.section-process{ background:#ffffff; }

.process-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:2rem;
  text-align:center;
}

.process-grid span{
  display:inline-block;
  font-size:2rem;
  font-weight:900;
  color:var(--brand);
  letter-spacing:-.02em;
}

.process-grid h4{
  margin:.75rem 0 .35rem;
  font-size:1.05rem;
  color:var(--text);
}

.process-grid p{
  margin:0;
  color:var(--muted);
}

/* ===============================
   CTA (homepage)
=============================== */
.section-cta{
  background:linear-gradient(180deg, #0b1220, #0f172a);
  color:#fff;
}

.section-cta .cta-box{
  text-align:center;
  padding:3.25rem 1.5rem;
  border-radius:calc(var(--radius) + 6px);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  max-width:980px;
  margin:0 auto;
}

.section-cta .cta-box h2{
  margin:0 0 .5rem;
  letter-spacing:-.02em;
  font-size:clamp(1.7rem, 3vw, 2.25rem);
}

.section-cta .cta-box p{
  margin:0 0 1.5rem;
  color:rgba(226,232,240,.90);
}

/* ===============================
   NEW — TRUST & CREDIBILITY
=============================== */
.section-trust-credibility{
  background:#f4f7fa;
  padding:80px 0;
}

.trust-cred-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:24px;
  margin-top:40px;
}

.trust-card{
  background:#fff;
  padding:28px;
  border-radius:10px;
  box-shadow:0 6px 20px rgba(0,0,0,.05);
  transition:.25s ease;
}

.trust-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 26px rgba(0,0,0,.1);
}

.trust-card h4{
  margin-bottom:10px;
  font-size:1.2rem;
}

/* ===============================
   Responsive (homepage)
=============================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-media img{ margin:0; max-width:680px; }
  .services-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .process-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px){
  .hero .container{ padding-top:4rem; padding-bottom:4rem; }
  .services-grid{ grid-template-columns:1fr; }
}

/* ======================================================
   ENTERPRISE ENHANCEMENTS — Homepage
====================================================== */

/* ===============================
   Section Header Polish
=============================== */
.section-header{
  margin-bottom:2.5rem;
}

.section-header.center{
  text-align:center;
}

.section-header h2{
  font-size:clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing:-0.02em;
  margin-bottom:.6rem;
}

.section-header p{
  color:var(--muted);
  max-width:640px;
  margin:0 auto;
}

/* ===============================
   Service Card Enhancements
=============================== */
.service-card{
  position:relative;
}

.service-card::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
  opacity:0;
  transition:opacity .2s ease;
}

.service-card:hover::after{
  opacity:1;
}

.service-link{
  display:inline-block;
  margin:0 1rem 1.5rem;
  font-weight:700;
  color:var(--brand);
  font-size:.9rem;
}

/* ===============================
   Trust & Credibility Section
=============================== */
.section-trust-credibility{
  background:linear-gradient(180deg, #ffffff, var(--surface));
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

.trust-cred-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:2rem;
  margin-top:2rem;
}

.trust-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.8rem;
  text-align:center;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease;
}

.trust-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow);
}

.trust-card h4{
  margin-bottom:.5rem;
}

.trust-card p{
  color:var(--muted);
}

/* ===============================
   Industries Section Polish
=============================== */
.section-industries{
  background:var(--surface);
  border-top:1px solid var(--border);
}

/* ===============================
   Responsive
=============================== */
@media (max-width: 980px){
  .trust-cred-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 600px){
  .trust-cred-grid{
    grid-template-columns:1fr;
  }
}
