/*
Theme Name: GPS DigAgency
Theme URI: https://getproservices.net
Author: Prime_Coder BD
Author URI: https://getproservices.net
Description: A bold, colorful neo-brutalist theme for digital agencies — fully responsive, mobile-first, with a unified Theme Options panel.
Version: 4.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gps-diagency
*/

/* ==========================================================================
   1. CSS Variables / Design Tokens
   ========================================================================== */
:root {
  /* Core palette */
  --ink:          #161320;
  --cream:        #FBF8F3;
  --violet:       #7C3AED;
  --violet-light: #A78BFA;
  --coral:        #FF6B5B;
  --mint:         #3DDC97;
  --gold:         #FFC857;
  --grey:         #6E6A7C;
  --line:         #E8E3F5;
  --surface:      #F4F1FA;

  /* Typography */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --container:    1200px;
  --gap:          clamp(16px, 3vw, 28px);
  --section-py:   clamp(56px, 8vw, 100px);
  --radius:       18px;
  --radius-sm:    10px;

  /* Shadows */
  --shadow-sm:    4px 4px 0 var(--ink);
  --shadow-md:    6px 6px 0 var(--violet-light);
  --shadow-lg:    8px 8px 0 var(--ink);
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.68;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--violet);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--coral); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }

/* ==========================================================================
   3. Container & Layout utilities
   ========================================================================== */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 32px);
  width: 100%;
}

section { padding-block: var(--section-py); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

@media (max-width: 860px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   4. Accessibility
   ========================================================================== */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  padding: clamp(11px, 1.5vw, 15px) clamp(22px, 3vw, 30px);
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease,
              background .18s ease, color .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px; /* WCAG touch target */
}
.btn:hover, .btn:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-sm);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--cream);
}
.btn-sm {
  padding: clamp(8px, 1vw, 11px) clamp(16px, 2vw, 22px);
  font-size: 0.85rem;
  min-height: 38px;
}
.btn-wide { width: 100%; }

/* ==========================================================================
   6. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 20px rgba(22,19,32,.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: clamp(12px, 1.5vw, 18px);
  flex-wrap: nowrap;
}

/* Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}
.site-title a { color: var(--ink); }
.site-title a:hover { color: var(--violet); }
.site-branding img {
  height: clamp(32px, 4vw, 52px);
  width: auto;
  max-width: 160px;
}
.custom-logo-link img { height: clamp(32px, 4vw, 52px); width: auto; max-width: 160px; }

/* Primary Nav */
.main-navigation { flex: 1; display: flex; justify-content: center; }
.main-navigation ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  flex-wrap: nowrap; /* no wrapping — hamburger handles mobile */
}
.main-navigation a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.8rem, 1.05vw, 0.92rem);
  color: var(--ink);
  position: relative;
  padding-block: 4px;
  white-space: nowrap;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width .22s ease;
}
.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after { width: 100%; }
.main-navigation .current-menu-item > a { color: var(--violet); }

/* Header CTA */
.header-cta { flex-shrink: 0; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .menu-toggle { display: flex; order: 3; }
  .header-cta { display: none; }
  .site-header .container { flex-wrap: wrap; row-gap: 0; }

  .main-navigation {
    order: 4;
    width: 100%;
    flex: unset;
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    justify-content: flex-start;
  }
  .main-navigation.is-open {
    max-height: 500px;
    border-top: 2px solid var(--ink);
  }
  .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 0 18px;
    width: 100%;
  }
  .main-navigation ul li { width: 100%; }
  .main-navigation a {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
  }
  .main-navigation ul li:last-child a { border-bottom: none; }
}

/* ==========================================================================
   7. Hero
   ========================================================================== */
.hero {
  padding-block: clamp(60px, 10vw, 110px);
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: clamp(16px, 2vw, 24px);
}
.hero h1 { margin-bottom: clamp(14px, 2vw, 22px); }
.hero h1 .highlight {
  background: var(--violet);
  color: var(--cream);
  padding: 2px 10px;
  display: inline-block;
  transform: rotate(-1.5deg);
  border-radius: 8px;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--grey);
  max-width: 520px;
  margin-bottom: clamp(22px, 3vw, 34px);
}
.hero-actions {
  display: flex;
  gap: clamp(10px, 2vw, 16px);
  flex-wrap: wrap;
}

