/* ==========================================================================
   IT TOOLS TECH — GLOBAL STYLESHEET
   Design system: colors, typography, reusable components.
   Elementor-safe: all classes are scoped/prefixed, no generic tag overrides
   that would clash with Elementor's own widget styles.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root{
  --navy:#152B54;
  --navy-dark:#0E1D3A;
  --amber:#FFB020;
  --amber-dark:#FF8A3D;
  --teal:#12A594;
  --bg:#F3F6FB;
  --card:#FFFFFF;
  --text:#1B2430;
  --muted:#5B6577;
  --border:#E2E8F2;
  --radius:16px;
  --shadow:0 4px 18px rgba(20,40,80,.06);
  --shadow-hover:0 10px 30px rgba(20,40,80,.12);
  --font-heading:'Poppins', sans-serif;
  --font-body:'Inter', sans-serif;
  --header-h:72px;
}

[data-theme="dark"]{
  --bg:#0E1420;
  --card:#161F32;
  --text:#EAF0FB;
  --muted:#9AA7C2;
  --border:#26314A;
  --shadow:0 4px 18px rgba(0,0,0,.35);
  --shadow-hover:0 10px 30px rgba(0,0,0,.5);
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  transition:background .25s ease, color .25s ease;
}
h1,h2,h3,h4{font-family:var(--font-heading); margin:0 0 12px; font-weight:700; line-height:1.25;}
p{margin:0 0 12px; color:var(--muted);}
a{text-decoration:none; color:inherit;}
img{max-width:100%; display:block;}
ul{list-style:none; margin:0; padding:0;}
button{font-family:inherit; cursor:pointer;}
.visually-hidden{
  position:absolute !important; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap;
}

.container{max-width:1200px; margin:0 auto; padding:0 24px;}
.container-narrow{max-width:820px;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:12px; font-weight:600; font-size:15px;
  border:none; transition:.2s ease; cursor:pointer;
}
.btn-primary{background:var(--amber); color:var(--navy-dark);}
.btn-primary:hover{background:var(--amber-dark); transform:translateY(-2px); box-shadow:var(--shadow-hover);}
.btn-outline{background:transparent; color:var(--text); border:1.5px solid var(--border);}
.btn-outline:hover{border-color:var(--teal); color:var(--teal); transform:translateY(-2px);}
.btn-small{padding:10px 18px; font-size:14px; width:100%;}

.tag{
  color:var(--teal); font-weight:700; font-size:13px; letter-spacing:.06em; text-transform:uppercase;
}
.text-accent{color:var(--amber);}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:200;
  background:var(--card);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
}
.header-inner{
  height:var(--header-h);
  display:flex; align-items:center; justify-content:space-between; gap:20px;
}
.logo{font-family:var(--font-heading); font-weight:800; font-size:20px; display:flex; align-items:center;}
.logo-mark{
  background:var(--navy); color:#fff; padding:4px 8px; border-radius:8px; margin-right:6px; font-size:16px;
}
.logo-accent{color:var(--amber);}

.main-nav{display:flex; gap:6px;}
.main-nav a{
  padding:10px 12px; border-radius:8px; font-weight:600; font-size:14.5px; color:var(--muted);
  transition:.15s;
}
.main-nav a:hover, .main-nav a.active{background:rgba(18,165,148,.1); color:var(--teal);}

.header-actions{display:flex; align-items:center; gap:6px;}
.icon-btn{
  background:transparent; border:1.5px solid var(--border); color:var(--text);
  width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  transition:.15s;
}
.icon-btn:hover{border-color:var(--teal); color:var(--teal);}
.icon-moon{display:none;}
[data-theme="dark"] .icon-sun{display:none;}
[data-theme="dark"] .icon-moon{display:block;}

.header-search{
  max-height:0; overflow:hidden; transition:max-height .25s ease; border-bottom:1px solid transparent;
}
.header-search.open{max-height:90px; border-bottom-color:var(--border);}
.header-search .container{padding-top:14px; padding-bottom:14px;}
.header-search input{
  width:100%; padding:12px 16px; border-radius:10px; border:1.5px solid var(--border);
  background:var(--bg); color:var(--text); font-size:15px;
}

/* ---------------- Global Search Dropdown (site-search.js) ---------------- */
.site-search-wrap{position:relative;}
.site-search-dropdown{
  position:absolute; top:calc(100% + 6px); left:0; right:0; z-index:50;
  background:var(--card); border:1px solid var(--border); border-radius:12px;
  box-shadow:var(--shadow-hover); overflow:hidden; max-height:340px; overflow-y:auto;
}
.site-search-item{
  display:flex; align-items:center; gap:12px; padding:12px 16px; text-decoration:none;
  color:var(--text); border-bottom:1px solid var(--border);
}
.site-search-item:last-child{border-bottom:none;}
.site-search-item:hover, .site-search-item.active{background:rgba(18,165,148,.08);}
.site-search-icon{font-size:18px; flex-shrink:0;}
.site-search-name{display:block; font-weight:600; font-size:14px;}
.site-search-cat{display:block; font-size:11.5px; color:var(--muted);}
.site-search-empty{padding:14px 16px; font-size:13px; color:var(--muted);}
mark{background:rgba(255,176,32,.35); color:inherit; border-radius:3px; padding:0 2px;}

