/*
Theme Name: WebsCube
Theme URI: https://webscube.com
Author: WebsCube
Author URI: https://webscube.com
Description: A fast, mobile-first WordPress theme built for the WebsCube digital marketing agency — SEO, GEO, AEO, social media marketing and web design/creation. Multi-page architecture with custom Services, Portfolio, About and Contact templates.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: webscube
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. TOKENS
========================================================= */
:root{
  --ink:#12141c;
  --ink-soft:#2a2d3a;
  --paper:#f5f5f1;
  --paper-dim:#eceae3;
  --line: rgba(18,20,28,.12);
  --line-strong: rgba(18,20,28,.28);
  --blue:#2f4bff;
  --blue-dark:#1c33cc;
  --volt:#d6ff3f;
  --muted:#5b5e6b;
  --white:#ffffff;

  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
  --speed: .2s;
}

/* =========================================================
   1. RESET / BASE
========================================================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p,figure{ margin:0; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:1rem; }

h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:600;
  line-height:1.08;
  letter-spacing:-.01em;
  color:var(--ink);
}

:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:3px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 var(--gutter);
}

.section{
  padding:clamp(56px,9vw,120px) 0;
}
.section-tight{ padding:clamp(40px,6vw,72px) 0; }

.eyebrow{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.8125rem;
  color:var(--blue);
  margin-bottom:14px;
  display:block;
}

.section-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:clamp(32px,5vw,56px);
}
.section-head h2{ font-size:clamp(1.7rem,3.4vw,2.6rem); max-width:640px; }
.section-head .lede{ color:var(--muted); max-width:420px; font-size:1.0625rem; }

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 26px;
  border-radius:var(--radius);
  font-weight:600;
  font-size:.95rem;
  border:1.5px solid transparent;
  transition:transform var(--speed) ease, background var(--speed) ease, color var(--speed) ease, border-color var(--speed) ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--ink); color:var(--paper); }
.btn-primary:hover{ background:var(--blue); transform:translateY(-2px); }
.btn-outline{ border-color:var(--line-strong); color:var(--ink); }
.btn-outline:hover{ border-color:var(--ink); background:var(--ink); color:var(--paper); transform:translateY(-2px); }
.btn-light{ background:var(--paper); color:var(--ink); }
.btn-light:hover{ background:var(--volt); transform:translateY(-2px); }

/* =========================================================
   2. HEADER
========================================================= */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(245,245,241,.92);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  max-width:var(--maxw);
  margin:0 auto;
  padding:16px var(--gutter);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.site-branding{ display:flex; align-items:center; }
.site-branding a{ display:flex; align-items:center; gap:10px; }
.site-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.35rem;
  letter-spacing:-.02em;
  color:var(--ink);
}
.site-title .dot{ color:var(--blue); }
.custom-logo{ max-height:40px; width:auto; }

.primary-nav-toggle{
  display:flex; align-items:center; justify-content:center;
  width:44px; height:44px;
  background:transparent; border:1.5px solid var(--line-strong); border-radius:var(--radius);
}
.primary-nav-toggle .bar{ width:18px; height:2px; background:var(--ink); position:relative; }
.primary-nav-toggle .bar::before,.primary-nav-toggle .bar::after{
  content:''; position:absolute; left:0; width:18px; height:2px; background:var(--ink);
}
.primary-nav-toggle .bar::before{ top:-6px; }
.primary-nav-toggle .bar::after{ top:6px; }

.primary-navigation{
  position:fixed; inset:0 0 0 auto;
  width:min(86vw,360px);
  height:100vh;
  background:var(--ink);
  color:var(--paper);
  padding:96px 32px 32px;
  transform:translateX(100%);
  transition:transform .32s ease;
  z-index:99;
  overflow-y:auto;
}
.primary-navigation.is-open{ transform:translateX(0); }
.primary-navigation ul{ display:flex; flex-direction:column; gap:4px; }
.primary-navigation a{
  display:block; padding:14px 0; font-family:var(--font-display); font-size:1.5rem; border-bottom:1px solid rgba(245,245,241,.12);
}
.primary-navigation .cta-wrap{ margin-top:28px; }
.nav-scrim{
  position:fixed; inset:0; background:rgba(18,20,28,.4); opacity:0; pointer-events:none;
  transition:opacity .3s ease; z-index:98;
}
.nav-scrim.is-open{ opacity:1; pointer-events:auto; }
.header-cta{ display:none; }

