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

:root {
  --navy-deep: #0a1628;
  --navy-mid: #0f2240;
  --teal-primary: #00a8cc;
  --teal-bright: #00d4f0;
  --teal-dark: #007a94;
  --slate: #1e2d40;
  --slate-light: #2a3d54;
  --white: #ffffff;
  --off-white: #f0f4f8;
  --gray-light: #c8d4e0;
  --gray-mid: #7b8fa0;
  --gray-dark: #3a4c5e;
  --amber: #f0a030;
  --amber-dark: #c88018;
  --coral: #e0565a;
  --green: #2ecc71;
  --green-dark: #1e8c4c;
  --border-subtle: #dce4ec;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.12);
  --shadow-md: 0 4px 20px rgba(10, 22, 40, 0.16);
  --shadow-lg: 0 8px 40px rgba(10, 22, 40, 0.22);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy-deep);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy-deep);
}

h1 { font-size: 3.2rem; letter-spacing: -0.02em; }
h2 { font-size: 2.4rem; letter-spacing: -0.01em; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--teal-dark); }

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

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.5rem; }

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

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

.section-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-primary);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header .subtitle {
  font-size: 1.15rem;
  color: var(--gray-mid);
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--teal-primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--teal-primary);
  border: 2px solid var(--teal-primary);
}

.btn-outline:hover {
  background: var(--teal-primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
}

.btn-amber:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

/* ===== Top Bar ===== */
.topbar {
  background: var(--navy-deep);
  color: var(--gray-light);
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-contact {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-contact span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-contact .icon {
  color: var(--teal-bright);
  font-size: 0.9rem;
}

/* ===== Navbar ===== */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-deep);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar-brand .brand-mark {
  width: 42px;
  height: 42px;
  background: var(--navy-deep);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-bright);
  font-weight: 900;
  font-size: 1.2rem;
}

.navbar-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.navbar-links a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--teal-primary);
  background: rgba(0, 168, 204, 0.08);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy-deep);
  margin: 5px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  background: var(--navy-deep);
  color: var(--white);
  padding: 6rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: var(--navy-mid);
  border-radius: 50%;
  opacity: 0.5;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -15%;
  width: 600px;
  height: 600px;
  border: 3px solid var(--teal-primary);
  border-radius: 50%;
  opacity: 0.15;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.4rem;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-content h1 .highlight {
  color: var(--teal-bright);
}

.hero-content .hero-tagline {
  font-size: 1.2rem;
  color: var(--gray-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: var(--slate);
  border: 1px solid var(--slate-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.hero-card .card-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--teal-bright);
  line-height: 1;
}

.hero-card .card-label {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-top: 0.5rem;
  font-weight: 600;
}

.hero-card-alt {
  background: var(--teal-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero-card-alt .card-number {
  color: var(--white);
}

.hero-card-alt .card-label {
  color: #E6EAF5;
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1;
}

.stat-item .stat-suffix {
  color: var(--teal-primary);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-top: 0.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--navy-deep);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--teal-bright);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===== Approach Section ===== */
.approach-timeline {
  position: relative;
  padding-left: 3rem;
}

.approach-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border-subtle);
}

.approach-step {
  position: relative;
  margin-bottom: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.approach-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal-primary);
}

.approach-step:last-child {
  margin-bottom: 0;
}

.approach-step .step-marker {
  position: absolute;
  left: -3rem;
  top: 1.5rem;
  width: 30px;
  height: 30px;
  background: var(--teal-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  z-index: 1;
}

.approach-step h3 {
  margin-bottom: 0.5rem;
}

.approach-step p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

/* ===== Industries Section ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.industry-item {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
}

.industry-item:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.industry-item:hover .industry-name,
.industry-item:hover .industry-desc {
  color: var(--white);
}

.industry-item .industry-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--teal-primary);
}

.industry-item:hover .industry-icon {
  color: var(--teal-bright);
}

.industry-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--navy-deep);
}

.industry-desc {
  font-size: 0.8rem;
  color: var(--gray-mid);
  line-height: 1.5;
}

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

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

.testimonial-card .quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--teal-primary);
  opacity: 0.25;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-family: Georgia, serif;
}

.testimonial-card .testimonial-text {
  font-style: italic;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-bright);
  font-weight: 700;
  font-size: 1rem;
}

.author-info .author-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.author-info .author-role {
  font-size: 0.8rem;
  color: var(--gray-mid);
}

/* ===== CTA Section ===== */
.cta-section {
  background: var(--navy-deep);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border: 2px solid var(--teal-primary);
  border-radius: 50%;
  opacity: 0.1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: var(--gray-light);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-section .btn {
  position: relative;
}

/* ===== Footer ===== */
.footer {
  background: var(--slate);
  color: var(--gray-light);
  padding: 4rem 0 0;
}

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

.footer-about h4 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-mid);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--gray-mid);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--teal-bright);
}

.footer-bottom {
  border-top: 1px solid var(--slate-light);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--gray-mid);
}

/* ===== Page Hero (Inner Pages) ===== */
.page-hero {
  background: var(--navy-deep);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: var(--navy-mid);
  border-radius: 50%;
  opacity: 0.4;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.page-hero .page-subtitle {
  color: var(--gray-light);
  font-size: 1.1rem;
}

/* ===== Legal Content Styling ===== */
.legal-content {
  padding: 4rem 0;
  background: var(--white);
}

.legal-content .container-narrow {
  max-width: 860px;
}

.legal-block {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--navy-deep);
  padding-left: 1rem;
  border-left: 4px solid var(--teal-primary);
}

.legal-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
  color: var(--slate);
}

.legal-block p {
  color: var(--gray-dark);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-block ul,
.legal-block ol {
  color: var(--gray-dark);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.legal-block strong {
  color: var(--navy-deep);
}

.legal-effective {
  background: var(--off-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.legal-effective strong {
  color: var(--navy-deep);
}

.legal-toc {
  background: var(--off-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.legal-toc h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--navy-deep);
}

.legal-toc ol {
  columns: 2;
  column-gap: 2rem;
  margin-bottom: 0;
}

.legal-toc li {
  margin-bottom: 0.4rem;
}

.legal-toc a {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

.legal-toc a:hover {
  color: var(--teal-primary);
}

/* ===== Contact Section ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.contact-detail .contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--navy-deep);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-bright);
  font-size: 1.2rem;
}

.contact-detail h4 {
  margin-bottom: 0.25rem;
}

.contact-detail p {
  color: var(--gray-dark);
  margin-bottom: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--navy-deep);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--navy-deep);
  background: var(--off-white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal-primary);
  box-shadow: 0 0 0 3px rgba(0, 168, 204, 0.15);
}

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

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--navy-deep);
  color: var(--teal-bright);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--teal-primary);
  color: var(--white);
  transform: translateY(-4px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
}

.animate.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2rem; }
  .hero .container { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  .navbar-toggle { display: block; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
  }
  .navbar-links.open { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-contact { flex-direction: column; gap: 0.3rem; }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-visual { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.8rem; }
}
