/* =========================
   CUSTOM PROPERTIES
========================= */

:root {
  --bg-primary:   #0f172a;
  --bg-secondary: #111827;
  --bg-card:      #1e293b;
  --bg-footer:    #0b1120;

  --text-primary:   #ffffff;
  --text-muted:     #cbd5e1;
  --text-subtle:    #94a3b8;

  --accent:       #38bdf8;
  --accent-hover: #0ea5e9;

  --border-faint: rgba(255, 255, 255, 0.05);
  --border-dim:   rgba(255, 255, 255, 0.06);
  --border-mid:   rgba(255, 255, 255, 0.08);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  14px;
  --radius-xl:  24px;

  --pad-x:      10%;
  --pad-x-tab:  6%;
  --pad-x-mob:  20px;

  --card-grad: linear-gradient(145deg, #1e293b, #111827);
  --card-transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* =========================
   RESET & BASE
========================= */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */

header {
  padding: 20px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-secondary);
  gap: 20px;
}

.logo img {
  height: 42px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px var(--pad-x);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left,   rgba(30, 58, 138, 0.35) 0%, transparent 32%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.22) 0%, transparent 28%),
    var(--bg-primary);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--bg-primary);
  font-weight: bold;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent-hover);
}

.small-btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* =========================
   SHARED CARD STYLES
========================= */

.feature-card,
.process-card,
.consult-card {
  background: var(--card-grad);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dim);
  transition: var(--card-transition);
}

.feature-card:hover,
.process-card:hover,
.consult-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.feature-card h3,
.process-card h3,
.consult-card h3 {
  margin-bottom: 15px;
  color: var(--accent);
}

.feature-card p,
.process-card p,
.consult-card p {
  color: var(--text-muted);
}

.process-card ul,
.consult-card ul {
  padding-left: 18px;
}

.process-card li,
.consult-card li {
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* =========================
   FEATURES SECTION
========================= */

.features,
.features-section {
  padding: 80px var(--pad-x);
  position: relative;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.features-intro {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px;
}

.features-intro .eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.features-intro .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.features-intro h2 {
  font-size: 34px;
  font-weight: 700;
  color: var(--text-primary);
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: clamp(32px, 4vw, 40px);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
}

/* =========================
   PROJECTS SECTION
========================= */

.projects {
  padding: 80px var(--pad-x);
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at center left, rgba(30, 58, 138, 0.30) 0%, transparent 30%),
    radial-gradient(circle at top right,   rgba(14, 165, 233, 0.20) 0%, transparent 26%),
    var(--bg-primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  margin-bottom: 15px;
  color: var(--accent);
}

.project-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* =========================
   PROCESS SECTION
========================= */

.process-section {
  padding: 90px var(--pad-x);
  background: var(--bg-primary);
}

.process-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.process-header h2 {
  font-size: clamp(30px, 4vw, 38px);
  margin-bottom: 15px;
}

.process-header p {
  color: var(--text-muted);
  font-size: 18px;
}

.process-image {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-lg);
  margin-bottom: 25px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* =========================
   CONSULTATION SECTION
========================= */

.consultation-section {
  padding: 90px var(--pad-x);
}

.consultation-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
}

.consultation-header h2 {
  font-size: clamp(30px, 4vw, 38px);
  margin-bottom: 15px;
}

.consultation-header p {
  color: var(--text-muted);
  font-size: 18px;
}

.consultation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* =========================
   LEGAL PAGES
========================= */

.legal-page {
  padding: 80px var(--pad-x);
  min-height: 80vh;
  position: relative;
  overflow: hidden;
}

.legal-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top center,   rgba(30, 58, 138, 0.30) 0%, transparent 28%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16) 0%, transparent 24%),
    var(--bg-primary);
}

.legal-container {
  max-width: 900px;
  margin: 0 auto;
}

.legal-container h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 30px;
}

.legal-container h2 {
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: clamp(22px, 3vw, 28px);
}

.legal-container p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  min-height: 85vh;
  padding: 80px var(--pad-x);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at top left,     rgba(30, 58, 138, 0.38) 0%, transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.24) 0%, transparent 25%),
    var(--bg-primary);
}

.contact-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.contact-text h1 {
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 25px;
}

.contact-text p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 600px;
}

.contact-tag {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 14px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
}

.contact-card {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--border-mid);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.contact-card h2 {
  font-size: clamp(28px, 3vw, 32px);
  margin-bottom: 15px;
}

.contact-description {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.email-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 30px;
}

