/* ============================================================
   LOCAL FONTS — Inter (self-hosted, no Google Fonts CDN)
   ============================================================ */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-v20-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-v20-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-v20-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-v20-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand Palette */
  --brand-orange: #fa6220;
  --bg-navy: #000621;
  --bg-navy-light: #000a33;

  /* Neutrals */
  --text-main: #f4f4f5;
  --text-muted: #a1a1aa;
  --card-bg: rgba(255, 255, 255, 0.02);
  --border-color: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-navy);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
  color: var(--text-main);
  line-height: 1.2;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* Navigation */
.navbar {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background-color: rgba(0, 6, 33, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--brand-orange);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand-orange);
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-orange);
  color: #ffffff !important;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.start-project {
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(250, 98, 32, 0.4);
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  padding: 12px 28px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Hero Section */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  height: calc(100vh - 110px);
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at center top,
    var(--bg-navy-light) 0%,
    var(--bg-navy) 70%
  );
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
  max-width: 1000px;
  margin-inline: auto;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 650px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Services Section */
.services {
  padding: 100px 0;
}

.service-grid {
  display: grid;
  /* This automatically creates the 3x3 layout on large screens based on item count */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--card-bg);
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-orange);
  background-color: rgba(255, 255, 255, 0.04);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--brand-orange);
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Expertise Section */
.expertise {
  padding: 100px 0;
  background-color: var(--bg-navy-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.expertise-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.expertise h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.expertise p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.feature-list li {
  background-color: rgba(250, 98, 32, 0.1);
  color: var(--brand-orange);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  text-align: center;
}

.cta-container h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-container p {
  color: var(--text-muted);
  font-size: 1.25rem;
  margin-bottom: 40px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
  background-color: var(--bg-navy-light);
}

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

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4 {
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding: 80px 0;
  }
  .cta-section {
    padding: 80px 0;
  }
}

/* --- About Page Specifics --- */

.page-hero {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 24px;
  max-width: 800px;
  margin-inline: auto;
}

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

.our-philosophy {
  padding: 100px 0;
  background-color: var(--bg-navy-light);
}

.philosophy-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  color: var(--brand-orange);
}

.philosophy-content p {
  margin-bottom: 24px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.philosophy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 40px 24px;
  border-radius: 8px;
  text-align: center;
  border-top: 3px solid var(--brand-orange);
}

.stat-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  color: var(--brand-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

/* Leadership Section */
.leadership {
  padding: 120px 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.team-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-orange);
}

.team-image-placeholder {
  width: 100%;
  height: 300px;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border-color);
  /* This will be replaced by your actual <img> tags */
}

.team-info {
  padding: 32px 24px;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.team-info .role {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.team-info .bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.social-links a:hover {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}

/* Responsive */
@media (max-width: 900px) {
  .grid-2-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Active Navigation State */
.nav-links a.active {
  color: var(--brand-orange);
  position: relative;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-orange);
  border-radius: 2px;
}

/* --- Contact Page Specifics --- */

.contact-section {
  padding: 80px 0 120px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* Contact Info Panel */
.contact-info-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--brand-orange);
}

.contact-intro {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 48px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-method h3,
.locations h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.contact-method a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.05rem;
  margin-bottom: 8px;
  transition: color 0.2s ease;
}

.contact-method a:hover {
  color: var(--brand-orange);
}

.locations {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: 8px;
  border-left: 3px solid var(--brand-orange);
}

.location-card h4 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.location-card address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Form Panel */
.contact-form-panel {
  background-color: var(--bg-navy-light);
  padding: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.project-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

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

.form-group label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(250, 98, 32, 0.2);
}

/* Select element specific styling */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

.form-group select option {
  background-color: var(--bg-navy);
  color: var(--text-main);
}

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1.1rem;
  padding: 16px;
  margin-top: 8px;
  cursor: pointer;
  border: none;
}

