/*
Theme Name: Brands and Clicks
Theme URI: https://brandsandclicks.com
Author: Brands and Clicks
Author URI: https://brandsandclicks.com
Description: Custom theme for Brands and Clicks digital marketing agency, with animated home page and 6 dedicated service pages (SEO, PPC, Local SEO, Social Media Marketing, Influencer Marketing, Website Development).
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Text Domain: brandsandclicks
*/


/* ==========================================================================
   BRANDS & CLICKS — Shared Stylesheet
   Edit colors in :root to re-theme the whole site.
   Sections are labeled so you can map them to WordPress blocks easily.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* ---- Color tokens (edit these to re-brand) ---- */
  --bg:        #0A0B14;
  --bg-soft:   #12131F;
  --card:      #171929;
  --card-line: #262943;
  --ink:       #F4F3FA;
  --muted:     #9C9CBE;
  --violet:    #7C5CFF;
  --violet-2:  #B39CFF;
  --coral:     #FF5C7A;
  --lime:      #4CFFB3;

  /* ---- Type tokens ---- */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'JetBrains Mono', monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--f-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--f-display); margin:0 0 .5em; line-height:1.15; font-weight:600; }
p{ margin:0 0 1em; color:var(--muted); }

.wrap{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--f-mono); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--lime); margin-bottom:16px;
}
.eyebrow::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--lime); box-shadow:0 0 12px var(--lime); }

section{ position:relative; padding:96px 0; }
@media (max-width:720px){ section{ padding:64px 0; } }

/* ---- Buttons ---- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:15px;
  border:1px solid transparent; cursor:pointer; transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  font-family:var(--f-body);
}
.btn-primary{ background:linear-gradient(135deg,var(--violet),var(--coral)); color:#fff; box-shadow:0 8px 30px -8px rgba(124,92,255,.6); }
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 14px 34px -8px rgba(124,92,255,.75); }
.btn-ghost{ background:transparent; border-color:var(--card-line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--violet-2); background:rgba(124,92,255,.08); }
.btn-sm{ padding:10px 18px; font-size:13.5px; }

/* ==========================================================================
   HEADER / NAV  (WP: map to Site Header template part)
   ========================================================================== */