/* Hero Art — proper aspect-ratio square */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  flex-shrink: 0;
}
.hero-shape {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.hero-shape.s1 { inset: 0; background: var(--mint); transform: rotate(-4deg); }
.hero-shape.s2 {
  inset: 12% 18% 18% 12%;
  background: var(--violet);
  transform: rotate(3deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-shape.s2 .badge-text {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cream);
  font-size: clamp(1rem, 2.5vw, 1.8rem);
  text-align: center;
  line-height: 1.2;
  transform: rotate(-3deg);
  padding: 8px;
}
.hero-shape.s3 {
  width: clamp(56px, 12%, 88px);
  height: clamp(56px, 12%, 88px);
  background: var(--coral);
  border-radius: 50%;
  top: -10px; right: -10px;
}

@media (max-width: 1060px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; gap: clamp(20px, 4vw, 44px); }
  .hero-art { max-width: 360px; }
}
@media (max-width: 760px) {
  .hero { padding-block: clamp(48px, 8vw, 80px); }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-content { order: 1; }
  .hero-art { order: 2; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 480px) {
  .hero-art { max-width: 200px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ==========================================================================
   8. Trust bar
   ========================================================================== */
.trust-bar {
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 2px solid var(--ink);
}
.trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}
.trust-bar p {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin: 0;
  flex: 0 0 auto;
  max-width: 160px;
}
.trust-stats {
  display: flex;
  gap: clamp(20px, 4vw, 52px);
  flex-wrap: wrap;
  flex: 1;
}
.trust-stat { text-align: center; flex: 0 0 auto; }
.trust-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  display: block;
  color: var(--ink);
  line-height: 1;
}
.trust-stat span { font-size: 0.78rem; color: var(--grey); display: block; white-space: nowrap; }
@media (max-width: 640px) {
  .trust-bar p { display: none; }
  .trust-stats { gap: clamp(16px, 5vw, 28px); }
}

/* ==========================================================================
   9. Section head
   ========================================================================== */
.section-head {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-head h2 {
  text-wrap: balance;
  -webkit-text-size-adjust: none;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
  margin-bottom: 12px;
}
.section-head p { color: var(--grey); font-size: clamp(0.95rem, 1.3vw, 1.05rem); }

/* ==========================================================================
   10. Services grid
   ========================================================================== */
.services { background: var(--ink); color: var(--cream); }
.services .section-tag { color: var(--mint); }
.services .section-head h2 { color: var(--cream); }
.services .section-head p { color: #C9C5D6; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 860px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .service-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
  min-width: 0;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--coral);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
  margin-bottom: 14px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--grey); font-size: 0.92rem; margin: 0; }
.service-card .icon { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 12px; display: block; }

/* ==========================================================================
   11. Process steps
   ========================================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-step { position: relative; }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--violet-light);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.process-step h3 { margin-bottom: 6px; }
.process-step p { color: var(--grey); font-size: 0.92rem; }

/* ==========================================================================
   12. Work / Portfolio grid
   ========================================================================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 960px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .work-grid { grid-template-columns: 1fr; }
}
.work-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  min-width: 0; /* prevent grid blowout */
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-card .work-thumb {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--cream);
  text-align: center;
  padding: 12px;
}
.work-card .work-body { padding: clamp(14px, 2.5vw, 20px); flex: 1; }
.work-card .work-tag {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  font-weight: 700;
  font-family: var(--font-display);
  display: block;
}
.work-card h3 { margin: 6px 0 0; font-size: clamp(1rem, 1.8vw, 1.2rem); }

/* Portfolio extended */
.work-card .work-client { font-size: 0.83rem; color: var(--grey); margin-top: 4px; margin-bottom: 0; }
.work-card p.work-desc { color: var(--grey); font-size: 0.9rem; margin-top: 8px; }
.work-card .work-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.86rem;
}
.portfolio-card[hidden] { display: none; }