/* Footer Company Reg Add-on */
.company-registration {
  font-size: 0.85rem !important;
  color: var(--brand-orange) !important;
  margin-top: 12px !important;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .contact-form-panel {
    padding: 32px 24px;
  }

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

/* --- Services Page Specifics --- */

.service-category {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.service-category.alt-bg {
  background-color: var(--bg-navy-light);
}

.category-header {
  margin-bottom: 64px;
  max-width: 800px;
}

.category-header h2 {
  font-size: 2.5rem;
  color: var(--brand-orange);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.category-header p {
  font-size: 1.25rem;
  color: var(--text-muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.detailed-card {
  background-color: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.detailed-card:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 98, 32, 0.5);
  background-color: rgba(255, 255, 255, 0.04);
}

.detailed-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.detailed-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Special highlight for highest-value service */
.detailed-card.border-accent {
  border-top: 4px solid var(--brand-orange);
}

@media (max-width: 768px) {
  .category-header h2 {
    font-size: 2rem;
  }
}

/* --- Products Page Specifics --- */

.products-section {
  padding: 80px 0 120px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.product-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

.product-header {
  margin-bottom: 16px;
}

.product-header h3 {
  font-size: 1.4rem;
  color: var(--text-main);
  margin-top: 12px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1; /* Pushes the button to the bottom */
}

.product-actions {
  margin-top: auto;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-npm {
  background-color: rgba(203, 56, 55, 0.1); /* NPM Red hint */
  color: #cb3837;
  border: 1px solid rgba(203, 56, 55, 0.2);
}

.badge-saas {
  background-color: rgba(250, 98, 32, 0.1); /* Brand Orange */
  color: var(--brand-orange);
  border: 1px solid rgba(250, 98, 32, 0.2);
}

.badge-js {
  background-color: rgba(247, 223, 30, 0.1); /* JS Yellow hint */
  color: #f7df1e;
  border: 1px solid rgba(247, 223, 30, 0.2);
}

.badge-web {
  background-color: rgba(56, 189, 248, 0.1); /* Light Blue hint */
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* --- Expertise Page Specifics --- */

.tech-philosophy {
  padding: 60px 0;
}

.philosophy-box {
  background-color: var(--card-bg);
  border-left: 4px solid var(--brand-orange);
  padding: 40px;
  border-radius: 0 12px 12px 0;
  max-width: 900px;
  margin: 0 auto;
}

.philosophy-box h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.philosophy-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.stack-section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

.stack-section.alt-bg {
  background-color: var(--bg-navy-light);
}

.section-header.left-align {
  text-align: left;
  margin: 0 0 48px 0;
  max-width: 800px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.tech-category-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 40px 32px;
  border-radius: 12px;
}

.tech-category-card h3 {
  font-size: 1.5rem;
  color: var(--brand-orange);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-list li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.tech-list strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

/* Tech Tags for Supported Ecosystems */
.tech-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-tag {
  background-color: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tag:hover {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background-color: rgba(250, 98, 32, 0.05);
}

/* --- Legal Pages Specifics --- */

.legal-header {
  padding: 80px 0 40px;
  background-color: var(--bg-navy-light);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 64px;
}

.legal-header h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.legal-header p {
  color: var(--brand-orange);
  font-size: 0.95rem;
  font-weight: 500;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  padding-bottom: 120px;
}

/* Sticky Sidebar */
.legal-sidebar {
  position: sticky;
  top: 120px; /* Accounts for the fixed navbar */
}

.legal-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-left: 2px solid var(--border-color);
  padding-left: 24px;
}

.legal-sidebar a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.legal-sidebar a:hover {
  color: var(--brand-orange);
}

/* Main Content Typography */
.legal-content {
  max-width: 800px;
}

.legal-content section {
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.legal-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-content ul {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
  padding-left: 24px;
}

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

.legal-content a {
  color: var(--brand-orange);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-sidebar {
    position: static;
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 32px;
  }
}

/* 1. Make the parent card the relative boundary */
.service-card {
  position: relative;
  /* Keep your other existing styles here (padding, bg, etc.) */
}

/* 2. Style the link and stretch it */
.hidden-link {
  color: inherit;
  text-decoration: none;
}

/* This ::after pseudo-element creates an invisible box over the whole card */
.hidden-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Ensures it sits on top of the text */
}

/* Optional: Keep your hover effects looking sharp */
.service-card:hover .hidden-link {
  color: var(--brand-orange);
}

.philosophy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  position: relative;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 48px 32px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 98, 32, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.stat-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 4rem; /* Increased size for impact */
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -2px;
}

.stat-label {
  display: block;
  color: var(--brand-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 200px;
  margin: 0 auto;
}

/* The "Glow" Accent */
.stat-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle at top right,
    rgba(250, 98, 32, 0.15),
    transparent 70%
  );
  z-index: 1;
}

.team-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 24px;
  background-color: var(--bg-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(
    20%
  ); /* Optional: Adds a slightly more uniform, corporate look */
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.team-card:hover .team-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.map-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.map-link:hover {
  color: var(--brand-orange);
}

.form-privacy-notice {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--brand-orange);
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 0 4px 4px 0;
}

.form-privacy-notice p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.form-privacy-notice strong {
  color: var(--text-main);
}

.service-card {
  position: relative; /* Essential for absolute child positioning */
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; /* Makes the entire parent card clickable */
}

.service-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-4px);
}

/* Target the link inside the service card h3 */
.service-card h3 a {
  color: inherit; /* Inherits the color from the H3 or parent */
  text-decoration: none; /* Removes the default underline */
}

/* Ensure it stays consistent when visited or hovered */
.service-card h3 a:visited {
  color: inherit;
}

/* If you want the title to change color on hover to match your brand */
.service-card:hover h3 a {
  color: var(--brand-orange);
  transition: color 0.3s ease;
}

/* APPEND THIS TO THE VERY BOTTOM OF YOUR EXISTING styles.css FILE
  This contains all the premium layout elements for the service pages.
*/

/* =========================================
   Service Page Layouts & Components
   ========================================= */

/* Utilities */
.section-padding {
  padding: 100px 0;
}
.text-center {
  text-align: center;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 2rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
.align-center {
  align-items: center;
}
.bg-navy-light {
  background-color: var(--bg-navy-light);
}
.border-y {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

/* Grids */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

/* Hero Section */
.service-hero {
  padding: 160px 0 100px;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(250, 98, 32, 0.08) 0%,
    transparent 70%
  );
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(250, 98, 32, 0.1);
  color: var(--brand-orange);
  border: 1px solid rgba(250, 98, 32, 0.3);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title span {
  color: var(--brand-orange);
}
.lead-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}
.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Cards Enhancement */
.hover-glow {
  transition: all 0.4s ease;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  height: 100%;
}
.hover-glow:hover {
  transform: translateY(-5px);
  border-color: rgba(250, 98, 32, 0.4);
  box-shadow: 0 10px 30px -10px rgba(250, 98, 32, 0.1);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.hover-glow h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.hover-glow p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}

/* Tech List List Styling */
.tech-list {
  list-style: none;
  margin-top: 1.5rem;
}
.tech-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.tech-list li strong {
  color: var(--text-main);
  display: inline-block;
  width: 180px;
}

/* Abstract Server Rack Graphic */
.stack-visual {
  perspective: 1000px;
}
.server-rack {
  background: #000;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: rotateY(-15deg) rotateX(5deg);
  box-shadow: 20px 20px 0px rgba(0, 0, 0, 0.5);
}
.server-blade {
  background: var(--bg-navy-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
  height: 60px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}
.server-blade span {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
}
.server-blade::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}
.status-active::before {
  background: #10b981;
} /* Green */
.status-database::before {
  background: var(--brand-orange);
}

/* Comparison Table */
.comparison-table {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .comparison-table {
    grid-template-columns: 1fr 1fr;
  }
}
.comparison-column {
  padding: 3rem 2rem;
}
.comparison-column.traditional {
  background: rgba(0, 0, 0, 0.2);
}
.comparison-column.esseal {
  background: rgba(250, 98, 32, 0.05);
  border-top: 1px solid var(--border-color);
}
@media (min-width: 768px) {
  .comparison-column.esseal {
    border-top: none;
    border-left: 1px solid var(--border-color);
  }
}
.comparison-column h4 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-align: center;
}
.comparison-column.esseal h4 {
  color: var(--brand-orange);
}
.comparison-column ul {
  list-style: none;
}
.comparison-column li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}
.comparison-column li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}
.li.negative::before {
  content: "✕";
  color: #ef4444;
}
.li.positive::before {
  content: "✓";
  color: #10b981;
}

/* FAQ Accordion (Pure HTML/CSS) */
.faq-container {
  max-width: 800px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.5rem;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none; /* remove default arrow */
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-orange);
  font-size: 1.5rem;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* CTA Section Gradient */
.cta-section {
  background: linear-gradient(
    180deg,
    var(--bg-navy) 0%,
    var(--bg-navy-light) 100%
  );
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #000d2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.15s ease;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.375rem;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.375rem;
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.6875rem 0.875rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(161, 161, 170, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(250, 98, 32, 0.15);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: #f87171;
}

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

.field-error {
  display: block;
  font-size: 0.8125rem;
  color: #f87171;
  margin-top: 0.3rem;
  min-height: 1em;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.8125rem;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

@media (max-width: 540px) {
  .modal {
    padding: 1.75rem 1.25rem;
  }
}

/* ============================================================
   BOOKING MODAL
   ============================================================ */

.booking-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9100;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  background: #000d2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  overflow: hidden;
}

.booking-overlay.is-open .booking-modal {
  transform: translateY(0);
}

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 1;
  transition: color 0.15s ease;
}

.booking-close:hover {
  color: var(--text-main);
}

/* Layout */
.booking-layout {
  display: flex;
  height: 460px;
}

.booking-cal-col {
  padding: 2rem 1.75rem;
  flex-shrink: 0;
  width: 320px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-cal-col h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
  padding-right: 2rem;
}

.booking-subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Month navigation */
.booking-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.cal-nav-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--text-main);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  line-height: 1;
  padding: 0;
}

