/* ==========================================================================
   Tru-Resolve LLC — Design System
   Professional tech services: purple + deep charcoal, no stock/space imagery
   ========================================================================== */

:root{
  --violet:       #8B5CF6;
  --violet-dark:  #6D28D9;
  --violet-light: #F1EBFE;
  --violet-mid:   #A78BFA;

  --ink:          #12141C;
  --ink-soft:     #1B1E2B;
  --ink-softer:   #262A3B;

  --white:        #FFFFFF;
  --cloud:        #F7F7FB;
  --cloud-dark:   #ECEBF3;
  --gray:         #5B5F73;
  --gray-light:   #9497AC;

  --shadow-sm: 0 2px 10px rgba(18,20,28,0.06);
  --shadow-md: 0 10px 30px rgba(18,20,28,0.10);
  --shadow-lg: 0 24px 60px rgba(18,20,28,0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family: var(--font-head);
  color: var(--ink);
  line-height:1.15;
  margin:0 0 .5em;
  font-weight:700;
  letter-spacing:-.01em;
}
p{ margin:0 0 1em; }
.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}
section{ padding: 96px 0; }
@media (max-width:768px){ section{ padding: 60px 0; } }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family: var(--font-head);
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.09em;
  text-transform:uppercase;
  color: var(--violet-dark);
  background: var(--violet-light);
  padding:7px 16px;
  border-radius:999px;
  margin-bottom:20px;
}
.eyebrow.on-dark{ color:var(--violet-mid); background:rgba(139,92,246,0.14); }

.section-head{ text-align:center; max-width:680px; margin:0 auto 56px; }
.section-head h2{ font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.section-head p{ color:var(--gray); font-size:1.08rem; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:15px 32px;
  border-radius:999px;
  font-family: var(--font-head);
  font-weight:600;
  font-size:.98rem;
  border:2px solid transparent;
  cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--violet-dark); color:var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover{ background:#5B21B6; box-shadow: var(--shadow-md); }
.btn-outline{ background:transparent; border-color: rgba(255,255,255,.35); color:var(--white); }
.btn-outline:hover{ background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }
.btn-outline-dark{ background:transparent; border-color: var(--cloud-dark); color:var(--ink); }
.btn-outline-dark:hover{ background: var(--cloud); border-color: var(--ink); }
.btn-block{ width:100%; }

/* ---------------- Header ---------------- */
.site-header{
  background: var(--white);
  position: sticky; top:0; z-index:100;
  box-shadow: var(--shadow-sm);
}
.nav-wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px;
}
.logo{ display:flex; align-items:center; gap:11px; font-family: var(--font-head); font-weight:700; font-size:1.28rem; color:var(--ink); white-space:nowrap; flex:none; }
.logo .logo-mark{ height:56px; width:auto; flex:none; }

.main-nav{ display:flex; align-items:center; gap:4px; }
.main-nav a{
  padding:10px 16px;
  border-radius:8px;
  font-weight:600;
  font-size:.94rem;
  color: var(--gray);
  transition: color .18s ease, background .18s ease;
}
.main-nav a:hover, .main-nav a.active{ color: var(--violet-dark); background: var(--violet-light); }
.nav-cta{ display:flex; align-items:center; gap:12px; }

.nav-toggle{
  display:none; flex-direction:column; align-items:center; justify-content:center;
  width:42px; height:42px; flex:none;
  background: var(--ink); border:none; border-radius:10px; cursor:pointer; padding:0;
}
.nav-toggle span{ display:block; width:20px; height:2px; background:var(--white); margin:2.5px auto; border-radius:2px; }

@media (max-width: 900px){
  .main-nav{
    position:fixed; top:74px; right:0; bottom:0;
    width:78%; max-width:340px;
    background:var(--white);
    display:flex; flex-direction:column; align-items:stretch; padding:16px; gap:2px;
    transform: translateX(100%); transition: transform .28s ease;
    overflow-y:auto; z-index:99;
    box-shadow: -10px 0 34px rgba(18,20,28,.18);
  }
  .main-nav.open{ transform: translateX(0); }
  .main-nav a{ padding:14px 16px; font-size:1.02rem; border-bottom:1px solid var(--cloud-dark); }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 55%, #2A1B4A 130%);
  color:var(--white);
  overflow:hidden;
  padding: 110px 0 120px;
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:0; opacity:.5;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(139,92,246,.25), transparent 60%),
    radial-gradient(500px 400px at 10% 90%, rgba(109,40,217,.2), transparent 60%);
}
.hero .container{ position:relative; z-index:2; }
.hero-inner{ max-width:760px; }
.hero h1{ color:var(--white); font-size:clamp(2.3rem, 4.6vw, 3.8rem); }
.hero h1 em{ font-style:normal; color:var(--violet-mid); }
.hero p.lead{ color:rgba(255,255,255,.78); font-size:1.18rem; max-width:600px; margin-bottom:32px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }
.hero-pills{ display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 0; }
.hero-pill{
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  padding:9px 16px; border-radius:999px; font-size:.86rem; font-weight:600;
}
.hero-pill svg{ width:16px; height:16px; color:var(--violet-mid); flex:none; }