/* ==========================================================================
   13. Testimonials
   ========================================================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 960px) {
  .testimonial-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}
.testimonial-card {
  background: var(--violet);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0; /* critical: prevent grid blowout */
}
.testimonial-card p.quote { font-size: clamp(0.95rem, 1.3vw, 1.05rem); line-height: 1.65; flex: 1; margin: 0; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.testimonial-author strong { font-family: var(--font-display); display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.82rem; opacity: 0.85; }

/* ==========================================================================
   14. CTA Band
   ========================================================================== */
.cta-band {
  background: var(--gold);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  text-align: center;
}
.cta-band h2 { margin-bottom: clamp(12px, 2vw, 18px); }
.cta-band p { max-width: 560px; margin-inline: auto; margin-bottom: clamp(20px, 3vw, 28px); color: var(--ink); }
.cta-actions { display: flex; gap: clamp(10px, 2vw, 16px); justify-content: center; flex-wrap: wrap; }
@media (max-width: 400px) {
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 280px; }
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-top: clamp(50px, 8vw, 80px);
  padding-bottom: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(40px, 6vw, 56px);
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mint);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C9C5D6; font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-brand p { color: #C9C5D6; max-width: 300px; font-size: 0.92rem; margin-top: 10px; }
.footer-brand .site-title a { color: var(--cream); }

.social-links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.social-links a {
  width: 38px; height: 38px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cream);
  transition: background .2s, border-color .2s, color .2s;
}
.social-links a:hover { background: var(--coral); border-color: var(--coral); color: var(--ink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: #9D98AE;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; align-items: center; gap: 6px; }
  .footer-col { padding: 0; min-width: 0; }
  .footer-col a, .footer-col li { word-break: break-word; }
}

/* ==========================================================================
   16. Page header (inner pages)
   ========================================================================== */
.page-header-block {
  background: var(--violet);
  color: var(--cream);
  padding: clamp(44px, 7vw, 80px) 0 clamp(36px, 6vw, 70px);
  text-align: center;
  border-bottom: 2px solid var(--ink);
}
.page-header-block h1 {
  color: var(--cream);
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  text-wrap: balance;
}
.page-header-block .breadcrumb { font-size: 0.88rem; opacity: .85; margin-top: 10px; margin-bottom: 0; }
.page-header-block .breadcrumb a { color: var(--cream); text-decoration: underline; }

/* ==========================================================================
   17. Entry content
   ========================================================================== */
.entry-content {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(0.96rem, 1.3vw, 1.05rem);
}
.entry-content h2 { margin: 2em 0 .8em; }
.entry-content h3 { margin: 1.5em 0 .6em; }
.entry-content ul, .entry-content ol { margin: 0 0 1em; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; border: 2px solid var(--ink); }
.entry-content blockquote {
  border-left: 4px solid var(--coral);
  padding-left: 18px;
  font-style: italic;
  color: var(--grey);
  margin: 1.5em 0;
}

/* ==========================================================================
   18. Accent helpers
   ========================================================================== */
.accent-violet { background: var(--violet); color: var(--cream); }
.accent-coral  { background: var(--coral);  color: var(--ink);   }
.accent-mint   { background: var(--mint);   color: var(--ink);   }
.accent-gold   { background: var(--gold);   color: var(--ink);   }


/* ==========================================================================
   19b. Pricing Category Tabs + Toggle
   ========================================================================== */

/* Category tab buttons */
.pricing-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 44px;
}
.pricing-cat-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 11px 24px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s, color .18s, transform .15s, box-shadow .15s;
  min-height: 44px;
  white-space: nowrap;
}
.pricing-cat-btn:hover { transform: translateY(-2px); }
.pricing-cat-btn.is-active {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--violet-light);
}

/* Billing toggle (monthly / annual) */
.pricing-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}
.billing-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color .18s;
}
.billing-label.is-active { color: var(--ink); }
.billing-label:not(.is-active) { color: var(--grey); }
.billing-save-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--mint);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 4px;
  white-space: nowrap;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  top: 3px; left: 3px;
  background: var(--ink);
  border-radius: 50%;
  transition: transform .2s;
}
.toggle-switch input:checked + .toggle-track { background: var(--violet); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(24px); }

/* Category panels */
.pricing-category-panel { display: none; }
.pricing-category-panel.is-active { display: block; }

