﻿:root {
  --header-height: 60px;
}

/* Base and typography */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background: #004466;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

main {
  flex: 1 0 auto; /* makes main grow to fill space */
  padding-top: var(--header-height); /* push main content below fixed header */
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
  padding: 1em;
  margin: 0;
}

.nav-menu li a {
  color: white;
  padding: 0 1em;
  text-decoration: none;
}

.nav-menu li a.active, .nav-menu li a:hover {
  text-decoration: underline;
}

.hero {
  height: 35vh !important;
  min-height: 35vh !important;
  max-height: 35vh !important;
  box-sizing: border-box;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  background-color: #004466;
  /* Remove padding-top and padding-bottom */
  padding: 0;
}

/* Add vertical spacing inside hero text if needed */
.hero-text {
  padding: 2rem 1rem;
  margin-top: 60px; /* or padding-top */
}

/* Background variations for hero */
.hero-home { background-image: url('../images/hero-home.jpg'); }
.hero-services { background-image: url('../images/hero-services.jpg'); }
.hero-about  { background: #006688; } /* fallback */
.hero-cases  { background: #002244; }
.hero-blog   { background: #005577; }

/* Hero text styles */
.hero-text h1 { font-size: 2.5rem; margin-bottom: 0.5em; }
.hero-text p  { font-size: 1.2rem; margin-bottom: 1em; }

/* Add top padding to all direct sections under main and other sections to avoid header overlap */
main > section,
section {
  padding-top: var(--header-height);
  box-sizing: border-box;
}

.button {
  background: #ff8800;
  color: #fff;
  padding: 0.75em 1.5em;
  text-decoration: none;
  border-radius: 5px;
}

/* Responsive grid and other styles unchanged... */

.features-grid, .services-list {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.service-item {
  background: #f0f0f0;
  padding: 1em;
  border-radius: 5px;
}

.case-study {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2em;
}

.case-img {
  max-width: 300px;
  margin-right: 1em;
}

.case-study div {
  flex: 1;
}

.blog-posts {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.post {
  background: #f9f9f9;
  padding: 1em;
  border-radius: 5px;
}

footer {
  flex-shrink: 0; /* ensures footer stays at bottom */
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .nav-menu { flex-direction: column; text-align: center; }
  .case-study { flex-direction: column; }
  .hero-text h1 { font-size: 2rem; }
}

.contact {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.contact h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.contact p {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: #444;
}

.contact p a {
  color: #0078d4;
  text-decoration: none;
}

.contact p a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.3rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  font-family: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0078d4;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 120, 212, 0.4);
}

.contact-form button {
  align-self: flex-start;
  background-color: #0078d4;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #005fa3;
}

.capabilities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.capability-card {
  background: #f7f9fb;
  padding: 1.8rem 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: default;
}

.capability-card:hover {
  box-shadow: 0 8px 16px rgb(0 0 0 / 0.12);
  transform: translateY(-6px);
}

.capability-card h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: #004466;
}

.capability-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

/* Responsive tweak for small screens */
@media (max-width: 600px) {
  .capabilities-list {
    grid-template-columns: 1fr;
  }
    body {
    font-size: 16px;
    line-height: 1.4;
  }

}

#ai-services {
  margin-top: 1em;
}
.service-panel {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.service-selector {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.service-selector button {
  background: #f0f0f0;
  border: none;
  padding: 0.75em 1em;
  text-align: left;
  cursor: pointer;
  border-left: 5px solid transparent;
  font-size: 1rem;
  transition: background 0.2s, border-left 0.2s;
}

.service-selector button:hover {
  background: #e0e0e0;
}

.service-selector button.active {
  background: #004466;
  color: white;
  border-left: 5px solid #ff8800;
}

.service-details {
  flex: 2;
  min-width: 280px;
}

.service-detail {
  display: none;
  animation: fadeIn 0.3s ease;
}

.service-detail.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .service-panel {
    flex-direction: column;
  }
}

.intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1em;
  font-size: 1.1rem;
}

.intro p {
  margin-bottom: 1em;
}

.intro h2 {
  text-align: center;
}

.intro-list {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.6;
  padding-left: 1.2em;
  margin-top: 1em;
  margin-bottom: 1em;
  list-style-type: disc;
}

.intro-list li {
  font-family: inherit;
  font-size: inherit;
  margin-bottom: 0.5em;
}

.intro ul,
.intro li {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0 0 0 1.2em;
}


.contact {
  max-width: 800px;
  margin: 0 auto;
  padding: 2em 1em;
  font-size: 1.1rem;
}

.contact p {
  margin-bottom: 1em;
}

.contact h1 {
  text-align: center;  /* like .intro h2 */
}
