/*
Theme Name: E Tech Solvers v2
Theme URI: https://etechsolvers.com
Author: E Tech Solvers
Description: Web, mobile app and custom software development theme for E Tech Solvers.
Version: 2.0.0
Requires PHP: 7.4
Text Domain: etechsolvers
*/

/* ───────── Tokens ───────── */
:root{
  --navy:#1A2B4A; --navy-deep:#0D1B30; --navy-line:#22334F;
  --teal:#006B7D; --teal-hover:#004E5C; --teal-mid:#0096A6; --teal-light:#00C9C8;
  --tint:#E0F7F7; --tint-text:#004E5C;
  --bg:#ffffff; --bg-soft:#F4F7FA; --line:#E3E9EF;
  --text:#1A2B4A; --muted:#4A5B70; --on-dark:#C5D1DE; --on-dark-muted:#9FB0C4;
  --radius:14px; --radius-lg:20px; --wrap:1200px;
  --font-head:'Space Grotesk',system-ui,sans-serif;
  --font-body:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;
}

/* ───────── Base ───────── */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-body);font-size:16px;line-height:1.6;color:var(--text);background:var(--bg)}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal)}a:hover{color:var(--teal-hover)}
h1,h2,h3,h4{font-family:var(--font-head);line-height:1.15;margin:0;color:inherit}
p{margin:0}
ul,ol{margin:0;padding:0}
:focus-visible{outline:3px solid var(--teal-light);outline-offset:2px}
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;padding:12px 16px;z-index:100}
.skip-link:focus{left:16px;top:16px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

.wrap{max-width:var(--wrap);margin:0 auto;padding:0 24px}
.section{padding:96px 0}
.section-soft{background:var(--bg-soft)}
.section-dark{background:var(--navy-deep);color:#fff}
.eyebrow{font-size:14px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--teal)}
.section-dark .eyebrow{color:var(--teal-light)}
.section-head{display:flex;flex-direction:column;gap:12px;max-width:680px;margin-bottom:48px}
.section-head h2{font-size:40px;font-weight:700;letter-spacing:-.01em}
.section-head p{color:var(--muted);font-size:18px}
.section-head-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:48px}
.section-head-row .section-head{margin-bottom:0}