/* Annual price — hidden by default, shown when annual active */
.annual-price { display: none; }
.annual-price .pricing-annual-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 4px;
}
.pricing-card.is-featured .annual-price .pricing-annual-note { color: #C9C5D6; }
body.billing-annual .monthly-price { display: none; }
body.billing-annual .annual-price  { display: block; }

@media (max-width: 540px) {
  .pricing-category-tabs { gap: 8px; }
  .pricing-cat-btn { font-size: 0.78rem; padding: 9px 16px; }
}

/* ==========================================================================
   19. Pricing cards
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  align-items: start;
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
.pricing-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px) clamp(20px, 3vw, 28px);
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.pricing-card.is-featured {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 8px 8px 0 var(--violet-light);
  transform: translateY(-10px);
}
.pricing-card.is-featured:hover { transform: translateY(-14px); }

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  white-space: nowrap;
}
.pricing-plan-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.pricing-card:not(.is-featured) .pricing-plan-name { color: var(--violet); }
.pricing-card.is-featured .pricing-plan-name { color: var(--mint); }
.pricing-tagline { font-size: 0.88rem; margin-bottom: 18px; }
.pricing-card:not(.is-featured) .pricing-tagline { color: var(--grey); }
.pricing-card.is-featured .pricing-tagline { color: #C9C5D6; }
.pricing-amount { display: flex; align-items: baseline; gap: 3px; margin-bottom: 22px; }
.pricing-amount .currency { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.pricing-amount .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.pricing-amount .period { font-size: 0.92rem; font-weight: 600; }
.pricing-card:not(.is-featured) .pricing-amount .period { color: var(--grey); }
.pricing-card.is-featured .pricing-amount .period { color: #C9C5D6; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 24px; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.pricing-card.is-featured .pricing-features li { border-bottom-color: #3A3650; }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; font-weight: 800; flex-shrink: 0; color: var(--mint); }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-card.is-featured .btn { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.pricing-card.is-featured .btn:hover { background: var(--coral); border-color: var(--coral); }

.pricing-note {
  text-align: center;
  margin-top: clamp(32px, 5vw, 52px);
  padding: clamp(20px, 3vw, 28px);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}
.pricing-note p { color: var(--grey); margin-bottom: 14px; }

@media (max-width: 640px) {
  .pricing-card.is-featured { transform: none; }
  .pricing-card.is-featured:hover { transform: translateY(-4px); }
}

/* ==========================================================================
   20. Compare table
   ========================================================================== */
.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  position: relative;
}
/* Scroll hint on mobile */
@media (max-width: 600px) {
  .compare-table-wrap::after {
    content: '← scroll →';
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: var(--grey);
    padding: 6px;
    border-top: 1px solid var(--line);
  }
}
.compare-table { width: 100%; border-collapse: collapse; min-width: 380px; background: var(--cream); }
/* Tighter column padding on small screens */
@media (max-width: 500px) {
  .compare-table th, .compare-table td { padding: 10px 10px; font-size: 0.82rem; }
  .compare-table thead th { font-size: 0.7rem; }
}
.compare-table th, .compare-table td {
  padding: clamp(12px, 2vw, 16px) clamp(14px, 2.5vw, 20px);
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--cream);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: var(--surface); }
.compare-table td:first-child { font-weight: 600; }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }

/* ==========================================================================
   21. FAQ accordion
   ========================================================================== */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item {
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--cream);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: clamp(14px, 2.5vw, 18px) clamp(16px, 3vw, 22px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.4vw, 1.02rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--violet);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-answer { padding: 0 clamp(16px, 3vw, 22px) clamp(14px, 2vw, 20px); color: var(--grey); font-size: 0.94rem; }

/* ==========================================================================
   22. Product cards
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
}
.product-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.product-card .icon { font-size: clamp(1.5rem, 2.5vw, 1.8rem); }
.product-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  white-space: nowrap;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
}
.product-card .work-tag { display: inline-block; margin-bottom: 6px; }
.product-card h3 { margin-bottom: 8px; }
.product-card p.product-desc { color: var(--grey); font-size: 0.92rem; margin-bottom: 18px; flex: 1; }
.product-card .btn { align-self: flex-start; }

/* ==========================================================================
   23. Portfolio filters
   ========================================================================== */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.portfolio-filter-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.83rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
  min-height: 40px;
}
.portfolio-filter-btn:hover { transform: translateY(-2px); }
.portfolio-filter-btn.is-active { background: var(--ink); color: var(--cream); }

