/*
Theme Name: Summit Agency
Theme URI: https://summitagency.com
Author: Summit Agency
Author URI: https://summitagency.com
Description: Lightweight, light-and-clean digital-agency theme with scroll-linked parallax animations. Web design, SEO, marketing & AI automation landing theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: summit-agency
*/

/* ==========================================================================
   Summit Agency — light, clean, lightweight theme
   No external CDNs. System font stack. CSS-driven scroll reveals.
   ========================================================================== */

:root {
  --ink:        #0f172a;
  --ink-soft:   #475569;
  --ink-faint:  #94a3b8;
  --line:       #e6eaf0;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fc;
  --bg-tint:    #eef2fb;
  --brand:      #4f46e5;
  --brand-2:    #06b6d4;
  --brand-ink:  #3730a3;
  --accent:     #f97316;
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 1px 2px rgba(15,23,42,.04), 0 12px 30px -12px rgba(15,23,42,.12);
  --shadow-lg:  0 30px 60px -24px rgba(30,41,120,.28);
  --maxw:       1180px;
  --gradient:   linear-gradient(120deg, var(--brand), var(--brand-2));
  --font:       system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gradient); border-radius: 2px; }

.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 640px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--ink-soft); font-size: 18px; margin-top: 16px; }

.grad-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 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 .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { background: var(--gradient); color: #fff; box-shadow: 0 10px 24px -10px rgba(79,70,229,.7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(79,70,229,.8); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: var(--gradient); transform: scaleX(0); transform-origin: 0 50%;
  will-change: transform; pointer-events: none;
}

/* ---------- Floating decorative shapes (scroll-parallax) ---------- */
.deco { position: absolute; z-index: 0; pointer-events: none; will-change: transform; }
.deco--ring { border: 2px solid var(--brand); border-radius: 50%; opacity: .16; }
.deco--dot { background: var(--gradient); border-radius: 50%; opacity: .5; filter: blur(1px); }
.deco--soft { border-radius: 50%; filter: blur(46px); opacity: .5; }
.deco--plus { color: var(--brand); opacity: .22; font-weight: 700; }
.deco--square { border: 2px solid var(--brand-2); border-radius: 8px; opacity: .18; }

/* ---------- Marquee strip ---------- */
.marquee { overflow: hidden; padding: 26px 0; background: var(--ink); color: #fff; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 26px;
  font-size: 20px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; color: rgba(255,255,255,.92);
}
.marquee-track span::after { content: "◆"; color: var(--brand-2); font-size: 12px; opacity: .8; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -14px rgba(15,23,42,.3); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--gradient);
  display: grid; place-items: center; color: #fff; font-size: 15px; box-shadow: 0 6px 14px -6px rgba(79,70,229,.7);
}
.brand .mark svg { width: 17px; height: 17px; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink-soft); border-radius: 10px;
  transition: color .18s ease, background .18s ease;
}
.nav-menu > li > a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-menu .caret { width: 9px; height: 9px; opacity: .55; }

/* Mega dropdown */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 12px; opacity: 0; visibility: hidden; transition: all .2s ease; z-index: 120;
}
.nav-menu > li:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 14.5px; color: var(--ink-soft); transition: background .16s ease, color .16s ease;
}
.mega a:hover { background: var(--bg-tint); color: var(--brand-ink); }
.mega a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); flex: none; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .link-partner { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.nav-cta .link-partner:hover { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; border-radius: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 55% at 78% 12%, rgba(6,182,212,.14), transparent 60%),
    radial-gradient(55% 60% at 12% 8%, rgba(79,70,229,.16), transparent 62%),
    var(--bg);
}
.hero .blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .5; }
.hero .blob-1 { width: 420px; height: 420px; background: rgba(79,70,229,.28); top: -120px; right: -80px; }
.hero .blob-2 { width: 360px; height: 360px; background: rgba(6,182,212,.24); bottom: -140px; left: -100px; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; }
.hero .lead { font-size: 19px; color: var(--ink-soft); margin-top: 22px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.hero-badges span {
  font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}

/* Hero visual panel */
.hero-visual {
  position: relative; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); padding: 26px; overflow: hidden;
}
.hero-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(79,70,229,.05), transparent 55%); }
.metric-big { position: relative; }
.metric-big .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.metric-big .num { font-size: 56px; font-weight: 800; line-height: 1; margin-top: 6px; }
.spark { display: flex; align-items: flex-end; gap: 7px; height: 90px; margin-top: 22px; }
.spark i { flex: 1; background: var(--gradient); border-radius: 6px 6px 0 0; opacity: .85; animation: rise .9s ease both; }
@keyframes rise { from { height: 0 !important; opacity: 0; } }
.mini-rows { margin-top: 22px; display: grid; gap: 10px; }
.mini-rows .row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft);
  padding: 11px 14px; background: var(--bg-alt); border-radius: 12px; }
