/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: #2d3748;
  background-color: #f7fafc;
}

h1, h2, h3, h4 { color: #1a365d; font-weight: 700; line-height: 1.3; }
h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.25rem; font-size: 1.05rem; }

/* Navigation */
nav {
  background: #ffffff;
  padding: 1.25rem 8%;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-bottom: 1px solid #e2e8f0;
}
nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #2d3748;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}
nav a:hover { color: #2563eb; }
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: width 0.3s ease;
}
nav a:hover::after { width: 100%; }

/* Header / Hero Sections */
header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #fff;
  padding: 4.5rem 8% 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}
header h1 {
  color: #fff;
  font-size: 3.25rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header p {
  font-size: 1.35rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-weight: 400;
}
header .subtitle {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  margin-top: 1rem;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

/* Layout */
main {
  padding: 5rem 8% 4rem;
  min-height: 60vh;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-section {
  text-align: center;
  margin-bottom: 4rem;
}
.hero-section h2 {
  font-size: 2.5rem;
  color: #1a365d;
  margin-bottom: 1.5rem;
}
.hero-section p {
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Cards */
.card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(37,99,235,0.15);
}
.card h3 {
  color: #1a365d;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card p {
  color: #4a5568;
  line-height: 1.75;
}
.card ul {
  padding-left: 1.5rem;
  list-style: none;
}
.card li {
  margin-bottom: 0.875rem;
  color: #4a5568;
  position: relative;
  padding-left: 1.5rem;
}
.card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: bold;
  font-size: 1.1rem;
}
.card li strong {
  color: #2d3748;
  font-weight: 600;
}

/* Stats / Highlights */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}
.stat-card {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.stat-card .number {
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-card .label {
  font-size: 1rem;
  opacity: 0.95;
}

/* Content Sections */
.content-box {
  max-width: 900px;
  margin: 0 auto 3rem;
  background: #ffffff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border: 1px solid #e2e8f0;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}
.profile-image {
  flex-shrink: 0;
}
.profile-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.profile-content {
  flex: 1;
}

/* Credentials */
.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}
.credential-badge {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

/* Form Styles */
form {
  display: flex;
  flex-direction: column;
  max-width: 650px;
  margin: 0 auto;
  background: #fff;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border: 1px solid #e2e8f0;
}
label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}
input, textarea {
  margin-bottom: 1.5rem;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f7fafc;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
button {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
  text-align: center;
  padding: 2.5rem 8%;
  font-size: 0.95rem;
  border-top: 3px solid #2563eb;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Typography */
  header h1 { font-size: 2rem; }
  header p { font-size: 1rem; line-height: 1.5; }
  header .subtitle { font-size: 0.85rem; padding: 0.4rem 1rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  p { font-size: 1rem; }

  /* Layout */
  main { padding: 2rem 5%; }
  .hero-section { padding: 2rem 1rem; }
  .hero-section h2 { font-size: 1.85rem; }
  .hero-section p { font-size: 1.05rem; }

  /* Navigation - Mobile Optimized */
  nav {
    padding: 0.75rem 3%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  nav a {
    margin: 0.25rem;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }
  /* Schedule a Consultation button on mobile */
  nav a[href="contact.html"] {
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    margin-top: 0.5rem;
    width: auto;
  }

  /* Grid Layouts */
  .grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  /* Stats Cards */
  .stat-card { padding: 1.5rem 1rem; }
  .stat-card .number { font-size: 2rem; }
  .stat-card .label { font-size: 0.9rem; }

  /* Cards */
  .card { padding: 1.75rem; }
  .content-box { padding: 2rem 1.5rem; }

  /* Profile Section */
  .profile-section { flex-direction: column; text-align: center; gap: 2rem; }
  .profile-image img { width: 160px; height: 160px; }

  /* Credentials */
  .credentials { justify-content: center; }
  .credential-badge { font-size: 0.85rem; padding: 0.4rem 1rem; }

  /* Forms */
  form { padding: 1.5rem; }
  input, textarea, select { font-size: 1rem; padding: 0.75rem; }
  button { padding: 0.875rem 1.5rem; font-size: 1rem; }
  label { font-size: 0.9rem; }

  /* Contact Form - Multi-step Progress */
  #consultation-form-container { margin: 0 1rem; }
  #consultation-form-container > div:first-child { padding: 1.5rem 0.5rem; }
  #consultation-form-container h2 { font-size: 1.5rem; }
  #consultation-form-container > div:first-child > div {
    flex-wrap: nowrap;
    gap: 0.25rem;
    font-size: 0.75rem;
  }
  #consultation-form-container > div:first-child > div > div {
    flex-direction: column !important;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
  }
  #consultation-form-container > div:first-child > div > div span {
    font-size: 0.7rem !important;
    white-space: nowrap;
  }
  #consultation-form-container > div:first-child > div > div:nth-child(1) div,
  #consultation-form-container > div:first-child > div > div:nth-child(3) div,
  #consultation-form-container > div:first-child > div > div:nth-child(5) div {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }
  #consultation-form-container > div:first-child > div > div:nth-child(2),
  #consultation-form-container > div:first-child > div > div:nth-child(4) {
    font-size: 1rem;
    margin: 0 -0.25rem;
  }

  /* Service Checkboxes - Mobile */
  .form-step label[onmouseover] {
    padding: 0.875rem !important;
  }
  .form-step label[onmouseover] input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
  }
  .form-step label[onmouseover] strong {
    font-size: 0.95rem;
  }
  .form-step label[onmouseover] span {
    font-size: 0.85rem;
  }

  /* Form Navigation Buttons - Mobile */
  .form-step button[type="button"],
  .form-step button[type="submit"] {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.95rem !important;
  }
  .form-step > div:last-child {
    gap: 0.75rem;
  }

  /* Footer */
  footer { padding: 2rem 5%; font-size: 0.85rem; }
}

/* Extra Small Devices (phones in portrait, less than 576px) */
@media (max-width: 576px) {
  header h1 { font-size: 1.75rem; }
  header p { font-size: 0.95rem; }
  h2 { font-size: 1.5rem; }

  nav a { font-size: 0.75rem; padding: 0.4rem 0.6rem; }
  nav a[href="contact.html"] { font-size: 0.75rem !important; padding: 0.5rem 0.875rem !important; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-card .number { font-size: 2.5rem; }

  main { padding: 1.5rem 4%; }
  .card { padding: 1.5rem; }
  .content-box { padding: 1.5rem 1rem; }

  form { padding: 1.25rem; }

  /* Form Navigation Buttons - Small Mobile */
  .form-step button[type="button"],
  .form-step button[type="submit"] {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
  }

  #consultation-form-container { margin: 0 0.5rem; }
  #consultation-form-container > div:first-child { padding: 1.25rem 0.25rem; }
  #consultation-form-container h2 { font-size: 1.25rem; }
  #consultation-form-container > div:first-child > div {
    gap: 0.15rem;
  }
  #consultation-form-container > div:first-child > div > div span {
    font-size: 0.65rem !important;
  }
  #consultation-form-container > div:first-child > div > div:nth-child(1) div,
  #consultation-form-container > div:first-child > div > div:nth-child(3) div,
  #consultation-form-container > div:first-child > div > div:nth-child(5) div {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
}

/* Landscape Mobile Phones */
@media (max-width: 768px) and (orientation: landscape) {
  header { padding: 2rem 8%; }
  header h1 { font-size: 1.75rem; }
  main { padding: 2rem 5%; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}