/* ==========================================================================
   24. Contact page
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-list { list-style: none; padding: 0; margin-bottom: 28px; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-list li:first-child { padding-top: 0; }
.contact-info-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--gold);
}
.contact-info-list strong { display: block; font-family: var(--font-display); font-size: 0.9rem; margin-bottom: 2px; }
.contact-info-list span, .contact-info-list a { color: var(--grey); font-size: 0.92rem; }

.contact-map {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }

.contact-form-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
}
.form-row { display: grid; gap: clamp(14px, 2vw, 18px); margin-bottom: clamp(14px, 2vw, 18px); }
.form-row.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row.cols2 { grid-template-columns: 1fr; } }
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 7px;
}
.form-field input[type=text],
.form-field input[type=email],
.form-field input[type=tel],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: clamp(11px, 1.5vw, 14px) clamp(13px, 2vw, 16px);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 3px solid var(--violet-light);
  outline-offset: 1px;
}
.contact-form-card .btn { width: 100%; justify-content: center; margin-top: 6px; }
.dc-hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-notice {
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--ink);
}
.form-notice.success { background: var(--mint); color: var(--ink); }
.form-notice.error   { background: var(--coral); color: var(--ink); }


/* ==========================================================================
   24b. Text Colour Animations — GPS DigAgency
       Editable via Appearance → Theme Options → Animations
   ========================================================================== */

