/*
Theme Name: DS Security
Theme URI: https://dssecurity.services
Author: DS Security Services
Author URI: https://dssecurity.services
Description: Premium cybersecurity consultancy WordPress theme for DS Security Services. Enterprise-grade design with focus on trust, professionalism and lead generation.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ds-security
Domain Path: /languages
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   DESIGN SYSTEM
   ============================================================ */
:root {
  --color-deep-navy: #07111F;
  --color-midnight: #0B1F33;
  --color-electric-cyan: #19B5FE;
  --color-blue: #4F7CFF;
  --color-white: #FFFFFF;
  --color-light: #F5F8FB;
  --color-text: #07111F;
  --color-muted: #667085;
  --color-border: #E4EAF0;

  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1240px;
  --container-padding: 40px;
  --container-padding-mobile: 24px;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgba(7, 17, 31, 0.04);
  --shadow-md: 0 4px 12px rgba(7, 17, 31, 0.06);
  --shadow-lg: 0 8px 24px rgba(7, 17, 31, 0.08);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  --header-height: 84px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:focus-visible {
  outline: 2px solid var(--color-electric-cyan);
  outline-offset: 2px;
}

a:hover {
  color: var(--color-electric-cyan);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  background: var(--color-deep-navy);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
  color: var(--color-white);
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--container-padding-mobile);
    padding-right: var(--container-padding-mobile);
  }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-deep-navy);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-electric-cyan);
  margin-bottom: 16px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 12px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:focus-visible {
  outline: 2px solid var(--color-electric-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-deep-navy);
  color: var(--color-white);
  border-color: var(--color-deep-navy);
}

.btn-primary:hover {
  background: var(--color-midnight);
  border-color: var(--color-midnight);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-deep-navy);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-deep-navy);
  color: var(--color-deep-navy);
}

.btn-accent {
  background: var(--color-electric-cyan);
  color: var(--color-deep-navy);
  border-color: var(--color-electric-cyan);
}

.btn-accent:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: var(--color-deep-navy);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.875rem;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: 1360px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-branding a {
  display: flex;
  align-items: center;
}

.site-branding img {
  height: 66px;
  width: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.main-navigation a:hover {
  color: var(--color-electric-cyan);
}

.main-navigation .mobile-cta {
  display: none;
}

.header-cta {
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-deep-navy);
  transition: all var(--transition-fast);
}

.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;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-branding img {
    height: 54px;
  }

  .main-navigation {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-open .main-navigation {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }

  .mobile-menu-open .main-navigation ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .mobile-menu-open .main-navigation li {
    width: 100%;
  }

  .mobile-menu-open .main-navigation a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-menu-open .main-navigation li:last-child a {
    border-bottom: none;
  }

  .mobile-menu-open .main-navigation .mobile-cta {
    display: block;
    margin-top: 16px;
  }

  .mobile-menu-open .main-navigation .mobile-cta a {
    border-bottom: none;
    padding: 0 24px;
    text-align: center;
    color: var(--color-white);
  }

  .mobile-menu-open .main-navigation .mobile-cta a:hover {
    color: var(--color-white);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 96px 0 80px;
  background: var(--color-deep-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  color: var(--color-white);
}

.hero .eyebrow {
  color: var(--color-electric-cyan);
}

.hero-description {
  color: rgba(255, 255, 255, 0.75);
}

.hero .btn-primary {
  background: var(--color-electric-cyan);
  border-color: var(--color-electric-cyan);
  color: var(--color-deep-navy);
}

.hero .btn-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: var(--color-deep-navy);
}

.hero .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-white);
}

.hero .btn-secondary:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   HERO VISUAL ANIMATION (FIND → FIX → PROVE, 12s loop)
   ============================================================ */
.hero-visual svg {
  width: 100%;
  height: auto;
  max-width: 480px;
}

.hv-status {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.hv-sweep {
  animation: hv-sweep 12s ease-in-out infinite;
}

@keyframes hv-sweep {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 0.7; }
  22% { transform: translateX(420px); opacity: 0.7; }
  28%, 100% { transform: translateX(420px); opacity: 0; }
}

.hv-nodes circle {
  animation: hv-node 12s ease-in-out infinite;
}

@keyframes hv-node {
  0%, 18% { opacity: 0.35; }
  30%, 82% { opacity: 0.9; }
  94%, 100% { opacity: 0.35; }
}

