/*
Theme Name: Crowns Sphere Private Limited
Theme URI: https://www.crownssphere.com
Author: Crowns Sphere (Private) Limited
Author URI: https://www.crownssphere.com
Description: Official WordPress theme for Crowns Sphere (Private) Limited — covering the company homepage, ventures (Aurat Card, Crowns Financial, Crowns Health, Crowns Education, Crowns Marketing, Visa Drop Box, Digital Enterprise Marketplace, Crowns TV), Insights, Careers and Contact pages.
Version: 1.1.0
License: Proprietary — All Rights Reserved
Text Domain: crowns-sphere
*/

/* ============================================
   Crowns Sphere — Design tokens
   Primary: Royal Purple  Secondary: Silver
   ============================================ */
:root{
  --purple: #6B196D;
  --purple-dark: #4A1050;
  --purple-tint: #F3E9F4;
  --silver: #ADADB4;
  --silver-light: #E9E9EC;
  --ink: #1A1A1D;
  --ink-soft: #5C5C63;
  --bg: #FAFAFA;
  --bg-alt: #F2F1F3;
  --white: #FFFFFF;
  --border: #E4E3E6;
  --success: #1E7A4C;
  --font-head: 'Lexend', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(26,26,29,0.04), 0 8px 24px rgba(26,26,29,0.05);
  --maxw: 1180px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-head);
  font-weight:500;
  color:var(--ink);
  line-height:1.25;
  margin:0 0 .6em;
}
h1{font-size:clamp(2rem,4vw,3.1rem); letter-spacing:-0.01em;}
h2{font-size:clamp(1.5rem,2.6vw,2.1rem); letter-spacing:-0.01em;}
h3{font-size:1.2rem;}
p{margin:0 0 1em; color:var(--ink-soft);}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
ul{margin:0; padding:0; list-style:none;}
button{font-family:var(--font-body); cursor:pointer;}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 28px;}
.section{padding:88px 0;}
.section-tight{padding:56px 0;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12.5px; font-weight:500; letter-spacing:.06em; text-transform:uppercase;
  color:var(--purple); margin-bottom:14px;
}
.eyebrow::before{content:""; width:16px; height:2px; background:var(--purple); display:inline-block;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 22px; border-radius:8px; font-size:14.5px; font-weight:500;
  border:1px solid transparent; transition:all .15s ease; white-space:nowrap;
}
.btn-primary{background:var(--purple); color:#fff;}
.btn-primary:hover{background:var(--purple-dark);}
.btn-outline{border-color:var(--purple); color:var(--purple); background:transparent;}
.btn-outline:hover{background:var(--purple-tint);}
.btn-ghost{color:var(--ink); border-color:var(--border); background:var(--white);}
.btn-ghost:hover{border-color:var(--silver);}
.btn-outline-light{border-color:rgba(255,255,255,.4); color:#fff; background:transparent;}
.btn-outline-light:hover{background:rgba(255,255,255,.1); border-color:#fff;}
.btn-lg{padding:14px 28px; font-size:15.5px;}
.btn-block{width:100%;}

/* ---------- Header / Nav ---------- */
header.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,250,250,.92); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav-row{display:flex; align-items:center; justify-content:space-between; padding:16px 0;}
.brand{display:flex; align-items:center; gap:10px;}
.brand img.logo-img{height:34px; width:auto; object-fit:contain;}
.brand span{font-family:var(--font-head); font-size:15.5px; font-weight:500; letter-spacing:.02em;}
nav.main-nav{display:flex; align-items:center; gap:2px;}
nav.main-nav > a, nav.main-nav > .has-menu > button{
  padding:10px 14px; font-size:14px; color:var(--ink-soft); border:none; background:none;
  font-family:var(--font-body); border-radius:6px; display:flex; align-items:center; gap:4px;
}
nav.main-nav > a:hover, nav.main-nav > .has-menu > button:hover{color:var(--ink); background:var(--bg-alt);}
nav.main-nav > a.active{color:var(--purple); font-weight:500;}
.has-menu{position:relative;}
.mega{
  position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--white); border:1px solid var(--border); border-radius:12px;
  box-shadow:var(--shadow); padding:12px; width:560px;
  display:none; grid-template-columns:1fr 1fr; gap:2px;
}
.has-menu:hover .mega{display:grid;}
.mega a{
  display:flex; align-items:flex-start; gap:10px; padding:10px 12px; border-radius:8px; color:var(--ink);
}
.mega a:hover{background:var(--bg-alt);}
.mega .m-ic{
  width:32px; height:32px; border-radius:8px; background:var(--purple-tint); color:var(--purple);
  display:flex; align-items:center; justify-content:center; flex:none; font-size:14px; font-weight:500;
}
.mega .m-title{font-size:13.5px; font-weight:500; margin-bottom:2px;}
.mega .m-desc{font-size:12px; color:var(--ink-soft); line-height:1.4;}
.tag-soon{font-size:9.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--purple); background:var(--purple-tint); padding:2px 6px; border-radius:4px; margin-left:6px; vertical-align:middle;}
.nav-cta{display:flex; align-items:center; gap:10px;}
.nav-toggle{display:none; background:none; border:none; padding:8px;}
.nav-toggle svg{width:22px; height:22px;}