/* Keyframes */
@keyframes gps-gradient-flow {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
@keyframes gps-sweep {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes gps-hue {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}
@keyframes gps-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes gps-neon {
  0%, 100% {
    text-shadow: 0 0 8px var(--violet), 0 0 20px var(--violet);
    color: var(--violet-light);
  }
  50% {
    text-shadow: 0 0 6px var(--coral), 0 0 16px var(--coral);
    color: #FF9F95;
  }
}
@keyframes gps-blink {
  from, to { border-color: transparent; }
  50%       { border-color: currentColor; }
}

/* ── Gradient text helper ─────────────────────────────────── */
.text-gradient {
  background: linear-gradient(
    270deg,
    var(--violet), var(--coral), var(--mint), var(--gold), var(--violet)
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-gradient-flow 5s ease infinite;
  display: inline;
}
.text-gradient-sweep {
  background: linear-gradient(90deg,
    var(--violet) 0%, var(--coral) 25%, var(--mint) 50%, var(--gold) 75%, var(--violet) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-sweep 3s linear infinite;
  display: inline;
}
.text-shimmer {
  background: linear-gradient(
    90deg, var(--ink) 0%, var(--ink) 40%, #fff 50%, var(--ink) 60%, var(--ink) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-shimmer 3s linear infinite;
  display: inline;
}
.text-hue-spin {
  color: var(--violet);
  animation: gps-hue 4s linear infinite;
  display: inline-block;
}
.text-neon-pulse {
  animation: gps-neon 2.5s ease-in-out infinite;
  display: inline-block;
}
/* Speed variants */
.anim-fast   { animation-duration: 1.5s !important; }
.anim-slow   { animation-duration: 8s   !important; }

/* Typewriter cursor */
.gps-typewriter {
  display: inline-block;
  border-right: 3px solid currentColor;
  animation: gps-blink .75s step-end infinite;
  min-width: 2ch;
}

/* ── Hero highlight — animated by default when class enabled ─ */
.hero-anim-gradient .hero h1 .highlight {
  background: linear-gradient(270deg, var(--violet), var(--coral), var(--mint), var(--gold), var(--violet));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-gradient-flow 5s ease infinite;
  padding: 2px 10px;
  transform: rotate(-1.5deg);
  border-radius: 8px;
}
.hero-anim-sweep .hero h1 .highlight {
  background: linear-gradient(90deg, var(--violet) 0%, var(--coral) 33%, var(--mint) 66%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-sweep 3s linear infinite;
  padding: 2px 10px;
  transform: rotate(-1.5deg);
  border-radius: 8px;
}
/* Section tag animation */
.section-anim-gradient .section-tag {
  background: linear-gradient(90deg, var(--violet), var(--coral), var(--mint), var(--gold), var(--violet));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-sweep 3s linear infinite;
}
/* Service numbers animation */
.service-num-anim .service-num {
  background: linear-gradient(135deg, var(--violet), var(--coral), var(--mint));
  background-size: 200% 200%;
  animation: gps-gradient-flow 3s ease infinite;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}
/* Trust stat numbers animation */
.trust-stat-anim .trust-stat strong {
  background: linear-gradient(270deg, var(--violet), var(--coral), var(--mint), var(--gold), var(--violet));
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gps-gradient-flow 4s ease infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .text-gradient, .text-gradient-sweep, .text-shimmer,
  .text-hue-spin, .text-neon-pulse, .gps-typewriter,
  .hero-anim-gradient .hero h1 .highlight,
  .hero-anim-sweep .hero h1 .highlight,
  .section-anim-gradient .section-tag,
  .service-num-anim .service-num,
  .trust-stat-anim .trust-stat strong { animation: none !important; }
  .text-gradient, .text-gradient-sweep,
  .hero-anim-gradient .hero h1 .highlight,
  .hero-anim-sweep .hero h1 .highlight,
  .section-anim-gradient .section-tag { background-position: 0% 50% !important; }
  .text-hue-spin { filter: none !important; }
}


/* ==========================================================================
   Dropdown submenus — animated slide-down with visual effects
   ========================================================================== */
.main-navigation ul li { position: relative; }

/* Desktop dropdown */
.main-navigation ul .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 220px;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 8px;
  list-style: none;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 200;
  display: flex; /* always flex, controlled by opacity/pointer-events */
}
/* Arrow indicator */
.main-navigation ul .sub-menu::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--ink);
}
.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Parent link arrow indicator */
.main-navigation ul li.menu-item-has-children > a {
  padding-right: 20px;
  position: relative;
}
.main-navigation ul li.menu-item-has-children > a::before {
  content: '▾';
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  color: var(--violet);
  transition: transform .2s ease;
  pointer-events: none;
}
.main-navigation ul li.menu-item-has-children:hover > a::before {
  transform: translateY(-50%) rotate(180deg);
}
/* Remove underline animation on parent with children */
.main-navigation ul li.menu-item-has-children > a::after { display: none; }

/* Sub-menu items */
.main-navigation ul .sub-menu li { width: 100%; }
.main-navigation ul .sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background .15s, color .15s, transform .15s;
  white-space: nowrap;
  border-bottom: none;
  position: relative;
}
.main-navigation ul .sub-menu a::after { display: none !important; }
.main-navigation ul .sub-menu a:hover {
  background: var(--violet);
  color: var(--cream);
  transform: translateX(4px);
}
.main-navigation ul .sub-menu li:nth-child(2n) a:hover { background: var(--coral); }
.main-navigation ul .sub-menu li:nth-child(3n) a:hover { background: var(--mint); color: var(--ink); }

/* Sub-menu item entrance stagger */
.main-navigation ul li:hover .sub-menu li,
.main-navigation ul li:focus-within .sub-menu li {
  animation: submenu-in .2s ease both;
}
.main-navigation ul li:hover .sub-menu li:nth-child(1) { animation-delay: 0s; }
.main-navigation ul li:hover .sub-menu li:nth-child(2) { animation-delay: .04s; }
.main-navigation ul li:hover .sub-menu li:nth-child(3) { animation-delay: .08s; }
.main-navigation ul li:hover .sub-menu li:nth-child(4) { animation-delay: .12s; }
.main-navigation ul li:hover .sub-menu li:nth-child(5) { animation-delay: .16s; }
@keyframes submenu-in {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Mobile submenu */
@media (max-width: 900px) {
  .main-navigation ul .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--violet);
    border-radius: 0;
    padding: 0 0 0 14px;
    margin: 4px 0 8px;
    background: transparent;
    display: none;
  }
  .main-navigation ul .sub-menu::before { display: none; }
  .main-navigation ul li.menu-item-has-children.is-open > .sub-menu {
    display: flex;
  }
  .main-navigation ul .sub-menu a {
    padding: 8px 0;
    font-size: 0.92rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .main-navigation ul .sub-menu a:hover { transform: none; background: transparent; color: var(--violet); }
  /* Mobile toggle arrow */
  .main-navigation ul li.menu-item-has-children > a { justify-content: space-between; }
  .main-navigation ul li.menu-item-has-children > .sub-toggle {
    background: none; border: none; cursor: pointer; padding: 4px 8px;
    color: var(--violet); font-size: 1rem; flex-shrink: 0;
    transition: transform .2s ease;
  }
  .main-navigation ul li.menu-item-has-children.is-open > .sub-toggle { transform: rotate(180deg); }
}

/* ==========================================================================
   Custom Page Banner
   ========================================================================== */
.page-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--ink);
}
.page-banner-img {
  width: 100%;
  height: clamp(200px, 35vw, 500px);
  object-fit: cover;
  object-position: center;
  display: block;
}
.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22,19,32,.75) 0%, rgba(124,58,237,.35) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: clamp(24px, 5vw, 60px);
}
.page-banner-overlay h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.page-banner-overlay p {
  color: rgba(255,255,255,.85);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  max-width: 600px;
  margin-bottom: 22px;
  line-height: 1.65;
}
.page-banner-overlay .btn {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.page-banner-overlay .btn:hover { background: var(--gold); border-color: var(--gold); }
.page-banner-overlay .btn-outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.page-banner-overlay .btn-outline:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.page-banner-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
/* No overlay variant (image-only) */
.page-banner.no-overlay .page-banner-overlay { background: none; }
/* Full-height variant */
.page-banner.full-height .page-banner-img { height: clamp(280px, 50vw, 680px); }

/* ==========================================================================
   Portfolio v2 — uniform image cards
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
@media (max-width: 960px)  { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
  min-width: 0;
}
.portfolio-item:hover { transform: translateY(-6px); box-shadow: 6px 6px 0 var(--violet-light); }

/* Thumbnail — image or colour fallback, always same ratio */
.portfolio-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: var(--violet);
  flex-shrink: 0;
}
.portfolio-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .35s ease;
}
.portfolio-item:hover .portfolio-thumb img { transform: scale(1.05); }

