/* ============================================================
   ChainCare — Dark Mode Constructivist Editorial Design
   Color palette: Red #E50000 / Dark surfaces / White text
   Typography: Instrument Serif (display) + DM Sans (body)
   ============================================================ */

:root {
  --red: #E50000;
  --red-dark: #B80000;
  --red-light: #FF3333;
  --red-glow: rgba(229, 0, 0, 0.15);

  /* Dark mode surfaces */
  --bg-base: #111118;
  --bg-raised: #1A1A24;
  --bg-card: #232330;
  --bg-card-hover: #2C2C3A;
  --bg-input: rgba(255, 255, 255, 0.07);
  --bg-input-focus: rgba(255, 255, 255, 0.12);

  /* Text — high contrast for readability */
  --text-primary: #EEEEF0;
  --text-secondary: #9A9AB0;
  --text-tertiary: #5E5E72;
  --text-on-red: #FFFFFF;

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-red: rgba(229, 0, 0, 0.4);

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --container: 1200px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section-pad: clamp(4rem, 10vw, 8rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* ---- UTILITY ---- */
.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
}
.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 48ch;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 60ch;
  margin-top: 1rem;
}
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--text-on-red);
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(229, 0, 0, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-hover);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1001;
}
.logo-placeholder { display: flex; align-items: center; }
.logo-mark { width: 36px; height: 36px; }
.logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover::after { width: 100%; }
.cta-link {
  background: var(--red);
  color: var(--text-on-red) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}
.cta-link::after { display: none; }
.cta-link:hover {
  background: var(--red-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229, 0, 0, 0.3);
}
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--red); }
.cta-link-mobile {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  background: var(--red);
  color: var(--text-on-red);
  padding: 0.75rem 2rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(72px + 3rem) 0 3rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(229, 0, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 85% 20%, rgba(229, 0, 0, 0.04) 0%, transparent 50%),
    var(--bg-base);
}
.hero::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}
.hero-eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.25rem;
  height: 2px;
  background: var(--red);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.hero-headline em {
  font-style: italic;
  color: var(--red);
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 48ch;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hero-trust {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* Hero Visual — 24/7 Clock */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.hero-clock {
  width: clamp(240px, 22vw, 320px);
  height: clamp(240px, 22vw, 320px);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clock-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--red) 0deg,
      var(--red) 270deg,
      rgba(255,255,255,0.06) 270deg,
      rgba(255,255,255,0.06) 360deg
    );
  -webkit-mask: radial-gradient(circle, transparent 60%, black 61%);
  mask: radial-gradient(circle, transparent 60%, black 61%);
  animation: clock-fill 2s var(--ease-out) forwards;
  filter: drop-shadow(0 0 20px rgba(229, 0, 0, 0.2));
}
@keyframes clock-fill {
  from { opacity: 0; transform: rotate(-90deg); }
  to { opacity: 1; transform: rotate(0deg); }
}
.clock-center {
  text-align: center;
  z-index: 1;
  background: var(--bg-base);
  width: 60%;
  height: 60%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.clock-label {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text-primary);
  line-height: 1;
}
.clock-sep { color: var(--red); }
.clock-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}
.clock-tick {
  position: absolute;
  width: 2px;
  height: 12px;
  background: var(--text-secondary);
  border-radius: 1px;
}
.tick-1 { top: 4px; left: 50%; transform: translateX(-50%); }
.tick-2 { right: 4px; top: 50%; transform: translateY(-50%) rotate(90deg); }
.tick-3 { bottom: 4px; left: 50%; transform: translateX(-50%); }
.tick-4 { left: 4px; top: 50%; transform: translateY(-50%) rotate(90deg); }

.hero-stat-cards {
  display: flex;
  gap: 1rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
  display: block;
}

/* Scroll Hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-tertiary), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ========================================
   SERVICES
   ======================================== */
.services {
  padding: var(--section-pad) 0;
  background: var(--bg-raised);
  position: relative;
}
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  transition: background 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.service-card:hover::before { background: var(--red); }
.service-card.featured {
  background: var(--red);
  border-color: var(--red);
  color: var(--text-on-red);
}
.service-card.featured::before { background: rgba(255,255,255,0.3); }
.service-card.featured .service-number { color: rgba(255,255,255,0.5); }
.service-card.featured .service-desc { color: rgba(255,255,255,0.8); }
.service-card.featured:hover {
  background: var(--red-light);
  box-shadow: 0 12px 40px rgba(229, 0, 0, 0.3);
}
.service-card.wide {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
}
.service-number {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-tertiary);
  margin-bottom: 1.5rem;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.service-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.service-card.wide .service-number { margin-bottom: 0; }