.site-header{
  position:sticky; top:0; z-index:200;
  background:rgba(10,11,20,.75); backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.logo{ display:flex; align-items:center; gap:10px; font-family:var(--f-display); font-weight:700; font-size:19px; }
.logo-mark{ width:34px; height:34px; border-radius:10px; background:linear-gradient(135deg,var(--violet),var(--coral)); position:relative; flex:none; }
.logo-mark::after{ content:''; position:absolute; inset:9px; border-radius:50%; border:2px solid #fff; }
.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links > li{ position:relative; }
.nav-links > li > a{
  display:flex; align-items:center; gap:6px; padding:10px 14px; border-radius:999px;
  font-size:14.5px; font-weight:500; color:var(--muted); transition:.2s;
}
.nav-links > li > a:hover, .nav-links > li.is-current > a{ color:var(--ink); background:rgba(255,255,255,.06); }
.has-dropdown{ display:flex; align-items:center; }
.dd-toggle{
  background:none; border:none; cursor:pointer; color:var(--muted); padding:10px 8px 10px 0;
  display:flex; align-items:center; justify-content:center;
}
.dd-toggle:hover{ color:var(--ink); }
.caret{ width:9px; height:9px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.has-dropdown:hover .caret, .has-dropdown.is-open .caret{ transform:rotate(225deg) translateY(2px); }

.mega{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%) translateY(6px);
  width:640px; background:var(--card); border:1px solid var(--card-line); border-radius:16px;
  padding:14px; display:grid; grid-template-columns:1fr 1fr; gap:4px;
  opacity:0; visibility:hidden; transition:opacity .22s ease, transform .22s ease;
  box-shadow:0 30px 60px -20px rgba(0,0,0,.6);
  pointer-events:none;
}
.has-dropdown:hover .mega,
.has-dropdown.is-open .mega{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); pointer-events:auto; }
.mega a{
  display:flex; gap:12px; align-items:flex-start; padding:12px; border-radius:12px; transition:background .2s;
}
.mega a:hover{ background:rgba(124,92,255,.12); }
.mega-ic{ width:36px; height:36px; border-radius:9px; flex:none; display:flex; align-items:center; justify-content:center; font-size:16px; background:rgba(124,92,255,.14); color:var(--violet-2); }
.mega-t{ font-weight:600; font-size:14px; color:var(--ink); margin-bottom:2px; }
.mega-d{ font-size:12.5px; color:var(--muted); line-height:1.4; }
.mega-all{ grid-column:1 / -1; border-top:1px solid var(--card-line); margin-top:6px; padding-top:12px; display:flex; justify-content:space-between; align-items:center; }

.nav-cta{ display:flex; align-items:center; gap:14px; }
.burger{ display:none; width:40px; height:40px; border-radius:10px; border:1px solid var(--card-line); background:transparent; color:var(--ink); cursor:pointer; }

@media (max-width:960px){
  .nav-links, .nav-cta .btn-ghost{ display:none; }
  .burger{ display:block; }
  .mega{ position:static; width:100%; transform:none; margin-top:8px; grid-template-columns:1fr; box-shadow:none; }
  .has-dropdown{ flex-direction:column; align-items:stretch; }
  .has-dropdown .dd-toggle{ position:absolute; right:8px; top:6px; }
}

/* ==========================================================================
   HERO  (WP: map to a "Hero" Elementor/Gutenberg section)
   ========================================================================== */
.hero{ padding:110px 0 70px; position:relative; overflow:hidden; }
.hero-bg{ position:absolute; inset:-20% -10%; z-index:0; pointer-events:none; }
.blob{ position:absolute; border-radius:50%; filter:blur(70px); opacity:.55; animation:float 16s ease-in-out infinite; }
.blob-1{ width:420px; height:420px; background:var(--violet); top:-60px; left:-80px; }
.blob-2{ width:340px; height:340px; background:var(--coral); top:120px; right:-60px; animation-delay:-4s; }
.blob-3{ width:260px; height:260px; background:var(--lime); bottom:-80px; left:35%; animation-delay:-9s; opacity:.35; }
@keyframes float{ 0%,100%{ transform:translate(0,0) scale(1);} 50%{ transform:translate(30px,-30px) scale(1.08);} }

.hero-grid{ position:relative; z-index:1; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ font-size:clamp(34px,5vw,58px); letter-spacing:-.02em; }
.hero h1 .grad{ background:linear-gradient(135deg,var(--violet-2),var(--coral)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-sub{ font-size:17.5px; max-width:520px; }
.hero-actions{ display:flex; gap:14px; margin:28px 0 34px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:34px; flex-wrap:wrap; }
.stat b{ display:block; font-family:var(--f-display); font-size:26px; }
.stat span{ font-size:12.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }

/* ---- Signature element: click-to-growth chart ---- */
.click-chart{ position:relative; background:var(--card); border:1px solid var(--card-line); border-radius:var(--radius); padding:22px; }
.click-chart-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; font-family:var(--f-mono); font-size:12px; color:var(--muted); }
.click-chart svg{ width:100%; height:auto; overflow:visible; }
.chart-line{ fill:none; stroke:url(#chartGrad); stroke-width:3; stroke-linecap:round; stroke-dasharray:600; stroke-dashoffset:600; animation:draw 2.4s ease forwards .3s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.chart-fill{ opacity:0; animation:fadein 1s ease forwards 1.6s; }
@keyframes fadein{ to{ opacity:1; } }
.click-node{ transform-origin:center; animation:pulse 2.2s ease-in-out infinite; }
.click-node:nth-child(2){ animation-delay:.3s; }
.click-node:nth-child(3){ animation-delay:.6s; }
.click-node:nth-child(4){ animation-delay:.9s; }
@keyframes pulse{ 0%,100%{ opacity:.5; transform:scale(.85);} 50%{ opacity:1; transform:scale(1.25);} }
.ripple{ fill:none; stroke:var(--lime); stroke-width:1.5; opacity:0; animation:ripple 2.2s ease-out infinite; }
.ripple:nth-child(5){ animation-delay:.3s; }
@keyframes ripple{ 0%{ r:3; opacity:.8; } 100%{ r:22; opacity:0; } }

/* ---- Cursor-follow spark (JS-driven) ---- */
.cursor-spark{ position:fixed; width:16px; height:16px; border-radius:50%; pointer-events:none; z-index:999;
  background:radial-gradient(circle,var(--lime),transparent 70%); mix-blend-mode:screen; opacity:0; transition:opacity .3s; transform:translate(-50%,-50%); }
@media (max-width:900px){ .cursor-spark{ display:none; } }

/* ==========================================================================
   MARQUEE TICKER  (WP: map to a "Services Ticker" HTML block)
   ========================================================================== */
.ticker{ border-top:1px solid var(--card-line); border-bottom:1px solid var(--card-line); background:var(--bg-soft); padding:16px 0; overflow:hidden; }
.ticker-track{ display:flex; gap:48px; width:max-content; animation:scroll 26s linear infinite; }
.ticker:hover .ticker-track{ animation-play-state:paused; }
@keyframes scroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
.ticker-track span{ font-family:var(--f-mono); font-size:14px; color:var(--muted); white-space:nowrap; display:flex; align-items:center; gap:14px; }
.ticker-track span em{ color:var(--lime); font-style:normal; }

/* ==========================================================================
   SERVICE CARDS GRID  (WP: map to a "Services" section, 3-col grid)
   ========================================================================== */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
@media (max-width:900px){ .grid-3, .grid-2{ grid-template-columns:1fr; } }

.svc-card{
  background:var(--card); border:1px solid var(--card-line); border-radius:var(--radius); padding:28px;
  transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.svc-card:hover{ transform:translateY(-6px); border-color:var(--violet); box-shadow:0 20px 40px -20px rgba(124,92,255,.5); }
.svc-ic{ width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; margin-bottom:18px;
  background:linear-gradient(135deg,rgba(124,92,255,.22),rgba(255,92,122,.22)); }
.svc-card h3{ font-size:19px; margin-bottom:8px; }
.svc-card p{ font-size:14.5px; margin-bottom:16px; }
.svc-link{ font-size:13.5px; font-weight:600; color:var(--lime); display:inline-flex; align-items:center; gap:6px; }
.svc-link:hover{ gap:10px; }

/* ==========================================================================
   SECTION HEADS
   ========================================================================== */
.sec-head{ max-width:640px; margin-bottom:52px; }
.sec-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.sec-head h2{ font-size:clamp(26px,3.4vw,40px); }

/* ==========================================================================
   COUNTERS
   ========================================================================== */
.counters{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
@media (max-width:760px){ .counters{ grid-template-columns:repeat(2,1fr); } }
.counter b{ display:block; font-family:var(--f-display); font-size:38px; background:linear-gradient(135deg,var(--violet-2),var(--lime)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.counter span{ font-size:13px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; counter-reset:step; }
@media (max-width:900px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; } }
.step{ background:var(--bg-soft); border:1px solid var(--card-line); border-radius:var(--radius); padding:24px; position:relative; }
.step-num{ font-family:var(--f-mono); font-size:13px; color:var(--lime); margin-bottom:14px; }
.step h4{ font-size:16.5px; }
.step p{ font-size:14px; margin:0; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item{ border-bottom:1px solid var(--card-line); padding:20px 0; }
.faq-q{ display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-weight:600; font-size:16px; gap:20px; }
.faq-q .plus{ font-family:var(--f-mono); color:var(--violet-2); transition:transform .25s; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-item.open .faq-a{ max-height:240px; margin-top:12px; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band{ background:linear-gradient(135deg,rgba(124,92,255,.16),rgba(255,92,122,.16)); border:1px solid var(--card-line); border-radius:24px; padding:56px; text-align:center; }
.cta-band h2{ font-size:clamp(24px,3.4vw,36px); margin-bottom:10px; }
.cta-band p{ max-width:480px; margin-left:auto; margin-right:auto; }

/* ==========================================================================
   PAGE HERO (service sub-pages)
   ========================================================================== */
.page-hero{ padding:76px 0 56px; border-bottom:1px solid var(--card-line); position:relative; overflow:hidden; }
.breadcrumb{ font-family:var(--f-mono); font-size:12.5px; color:var(--muted); margin-bottom:18px; }
.breadcrumb a:hover{ color:var(--lime); }
.page-hero h1{ font-size:clamp(30px,4.4vw,46px); max-width:780px; }
.page-hero .hero-sub{ max-width:640px; }

.include-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
@media (max-width:700px){ .include-list{ grid-template-columns:1fr; } }
.include-item{ display:flex; gap:12px; align-items:flex-start; background:var(--bg-soft); border:1px solid var(--card-line); border-radius:14px; padding:16px 18px; }
.check{ flex:none; width:22px; height:22px; border-radius:50%; background:rgba(76,255,179,.15); color:var(--lime); display:flex; align-items:center; justify-content:center; font-size:12px; }
.include-item p{ margin:0; font-size:14.5px; color:var(--ink); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ border-top:1px solid var(--card-line); padding:64px 0 28px; background:var(--bg-soft); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; margin-bottom:48px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-grid h5{ font-family:var(--f-mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); margin-bottom:16px; }
.footer-grid li{ margin-bottom:10px; font-size:14px; }
.footer-grid li a:hover{ color:var(--lime); }
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--card-line); display:flex; align-items:center; justify-content:center; font-size:13px; }
.social-row a:hover{ border-color:var(--violet-2); color:var(--violet-2); }
.footer-bottom{ border-top:1px solid var(--card-line); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:13px; color:var(--muted); }

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

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