/*
Theme Name: THECOMISSION SYSTEM
Theme URI: https://thecomissionsystem.com
Author: THECOMISSION
Description: Custom page-builder-free theme for thecomissionsystem.com — replaces Elementor. Bright/corporate design using the real brand colors (periwinkle/indigo) and real site content.
Version: 1.0.0
Text Domain: tcs-theme
*/

:root{
  --bg:#ffffff;
  --bg-2:#f5f7fc;
  --panel:#ffffff;
  --panel-2:#f7f8fc;
  --border:rgba(18,20,43,.09);
  --text:#12142b;
  --muted:#5c6079;
  --muted-2:#8a8ea3;
  --accent:#7B93E2;
  --accent-2:#313DE0;
  --accent-dim:rgba(123,147,226,.10);
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --font-display:'Space Grotesk','Inter',system-ui,sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{background:var(--bg); color:var(--text); font-family:var(--font); line-height:1.6; overflow-x:hidden; -webkit-font-smoothing:antialiased;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1160px; margin:0 auto; padding:0 28px;}
section{position:relative; padding:100px 0;}
@media (max-width:768px){ section{padding:64px 0;} }

.glow{position:fixed; border-radius:50%; filter:blur(140px); z-index:0; pointer-events:none;}
.glow1{width:640px; height:640px; background:rgba(123,147,226,.16); top:-260px; left:-180px;}
.glow2{width:560px; height:560px; background:rgba(49,61,224,.08); top:20%; right:-240px;}
main{position:relative; z-index:2;}

/* nav */
.tcs-nav{
  position:fixed; top:0; left:0; right:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 28px; backdrop-filter:blur(14px); background:rgba(255,255,255,.8);
  border-bottom:1px solid transparent; transition:border-color .3s, background .3s;
}
.tcs-nav.scrolled{border-bottom-color:var(--border); background:rgba(255,255,255,.95);}
.tcs-brand img{height:26px; display:block;}
.tcs-navlinks{display:flex; gap:30px; font-size:.9rem; color:var(--muted); font-weight:500; list-style:none;}
.tcs-navlinks a:hover{color:var(--text);}
.tcs-nav-cta{
  padding:10px 20px; border-radius:8px; font-weight:700; font-size:.85rem; white-space:nowrap; color:#fff;
  background:linear-gradient(100deg, var(--accent), var(--accent-2));
}
@media (max-width:900px){ .tcs-navlinks{display:none;} }

/* hero */
.hero{min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding-top:100px;}
.eyebrow{
  display:inline-flex; align-items:center; gap:9px; padding:8px 18px; border-radius:999px; border:1px solid var(--border);
  background:var(--panel-2); color:var(--accent-2); font-size:.8rem; font-weight:700; letter-spacing:.4px;
  margin-bottom:26px;
}
.eyebrow .dot{width:6px; height:6px; border-radius:50%; background:var(--accent-2);}
.hero h1{font-family:var(--font-display); font-weight:700; font-size:clamp(2.5rem, 7.5vw, 5.2rem); line-height:1.06; letter-spacing:-1.5px; max-width:1000px;}
.hero h1 .hl{background:linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent;}
.hero .tag{margin-top:24px; font-size:clamp(1rem,2.2vw,1.25rem); color:var(--muted); max-width:640px; font-weight:400;}
.hero-ctas{display:flex; gap:16px; margin-top:38px; flex-wrap:wrap; justify-content:center;}
.btn{padding:15px 30px; border-radius:10px; font-weight:700; font-size:.94rem; display:inline-flex; align-items:center; gap:8px; transition:transform .2s, box-shadow .2s; border:1px solid transparent;}
.btn-primary{background:linear-gradient(100deg, var(--accent), var(--accent-2)); color:#fff; box-shadow:0 10px 30px -10px rgba(49,61,224,.45);}
.btn-primary:hover{transform:translateY(-2px); box-shadow:0 16px 34px -10px rgba(49,61,224,.55);}
.btn-ghost{background:#fff; border-color:var(--border); color:var(--text);}
.btn-ghost:hover{background:var(--panel-2); transform:translateY(-2px);}
.hero-visual{margin:54px auto 0; max-width:900px; width:100%; position:relative;}
.hero-visual img{width:100%; border-radius:16px; border:1px solid var(--border); box-shadow:0 40px 90px -30px rgba(18,20,43,.25);}
.hero-stat{margin-top:40px; font-size:.85rem; color:var(--muted-2); font-weight:500;}
.hero-stat strong{color:var(--text);}

.reveal{opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease;}
.reveal.in{opacity:1; transform:translateY(0);}

.sec-head{max-width:660px; margin:0 auto 50px; text-align:center;}
.sec-kicker{color:var(--accent-2); font-weight:700; font-size:.78rem; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:14px;}
.sec-head h2{font-family:var(--font-display); font-weight:700; font-size:clamp(1.8rem,4vw,2.6rem); letter-spacing:-.7px; line-height:1.15;}
.sec-head p{color:var(--muted); margin-top:16px; font-size:1.02rem;}
.section--tint{background:var(--bg-2);}

/* generic card grid (problem / services / audience / industries) */
.cards-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:16px;}
@media (max-width:900px){ .cards-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .cards-grid{grid-template-columns:1fr;} }
.cards-grid.cols-3{grid-template-columns:repeat(3,1fr);}
@media (max-width:900px){ .cards-grid.cols-3{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .cards-grid.cols-3{grid-template-columns:1fr;} }
.tcs-card{background:#fff; border:1px solid var(--border); border-radius:14px; padding:26px 22px; transition:border-color .2s, transform .2s, box-shadow .2s;}
.tcs-card:hover{border-color:var(--accent); transform:translateY(-3px); box-shadow:0 14px 28px -16px rgba(49,61,224,.25);}
.tcs-card .ic{width:42px; height:42px; border-radius:10px; background:var(--accent-dim); display:flex; align-items:center; justify-content:center; margin-bottom:16px; font-size:1.2rem;}
.tcs-card h3{font-size:1.05rem; font-weight:700; margin-bottom:8px;}
.tcs-card p{color:var(--muted); font-size:.9rem;}

/* proof grid */
.proof-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
@media (max-width:860px){ .proof-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){ .proof-grid{grid-template-columns:1fr;} }
.proof-card{background:#fff; border:1px solid var(--border); border-radius:12px; padding:18px; display:flex; flex-direction:column; gap:4px; transition:border-color .2s, transform .2s, box-shadow .2s;}
.proof-card:hover{border-color:var(--accent); transform:translateY(-3px); box-shadow:0 12px 26px -14px rgba(49,61,224,.25);}
.proof-card .pc-name{font-weight:700; font-size:.94rem;}
.proof-card .pc-tag{font-size:.76rem; color:var(--muted-2); text-transform:uppercase; letter-spacing:.4px;}
.proof-note{text-align:center; margin-top:32px; color:var(--muted); font-size:.96rem;}
.proof-note strong{color:var(--accent-2);}

/* flow (how it works) */
.flow{display:flex; flex-direction:column; max-width:660px; margin:0 auto;}
.flow-step{display:flex; gap:22px; align-items:flex-start; position:relative; padding-bottom:44px;}
.flow-step:last-child{padding-bottom:0;}
.flow-step::before{content:''; position:absolute; left:23px; top:52px; bottom:-2px; width:2px; background:linear-gradient(var(--border), transparent);}
.flow-step:last-child::before{display:none;}
.flow-num{width:48px; height:48px; border-radius:12px; background:var(--accent-dim); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; font-weight:700; color:var(--accent-2); flex-shrink:0; font-family:var(--font-display); font-size:.95rem;}
.flow-body h4{font-size:1.12rem; font-weight:700; margin-bottom:6px;}
.flow-body p{color:var(--muted); font-size:.95rem;}

/* final cta */
.final-cta{text-align:center; padding:110px 0 100px;}
.final-cta h2{font-family:var(--font-display); font-weight:700; font-size:clamp(2rem,5.5vw,3.2rem); letter-spacing:-1px; max-width:780px; margin:0 auto 18px;}
.final-cta p{color:var(--muted); max-width:560px; margin:0 auto 14px; font-size:1.02rem;}
.final-cta .phone{font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--accent-2); margin:18px 0 30px;}
.final-cta .fineprint{color:var(--muted-2); font-size:.85rem; margin-top:18px;}

/* contact section */
.contact-wrap{display:grid; grid-template-columns:1fr 1.3fr; gap:40px; max-width:900px; margin:0 auto;}
@media (max-width:768px){ .contact-wrap{grid-template-columns:1fr;} }
.contact-info .phone{font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--accent-2); margin-bottom:6px;}
.contact-info .fineprint{color:var(--muted-2); font-size:.85rem;}
.contact-info .tcs-card h4{font-size:.82rem; text-transform:uppercase; letter-spacing:.6px; color:var(--muted-2); margin-bottom:14px;}
.contact-info .tcs-card a, .contact-info .tcs-card p{display:block; font-size:.95rem; margin-bottom:8px;}
.contact-form{background:#fff; border:1px solid var(--border); border-radius:16px; padding:32px; box-shadow:0 20px 50px -30px rgba(18,20,43,.2);}
.contact-form label{display:block; font-size:.85rem; font-weight:600; margin-bottom:16px; color:var(--muted);}
.contact-form input, .contact-form textarea{
  width:100%; margin-top:6px; padding:12px 14px; border-radius:8px; border:1px solid var(--border);
  font-family:var(--font); font-size:.95rem; color:var(--text); background:var(--panel-2); resize:vertical;
}
.contact-form input:focus, .contact-form textarea:focus{outline:2px solid var(--accent); outline-offset:1px;}
.contact-form button{width:100%; justify-content:center; margin-top:4px;}
.form-msg{padding:14px 16px; border-radius:10px; font-size:.9rem; margin-bottom:20px;}
.form-msg--success{background:rgba(123,147,226,.12); color:var(--accent-2); border:1px solid rgba(123,147,226,.3);}
.form-msg--error{background:rgba(220,60,60,.08); color:#b3261e; border:1px solid rgba(220,60,60,.25);}

/* footer */
.tcs-footer{border-top:1px solid var(--border); padding:56px 0 34px; background:var(--bg-2);}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; margin-bottom:40px;}
@media (max-width:768px){ .foot-grid{grid-template-columns:1fr; gap:28px;} }
.foot-brand img{height:24px; margin-bottom:14px;}
.foot-brand p{color:var(--muted); font-size:.9rem; max-width:320px;}
.foot-col h4{font-size:.82rem; text-transform:uppercase; letter-spacing:.6px; color:var(--muted-2); margin-bottom:14px;}
.foot-col p, .foot-col a{display:block; font-size:.92rem; color:var(--text); margin-bottom:8px;}
.foot-col a:hover{color:var(--accent-2);}
.foot-bottom{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:24px; border-top:1px solid var(--border); font-size:.85rem; color:var(--muted-2);}

.foot-sitemap{
  display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:28px;
  padding:32px 0; border-top:1px solid var(--border); margin-bottom:8px;
}
.foot-sitemap-col h4{font-size:.76rem; text-transform:uppercase; letter-spacing:.5px; color:var(--muted-2); margin-bottom:12px;}
.foot-sitemap-col a{display:block; font-size:.84rem; color:var(--muted); margin-bottom:8px;}
.foot-sitemap-col a:hover{color:var(--accent-2);}
