/* =============================================
   THE DATA GURU LTD — Main Stylesheet
   Earthy warm tones · Clean & minimal
   ============================================= */

/* --- Fonts --- */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- CSS Variables — Dark Theme (default) --- */
:root {
  --clr-bg:         #1A1612;       /* very dark warm brown */
  --clr-bg-alt:     #221e19;       /* slightly lighter warm brown */
  --clr-hero-bg:    #1A1612;       /* dark warm brown hero */
  --clr-text:       #FAF7F2;       /* warm off-white */
  --clr-text-muted: #B8A99A;       /* muted warm */
  --clr-accent:     #C0622A;       /* terracotta / burnt orange */
  --clr-accent-lt:  #E8A87C;       /* lighter terracotta */
  --clr-accent-dk:  #8B3E18;       /* deeper burnt orange */
  --clr-gold:       #B8963E;       /* warm gold */
  --clr-surface:    #221e19;
  --clr-border:     #3a3028;
  --clr-nav-bg:     rgba(26, 22, 18, 0.96);
  --clr-card-bg:    #221e19;
  --clr-strip-bg:   #2C2520;

  --font-display:   'Cormorant Garamond', 'Georgia', serif;
  --font-body:      'Montserrat', 'DM Sans', Arial, sans-serif;

  --radius:         4px;
  --radius-lg:      10px;
  --transition:     0.3s ease;
  --shadow:         0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 12px 48px rgba(0, 0, 0, 0.6);

  --nav-height:     72px;
  --max-width:      1160px;
}

/* --- Light Theme overrides --- */
[data-theme="light"] {
  --clr-bg:         #FAF7F2;
  --clr-bg-alt:     #F2EDE4;
  --clr-hero-bg:    #1A1612;
  --clr-text:       #2C2520;
  --clr-text-muted: #7A6E65;
  --clr-accent:     #C0622A;
  --clr-accent-lt:  #E8A87C;
  --clr-accent-dk:  #8B3E18;
  --clr-gold:       #B8963E;
  --clr-surface:    #ffffff;
  --clr-border:     #DDD5C8;
  --clr-nav-bg:     rgba(26, 22, 18, 0.96);
  --clr-card-bg:    #ffffff;
  --clr-strip-bg:   #2C2520;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--clr-text);
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; }

em { font-style: italic; color: var(--clr-accent); }

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