.hv-ping {
  transform-box: fill-box;
  transform-origin: center;
  animation: hv-ping 12s ease-out infinite;
}

.hv-gap2 .hv-ping { animation-delay: 0.5s; }
.hv-gap3 .hv-ping { animation-delay: 1s; }

@keyframes hv-ping {
  0%, 28% { transform: scale(0.4); opacity: 0; }
  36% { opacity: 0.9; }
  52%, 100% { transform: scale(1.7); opacity: 0; }
}

.hv-dot {
  animation: hv-dot 12s ease-in-out infinite;
}

.hv-gap2 .hv-dot { animation-delay: 0.5s; }
.hv-gap3 .hv-dot { animation-delay: 1s; }

@keyframes hv-dot {
  0%, 52% { fill: transparent; }
  62%, 92% { fill: #19B5FE; }
  100% { fill: transparent; }
}

.hv-tick {
  animation: hv-tick 12s ease-in-out infinite;
}

.hv-gap2 .hv-tick { animation-delay: 0.5s; }
.hv-gap3 .hv-tick { animation-delay: 1s; }

@keyframes hv-tick {
  0%, 60% { opacity: 0; }
  68%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

.hv-st-scan { animation: hv-st-scan 12s ease-in-out infinite; }
.hv-st-found { animation: hv-st-found 12s ease-in-out infinite; }
.hv-st-fixed { animation: hv-st-fixed 12s ease-in-out infinite; }

@keyframes hv-st-scan {
  0%, 24% { opacity: 0.55; }
  30%, 100% { opacity: 0; }
}

@keyframes hv-st-found {
  0%, 32% { opacity: 0; }
  40%, 56% { opacity: 1; }
  64%, 100% { opacity: 0; }
}

@keyframes hv-st-fixed {
  0%, 62% { opacity: 0; }
  70%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-sweep,
  .hv-nodes circle,
  .hv-ping,
  .hv-dot,
  .hv-tick,
  .hv-st-scan,
  .hv-st-found,
  .hv-st-fixed {
    animation: none;
  }

  .hv-st-scan,
  .hv-st-found {
    opacity: 0;
  }

  .hv-st-fixed {
    opacity: 1;
  }

  .hv-dot {
    fill: #19B5FE;
  }

  .hv-tick {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero {
    padding: 64px 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    order: 2;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ============================================================
   BRAND STATEMENT
   ============================================================ */
.brand-statement {
  padding: 64px 0;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.brand-statement h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-deep-navy);
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
.section {
  padding: 96px 0;
}

.section-sm {
  padding: 64px 0;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.0625rem;
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .section-sm {
    padding: 48px 0;
  }
}

/* ============================================================
   SECURITY PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-step {
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.process-step:hover {
  border-color: var(--color-electric-cyan);
  box-shadow: var(--shadow-md);
}

.process-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-electric-cyan);
  margin-bottom: 16px;
}

.process-step h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.service-card:hover {
  border-color: var(--color-electric-cyan);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-blue);
}

.service-card-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--color-deep-navy);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 16px;
  flex: 1;
}

.service-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.service-card:hover .service-card-link {
  color: var(--color-electric-cyan);
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   HIGHLIGHT SECTIONS
   ============================================================ */
.highlight {
  padding: 96px 0;
}

.highlight .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.highlight-content h2 {
  margin-bottom: 16px;
}

.highlight-content p {
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.highlight-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.highlight-list li {
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.highlight-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-electric-cyan);
  margin-top: 8px;
  flex-shrink: 0;
}

.highlight-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-visual svg {
  width: 100%;
  height: auto;
  max-width: 440px;
}

@media (max-width: 1024px) {
  .highlight .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .highlight-visual {
    order: 2;
  }
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us {
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-item {
  padding: 24px;
  text-align: left;
}

.why-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--color-blue);
}

.why-item-icon svg {
  width: 28px;
  height: 28px;
}

.why-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   FOUNDER
   ============================================================ */
.founder .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.founder-content h2 {
  margin-bottom: 16px;
}

.founder-content p {
  font-size: 1.0625rem;
  margin-bottom: 16px;
}

.founder-quote {
  margin-top: 32px;
  padding: 24px;
  background: var(--color-light);
  border-left: 3px solid var(--color-electric-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.founder-quote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-deep-navy);
  margin-bottom: 12px;
}

.founder-quote cite {
  font-size: 0.875rem;
  font-weight: 600;
  font-style: normal;
  color: var(--color-muted);
}

.founder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-visual svg {
  width: 100%;
  height: auto;
  max-width: 400px;
}

@media (max-width: 1024px) {
  .founder .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================================
   CTA SECTIONS
   ============================================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: var(--color-deep-navy);
  color: var(--color-white);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.cta-section .btn-primary {
  background: var(--color-electric-cyan);
  border-color: var(--color-electric-cyan);
  color: var(--color-deep-navy);
}

.cta-section .btn-primary:hover {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: var(--color-deep-navy);
}

.cta-section .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--color-white);
}

.cta-section .btn-secondary:hover {
  border-color: var(--color-white);
  color: var(--color-white);
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================================
   PAGE HERO (Inner Pages)
   ============================================================ */
.page-hero {
  padding: 80px 0 64px;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero .lead {
  font-size: 1.125rem;
  color: var(--color-muted);
  max-width: 640px;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 56px 0 48px;
  }
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  padding: 64px 0;
}

.content-section h2 {
  margin-bottom: 16px;
}

.content-section h3 {
  margin-bottom: 12px;
  margin-top: 32px;
}

.content-section p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.content-section ul, .content-section ol {
  margin: 0 0 16px 24px;
  color: var(--color-muted);
}

.content-section li {
  margin-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============================================================
   FRAMEWORK CARDS
   ============================================================ */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* WordPress wpautop can inject empty paragraphs between inline card
   elements at render time. They must never become grid items. */
.framework-grid > p:empty,
.services-grid > p:empty,
.process-grid > p:empty,
.why-grid > p:empty {
  display: none;
}

.framework-card {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
}

.framework-card:hover {
  border-color: var(--color-electric-cyan);
  box-shadow: var(--shadow-md);
}

.framework-card .service-card-link {
  margin-top: 12px;
}

.framework-card:hover .service-card-link {
  color: var(--color-electric-cyan);
}

.framework-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-deep-navy);
}

.framework-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .framework-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============================================================
   CALCULATOR
   ============================================================ */
.calculator-section {
  padding: 80px 0;
  background: var(--color-light);
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.calculator-form {
  display: grid;
  gap: 24px;
}

.calculator-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calculator-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-deep-navy);
}

.calculator-form select,
.calculator-form input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.calculator-form select:focus,
.calculator-form input:focus {
  outline: none;
  border-color: var(--color-electric-cyan);
}

.calculator-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.calculator-result {
  margin-top: 32px;
  padding: 32px;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: none;
}

.calculator-result.visible {
  display: block;
}

.calculator-result h3 {
  margin-bottom: 16px;
}

.calculator-result .estimate-range {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-deep-navy);
  margin-bottom: 8px;
}

.calculator-result .estimate-details {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.calculator-result .estimate-reference {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.calculator-disclaimer {
  margin-top: 24px;
  padding: 16px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: #92400E;
}

@media (max-width: 768px) {
  .calculator-container {
    padding: 24px;
  }

  .calculator-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  padding: 80px 0;
}

.contact-container {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-deep-navy);
}

.contact-form label .required {
  color: #DC2626;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-electric-cyan);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-message {
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form-message.success {
  display: block;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}

.form-message.error {
  display: block;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

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

/* ============================================================
   FRAMEWORK MARQUEE
   ============================================================ */
.framework-marquee {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 48px;
  overflow: hidden;
}

.framework-marquee-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
  text-align: center;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
}

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

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

.marquee-badge {
  flex-shrink: 0;
  margin-right: 16px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  white-space: nowrap;
  transition: border-color 200ms ease, color 200ms ease;
}

.marquee-badge:hover {
  border-color: var(--color-electric-cyan);
  color: var(--color-white);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

/* ============================================================
   MOBILE CTA BAR
   ============================================================ */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 76px;
  }

  .mobile-cta-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--color-border);
  }

  .mobile-cta-bar .btn {
    width: 100%;
  }

  .mobile-cta-bar.hidden {
    display: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-deep-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 108px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-electric-cyan);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
  text-align: center;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  padding: 120px 0;
  text-align: center;
}

.error-404 h1 {
  font-size: 6rem;
  color: var(--color-electric-cyan);
  margin-bottom: 16px;
}

.error-404 h2 {
  margin-bottom: 16px;
}

.error-404 p {
  margin-bottom: 32px;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