/* ───────── Buttons ───────── */
/* Doubled class selectors so leftover "Additional CSS" (.btn) from the old theme can't override these. */
.btn.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:13px 24px;border-radius:10px;font-weight:600;font-size:16px;line-height:1.3;text-decoration:none;border:1px solid transparent;cursor:pointer;font-family:inherit;transition:background .15s,color .15s,border-color .15s}
.btn.btn-primary{background:var(--teal);color:#fff}
.btn.btn-primary:hover{background:var(--teal-hover);color:#fff}
.btn.btn-bright{background:var(--teal-light);color:var(--navy-deep)}
.btn.btn-bright:hover{background:#3FDCDB;color:var(--navy-deep)}
.btn.btn-ghost{border-color:#C9D4DF;color:var(--text);background:transparent}
.btn.btn-ghost:hover{border-color:var(--teal);color:var(--teal)}
.btn.btn-ghost-dark{border-color:#3A4D6B;color:#fff;background:transparent}
.btn.btn-ghost-dark:hover{border-color:var(--teal-light);color:var(--teal-light)}
.btn-row{display:flex;flex-wrap:wrap;gap:14px}
.link-arrow{font-weight:600;text-decoration:none}

/* ───────── Header ───────── */
#site-header{position:sticky;top:0;z-index:50;background:#fff;border-bottom:1px solid var(--line)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px}
.site-logo img,.site-logo .custom-logo{height:44px;width:auto}
.logo-text{font-family:var(--font-head);font-weight:700;font-size:22px;color:var(--navy);text-decoration:none}
.primary-nav ul{list-style:none;display:flex;align-items:center;gap:28px}
.primary-nav a{color:var(--text);text-decoration:none;font-weight:500;font-size:15px}
.primary-nav a:hover,.primary-nav .current a{color:var(--teal)}
.primary-nav .nav-cta a{background:var(--teal);color:#fff;padding:12px 20px;border-radius:10px;font-weight:600}
.primary-nav .nav-cta a:hover{background:var(--teal-hover);color:#fff}
.nav-toggle{display:none;width:48px;height:48px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer;align-items:center;justify-content:center}
.nav-toggle svg{width:22px;height:22px}
@media (max-width:900px){
  .nav-toggle{display:inline-flex}
  .primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);padding:8px 24px 20px}
  .nav-open .primary-nav{display:block}
  .primary-nav ul{flex-direction:column;align-items:stretch;gap:0}
  .primary-nav li a{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  .primary-nav .nav-cta{margin-top:14px}
  .primary-nav .nav-cta a{text-align:center;border-bottom:0}
}

/* ───────── Hero ───────── */
.hero{background:var(--navy-deep);color:#fff}
.hero-inner{display:flex;flex-wrap:wrap;align-items:center;gap:56px;padding-top:88px;padding-bottom:96px}
.hero-copy{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:24px}
.hero-copy .eyebrow{color:var(--teal-light)}
.hero h1{font-size:56px;line-height:1.08;font-weight:700;letter-spacing:-.02em}
.hero-lead{font-size:19px;color:var(--on-dark);max-width:560px}
.hero-visual{flex:1 1 440px;min-width:0;display:flex;justify-content:center}
.page-hero{background:var(--navy-deep);color:#fff;padding:80px 0 72px}
.page-hero h1{font-size:48px;font-weight:700;letter-spacing:-.02em;max-width:820px}
.page-hero p{color:var(--on-dark);font-size:19px;max-width:680px;margin-top:18px}
.page-hero .eyebrow{display:block;margin-bottom:16px}

/* Mock app window (used in hero and portfolio when no screenshot) */
.mock{width:100%;max-width:520px;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.35);color:var(--text)}
.mock-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;background:var(--bg-soft);border-bottom:1px solid var(--line)}
.mock-bar i{width:10px;height:10px;border-radius:50%;background:#D3DCE6;display:block}
.mock-bar span{margin-left:12px;font-size:12px;color:#5B6B7F}
.mock-body{display:flex}
.mock-side{width:120px;background:var(--navy);padding:18px 14px;display:flex;flex-direction:column;gap:12px;font-size:12px;color:var(--on-dark-muted)}
.mock-side b{color:var(--teal-light);font-weight:600}
.mock-main{flex:1;padding:20px;display:flex;flex-direction:column;gap:16px;min-width:0}
.mock-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.mock-kpis div{background:var(--bg-soft);border-radius:10px;padding:12px;font-size:11px;color:#5B6B7F}
.mock-kpis div:last-child{background:var(--tint);color:var(--teal)}
.mock-kpis em{display:block;height:10px;width:60%;margin-top:8px;border-radius:4px;background:#D3DCE6;font-style:normal}
.mock-kpis div:last-child em{background:#8FD3D8}
.mock-chart{display:flex;align-items:flex-end;gap:8px;height:110px;padding:0 4px;border-bottom:1px solid var(--line)}
.mock-chart i{flex:1;background:#B8E6E9;border-radius:4px 4px 0 0;display:block}
.mock-chart i.hi{background:var(--teal-mid)}.mock-chart i.top{background:var(--teal)}
.mock-lines{display:flex;flex-direction:column;gap:8px}
.mock-lines i{display:block;height:10px;background:#EEF2F6;border-radius:4px}

/* ───────── Cards / grids ───────── */
.grid{display:grid;gap:20px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:24px}
.grid-work{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
@media (max-width:980px){.grid-work{grid-template-columns:minmax(0,1fr)}}
@media (max-width:360px){.grid-3{grid-template-columns:minmax(0,1fr)}}
.card{border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:12px;background:#fff}
.card h3{font-size:21px;font-weight:600}
.card p{color:var(--muted);font-size:15px}
.card .icon{width:32px;height:32px;color:var(--teal)}
.card a.link-arrow{margin-top:auto;padding-top:6px;font-size:15px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{font-size:12px;padding:5px 10px;border-radius:999px;background:var(--tint);color:var(--tint-text)}

/* Work cards */
.work-card{background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column}
.work-media{height:220px;background:var(--navy);display:flex;align-items:center;justify-content:center;overflow:hidden}
.work-media img{width:100%;height:100%;object-fit:cover;object-position:top left}
.work-media.v2{background:var(--teal)}.work-media.v3{background:var(--navy-deep)}
.work-media-label{font-family:var(--font-head);font-size:24px;font-weight:700;color:#fff;opacity:.9;padding:24px;text-align:center}
.work-body{padding:28px;display:flex;flex-direction:column;gap:12px;flex:1}
.work-tag{font-size:13px;font-weight:600;color:var(--teal)}
.work-body h3{font-size:22px;font-weight:600}
.work-body p{color:var(--muted);font-size:15px}

/* Process */
.steps{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.steps li{display:flex;flex-direction:column;gap:10px;padding-top:20px;border-top:3px solid var(--teal-mid)}
.steps li:first-child{border-top-color:var(--teal)}
.steps li:nth-child(n+4){border-top-color:var(--teal-light)}
.steps .num{font-family:var(--font-head);font-weight:700;font-size:15px;color:var(--teal)}
.steps h3{font-size:19px;font-weight:600}
.steps p{color:var(--muted);font-size:15px}

/* Why band */
.why-band{background:var(--navy);color:#fff;border-radius:var(--radius-lg);padding:56px 48px;display:flex;flex-wrap:wrap;gap:48px}
.why-intro{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:14px}
.why-intro h2{font-size:34px;line-height:1.2;font-weight:700}
.why-intro p{color:var(--on-dark)}
.why-list{flex:2 1 520px;min-width:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:28px}
.why-list h3{font-family:var(--font-body);font-size:17px;font-weight:600;color:var(--teal-light);margin-bottom:6px}
.why-list p{color:var(--on-dark);font-size:15px}

/* CTA band */
.cta-band{border:1px solid var(--line);border-radius:var(--radius-lg);padding:56px 48px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:32px}
.cta-band > div:first-child{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:10px}
.cta-band h2{font-size:36px;font-weight:700}
.cta-band p{color:var(--muted);font-size:17px}
.section-tight{padding:0 0 96px}

/* ───────── Services page ───────── */
.service-detail{display:flex;flex-wrap:wrap;gap:48px;padding:56px 0;border-top:1px solid var(--line)}
.service-detail:first-child{border-top:0;padding-top:0}
.service-detail-head{flex:1 1 360px;min-width:0;display:flex;flex-direction:column;gap:14px}
.service-detail-head .icon{width:40px;height:40px;color:var(--teal)}
.service-detail-head h2{font-size:32px;font-weight:700}
.service-detail-head p{color:var(--muted);font-size:17px}
.service-detail-list{flex:1 1 420px;min-width:0}
.ticks{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px 24px}
.ticks li{position:relative;padding-left:30px;font-size:15px}
.ticks li::before{content:"";position:absolute;left:0;top:3px;width:18px;height:18px;border-radius:50%;background:var(--tint)}
.ticks li::after{content:"";position:absolute;left:6px;top:7px;width:6px;height:9px;border:solid var(--teal);border-width:0 2px 2px 0;transform:rotate(45deg)}

.faq{display:flex;flex-direction:column;gap:12px;max-width:860px}
.faq details{border:1px solid var(--line);border-radius:12px;background:#fff}
.faq summary{cursor:pointer;padding:20px 24px;font-weight:600;font-size:17px;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:22px;line-height:1;color:var(--teal)}
.faq details[open] summary::after{content:"−"}
.faq details > div{padding:0 24px 20px;color:var(--muted)}

/* ───────── Portfolio page ───────── */
.case{display:flex;flex-wrap:wrap;gap:48px;align-items:center;padding:64px 0;border-top:1px solid var(--line)}
.case:first-child{border-top:0;padding-top:0}
.case:nth-child(even) .case-media{order:2}
.case-media{flex:1 1 460px;min-width:0;display:flex;justify-content:center}
.case-media img{border-radius:16px;border:1px solid var(--line);box-shadow:0 20px 40px rgba(13,27,48,.12)}
.case-copy{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:16px}
.case-copy h2{font-size:32px;font-weight:700}
.case-copy > p{color:var(--muted);font-size:17px}
.case-copy h3{font-family:var(--font-body);font-size:15px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--teal);margin-top:8px}

/* ───────── About page ───────── */
.split{display:flex;flex-wrap:wrap;gap:56px}
.split > *{flex:1 1 420px;min-width:0}
.prose-lg p{font-size:18px;color:var(--muted);margin-bottom:18px}
.prose-lg p:last-child{margin-bottom:0}

/* ───────── Contact page ───────── */
.contact-grid{display:flex;flex-wrap:wrap;gap:48px}
.contact-info{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:20px}
.contact-info h2{font-size:30px;font-weight:700}
.contact-info > p{color:var(--muted)}
.contact-line{display:flex;gap:14px;align-items:flex-start}
.contact-line svg{width:22px;height:22px;flex:none;color:var(--teal);margin-top:2px}
.contact-line strong{display:block;font-size:14px;color:var(--muted);font-weight:500}
.contact-line a,.contact-line span{font-weight:600;color:var(--text);text-decoration:none}
.contact-form-wrap{flex:1.4 1 480px;min-width:0;border:1px solid var(--line);border-radius:var(--radius-lg);padding:36px}
.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px}
.form-group{display:flex;flex-direction:column;gap:6px;margin-bottom:18px}
.form-group label{font-size:14px;font-weight:600}
.form-group input,.form-group select,.form-group textarea{font:inherit;font-size:16px;padding:12px 14px;border:1px solid #C9D4DF;border-radius:10px;background:#fff;color:var(--text);min-height:48px;width:100%}
.form-group textarea{min-height:140px;resize:vertical}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--teal);box-shadow:0 0 0 3px rgba(0,107,125,.15)}
#form-message{margin-top:14px;font-weight:600;min-height:24px;text-align:center}
#form-message.ok{color:var(--teal)}#form-message.err{color:#B42318}

/* ───────── Blog ───────── */
.blog-search{max-width:520px;margin:0 0 40px}
.blog-search input{width:100%;font:inherit;font-size:16px;padding:14px 18px;border:1px solid #C9D4DF;border-radius:10px;min-height:48px}
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.post-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;background:#fff}
.post-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.post-card-body{padding:24px;display:flex;flex-direction:column;gap:10px;flex:1}
.post-card time{font-size:13px;color:var(--muted)}
.post-card h2{font-size:20px;font-weight:600;line-height:1.3}
.post-card h2 a{color:var(--text);text-decoration:none}
.post-card h2 a:hover{color:var(--teal)}
.post-card p{color:var(--muted);font-size:15px}
.post-card .link-arrow{margin-top:auto;font-size:15px}
.pagination{display:flex;flex-wrap:wrap;gap:8px;margin-top:48px}
.pagination .page-numbers{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1px solid var(--line);border-radius:10px;text-decoration:none;color:var(--text)}
.pagination .current{background:var(--teal);border-color:var(--teal);color:#fff}

.article-hero{background:var(--navy-deep);color:#fff;padding:72px 0 64px}
.article-hero h1{font-size:44px;font-weight:700;letter-spacing:-.01em;max-width:860px}
.article-hero time{display:block;color:var(--on-dark-muted);margin-top:16px}
.article{max-width:780px;margin:0 auto;padding:64px 24px 32px}
.article-thumb{border-radius:16px;margin-bottom:36px;width:100%}
.entry-content{font-size:18px;line-height:1.75;color:#2A3B55}
.entry-content > *{margin:0 0 1.2em}
.entry-content h2{font-size:30px;margin-top:1.8em}
.entry-content h3{font-size:23px;margin-top:1.6em}
.entry-content ul,.entry-content ol{padding-left:1.4em}
.entry-content li{margin-bottom:.4em}
.entry-content img{border-radius:12px}
.entry-content blockquote{border-left:4px solid var(--teal-light);margin-left:0;padding-left:20px;color:var(--muted)}
.entry-content table{border-collapse:collapse;width:100%;display:block;overflow-x:auto}
.entry-content th,.entry-content td{border:1px solid var(--line);padding:10px 12px;text-align:left}
.entry-content pre{background:var(--bg-soft);padding:16px;border-radius:10px;overflow-x:auto}
.article-cta{max-width:780px;margin:0 auto 96px;padding:0 24px}
.article-cta .cta-band{padding:40px 36px}
.article-cta .cta-band h2{font-size:28px}

/* ───────── Footer ───────── */
#site-footer{background:var(--navy-deep);color:var(--on-dark-muted);padding:64px 0 32px}
.footer-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:40px}
.footer-brand{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:14px}
.footer-brand .logo-text{color:#fff}
.footer-brand p{max-width:340px;font-size:15px}
.footer-cols{display:flex;flex-wrap:wrap;gap:64px;font-size:15px}
.footer-cols h2{font-family:var(--font-body);font-size:15px;font-weight:600;color:#fff;margin-bottom:12px}
.footer-cols ul{list-style:none;display:flex;flex-direction:column;gap:10px}
.footer-cols a{color:var(--on-dark-muted);text-decoration:none}
.footer-cols a:hover{color:var(--teal-light)}
.social{display:flex;gap:10px;margin-top:6px}
.social a{width:44px;height:44px;border-radius:10px;border:1px solid var(--navy-line);display:inline-flex;align-items:center;justify-content:center;color:#fff}
.social a:hover{border-color:var(--teal-light);color:var(--teal-light)}
.social svg{width:18px;height:18px;fill:currentColor}
.footer-bottom{margin-top:48px;padding-top:24px;border-top:1px solid var(--navy-line);font-size:13px}

/* ───────── Responsive ───────── */
@media (max-width:760px){
  .section{padding:64px 0}
  .section-tight{padding:0 0 64px}
  .hero-inner{padding-top:56px;padding-bottom:64px;gap:40px}
  .hero h1{font-size:38px}
  .page-hero{padding:56px 0 48px}
  .page-hero h1{font-size:34px}
  .section-head h2{font-size:30px}
  .why-band,.cta-band{padding:36px 24px}
  .why-intro h2,.cta-band h2{font-size:28px}
  .service-detail-head h2,.case-copy h2{font-size:26px}
  .article-hero h1{font-size:30px}
  .entry-content{font-size:17px}
  .contact-form-wrap{padding:24px}
  .mock-side{display:none}
  .case:nth-child(even) .case-media{order:0}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