.service-card.wide .service-desc { margin-bottom: 0; }
.service-icon {
  width: 48px;
  height: 48px;
  margin-top: 2rem;
  color: var(--red);
}
.service-card.wide .service-icon { margin-top: 0; }
.service-card.featured .service-icon { color: rgba(255,255,255,0.7); }

/* ========================================
   DEEP DIVE
   ======================================== */
.deep-dive {
  padding: var(--section-pad) 0;
  background: var(--bg-base);
  position: relative;
}
.deep-dive::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, rgba(229, 0, 0, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.deep-dive .section-tag { color: var(--red); }
.deep-dive .section-title { color: var(--text-primary); }
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.deep-dive-left {
  position: sticky;
  top: calc(72px + 3rem);
  align-self: start;
}
.deep-dive-cta-text {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.deep-dive-right {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.deep-dive-block {
  padding: 2rem;
  border-left: 3px solid var(--red);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  transition: background 0.3s;
}
.deep-dive-block:hover {
  background: var(--bg-card-hover);
}
.deep-dive-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.deep-dive-block p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: var(--section-pad) 0;
  background: var(--bg-raised);
  position: relative;
}
.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transition: transform 0.3s var(--ease-out);
}
.testimonial-card:hover {
  transform: translateY(-3px);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--red);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.4;
}
.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ========================================
   BLOG
   ======================================== */
.blog {
  padding: var(--section-pad) 0;
  background: var(--bg-base);
  position: relative;
}
.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  border-color: var(--red);
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.blog-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}
.blog-category {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-glow);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.blog-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  flex-grow: 1;
}
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.blog-read-more {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--red);
  transition: transform 0.2s;
  display: inline-block;
}
.blog-card:hover .blog-read-more { transform: translateX(4px); }

/* ========================================
   CONTACT
   ======================================== */