@media (min-width:960px){
  .header-inner{ padding:20px var(--gutter); }
  .primary-nav-toggle{ display:none; }
  .primary-navigation{
    position:static; width:auto; height:auto; background:transparent; color:var(--ink);
    padding:0; transform:none; overflow:visible;
  }
  .primary-navigation ul{ flex-direction:row; align-items:center; gap:8px; }
  .primary-navigation a{
    border-bottom:0; font-family:var(--font-body); font-weight:500; font-size:.95rem; padding:10px 16px; border-radius:var(--radius);
    transition:background var(--speed) ease;
  }
  .primary-navigation a:hover{ background:var(--paper-dim); }
  .primary-navigation .cta-wrap{ display:none; }
  .nav-scrim{ display:none; }
  .header-cta{ display:inline-flex; }
}

/* =========================================================
   3. HERO
========================================================= */
.hero{
  padding:clamp(48px,8vw,80px) 0 clamp(56px,9vw,96px);
  border-bottom:1px solid var(--line);
}
.hero-grid{
  display:grid;
  gap:48px;
  align-items:center;
}
.hero-copy .eyebrow{ display:flex; align-items:center; gap:10px; }
.hero-copy .eyebrow::before{ content:''; width:8px; height:8px; background:var(--volt); border:1px solid var(--ink); }
.hero h1{
  font-size:clamp(2.3rem,5.4vw,4rem);
  max-width:14ch;
}
.hero h1 .accent{ color:var(--blue); }
.hero-copy p.lede{
  margin-top:22px; font-size:1.125rem; color:var(--muted); max-width:46ch;
}
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.hero-services{
  display:flex; flex-wrap:wrap; gap:10px; margin-top:36px;
}
.hero-services span{
  border:1px solid var(--line-strong); border-radius:100px; padding:7px 14px; font-size:.8125rem; color:var(--muted); font-weight:500;
}
.hero-figure{ position:relative; }
.hero-figure svg{ width:100%; height:auto; }

@media (min-width:900px){
  .hero-grid{ grid-template-columns:1.05fr .95fr; gap:40px; }
}

/* =========================================================
   4. STATS STRIP
========================================================= */
.stats-strip{
  border-bottom:1px solid var(--line);
  background:var(--paper-dim);
}
.stats-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:1px;
  background:var(--line);
}
.stat{
  background:var(--paper-dim);
  padding:28px var(--gutter);
}
.stat .num{ font-family:var(--font-display); font-size:clamp(1.8rem,3vw,2.4rem); font-weight:700; }
.stat .label{ color:var(--muted); font-size:.875rem; margin-top:4px; }
@media (min-width:720px){
  .stats-grid{ grid-template-columns:repeat(4,1fr); }
}

/* =========================================================
   5. SERVICES LIST (not cards — bordered rows)
========================================================= */
.services-list{ border-top:1px solid var(--line); }
.service-row{
  display:grid;
  gap:16px;
  padding:32px 0;
  border-bottom:1px solid var(--line);
  transition:background var(--speed) ease;
}
.service-row:hover{ background:rgba(47,75,255,.035); }
.service-row .num{
  font-family:var(--font-display); color:var(--line-strong); font-size:1rem; font-weight:600;
}
.service-row h3{ font-size:1.35rem; }
.service-row h3 a{ display:inline-flex; align-items:center; gap:10px; }
.service-row h3 a:hover{ color:var(--blue); }
.service-row p{ color:var(--muted); max-width:60ch; }
.service-row .tag{
  align-self:start; font-size:.75rem; font-weight:600; color:var(--blue); border:1px solid var(--blue); border-radius:100px; padding:4px 10px; white-space:nowrap;
}

@media (min-width:820px){
  .service-row{
    grid-template-columns:60px minmax(0,1fr) 210px auto;
    align-items:start;
  }
}

/* =========================================================
   6. PROCESS (legit numbered sequence)
========================================================= */
.process-section{ background:var(--ink); color:var(--paper); }
.process-section .section-head h2,
.process-section .eyebrow{ color:var(--paper); }
.process-section .eyebrow{ color:var(--volt); }
.process-section .lede{ color:rgba(245,245,241,.65); }
.process-grid{
  display:grid; gap:32px;
}
.process-step{ border-top:1px solid rgba(245,245,241,.18); padding-top:20px; }
.process-step .step-index{ font-family:var(--font-display); font-size:2.2rem; color:var(--volt); }
.process-step h3{ color:var(--paper); margin-top:10px; font-size:1.2rem; }
.process-step p{ color:rgba(245,245,241,.65); margin-top:8px; }
@media (min-width:780px){
  .process-grid{ grid-template-columns:repeat(4,1fr); }
}

