/*
Theme Name: Scanteya
Theme URI: https://www.scanteya.com/
Author: Scanteya Ltd
Description: Custom WordPress theme recreating the Scanteya consultancy design — magenta-to-purple gradient brand, rounded geometric headings, circular icon badges, services, project showcase and contact CTA. Built for a Microsoft Dynamics 365 and Power Platform consultancy.
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: scanteya
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --magenta: #e6007e;
  --purple: #8e2de2;
  --grad: linear-gradient(135deg, #e6007e 0%, #8e2de2 100%);
  --ink: #2b2b3a;        /* headings */
  --ink-soft: #6b6b78;   /* body / subtitles */
  --line: #e7e7ec;
  --bg: #ffffff;
  --bg-alt: #f6f6f8;     /* grey sections */
  --dark: #221a2b;       /* cta / footer */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 43, 58, 0.08);
  --max: 1140px;
  --font-head: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-logo: "Quicksand", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .4em; font-weight: 700; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section-title { font-size: clamp(30px, 4.4vw, 46px); text-align: center; margin: 0 0 14px; }
.section-sub { text-align: center; font-style: italic; color: var(--ink-soft); max-width: 680px; margin: 0 auto 50px; font-size: 19px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  background: var(--grad); color: #fff; border: 0; cursor: pointer;
  transition: transform .2s, box-shadow .2s; letter-spacing: .02em;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(142, 45, 226, .35); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid rgba(255,255,255,.7); }
.btn-outline { background: transparent; color: var(--magenta); border: 2px solid var(--magenta); }
.btn-outline:hover { background: var(--grad); color: #fff; border-color: transparent; }

/* ============================================================
   Header
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px; background: var(--grad);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 26px;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(230,0,126,.35);
}
.logo-word { font-family: var(--font-logo); font-weight: 500; font-size: 30px; letter-spacing: .14em; color: var(--ink); }

.nav-toggle { display: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-burger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .2s; }

.main-nav .nav-list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 16px; padding: 6px 0; position: relative; }
.main-nav a:hover { color: var(--magenta); }
.main-nav .current-menu-item > a::after,
.main-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad); border-radius: 2px; }
.main-nav .sub-menu { display: none; position: absolute; background: #fff; box-shadow: var(--shadow); border-radius: 12px; padding: 10px; list-style: none; margin: 10px 0 0; min-width: 240px; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .menu-item-has-children:hover .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; }
.main-nav .sub-menu a:hover { background: var(--bg-alt); }
.main-nav .sub-menu a::after { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 90px 0 100px; text-align: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% -10%, rgba(230,0,126,.07), transparent 60%); }
.hero-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; font-weight: 600; color: var(--magenta); margin: 0 0 18px; }
.hero-title { font-size: clamp(40px, 6.4vw, 72px); margin: 0 0 18px; text-wrap: balance; }
.hero-title .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 0 auto 34px; font-size: 20px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--bg-alt); padding: 90px 0; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.service { text-align: center; }
.service .badge {
  width: 96px; height: 96px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; margin: 0 auto 20px;
  box-shadow: 0 14px 30px rgba(142,45,226,.3);
}
.service .badge svg { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 2; }
.service h3 { font-size: 20px; margin: 0 0 8px; }
.service p { font-size: 15px; margin: 0; }

/* ============================================================
   Projects
   ============================================================ */
.projects { padding: 90px 0; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.project { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.project:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(43,43,58,.14); }
.project .thumb { aspect-ratio: 16 / 11; background: var(--grad); display: grid; place-items: center; position: relative; }
.project .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.14), transparent); }
.project .thumb svg { width: 56px; height: 56px; stroke: #fff; fill: none; stroke-width: 1.6; opacity: .95; }
.project .body { padding: 22px 22px 26px; text-align: center; }
.project h3 { font-size: 19px; margin: 0 0 6px; }
.project .tag { display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); font-weight: 600; }

/* ============================================================
   CTA band
   ============================================================ */
.cta { padding: 110px 0; text-align: center; color: #fff; position: relative;
  background: linear-gradient(135deg, rgba(34,26,43,.92), rgba(80,20,90,.86)), radial-gradient(circle at 70% 30%, #e6007e, #221a2b 70%); }
.cta h2 { color: #fff; font-size: clamp(32px, 5vw, 54px); margin: 0 0 10px; }
.cta p { font-style: italic; font-size: 22px; margin: 0 0 32px; color: rgba(255,255,255,.9); }
.cta .hero-cta { }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 26px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-list a { color: rgba(255,255,255,.72); }
.footer-list a:hover { color: #fff; }

/* ============================================================
   Generic content (pages / posts)
   ============================================================ */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 70px 24px; }
.page-wrap h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 20px; }
.page-wrap p { margin: 0 0 18px; }
.entry img { border-radius: 10px; margin: 20px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .project-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .main-nav .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px; }
  .main-nav .nav-list > li > a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .sub-menu { position: static; box-shadow: none; padding: 0 0 0 14px; display: block; }
  .nav-toggle:checked ~ .main-nav { max-height: 460px; }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .footer-inner { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