.contact {
  padding: var(--section-pad) 0;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(229,0,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.contact .section-tag { color: var(--red); }
.contact .section-title { color: var(--text-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 45ch;
  line-height: 1.7;
}
.contact-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-tertiary);
  transition: color 0.2s;
}
.contact-social:hover { color: var(--red); }
.contact-social svg { flex-shrink: 0; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}
.required { color: var(--red); }
.form-group input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder { color: var(--text-tertiary); }
.form-group input:focus {
  outline: none;
  border-color: var(--red);
  background: var(--bg-input-focus);
}
.contact .btn-primary {
  margin-top: 0.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--bg-base);
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem clamp(1.25rem, 4vw, 3rem) 2rem;
}
.footer-brand {
  margin-bottom: 3rem;
}
.footer-brand .logo-text { color: var(--text-primary); }
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* ========================================
   ANIMATIONS — Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  /* hero-visual stays in DOM order: after hero-content (after trust line) */
  .hero-clock { width: 200px; height: 200px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card.wide { grid-column: span 2; }
  .deep-dive-grid { grid-template-columns: 1fr; gap: 2rem; }
  .deep-dive-left { position: static; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .blog-card:last-child { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero { min-height: auto; padding-top: calc(72px + 2rem); padding-bottom: 4rem; }
  .hero-scroll-hint { display: none; }
  .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card.wide { grid-column: span 1; grid-template-columns: 1fr; }
  .service-card.wide .service-icon { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:last-child { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-stat-cards { flex-direction: column; width: 100%; }
  .stat-card { width: 100%; }
  .hero-clock { width: 180px; height: 180px; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
}

/* ========================================
   WORDPRESS-SPECIFIC STYLES
   ======================================== */

/* WordPress custom logo integration */
.custom-logo-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  z-index: 1001;
}
.custom-logo {
  height: 36px;
  width: auto;
}

/* ---- PAGE TEMPLATES ---- */

/* Generic page (Careers, FAQs, Privacy, etc.) */
.page-content {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  background: var(--bg-base);
  min-height: 70vh;
}
.page-content .section-container {
  max-width: 800px;
}
.page-content .page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* Block editor content styling */
.entry-content {
  color: var(--text-secondary);
  line-height: 1.8;
}
.entry-content h1, .entry-content h2, .entry-content h3,
.entry-content h4, .entry-content h5, .entry-content h6 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.entry-content h2 { font-size: 1.75rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--red-light); }
.entry-content ul, .entry-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
  list-style: disc;
}
.entry-content ol { list-style: decimal; }
.entry-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
.entry-content blockquote {
  border-left: 3px solid var(--red);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.entry-content img {
  border-radius: 8px;
  margin: 1.5rem 0;
}
.entry-content code {
  background: var(--bg-card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.875em;
  color: var(--red-light);
}
.entry-content pre {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.entry-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
}
.entry-content hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.entry-content th, .entry-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.entry-content th {
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- SUPPORT OPERATIONS PAGE ---- */
.so-hero {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  background: var(--bg-base);
  position: relative;
}
.so-hero::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
}
.so-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.so-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 65ch;
  margin-bottom: 1rem;
}
.so-sections {
  padding: var(--section-pad) 0;
}
.so-sections.bg-base { background: var(--bg-base); }
.so-sections.bg-raised { background: var(--bg-raised); }
.so-section {
  padding: 2.5rem;
  border-left: 3px solid var(--red);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  margin-bottom: 2rem;
  transition: background 0.3s;
}
.so-section:last-child { margin-bottom: 0; }
.so-section:hover { background: var(--bg-card-hover); }
.so-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}
.so-section p,
.so-section .entry-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.so-section .entry-content p:last-child { margin-bottom: 0; }

/* Capabilities List Layout */
.so-section--capabilities {
  border-left-color: var(--red);
}
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.capability-item {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.capability-item:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}
.capability-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}
.capability-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

.so-cta {
  padding: var(--section-pad) 0;
  background: var(--bg-raised);
  text-align: center;
}

/* ---- PRICING PAGE ---- */
.pricing {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  background: var(--bg-base);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.pricing-card.highlighted {
  border: 2px solid var(--red);
  box-shadow: 0 8px 32px rgba(229, 0, 0, 0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--text-on-red);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-tier {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}
.pricing-price {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.price-currency {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-weight: 500;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-primary);
  line-height: 1;
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}
.pricing-best-for {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.pricing-features {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.8;
}
.pricing-custom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.pricing-custom a {
  color: var(--red);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.pricing-custom a:hover { border-color: var(--red); }

/* ---- BLOG LISTING / ARCHIVE ---- */
.blog-listing {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  background: var(--bg-base);
  min-height: 70vh;
}
.blog-listing .blog-grid {
  margin-bottom: 3rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.pagination .page-numbers:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.pagination .page-numbers.current {
  background: var(--red);
  color: var(--text-on-red);
  border-color: var(--red);
}

/* ---- SINGLE POST ---- */
.single-post-header {
  padding: calc(72px + var(--section-pad)) 0 2rem;
  background: var(--bg-base);
}
.single-post-header .section-container {
  max-width: 800px;
}
.single-post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.single-post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.15;
}
.single-post-content {
  padding: 2rem 0 var(--section-pad);
  background: var(--bg-base);
}
.single-post-content .section-container {
  max-width: 800px;
}
.single-post-featured-img {
  border-radius: 8px;
  margin-bottom: 2rem;
  width: 100%;
}

/* Single post footer / author */
.single-post-footer {
  padding: 2rem 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}
.post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.post-author-avatar {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}
.post-author-info {
  display: flex;
  flex-direction: column;
}
.post-author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.post-author-date {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* Blog card thumbnail */
.blog-card-thumbnail {
  margin: -2rem -2rem 1.25rem -2rem;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}
.blog-card-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.blog-card:hover .blog-card-thumbnail img {
  transform: scale(1.03);
}

.more-articles {
  padding: var(--section-pad) 0;
  background: var(--bg-raised);
}

/* ---- 404 PAGE ---- */
.error-404 {
  padding: calc(72px + var(--section-pad)) 0 var(--section-pad);
  background: var(--bg-base);
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.error-404-content {
  text-align: center;
}
.error-404-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--red);
  line-height: 1;
  opacity: 0.3;
}
.error-404-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.error-404-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ---- CONTACT FORM 7 STYLING ---- */
.wpcf7 .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wpcf7 .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.wpcf7 .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.wpcf7 label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-email,
.wpcf7 .wpcf7-tel,
.wpcf7 .wpcf7-url,
.wpcf7 .wpcf7-textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
  background: var(--bg-input) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 0.75rem 1rem !important;
  color: var(--text-primary) !important;
  font-size: 0.9rem !important;
  font-family: var(--font-body) !important;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none !important;
  border-color: var(--red) !important;
  background: var(--bg-input-focus) !important;
}
.wpcf7 .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 4px;
  background: var(--red);
  color: var(--text-on-red);
  border: 2px solid var(--red);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  width: 100%;
  margin-top: 0.5rem;
}
.wpcf7 .wpcf7-submit:hover {
  background: var(--red-light);
  border-color: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(229, 0, 0, 0.3);
}
.wpcf7 .wpcf7-not-valid-tip {
  color: var(--red-light);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.wpcf7 .wpcf7-response-output {
  border-radius: 6px;
  padding: 1rem;
  font-size: 0.875rem;
  margin-top: 1rem;
}
.wpcf7 .wpcf7-mail-sent-ok {
  border-color: #28a745;
  color: #28a745;
}

/* ---- WORDPRESS ALIGNMENTS ---- */
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }

/* Screen reader text (WordPress accessibility) */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .wpcf7 .form-row { grid-template-columns: 1fr; }
}