@media (max-width:920px){
  nav.main-nav{
    position:fixed; inset:64px 0 0 0; background:var(--white); flex-direction:column;
    align-items:stretch; padding:12px; gap:0; transform:translateX(100%); transition:transform .2s ease;
    overflow-y:auto;
  }
  nav.main-nav.open{transform:translateX(0);}
  nav.main-nav > a, nav.main-nav > .has-menu > button{width:100%; justify-content:space-between; padding:16px 12px; border-bottom:1px solid var(--border); border-radius:0;}
  .mega{position:static; transform:none; width:100%; box-shadow:none; border:none; display:none; grid-template-columns:1fr;}
  .has-menu.open .mega{display:grid;}
  .nav-toggle{display:block;}
  .nav-cta .btn{display:none;}
}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(180deg,var(--bg) 0%,var(--bg-alt) 100%);
  padding:96px 0 80px; border-bottom:1px solid var(--border);
}
.hero-inner{max-width:680px;}
.hero-split{display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center;}
@media (max-width:900px){.hero-split{grid-template-columns:1fr;}}
.hero p.lead{font-size:17px; max-width:520px;}
.hero-cta{display:flex; gap:12px; flex-wrap:wrap; margin-top:8px;}

/* ---------- Hero slider ---------- */
.hero-slider{
  position:relative; border-radius:16px; overflow:hidden; border:1px solid var(--border);
  background:var(--white); aspect-ratio:5/4; box-shadow:var(--shadow);
}
.hero-slider .slide{
  position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .5s ease;
  display:flex; flex-direction:column;
}
.hero-slider .slide.active{opacity:1; visibility:visible;}
.hero-slider .slide .photo{
  flex:1; background:var(--bg-alt); display:flex; align-items:center; justify-content:center;
  color:var(--silver); position:relative;
}
.hero-slider .slide .photo img{width:100%; height:100%; object-fit:cover;}
.hero-slider .slide .badge-live{
  position:absolute; top:12px; left:12px; background:var(--purple); color:#fff; font-size:10.5px;
  padding:4px 10px; border-radius:20px; letter-spacing:.03em; text-transform:uppercase; font-weight:500;
}
.hero-slider .slide .cap{padding:16px 18px; background:var(--white);}
.hero-slider .slide .cap h4{font-size:14px; margin-bottom:2px;}
.hero-slider .slide .cap p{font-size:12.5px; margin-bottom:0;}
.hero-slider .dots{
  position:absolute; bottom:78px; left:0; right:0; display:flex; gap:6px; justify-content:center; z-index:2;
}
.hero-slider .dots button{
  width:7px; height:7px; border-radius:50%; border:none; background:rgba(255,255,255,.6); padding:0;
  cursor:pointer;
}
.hero-slider .dots button.active{background:#fff; width:18px; border-radius:4px;}
@media (max-width:900px){.hero-slider .dots{bottom:66px;}}

/* ---------- Cards / Grids ---------- */
.grid{display:grid; gap:20px;}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}
.grid-2{grid-template-columns:repeat(2,1fr);}
@media (max-width:900px){.grid-3,.grid-4{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}}