.hamburger{
  display:none; flex-direction:column; gap:5px; background:none; border:none; padding:8px;
}
.hamburger span{width:22px; height:2.5px; background:var(--text); border-radius:2px; transition:.2s;}

.mobile-drawer{
  position:fixed; top:0; right:-300px; width:280px; height:100%; background:var(--card);
  z-index:300; padding:90px 24px 24px; transition:right .3s ease; box-shadow:var(--shadow-hover);
}
.mobile-drawer.open{right:0;}
.mobile-drawer a{display:block; padding:12px 0; font-weight:600; border-bottom:1px solid var(--border);}
.drawer-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:290; opacity:0; pointer-events:none; transition:.2s;
}
.drawer-overlay.open{opacity:1; pointer-events:auto;}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{padding:64px 0; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center;}
.eyebrow{
  display:inline-block; background:rgba(255,176,32,.12); color:var(--amber-dark);
  border:1px solid rgba(255,176,32,.35); padding:6px 14px; border-radius:999px;
  font-weight:700; font-size:13px; margin-bottom:18px;
}
.hero h1{font-size:clamp(30px,4.5vw,46px); margin-bottom:18px;}
.hero-sub{font-weight:600; color:var(--text);}
.hero-actions{display:flex; gap:14px; margin-top:24px; flex-wrap:wrap;}
.hero-svg{width:100%; height:auto; animation:float 5s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0);}50%{transform:translateY(-14px);}}

/* ==========================================================================
   SEARCH SECTION
   ========================================================================== */
.search-section{padding:0 0 60px;}
.search-box{
  max-width:680px; margin:0 auto; display:flex; align-items:center; gap:12px;
  background:var(--card); border:1.5px solid var(--border); border-radius:14px;
  padding:14px 20px; box-shadow:var(--shadow);
}
.search-box svg{color:var(--muted); flex-shrink:0;}
.search-box input{
  flex:1; border:none; background:transparent; font-size:16px; color:var(--text);
}
.search-box:focus-within{outline:2px solid var(--teal); outline-offset:2px;}
.search-examples{
  max-width:680px; margin:16px auto 0; display:flex; flex-wrap:wrap; gap:10px; align-items:center;
  justify-content:center; font-size:13.5px; color:var(--muted);
}
.search-examples a{
  background:var(--card); border:1px solid var(--border); padding:6px 12px; border-radius:999px;
  font-weight:600; color:var(--text); transition:.15s;
}
.search-examples a:hover{border-color:var(--teal); color:var(--teal);}

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section{padding:70px 0;}
.section-alt{background:linear-gradient(180deg, transparent, rgba(21,43,84,.03));}
[data-theme="dark"] .section-alt{background:linear-gradient(180deg, transparent, rgba(255,255,255,.02));}
.section-head{max-width:640px; margin:0 auto 40px; text-align:center;}
.section-head h2{font-size:30px; margin-top:8px;}

/* ---------- Category Grid ---------- */
.category-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.category-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:28px; box-shadow:var(--shadow); transition:.2s ease; position:relative; overflow:hidden;
}
.category-card::before{
  content:""; position:absolute; inset:0; background:linear-gradient(135deg, rgba(255,176,32,.08), rgba(18,165,148,.06));
  opacity:0; transition:.2s;
}
.category-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-hover); border-color:var(--teal);}
.category-card:hover::before{opacity:1;}
.category-card.is-soon{opacity:.75;}
.cat-icon{font-size:34px; margin-bottom:14px; position:relative; z-index:1;}
.category-card h3{position:relative; z-index:1;}
.category-card p{position:relative; z-index:1; font-size:14.5px;}
.cat-count{
  position:relative; z-index:1; display:inline-block; background:rgba(18,165,148,.1); color:var(--teal);
  font-size:12.5px; font-weight:700; padding:4px 10px; border-radius:999px; margin-bottom:12px;
}
.cat-cta{position:relative; z-index:1; display:block; font-weight:700; color:var(--navy); font-size:14px;}
[data-theme="dark"] .cat-cta{color:var(--amber);}

/* ---------- Tool Grid ---------- */
.tool-grid{display:grid; grid-template-columns:repeat(5,1fr); gap:20px;}
.tool-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:24px; box-shadow:var(--shadow); transition:.2s ease; text-align:center;
}
.tool-card:hover{transform:translateY(-6px); box-shadow:var(--shadow-hover);}
.tool-icon{font-size:32px; margin-bottom:10px;}
.tool-icon-img{display:block; margin-bottom:10px;}
.tool-card h3{font-size:16px; margin-bottom:6px;}
.tool-card p{font-size:13.5px; min-height:40px;}
.center-cta{text-align:center; margin-top:36px;}

/* ---------- Feature Grid ---------- */
.feature-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.feature-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px; text-align:center; box-shadow:var(--shadow); transition:.2s;
}
.feature-card:hover{transform:translateY(-4px); box-shadow:var(--shadow-hover);}
.f-icon{font-size:30px; margin-bottom:10px;}