/* --- Layout Helpers --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--clr-bg-alt);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--clr-text-muted);
  max-width: 560px;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--clr-accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--clr-accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192, 98, 42, 0.35);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
}
.btn-outline:hover {
  background: var(--clr-accent);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--clr-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  margin-right: 0.5rem;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}

.logo-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--clr-accent-lt);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a.active {
  color: #fff;
}

.nav-links .nav-cta {
  background: var(--clr-accent);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  margin-left: 0.5rem;
}

.nav-links .nav-cta:hover {
  background: var(--clr-accent-dk);
}

/* Theme Toggle Button */
.theme-toggle {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: rotate(15deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  gap: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-menu a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color var(--transition);
}

.mobile-menu a:hover { color: var(--clr-accent-lt); }
.mobile-menu.open { display: flex; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: var(--clr-hero-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

[data-theme="light"] .hero {
  background: linear-gradient(135deg, #d8f5e0 0%, #e8faf0 50%, #d0f0e0 100%);
}

#particles-js {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-height);
}

/* Centred hero variant */
.hero-content--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 4rem;
}

/* Large centred logo */
.hero-logo-wrap {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.2s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-img {
  width: clamp(160px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(74, 222, 128, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.hero-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 12px 48px rgba(74, 222, 128, 0.6));
}

[data-theme="light"] .hero-logo-img {
  filter: drop-shadow(0 8px 32px rgba(26, 122, 58, 0.3));
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent-lt);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

[data-theme="light"] .hero-title {
  color: #0f2d1a;
}

.hero-title em {
  color: var(--clr-accent-lt);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}

[data-theme="light"] .hero-sub {
  color: rgba(15, 45, 26, 0.75);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(74,222,128,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.9; transform: scaleY(1.1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =============================================
   SERVICES TICKER
   ============================================= */
.ticker-wrap {
  overflow: hidden;
  background: var(--clr-accent);
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

[data-theme="light"] .ticker-wrap {
  background: var(--clr-accent);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 45s linear infinite;
  width: max-content;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a1009;
  padding: 0 2rem;
}

.ticker-sep {
  color: rgba(10, 16, 9, 0.4);
  font-size: 0.5rem;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================
   STATS STRIP
   ============================================= */
.intro-strip {
  background: var(--clr-strip-bg);
  padding: 2.5rem 0;
}

.strip-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 3rem;
  text-align: center;
}

.strip-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--clr-accent-lt);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.strip-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.strip-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.12);
}

/* =============================================
   SERVICES PREVIEW (Home)
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: var(--clr-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--clr-accent-lt);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card--featured {
  background: var(--clr-accent-dk);
  border-color: var(--clr-accent);
  color: #fff;
}

.service-card--featured h3 { color: #fff; }
.service-card--featured p  { color: rgba(255,255,255,0.65); }
.service-card--featured .service-icon { color: var(--clr-accent-lt); }
.service-card--featured .card-link { color: var(--clr-accent-lt); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--clr-accent);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.card-link {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  transition: letter-spacing var(--transition);
}

.service-card:hover .card-link {
  letter-spacing: 0.16em;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--clr-accent-lt);
  opacity: 0.4;
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text);
}

.author-role {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* =============================================
   BLOG PREVIEW
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: block;
  color: inherit;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--clr-accent-lt);
}

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--clr-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--clr-bg-alt), var(--clr-border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--clr-text);
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.blog-meta {
  font-size: 0.72rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.06em;
}

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  background: var(--clr-accent);
  padding: 4rem 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-top: 0.5rem;
}

.btn-white {
  background: #fff;
  color: var(--clr-accent);
  border: none;
}

.btn-white:hover {
  background: var(--clr-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.page-hero {
  background: var(--clr-hero-bg);
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.page-hero h1 { color: #fff; }
.page-hero .section-eyebrow { color: var(--clr-accent-lt); }
.page-hero p {
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--clr-text-muted); font-size: 0.95rem; line-height: 1.9; }

.about-credentials {
  margin-top: 2.5rem;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
}

.credential-item:first-child { border-top: 1px solid var(--clr-border); }

.credential-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--clr-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.credential-body strong {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text);
  margin-bottom: 0.2rem;
}

.credential-body span {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.about-sidebar .expertise-tag {
  display: inline-block;
  background: var(--clr-bg-alt);
  border: 1px solid var(--clr-border);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  margin: 0.25rem;
  transition: var(--transition);
}

.about-sidebar .expertise-tag:hover {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

.tags-group { margin-bottom: 2rem; }
.tags-group h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.75rem;
}

/* Stack Exchange rankings */
.se-rankings {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2rem;
}

.se-rankings h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.se-rank-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.84rem;
}

.se-rank-item:last-child { border-bottom: none; }

.se-rank-badge {
  background: var(--clr-accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  min-width: 42px;
  text-align: center;
}

.se-rank-badge.gold { background: var(--clr-gold); }

.se-rank-desc { color: var(--clr-text-muted); }
.se-rank-desc strong { color: var(--clr-text); font-weight: 500; }

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-full-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}

.service-full-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--clr-accent-lt);
  transform: translateY(-3px);
}

.service-full-card .service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
}

.service-full-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-full-card p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.service-full-card ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-full-card ul li {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  padding-left: 1.2rem;
  position: relative;
}

.service-full-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-size: 0.75rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--clr-text-muted);
  font-size: 0.9rem;
  line-height: 1.85;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--clr-border);
  font-size: 0.9rem;
  color: var(--clr-text-muted);
}

.contact-detail:first-of-type { border-top: 1px solid var(--clr-border); margin-top: 1.5rem; }

.contact-detail .detail-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  background: var(--clr-bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
}

.contact-detail a { color: var(--clr-accent); }
.contact-detail a:hover { text-decoration: underline; }