/* Colour fallback when no image */
.portfolio-thumb-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(0.9rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.9);
  text-align: center; padding: 16px;
}

/* Hover overlay on thumb */
.portfolio-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(22,19,32,.55);
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity .25s ease;
}
.portfolio-item:hover .portfolio-thumb-overlay { opacity: 1; }
.portfolio-thumb-btn {
  background: var(--cream); color: var(--ink);
  border: 2px solid var(--cream);
  border-radius: 999px; padding: 8px 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.portfolio-thumb-btn:hover { background: var(--violet); border-color: var(--violet); color: var(--cream); }
.portfolio-thumb-btn.outline { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.portfolio-thumb-btn.outline:hover { background: rgba(255,255,255,.15); }

/* Card body */
.portfolio-body {
  padding: clamp(16px, 2.5vw, 22px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portfolio-cat {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--coral);
  font-weight: 700;
  font-family: var(--font-display);
  display: block;
  margin-bottom: 6px;
}
.portfolio-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--ink);
  line-height: 1.3;
}
.portfolio-client {
  font-size: 0.8rem; color: var(--grey);
  margin-bottom: 8px;
}
.portfolio-desc {
  font-size: 0.88rem; color: var(--grey);
  line-height: 1.6; flex: 1;
  margin-bottom: 14px;
}
.portfolio-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.portfolio-tag-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  background: var(--surface); color: var(--grey);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap;
}
.portfolio-link {
  font-family: var(--font-display); font-weight: 700; font-size: 0.82rem;
  color: var(--violet); display: inline-flex; align-items: center; gap: 4px;
  text-decoration: none;
  transition: color .18s, gap .18s;
}
.portfolio-link:hover { color: var(--coral); gap: 8px; }