.card{
  background:var(--white); border:1px solid var(--border); border-radius:12px;
  padding:26px; transition:border-color .15s ease, transform .15s ease;
}
.card:hover{border-color:var(--silver);}
.venture-card{display:flex; flex-direction:column; gap:14px;}
.venture-card .ic{
  width:44px; height:44px; border-radius:10px; background:var(--purple-tint); color:var(--purple);
  display:flex; align-items:center; justify-content:center;
}
.venture-card .ic svg{width:22px; height:22px;}
.venture-card h3{margin-bottom:4px; display:flex; align-items:center;}
.venture-card p{font-size:13.5px; margin-bottom:0;}
.venture-card .link-row{margin-top:auto; padding-top:6px; font-size:13px; font-weight:500; color:var(--purple); display:flex; align-items:center; gap:6px;}

.pillar{padding:24px; border-radius:12px; background:var(--white); border:1px solid var(--border);}
.pillar .ic{width:40px; height:40px; border-radius:9px; background:var(--purple); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:14px;}
.pillar .ic svg{width:20px; height:20px;}

/* ---------- Stats band ---------- */
.stats-band{background:var(--purple); color:#fff; padding:52px 0;}
.stats-band .grid{grid-template-columns:repeat(4,1fr);}
.stat b{display:block; font-family:var(--font-head); font-size:2.1rem; font-weight:500;}
.stat span{font-size:13px; color:rgba(255,255,255,.78);}
@media (max-width:700px){.stats-band .grid{grid-template-columns:repeat(2,1fr); row-gap:28px;}}

/* ---------- Steps ---------- */
.steps{display:flex; flex-direction:column; gap:0;}
.step{display:flex; gap:20px; padding:22px 0; border-bottom:1px solid var(--border);}
.step:last-child{border-bottom:none;}
.step .n{
  flex:none; width:34px; height:34px; border-radius:50%; border:1px solid var(--purple); color:var(--purple);
  display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:500; font-family:var(--font-head);
}
.step h4{margin-bottom:4px; font-size:15.5px;}
.step p{margin-bottom:0; font-size:13.5px;}

/* ---------- Section variants ---------- */
.section-alt{background:var(--bg-alt);}
.section-dark{background:var(--ink); color:#fff;}
.section-dark h2, .section-dark h3{color:#fff;}
.section-dark p{color:rgba(255,255,255,.68);}

.section-head{max-width:620px; margin:0 0 44px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}

/* ---------- Table-ish sector list ---------- */
.sector-list{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--border); border:1px solid var(--border); border-radius:12px; overflow:hidden;}
.sector-list > div{background:var(--white); padding:18px 20px;}
.sector-list h4{font-size:14px; margin-bottom:4px;}
.sector-list p{font-size:12.5px; margin-bottom:0;}
@media (max-width:900px){.sector-list{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.sector-list{grid-template-columns:1fr;}}

/* ---------- Badge ---------- */
.badge{display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:500; padding:5px 12px; border-radius:20px;}
.badge-purple{background:var(--purple-tint); color:var(--purple);}
.badge-soon{background:var(--silver-light); color:var(--ink-soft);}

/* ---------- Coming soon ---------- */
.soon-hero{text-align:center; padding:120px 0 90px;}
.soon-icon{
  width:72px; height:72px; border-radius:18px; background:var(--purple-tint); color:var(--purple);
  display:flex; align-items:center; justify-content:center; margin:0 auto 26px;
}
.soon-icon svg{width:34px; height:34px;}
.notify-form{display:flex; gap:10px; max-width:420px; margin:28px auto 0;}
.notify-form input{
  flex:1; padding:12px 14px; border-radius:8px; border:1px solid var(--border); font-size:14px; font-family:var(--font-body);
}
.notify-form input:focus{outline:none; border-color:var(--purple);}
.form-note{font-size:12px; color:var(--ink-soft); margin-top:10px;}
.form-success{display:none; font-size:14px; color:var(--success); margin-top:14px; font-weight:500;}

/* ---------- Forms (contact/careers) ---------- */
.form-grid{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
.form-grid .full{grid-column:1/-1;}
label{display:block; font-size:13px; font-weight:500; margin-bottom:6px; color:var(--ink);}
input,textarea,select{
  width:100%; padding:11px 13px; border-radius:8px; border:1px solid var(--border);
  font-size:14px; font-family:var(--font-body); background:var(--white); color:var(--ink);
}
input:focus,textarea:focus,select:focus{outline:none; border-color:var(--purple);}
textarea{resize:vertical; min-height:110px;}

/* ---------- Footer ---------- */
footer.site-footer{background:var(--bg-alt); color:var(--ink-soft); padding:64px 0 28px; border-top:1px solid var(--border);}
.footer-top{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:36px; padding-bottom:44px; border-bottom:1px solid var(--border);}
.footer-top h4{color:var(--ink); font-size:13px; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; font-weight:500;}
.footer-top ul li{margin-bottom:10px; font-size:13.5px;}
.footer-top ul li a:hover{color:var(--purple);}
.footer-brand p{font-size:13.5px; max-width:280px; color:var(--ink-soft);}
.footer-office{font-size:12.5px; margin-bottom:12px; color:var(--ink-soft); line-height:1.5;}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:26px; font-size:12.5px; color:#9A9AA2; flex-wrap:wrap; gap:12px;}
.footer-brand .brand span{color:var(--ink);}
@media (max-width:900px){.footer-top{grid-template-columns:1fr 1fr; row-gap:32px;}}
@media (max-width:600px){.footer-top{grid-template-columns:1fr;}}

/* ---------- Utilities ---------- */
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.flex{display:flex;} .items-center{align-items:center;} .gap-8{gap:8px;} .gap-12{gap:12px;}
.text-center{text-align:center;}
.split{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center;}
@media (max-width:900px){.split{grid-template-columns:1fr; gap:32px;}}

.visual-block{
  border-radius:16px; background:var(--bg-alt); border:1px solid var(--border);
  min-height:320px; display:flex; align-items:center; justify-content:center; overflow:hidden; position:relative;
}
.visual-block.purple{background:var(--purple); }
.visual-block .glyph{width:120px; height:120px; opacity:.9;}

/* ---------- Photo gallery / moments ---------- */
.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:16px;}
@media (max-width:900px){.gallery{grid-template-columns:repeat(2,1fr);}}
@media (max-width:600px){.gallery{grid-template-columns:1fr;}}
.gallery-item{border-radius:12px; overflow:hidden; border:1px solid var(--border); background:var(--white);}
.gallery-item .photo{aspect-ratio:4/3; background:var(--bg-alt); display:flex; align-items:center; justify-content:center; color:var(--silver);}
.gallery-item .photo img{width:100%; height:100%; object-fit:cover;}
.gallery-item .cap{padding:14px 16px;}
.gallery-item .cap h4{font-size:13.5px; margin-bottom:2px;}
.gallery-item .cap p{font-size:12px; margin-bottom:0;}
.placeholder-note{position:absolute; bottom:8px; left:8px; right:8px; font-size:10px; background:rgba(26,26,29,.75); color:#fff; padding:4px 8px; border-radius:5px; text-align:center;}
.gallery-item .photo{position:relative;}

.entry-content{font-size:16px; line-height:1.75; color:var(--ink-soft);}
.entry-content h2{margin-top:1.4em; font-size:1.4rem;}
.entry-content h3{margin-top:1.2em;}
.entry-content p{margin-bottom:1.2em;}
.entry-content img{border-radius:10px; margin:1.4em 0;}
.entry-content a{color:var(--purple); text-decoration:underline;}
.entry-content ul, .entry-content ol{padding-left:1.4em; margin-bottom:1.2em;}

:focus-visible{outline:2px solid var(--purple); outline-offset:2px;}
@media (prefers-reduced-motion:reduce){*{transition:none!important; scroll-behavior:auto!important;}}