.mini-rows .row b { color: var(--ink); }
.mini-rows .row .up { color: #16a34a; font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 30px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat .ico { font-size: 22px; }
.stat .val { font-size: 40px; font-weight: 800; margin: 8px 0 4px; }
.stat .val .grad-text { display: inline; }
.stat .lbl { font-size: 13.5px; color: var(--ink-soft); font-weight: 500; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle { padding: 34px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.principle .step { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--brand); text-transform: uppercase; }
.principle h3 { font-size: 24px; margin: 14px 0 12px; }
.principle p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Focus / two disciplines ---------- */
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.focus-card {
  padding: 40px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.focus-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--gradient); }
.focus-card h3 { font-size: 26px; margin-bottom: 14px; }
.focus-card p { color: var(--ink-soft); font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0; }
.chips span { font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--bg-tint); padding: 6px 13px; border-radius: 999px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.card-link:hover { gap: 10px; }

/* ---------- Service cards grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .ci { width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); display: grid; place-items: center; margin-bottom: 18px; font-size: 20px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 16px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.pstep { text-align: left; position: relative; padding-top: 20px; }
.pstep .n {
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; position: relative; z-index: 2;
}
.pstep h4 { font-size: 17px; margin-bottom: 8px; }
.pstep p { font-size: 14px; color: var(--ink-soft); }
.process::before { content: ""; position: absolute; top: 42px; left: 22px; right: 22px; height: 2px; background: var(--line); z-index: 1; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 28px; padding: 72px 48px; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 120% at 20% 0%, rgba(79,70,229,.5), transparent 55%),
              radial-gradient(50% 120% at 90% 100%, rgba(6,182,212,.42), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); }
.cta-band p { color: rgba(255,255,255,.8); font-size: 18px; margin: 18px auto 34px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 72px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 14.5px; color: #94a3b8; margin-top: 18px; max-width: 300px; }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14.5px; color: #94a3b8; padding: 5px 0; transition: color .16s ease; }
.footer-col a:hover { color: #fff; }
.footer-contact p { font-size: 14.5px; color: #94a3b8; margin-bottom: 6px; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #94a3b8;
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Services archive page ---------- */
.page-hero { padding: 130px 0 70px; background:
  radial-gradient(55% 60% at 85% 0%, rgba(6,182,212,.12), transparent 60%),
  radial-gradient(50% 60% at 10% 0%, rgba(79,70,229,.14), transparent 60%), var(--bg); text-align: center; }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; }
.page-hero p { font-size: 19px; color: var(--ink-soft); max-width: 620px; margin: 22px auto 0; }

.svc-nav { position: sticky; top: 72px; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 14px 0; justify-content: center; }
.svc-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 8px 15px; border-radius: 999px; transition: .18s; }
.svc-nav a:hover { background: var(--bg-tint); color: var(--brand-ink); }

.svc-category { padding: 84px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.svc-category:nth-child(even) { background: var(--bg-alt); }
.cat-head { display: flex; align-items: center; gap: 18px; margin-bottom: 40px; }
.cat-head .cat-ico { width: 58px; height: 58px; border-radius: 15px; background: var(--gradient); display: grid; place-items: center; color: #fff; font-size: 26px; flex: none; box-shadow: 0 12px 24px -12px rgba(79,70,229,.7); }
.cat-head h2 { font-size: clamp(26px, 3.5vw, 38px); }
.cat-head p { color: var(--ink-soft); margin-top: 6px; font-size: 16px; }
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc-item .num { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.svc-item h3 { font-size: 18.5px; margin: 8px 0 10px; }
.svc-item p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.has-deco { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .spark i { animation: none; }
  .marquee-track { animation: none; }
  .deco { display: none; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr 1fr; gap: 30px; }
  .process::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .svc-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 78px 0; }
  .nav-menu, .nav-cta .link-partner { display: none; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; }
  .svc-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 54px 24px; }
  .hero-visual { max-width: 100%; }

  .mobile-drawer.open { display: block; position: fixed; inset: 72px 0 0; background: #fff; z-index: 99; padding: 24px; overflow-y: auto; }
  .mobile-drawer ul { list-style: none; margin: 0; padding: 0; }
  .mobile-drawer > ul > li { border-bottom: 1px solid var(--line); }
  .mobile-drawer > ul > li > a { display: block; padding: 16px 4px; font-size: 17px; font-weight: 600; }
  .mobile-drawer .sub a { display: block; padding: 9px 16px; font-size: 15px; color: var(--ink-soft); }
  .mobile-drawer .btn { width: 100%; justify-content: center; margin-top: 22px; }
  body.nav-open { overflow: hidden; }
}