.cal-nav-btn:hover:not(:disabled) {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.cal-nav-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Calendar grid */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 0.25rem;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8125rem;
  font-weight: 500;
  border: none;
  background: none;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  font-family: var(--font-sans);
}

.cal-day:hover:not(.cal-day--disabled):not(.cal-day--selected) {
  background: rgba(250, 98, 32, 0.15);
  color: var(--brand-orange);
}

.cal-day--empty {
  cursor: default;
}

.cal-day--disabled {
  color: rgba(161, 161, 170, 0.3);
  cursor: default;
}

.cal-day--today {
  box-shadow: inset 0 0 0 1px var(--brand-orange);
  color: var(--brand-orange);
}

.cal-day--selected {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 700;
}

.cal-day--selected.cal-day--today {
  box-shadow: none;
}

/* Slots back button (mobile only) */
.slots-back-btn {
  display: none;
  background: none;
  border: none;
  color: var(--brand-orange);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0 0 1rem 0;
  text-align: left;
}

/* Email + confirm footer */
.booking-footer {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 1.75rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.booking-email-group {
  flex: 1;
  position: relative;
  padding-bottom: 1.25rem;
}

.booking-email-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.375rem;
}

.booking-email-group input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.625rem 0.75rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking-email-group input::placeholder {
  color: rgba(161, 161, 170, 0.5);
}