.email-label {
  display: block;
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.email-address {
  color: var(--accent);
  text-decoration: none;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: bold;
  word-break: break-word;
}

.email-address:hover {
  text-decoration: underline;
}

.contact-btn {
  width: 100%;
  text-align: center;
}

/* =========================
   CONSULTING PAGE — HERO
========================= */

.hero-heading {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-heading h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-heading h1 span {
  color: var(--accent);
}

.hero-heading h2 {
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: #e2e8f0;
}

.hero-heading h3 {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-subtle);
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 25px;
  background: var(--bg-footer);
  color: var(--text-subtle);
}

/* =========================
   TABLES
========================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-dim);
  background: var(--bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* Smooth scrolling on mobile */
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: transparent;
}

thead {
  background: rgba(56, 189, 248, 0.08);
}

thead th {
  color: var(--accent);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-mid);
}

tbody tr {
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--border-faint);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

tbody tr:last-child {
  border-bottom: none;
}

td {
  padding: 18px 20px;
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}

th,
td {
  word-break: break-word;
}

caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 15px;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: bold;
}

/* Optional striped rows */
.table-striped tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Optional compact table */
.table-compact th,
.table-compact td {
  padding: 12px 14px;
}

/* Optional centered content */
.table-center th,
.table-center td {
  text-align: center;
}

/* =========================
   MOBILE TABLES
========================= */

@media (max-width: 768px) {

  .table-wrapper {
    border-radius: var(--radius-md);
  }

  table {
    min-width: 100%;
    font-size: 14px;
  }

  thead th {
    padding: 14px 16px;
    font-size: 12px;
  }

  td {
    padding: 14px 16px;
    font-size: 14px;
  }

  caption {
    font-size: 18px;
  }
}

/* =========================
   STACKED MOBILE TABLE
   Add class="table-mobile-stack"
========================= */

@media (max-width: 600px) {

  .table-mobile-stack table,
  .table-mobile-stack thead,
  .table-mobile-stack tbody,
  .table-mobile-stack th,
  .table-mobile-stack td,
  .table-mobile-stack tr {
    display: block;
    width: 100%;
  }

  .table-mobile-stack thead {
    display: none;
  }

  .table-mobile-stack tbody tr {
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .table-mobile-stack td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;

    padding: 14px 16px;
    border-bottom: 1px solid var(--border-faint);

    text-align: right;
  }

  .table-mobile-stack td:last-child {
    border-bottom: none;
  }

  .table-mobile-stack td::before {
    content: attr(data-label);
    font-weight: bold;
    color: var(--text-primary);
    text-align: left;
  }
}

/* =========================
   LIST STYLING
========================= */

/* Base list indentation */
ul,
ol {
  margin: 16px 0;
  padding-left: 28px;
}

/* List item spacing */
li {
  margin-bottom: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Nested lists = double indent */
ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 10px;
  margin-bottom: 10px;

  /* Double indentation */
  padding-left: 28px;
}

/* Nested unordered list bullet styles */
ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

/* Extra spacing for nested items */
li li {
  margin-top: 6px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  ul,
  ol {
    padding-left: 22px;
  }

  ul ul,
  ol ol,
  ul ol,
  ol ul {
    padding-left: 22px;
  }
}

/* =========================
   TABLET  (≤ 1024px)
========================= */

@media (max-width: 1024px) {
  header,
  .hero,
  .features,
  .features-section,
  .projects,
  .process-section,
  .consultation-section,
  .legal-page,
  .contact-hero {
    padding-left: var(--pad-x-tab);
    padding-right: var(--pad-x-tab);
  }

  .features-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* =========================
   MOBILE  (≤ 768px)
========================= */

@media (max-width: 768px) {
  header,
  .hero,
  .features,
  .features-section,
  .projects,
  .process-section,
  .consultation-section,
  .legal-page,
  .contact-hero {
    padding-left: var(--pad-x-mob);
    padding-right: var(--pad-x-mob);
  }

  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    justify-content: center;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .features-grid,
  .project-grid,
  .process-grid,
  .consultation-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .process-card,
  .consult-card {
    padding: 25px;
  }

  .project-card img {
    height: 200px;
  }

  .contact-text {
    text-align: center;
  }

  .contact-card {
    padding: 30px 24px;
    border-radius: 20px;
  }
}

/* =========================
   SMALL MOBILE  (≤ 480px)
========================= */

@media (max-width: 480px) {
  .logo img {
    height: 34px;
  }

  nav {
    gap: 12px;
  }

  nav a {
    font-size: 14px;
  }

  .feature-card,
  .process-card,
  .consult-card {
    padding: 20px;
  }

  .contact-card {
    padding: 25px 20px;
  }
}