/* Contact Form */
.contact-form {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-form > p {
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--clr-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(192, 98, 42, 0.12);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-submit { width: 100%; padding: 1rem; font-size: 0.85rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #0a1009;
  color: rgba(255,255,255,0.6);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-main { color: #fff; font-size: 1.3rem; }
.footer-brand .logo-sub  { color: var(--clr-accent-lt); }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 1rem;
  color: rgba(255,255,255,0.45);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--clr-accent-lt); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .services-grid       { grid-template-columns: 1fr; }
  .services-full-grid  { grid-template-columns: 1fr; }
  .testimonials-grid   { grid-template-columns: 1fr; }
  .blog-grid           { grid-template-columns: 1fr; }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .strip-grid          { gap: 0; }
  .strip-item          { padding: 0.75rem 1.5rem; }
  .strip-divider       { display: none; }
  .cta-band-inner      { flex-direction: column; text-align: center; }
  .form-row            { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}

/* =============================================
   LOGO TICKER (below logo, logo-width)
   ============================================= */
.logo-ticker {
  width: clamp(160px, 22vw, 280px);
  max-width: 100%;
  overflow: hidden;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(74,222,128,0.3);
  border-bottom: 1px solid rgba(74,222,128,0.3);
  padding: 0.35rem 0;
}

.logo-ticker-track {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent-lt);
}

.logo-ticker-track:hover { animation-play-state: paused; }

.logo-ticker-track .ts {
  color: rgba(74,222,128,0.4);
  font-size: 0.4rem;
  flex-shrink: 0;
}

/* Fix LTD colour in nav */
.logo-sub {
  color: rgba(255,255,255,0.45) !important;
}

/* =============================================
   ARTICLE / BLOG PAGES
   ============================================= */

.article-page {
  padding-top: var(--nav-height);
}

.article-hero {
  background: var(--clr-hero-bg);
  padding: 4rem 0 3.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.article-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent), transparent);
}

.article-hero .eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-accent-lt);
  margin-bottom: 1rem;
  display: block;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
}

.article-meta strong { color: rgba(255,255,255,0.75); font-weight: 500; }
.meta-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.2); }

/* Article body */
.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 2rem 5rem;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--clr-text);
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--clr-border);
}

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--clr-text);
  margin: 2rem 0 0.75rem;
}

.article-body h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin: 1.5rem 0 0.5rem;
}

.article-body p {
  font-size: 0.975rem;
  color: var(--clr-text-muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.article-body p:first-of-type { font-size: 1.05rem; color: var(--clr-text); }
.article-body strong { color: var(--clr-text); font-weight: 500; }
.article-body em { color: var(--clr-accent-lt); font-style: italic; }

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  font-size: 0.95rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  padding-left: 0.25rem;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--clr-border);
  margin: 2.5rem 0;
}

.article-body sup {
  font-size: 0.7rem;
  color: var(--clr-accent);
  vertical-align: super;
}

.article-body a {
  color: var(--clr-accent-lt);
  text-decoration: underline;
  text-decoration-color: rgba(232,168,124,0.4);
  text-underline-offset: 2px;
}

.article-body a:hover { color: var(--clr-accent); }

/* References */
.article-body ul.references, .references-list {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 1rem;
}

.article-body ul.references li, .references-list li {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  padding: 0.75rem 1rem;
  background: var(--clr-bg-alt);
  border-left: 2px solid var(--clr-border);
  border-radius: 0 4px 4px 0;
}

/* Glossary */
.glossary-term {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-accent);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.glossary-term h3 {
  font-size: 1rem; font-weight: 500; margin: 0 0 0.4rem;
  color: var(--clr-text); font-family: var(--font-body);
}

.glossary-term p { font-size: 0.875rem; margin: 0; color: var(--clr-text-muted); }

/* Review table */
.review-table { width: 100%; border-collapse: collapse; margin: 2rem 0; font-size: 0.875rem; }
.review-table thead { background: var(--clr-bg-alt); }
.review-table th {
  padding: 0.85rem 1rem; text-align: left; font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--clr-text-muted); border-bottom: 2px solid var(--clr-border);
}
.review-table td {
  padding: 0.85rem 1rem; border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-muted); vertical-align: top;
}
.review-table td a { color: var(--clr-accent-lt); }
.review-table td a:hover { color: var(--clr-accent); }
.review-table tr:hover td { background: var(--clr-bg-alt); }

/* Back link */
.back-link {
  display: block;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--clr-accent);
  text-decoration: none; margin-top: 3rem; padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}
.back-link:hover { color: var(--clr-accent-lt); text-decoration: none; }

/* Light theme article overrides */
[data-theme="light"] .article-hero { background: #2C2520; }
[data-theme="light"] .article-body a { color: var(--clr-accent); }
[data-theme="light"] .article-body em { color: var(--clr-accent); }