/* ---------------- Page hero (interior pages) ---------------- */
.page-hero{
  position:relative;
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 60%, #2A1B4A 140%);
  color:var(--white);
  padding: 90px 0 70px;
}
.page-hero h1{ color:var(--white); font-size:clamp(2rem,3.8vw,3rem); }
.page-hero p.lead{ color:rgba(255,255,255,.8); max-width:640px; font-size:1.08rem; }
.breadcrumb{ font-size:.85rem; color:rgba(255,255,255,.6); margin-bottom:16px; }
.breadcrumb a:hover{ color:var(--violet-mid); }

/* ---------------- Service cards ---------------- */
.service-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:1080px){ .service-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .service-grid{ grid-template-columns:1fr; } }

.service-card{
  background:var(--white);
  border-radius: var(--radius-md);
  padding:32px 26px;
  box-shadow: var(--shadow-sm);
  border:1px solid var(--cloud-dark);
  transition: transform .22s ease, box-shadow .22s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon{
  width:56px; height:56px; border-radius:16px;
  background: var(--violet-light); color:var(--violet-dark);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.service-icon svg{ width:28px; height:28px; }
.service-card h3{ font-size:1.15rem; margin-bottom:10px; }
.service-card p{ color:var(--gray); font-size:.94rem; margin-bottom:14px; }
.service-card-link{
  display:inline-flex; align-items:center; gap:6px;
  font-family:var(--font-head); font-weight:700; color:var(--violet-dark); font-size:.9rem;
}
.service-card-link svg{ width:16px; height:16px; transition: transform .18s ease; }
.service-card:hover .service-card-link svg{ transform: translateX(4px); }

/* ---------------- TruBrief spotlight ---------------- */
.spotlight{
  background: linear-gradient(135deg, var(--ink) 0%, #1E1408 100%);
  border-radius: var(--radius-lg);
  padding:56px;
  display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:center;
  color:var(--white);
  position:relative; overflow:hidden;
}
.spotlight::before{
  content:""; position:absolute; inset:0; z-index:0;
  background: radial-gradient(500px 350px at 90% 20%, rgba(249,115,22,.25), transparent 60%);
}
.spotlight > *{ position:relative; z-index:1; }
.spotlight-logo{ display:flex; align-items:center; gap:10px; margin-bottom:20px; }
.spotlight-logo img{ height:34px; width:auto; }
.spotlight h2{ color:var(--white); font-size:clamp(1.6rem,2.8vw,2.2rem); }
.spotlight p{ color:rgba(255,255,255,.78); font-size:1.03rem; }
.spotlight-badges{ display:flex; flex-wrap:wrap; gap:10px; margin:20px 0 28px; }
.spotlight-badge{
  background:rgba(249,115,22,.14); border:1px solid rgba(249,115,22,.3); color:#FDBA74;
  padding:7px 14px; border-radius:999px; font-size:.82rem; font-weight:600;
}
.btn-trubrief{ background:#F97316; color:var(--white); }
.btn-trubrief:hover{ background:#EA580C; }
.spotlight-shot{ border-radius: var(--radius-md); overflow:hidden; box-shadow: var(--shadow-lg); border:1px solid rgba(255,255,255,.1); }
.spotlight-shot img{ width:100%; display:block; }

@media (max-width:900px){
  .spotlight{ grid-template-columns:1fr; padding:36px 24px; text-align:center; }
  .spotlight-logo, .spotlight-badges, .hero-actions{ justify-content:center; }
}

/* ---------------- Portfolio ---------------- */
.portfolio-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
@media (max-width:800px){ .portfolio-grid{ grid-template-columns:1fr; } }
.portfolio-card{
  background:var(--white); border-radius:var(--radius-md); overflow:hidden;
  border:1px solid var(--cloud-dark); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
}
.portfolio-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.portfolio-shot{ aspect-ratio: 16/10; overflow:hidden; background:var(--cloud); position:relative; }
.portfolio-shot img{ width:100%; height:100%; object-fit:cover; object-position:top; transition: transform .3s ease; }
.portfolio-card:hover .portfolio-shot img{ transform: scale(1.03); }
.portfolio-tag{
  position:absolute; top:14px; left:14px;
  background: rgba(18,20,28,.75); color:var(--white); backdrop-filter: blur(4px);
  font-family:var(--font-head); font-weight:700; font-size:.72rem;
  padding:6px 13px; border-radius:999px;
}
.portfolio-body{ padding:26px 24px 28px; }
.portfolio-body h3{ font-size:1.2rem; margin-bottom:8px; }
.portfolio-body p{ color:var(--gray); font-size:.94rem; margin-bottom:14px; }

/* ---------------- Process / feature grid ---------------- */
.feature-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width:900px){ .feature-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .feature-grid{ grid-template-columns:1fr; } }
.feature-card{ background:var(--cloud); border-radius:var(--radius-md); padding:30px 26px; }
.feature-icon{
  width:50px; height:50px; border-radius:13px;
  background: var(--white); color:var(--violet-dark); box-shadow: var(--shadow-sm);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.feature-icon svg{ width:24px; height:24px; }
.feature-card h3{ font-size:1.06rem; margin-bottom:8px; }
.feature-card p{ color:var(--gray); font-size:.92rem; margin:0; }

/* ---------------- About / split ---------------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:900px){ .split{ grid-template-columns:1fr; text-align:center; } }
.check-list li{ display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; font-weight:500; }
.check-list li svg{ width:22px; height:22px; flex:none; color:var(--violet-dark); margin-top:2px; }
@media (max-width:900px){ .check-list li{ text-align:left; } }
.stat-row{ display:flex; gap:40px; margin-top:32px; flex-wrap:wrap; }
@media (max-width:900px){ .stat-row{ justify-content:center; } }
.stat-row .stat h3{ font-size:2rem; color:var(--violet-dark); margin-bottom:2px; }
.stat-row .stat p{ font-size:.88rem; color:var(--gray); margin:0; }

/* ---------------- CTA banner ---------------- */
.cta-banner{
  background: linear-gradient(120deg, var(--violet-dark) 0%, #4C1D95 100%);
  color:var(--white); border-radius: var(--radius-lg);
  padding:56px; display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
}
.cta-banner h2{ color:var(--white); font-size:clamp(1.5rem,2.6vw,2.15rem); margin-bottom:6px; }
.cta-banner p{ color:rgba(255,255,255,.85); margin:0; }
.cta-banner .btn-primary{ background:var(--white); color:var(--violet-dark); }
.cta-banner .btn-primary:hover{ background: var(--cloud); }

/* ---------------- Contact ---------------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap:44px; align-items:start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{ background:var(--cloud); border-radius:var(--radius-md); padding:32px; margin-bottom:20px; }
.contact-row{ display:flex; gap:16px; align-items:flex-start; margin-bottom:22px; }
.contact-row:last-child{ margin-bottom:0; }
.contact-row .ic{ width:46px; height:46px; border-radius:13px; background:var(--white); color:var(--violet-dark); box-shadow:var(--shadow-sm); display:flex; align-items:center; justify-content:center; flex:none; }
.contact-row .ic svg{ width:21px; height:21px; }
.contact-row h4{ font-size:.96rem; margin-bottom:3px; }
.contact-row p{ margin:0; color:var(--gray); font-size:.92rem; }

.form-card{ background:var(--white); border-radius:var(--radius-md); padding:40px; box-shadow:var(--shadow-md); border:1px solid var(--cloud-dark); }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-weight:600; font-size:.88rem; margin-bottom:8px; color:var(--ink); }
.field input, .field select, .field textarea{
  width:100%; padding:14px 16px; border-radius:10px; border:1.5px solid var(--cloud-dark);
  font-family:var(--font-body); font-size:.95rem; background: var(--cloud); color:var(--ink);
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:none; border-color:var(--violet); background:var(--white); }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.7); }
.footer-top{ padding: 72px 0 44px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap:40px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ color:var(--white); font-size:.96rem; margin-bottom:18px; }
.footer-logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-head); font-weight:700; font-size:1.2rem; color:var(--white); margin-bottom:16px; }
.footer-logo .logo-mark{ height:48px; width:auto; }
.footer-grid p{ font-size:.9rem; }
.footer-grid ul li{ margin-bottom:11px; }
.footer-grid ul a{ font-size:.9rem; transition:color .18s ease; }
.footer-grid ul a:hover{ color:var(--violet-mid); }
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.06); display:flex; align-items:center; justify-content:center; transition:background .18s ease; }
.footer-social a:hover{ background:var(--violet-dark); }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding:22px 0; font-size:.82rem; }
.footer-bottom .container{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.footer-bottom a:hover{ color:var(--violet-mid); }

.mt-40{ margin-top:40px; }
.text-center{ text-align:center; }