/* ==========================================================================
   Hero Badge Slideshow (Concept C)
   ========================================================================== */
.hero-slideshow {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 3%, 22px);
  position: relative;
  overflow: hidden;
}
.hero-slide-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--mint);
  margin-bottom: 8px;
  flex-shrink: 0;
}
.hero-slide {
  display: none;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  animation: slide-in .35s ease;
}
.hero-slide.is-active { display: flex; }
@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.hero-slide-icon { font-size: clamp(1.4rem, 4%, 2rem); line-height: 1; margin-bottom: 4px; }
.hero-slide-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.85rem, 2.5%, 1.2rem);
  color: var(--cream);
  line-height: 1.2;
}
.hero-slide-sub {
  font-size: clamp(0.65rem, 1.8%, 0.78rem);
  color: rgba(255,255,255,.7);
  line-height: 1.45;
  margin-top: 4px;
}
.hero-slide-dots {
  display: flex;
  gap: 5px;
  margin-top: auto;
  padding-top: 10px;
  flex-shrink: 0;
}
.hero-slide-dot {
  height: 4px;
  background: rgba(255,255,255,.3);
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s, width .2s;
  flex: 1;
  max-width: 20px;
}
.hero-slide-dot.is-active { background: var(--gold); max-width: 40px; }
.hero-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 0 2px 0 0;
}
@keyframes progress-fill { from { width: 0%; } to { width: 100%; } }

/* ==========================================================================
   Google Map embed (Contact page)
   ========================================================================== */
.contact-map-section {
  width: 100%;
  margin-top: clamp(28px, 4vw, 44px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-map-section iframe {
  width: 100%;
  height: clamp(250px, 40vw, 480px);
  display: block;
  border: 0;
}
.contact-map-placeholder {
  width: 100%;
  height: clamp(250px, 40vw, 480px);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--grey);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 24px;
}
.contact-map-placeholder .map-icon { font-size: 2.5rem; }
/* ==========================================================================
   25. Scroll animations
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.animate-on-scroll.fade-left  { transform: translateX(-32px); }
.animate-on-scroll.fade-right { transform: translateX(32px); }
.animate-on-scroll.zoom-in    { transform: scale(.92); }
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children when parent is .stagger-children */
.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: .08s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: .16s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: .24s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: .32s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: .40s; }

/* ==========================================================================
   26. Scroll-to-top button
   ========================================================================== */
#scroll-to-top {
  position: fixed;
  bottom: clamp(18px, 3vw, 28px);
  right: clamp(18px, 3vw, 28px);
  width: 46px; height: 46px;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
#scroll-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
#scroll-to-top:hover { background: var(--coral); border-color: var(--coral); }

/* ==========================================================================
   27. Preloader
   ========================================================================== */
#gps-preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#gps-preloader.loaded { opacity: 0; visibility: hidden; }
.preloader-dot {
  width: 12px; height: 12px;
  background: var(--cream);
  border-radius: 50%;
  animation: pl-bounce .9s infinite ease-in-out both;
}
.preloader-dot:nth-child(2) { background: var(--coral);  animation-delay: .16s; }
.preloader-dot:nth-child(3) { background: var(--violet); animation-delay: .32s; }
.preloader-dots { display: flex; gap: 10px; }
@keyframes pl-bounce { 0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)} }

/* ==========================================================================
   28. Blog / Archive
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--gap);
}
.post-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--surface); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: clamp(18px, 3vw, 24px); flex: 1; display: flex; flex-direction: column; }
.post-card-meta { font-size: 0.78rem; color: var(--grey); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.post-card h3 { font-size: clamp(1rem, 1.8vw, 1.2rem); margin-bottom: 8px; }
.post-card p { color: var(--grey); font-size: 0.9rem; flex: 1; }
.post-card .btn { margin-top: 14px; align-self: flex-start; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: clamp(36px, 5vw, 52px); flex-wrap: wrap; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.pagination .current { background: var(--ink); color: var(--cream); }
.pagination a:hover { background: var(--violet); border-color: var(--violet); color: var(--cream); }

/* ==========================================================================
   29. Widgets / sidebar
   ========================================================================== */
.widget { margin-bottom: 36px; }
.widget-title {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