/* =========================================================
   7. CASE STUDIES / PORTFOLIO
========================================================= */
.work-grid{ display:grid; gap:28px; }
.work-card{
  border:1px solid var(--line);
  display:flex; flex-direction:column; overflow:hidden; background:var(--white);
}
.work-card .thumb{ aspect-ratio:16/10; overflow:hidden; background:var(--paper-dim); }
.work-card .thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.work-card:hover .thumb img{ transform:scale(1.04); }
.work-card .body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.work-card .meta{ display:flex; gap:8px; flex-wrap:wrap; }
.work-card .meta span{ font-size:.75rem; font-weight:600; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }
.work-card h3{ font-size:1.15rem; }
.work-card .result{ margin-top:auto; font-family:var(--font-display); font-weight:700; color:var(--blue); font-size:1.1rem; }
@media (min-width:720px){ .work-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1080px){ .work-grid{ grid-template-columns:repeat(3,1fr); } }

/* =========================================================
   8. TESTIMONIALS
========================================================= */
.testimonial-strip{ background:var(--paper-dim); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.testimonial-grid{ display:grid; gap:24px; }
.testimonial{ background:var(--paper); border:1px solid var(--line); padding:28px; display:flex; flex-direction:column; gap:16px; }
.testimonial .quote{ font-family:var(--font-display); font-size:1.15rem; line-height:1.4; }
.testimonial .who{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.testimonial .who .name{ font-weight:600; font-size:.9rem; }
.testimonial .who .role{ font-size:.8rem; color:var(--muted); }
.avatar-mark{ width:38px; height:38px; border-radius:100%; background:var(--ink); color:var(--paper); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:700; }
@media (min-width:820px){ .testimonial-grid{ grid-template-columns:repeat(3,1fr); } }

/* =========================================================
   9. CTA BANNER
========================================================= */
.cta-banner{
  background:var(--blue); color:var(--white);
  padding:clamp(48px,7vw,84px) 0;
}
.cta-banner-inner{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:28px; }
.cta-banner h2{ color:var(--white); font-size:clamp(1.8rem,3.4vw,2.6rem); max-width:16ch; }
.cta-banner p{ color:rgba(255,255,255,.8); margin-top:10px; max-width:44ch; }

/* =========================================================
   10. FOOTER
========================================================= */
.site-footer{ background:var(--ink); color:rgba(245,245,241,.75); }
.footer-top{ padding:clamp(48px,7vw,80px) 0 40px; display:grid; gap:8px; }
@media (min-width:780px){ .footer-top{ gap:40px; } }
.footer-brand .site-title{ color:var(--paper); }
.footer-brand p{ margin-top:14px; max-width:36ch; color:rgba(245,245,241,.6); }
.footer-col h4{ color:var(--paper); font-size:.95rem; margin-bottom:16px; }
.footer-col ul li{ margin-bottom:10px; }
.footer-col a:hover{ color:var(--volt); }
.footer-social{ display:flex; gap:10px; margin-top:20px; }
.footer-social a{ width:38px; height:38px; border:1px solid rgba(245,245,241,.25); border-radius:100%; display:flex; align-items:center; justify-content:center; transition:all var(--speed) ease; }
.footer-social a:hover{ background:var(--volt); border-color:var(--volt); color:var(--ink); }
.footer-bottom{
  border-top:1px solid rgba(245,245,241,.14);
  padding:22px 0; display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; font-size:.8125rem; color:rgba(245,245,241,.5);
}
@media (max-width:779px){
  .footer-top > div{ border-top:1px solid rgba(245,245,241,.14); padding-top:28px; }
  .footer-top > div:first-child{ border-top:0; padding-top:0; }
}
@media (min-width:780px){
  .footer-top{ grid-template-columns:1.4fr .8fr .8fr .8fr; }
}

/* =========================================================
   11. INNER PAGE HEADER (Services/About/Contact/Portfolio/Blog)
========================================================= */
.page-header{
  padding:clamp(48px,7vw,88px) 0 clamp(32px,5vw,56px);
  border-bottom:1px solid var(--line);
}
.page-header .eyebrow{ margin-bottom:16px; }
.page-header h1{ font-size:clamp(2rem,4.4vw,3.2rem); max-width:20ch; }
.page-header .lede{ margin-top:16px; color:var(--muted); font-size:1.125rem; max-width:60ch; }
.breadcrumb{ font-size:.8125rem; color:var(--muted); margin-bottom:18px; }
.breadcrumb a:hover{ color:var(--blue); }

/* =========================================================
   12. CONTACT PAGE
========================================================= */
.contact-grid{ display:grid; gap:48px; }
.contact-form{ display:grid; gap:18px; }
.form-row{ display:grid; gap:8px; }
.form-row label{ font-size:.875rem; font-weight:600; }
.form-row input, .form-row select, .form-row textarea{
  border:1.5px solid var(--line-strong); border-radius:var(--radius); padding:13px 14px; background:var(--white); color:var(--ink);
  transition:border-color var(--speed) ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{ border-color:var(--blue); }
.form-row-cols{ display:grid; gap:18px; }
@media (min-width:600px){ .form-row-cols{ grid-template-columns:1fr 1fr; } }
.hp-field{ position:absolute; left:-9999px; }
.form-note{ font-size:.8125rem; color:var(--muted); }
.form-success{ background:#e9ffd6; border:1px solid #b7e07f; color:var(--ink-soft); padding:16px 18px; border-radius:var(--radius); }
.form-error{ background:#ffe9e9; border:1px solid #f0b3b3; color:var(--ink-soft); padding:16px 18px; border-radius:var(--radius); }

.contact-info-list{ display:grid; gap:22px; }
.contact-info-item{ border-top:1px solid var(--line); padding-top:16px; }
.contact-info-item .label{ font-size:.8125rem; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.03em; }
.contact-info-item .value{ font-family:var(--font-display); font-size:1.2rem; margin-top:4px; }
.contact-map{ border:1px solid var(--line); margin-top:22px; aspect-ratio:16/10; }
.contact-map iframe{ width:100%; height:100%; border:0; }
@media (min-width:900px){ .contact-grid{ grid-template-columns:1.1fr .9fr; } }

/* =========================================================
   13. ABOUT PAGE
========================================================= */
.values-grid{ display:grid; gap:24px; }
.value-item{ border-top:1px solid var(--line); padding-top:18px; }
.value-item h3{ font-size:1.15rem; }
.value-item p{ color:var(--muted); margin-top:8px; }
@media (min-width:780px){ .values-grid{ grid-template-columns:repeat(3,1fr); } }

.team-grid{ display:grid; gap:24px; }
.team-card .thumb{ aspect-ratio:1/1; overflow:hidden; background:var(--paper-dim); }
.team-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.team-card h3{ margin-top:14px; font-size:1.05rem; }
.team-card .role{ color:var(--blue); font-size:.85rem; font-weight:600; }
@media (min-width:700px){ .team-grid{ grid-template-columns:repeat(3,1fr); } }

/* =========================================================
   14. BLOG
========================================================= */
.blog-grid{ display:grid; gap:32px; }
.post-card{ border-top:1px solid var(--line); padding-top:24px; }
.post-card .thumb{ aspect-ratio:16/9; overflow:hidden; background:var(--paper-dim); margin-bottom:16px; }
.post-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.post-card .meta{ font-size:.8125rem; color:var(--muted); margin-bottom:8px; }
.post-card h2{ font-size:1.3rem; }
.post-card h2 a:hover{ color:var(--blue); }
.post-card p{ color:var(--muted); margin-top:10px; }
@media (min-width:780px){ .blog-grid{ grid-template-columns:repeat(2,1fr); } }

.single-post .entry-content{ max-width:70ch; margin:0 auto; }
.single-post .entry-content > *{ margin-bottom:1.4em; }
.single-post .entry-content h2{ font-size:1.6rem; margin-top:1.6em; }
.single-post .entry-content h3{ font-size:1.3rem; margin-top:1.4em; }
.single-post .entry-content img{ border-radius:var(--radius); }
.single-post .entry-content blockquote{
  border-left:3px solid var(--blue); padding-left:20px; font-style:italic; color:var(--muted);
}
.single-post .entry-header{ max-width:70ch; margin:0 auto 32px; }

.pagination{ display:flex; gap:10px; justify-content:center; margin-top:48px; flex-wrap:wrap; }
.pagination a, .pagination span{ border:1px solid var(--line-strong); padding:9px 16px; border-radius:var(--radius); font-size:.9rem; }
.pagination .current{ background:var(--ink); color:var(--paper); border-color:var(--ink); }

/* =========================================================
   15. UTILITIES
========================================================= */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.screen-reader-text{
  position:absolute !important; clip:rect(1px,1px,1px,1px); width:1px; height:1px; overflow:hidden;
}
.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--paper); padding:14px 20px; z-index:1000;
}
.skip-link:focus{ left:12px; top:12px; }