/* ---------- Steps ---------- */
.steps-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:26px;}
.step-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:30px; text-align:center; box-shadow:var(--shadow); position:relative;
}
.step-num{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--navy); color:#fff; width:32px; height:32px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px;
}
.step-icon{font-size:30px; margin:14px 0 8px;}

/* ---------- Testimonials ---------- */
.testimonial-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.testimonial-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow);
}
.testimonial-card p{font-style:italic; color:var(--text); margin-bottom:18px;}
.t-author{display:flex; align-items:center; gap:12px;}
.t-avatar{
  width:42px; height:42px; border-radius:50%; background:var(--teal); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; flex-shrink:0;
}
.t-author strong{display:block; font-size:14.5px; color:var(--text);}
.t-author span{font-size:12.5px; color:var(--muted);}

/* ---------- FAQ ---------- */
.faq-list{display:flex; flex-direction:column; gap:12px;}
.faq-item{
  background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden;
}
.faq-question{
  width:100%; text-align:left; background:none; border:none; padding:18px 22px;
  font-weight:600; font-size:15.5px; color:var(--text); display:flex; justify-content:space-between; align-items:center;
}
.faq-toggle{font-size:20px; color:var(--teal); transition:.2s;}
.faq-item.open .faq-toggle{transform:rotate(45deg);}
.faq-answer{max-height:0; overflow:hidden; transition:max-height .25s ease;}
.faq-answer p{padding:0 22px 18px; margin:0; font-size:14.5px;}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{background:var(--navy-dark); color:#B9C5DE; margin-top:40px;}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr 1.3fr; gap:30px; padding:60px 24px 40px;
}
.footer-col h4{color:#fff; font-size:15px; margin-bottom:16px;}
.footer-col a{display:block; padding:5px 0; font-size:14px; color:#B9C5DE; transition:.15s;}
.footer-col a:hover{color:var(--amber);}
.logo-footer{color:#fff;}
.footer-about p{font-size:13.5px; margin:14px 0;}
.social-icons{display:flex; gap:10px;}
.social-icons a{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; color:#fff; padding:0;
}
.social-icons a:hover{background:var(--amber); color:var(--navy-dark);}
.newsletter-form{display:flex; gap:8px; margin-top:6px;}
.newsletter-form input{
  flex:1; padding:11px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.06); color:#fff; font-size:13.5px;
}
.newsletter-form input::placeholder{color:#8DA0C4;}
.newsletter-msg{font-size:13px; color:var(--teal); margin-top:8px; min-height:18px;}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); padding:20px 0; text-align:center; font-size:13px;
}

/* ==========================================================================
   SITE-WIDE SEARCH DROPDOWN (used in header + homepage search sections)
   ========================================================================== */
.site-search-wrap{position:relative;}
.site-search-dropdown{
  position:absolute; top:100%; left:0; right:0; margin-top:8px; z-index:50;
  background:var(--card); border:1px solid var(--border); border-radius:12px;
  box-shadow:var(--shadow-hover); overflow:hidden; max-height:320px; overflow-y:auto;
}
.site-search-item{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid var(--border); font-size:14px;}
.site-search-item:last-child{border-bottom:none;}
.site-search-item:hover, .site-search-item.active{background:rgba(18,165,148,.08);}
.site-search-item-name{font-weight:600; color:var(--text);}
.site-search-item-cat{font-size:11.5px; color:var(--muted); background:var(--bg); padding:3px 9px; border-radius:999px; white-space:nowrap;}
.site-search-item mark{background:rgba(255,176,32,.35); color:inherit; border-radius:3px;}
.site-search-empty{padding:16px; font-size:13px; color:var(--muted); text-align:center;}

/* ==========================================================================
   SHARED STATIC PAGE UTILITIES (about/contact/legal/404/category pages)
   ========================================================================== */
.page-hero{
  background:linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color:#fff; padding:56px 0 44px; text-align:center; margin-bottom:40px;
}
.page-hero h1{color:#fff; font-size:clamp(28px,4vw,40px);}
.page-hero p{color:#CFE0F5; max-width:620px; margin:0 auto; font-size:16.5px;}
.content-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:32px; box-shadow:var(--shadow); margin-bottom:24px;
}
.content-card h2{font-size:20px; margin-top:28px; margin-bottom:12px;}
.content-card h2:first-child{margin-top:0;}
.content-card ul{list-style:disc; padding-left:22px; margin-bottom:16px;}
.content-card li{margin-bottom:6px; color:var(--muted);}
@media (max-width:1024px){
  .tool-grid{grid-template-columns:repeat(3,1fr);}
  .category-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:860px){
  .main-nav{display:none;}
  .hamburger{display:flex;}
  .hero-grid{grid-template-columns:1fr;}
  .hero-visual{order:-1; max-width:320px; margin:0 auto;}
  .feature-grid, .steps-grid, .testimonial-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:640px){
  .tool-grid{grid-template-columns:1fr 1fr;}
  .category-grid{grid-template-columns:1fr;}
  .feature-grid, .steps-grid, .testimonial-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .hero-actions{flex-direction:column;}
  .btn{width:100%;}
}