.booking-email-group input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(250, 98, 32, 0.15);
}

.booking-email-group input.is-invalid {
  border-color: #f87171;
}

.booking-email-error {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 0.3rem;
}

/* Slots panel */
.booking-slots-col {
  flex: 1;
  min-width: 0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.booking-slots-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: rgba(161, 161, 170, 0.4);
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
}

.booking-slots-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.slots-date-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.375rem;
  align-content: start;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin-bottom: 0.75rem;
  padding-right: 2px;
}

.slot-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5625rem 0.5rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.slot-btn:hover:not(.slot-btn--disabled):not(.slot-btn--selected) {
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  background: rgba(250, 98, 32, 0.08);
}

.slot-btn--selected {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}

.slot-btn--disabled {
  opacity: 0.25;
  cursor: default;
}

.btn-confirm {
  flex-shrink: 0;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0.6875rem 1.5rem;
  font-size: 0.9375rem;
  white-space: nowrap;
  margin-bottom: 1.25rem;
}

.btn-confirm:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Responsive */
@media (max-width: 600px) {
  .booking-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .booking-modal {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
  }

  .booking-layout {
    flex-direction: column;
    min-height: unset;
    flex: 1;
    overflow: hidden;
  }

  /* Default: show calendar, hide slots */
  .booking-cal-col {
    width: 100%;
    border-right: none;
    padding: 1.5rem 1.25rem 1rem;
  }

  .booking-slots-col {
    display: none;
    padding: 1rem 1.25rem 0.5rem;
    flex: 1;
    overflow-y: auto;
  }

  /* After date selected: hide calendar, show slots */
  .booking-modal.date-selected .booking-cal-col {
    display: none;
  }

  .booking-modal.date-selected .booking-slots-col {
    display: flex;
  }

  .slots-back-btn {
    display: block;
  }

  .booking-footer {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem 1.25rem;
  }

  .booking-email-group {
    width: 100%;
  }

  .btn-confirm {
    width: 100%;
    padding: 0.8125rem;
    margin-bottom: 0;
  }
}
