/* ============================================================================
  Cresent IT Partners - Main Stylesheet
   Color Palette: Deep Navy (#0d3d56) + Teal (#00a896) + Purple (#7b3ff2)
   Typography: Poppins (modern sans-serif)
   ============================================================================ */

:root {
  --primary: #0d3d56;
  --primary-light: #0f5a7f;
  --accent: #00a896;
  --accent-light: #20c9b8;
  /* CTA and palette additions */
  --color-cta: #FF6A3D;
  --color-cta-hover: #E65A30;
  --bg-page: #F8F9FB;
  --purple: #7b3ff2;
  --purple-light: #9b5fff;
  --text-primary: #1a1a2e;
  --text-secondary: #666;
  --bg-light: #f8f9fb;
  --bg-white: #ffffff;
  --border: #e8eaed;
  --shadow-sm: 0 2px 8px rgba(13, 61, 86, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 61, 86, 0.12);
  --shadow-lg: 0 8px 32px rgba(13, 61, 86, 0.16);
  --shadow-xl: 0 12px 48px rgba(13, 61, 86, 0.2);
  --transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', 'Segoe UI', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  border-bottom-color: rgba(232,234,237,0.9);
  box-shadow: 0 6px 20px rgba(13,61,86,0.06);
}

.header.scrolled .header-wrapper {
  padding: 0.5rem 1.5rem;
}

.header.scrolled .logo a {
  font-size: 1.15rem;
}

/* Header wrapper layout: ensure single-line alignment */
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  flex-wrap: nowrap;
}

.logo {
  flex: 0 0 auto;
}

.nav-primary {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
}

.nav-list a,
.nav-link {
  white-space: nowrap;
}

.header-utils {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.logo-icon {
  color: var(--accent);
  font-size: 1.75rem;
}

.logo-text {
  color: var(--primary);
}

.nav-primary {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-item a,
.nav-link {
  color: var(--text-primary);
}

.nav-item a:hover,
.nav-link:hover {
  color: var(--accent);
}

.nav-item.cta a {
  color: var(--bg-white);
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 380px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.nav-item.has-submenu:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mega-column h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mega-column ul {
  list-style: none;
}

.mega-column li {
  margin-bottom: 0.75rem;
}

.mega-column a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.mega-column a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
}

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  /* Primary CTA uses high-contrast warm color to drive conversions */
  background: var(--color-cta);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Secondary outline style for lower-priority CTAs */
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-white);
}

.btn-primary-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

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

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg-white);
}

.btn-secondary-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-secondary-lg:hover {
  background: var(--accent);
  color: var(--bg-white);
}

.btn-secondary-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Hero Section */
.hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(13, 61, 86, 0.02), rgba(0, 168, 150, 0.02));
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.hero-visual {
  position: relative;
  height: 400px;
}

.hero-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  opacity: 0.8;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  top: 0;
  left: 0;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  bottom: 20px;
  right: 40px;
  animation-delay: 2s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--accent-light), var(--purple-light));
  top: 50%;
  right: 0;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Trust Bar */
.trust-bar {
  background: linear-gradient(90deg, var(--primary), var(--purple));
  color: var(--bg-white);
  padding: 2rem;
  text-align: center;
}

.trust-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--bg-white);
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Testimonials */
.testimonials-featured {
  padding: 4rem 0;
  background: var(--bg-light);
}

.testimonials-featured h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.rating {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.quote {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-weight: 700;
  color: var(--primary);
}

.author-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Section Styling */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

/* Solutions Preview */
.solutions-preview {
  padding: 4rem 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.solution-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.solution-card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.solution-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.link-arrow {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.link-arrow:hover {
  gap: 0.75rem;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Industries Section */
.industries-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.industry-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  border-left: 5px solid transparent;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.industry-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.industry-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.industry-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  color: var(--bg-white);
  padding: 3rem 0;
  text-align: center;
}

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

.cta-section p {
  color: var(--bg-white);
  opacity: 0.9;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Page Hero */
.page-hero {
  background: linear-gradient(135deg, rgba(13, 61, 86, 0.05), rgba(123, 63, 242, 0.05));
  padding: 4rem 2rem;
  text-align: center;
}

.page-hero h1 {
  background: linear-gradient(135deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* Services Detail */
.services-detailed {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.services-detailed.alt {
  background: var(--bg-light);
}

.service-detail {
  max-width: 800px;
}

.service-detail h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.service-detail p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.75rem 0 0.75rem 2rem;
  position: relative;
  color: var(--text-secondary);
}

.features-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Industry Detail */
.industry-detail {
  padding: 3rem 0;
}

.industry-detail.alt {
  background: var(--bg-light);
}

.industry-overview {
  max-width: 800px;
}

.industry-overview h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* About Section */
.mission-section {
  padding: 3rem 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.section-col h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.values-section {
  padding: 4rem 0;
  background: var(--bg-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Team Culture */
.team-culture {
  padding: 3rem 0;
}

.culture-header {
  text-align: center;
  margin-bottom: 2rem;
}

.team-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.team-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Case Studies */
.case-studies {
  padding: 4rem 0;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-study-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.case-study-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.case-industry {
  background: var(--accent);
  color: var(--bg-white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.case-year {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.case-study-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Insights */
.insights-section {
  padding: 4rem 0;
}

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

.insight-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.insight-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-white);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  width: fit-content;
}

.insight-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.insight-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 1rem;
}

/* Jobs Section */
.jobs-section {
  padding: 4rem 0;
}

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

.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.job-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.job-header {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.job-header h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.job-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.job-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.job-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.job-type,
.job-experience {
  background: var(--bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Culture Section */
.culture-section {
  padding: 4rem 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.benefit-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

/* Contact Section */
.contact-section {
  padding: 4rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-block h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.info-block p {
  color: var(--text-secondary);
  margin: 0;
}

.info-block a {
  color: var(--accent);
  font-weight: 600;
}

/* Contact Form */
.contact-form-wrapper h2 {
  margin-bottom: 2rem;
}

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

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, 0.1);
}

.form-group textarea {
  resize: vertical;
}

.form-group.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.form-group.checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-group.checkbox label {
  margin-bottom: 0;
}

.error-msg {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.error-msg.show {
  display: block;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-message {
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  display: none;
}

.form-message.success {
  background: #d1fae5;
  color: #065f46;
  display: block;
}

.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  display: block;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--bg-white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer-column p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-weight: 700;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: var(--bg-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 500;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.back-to-top.show {
  display: flex;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: var(--bg-white);
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Header layout polish & compact dropdowns (added) ===== */
.nav-list {
  overflow: visible;   /* was hidden — clipped dropdowns */
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-primary {
  justify-content: flex-end;   /* logo left, links + CTA right */
}

.nav-item > a,
.nav-link {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-item:not(.cta) > a:hover {
  background: var(--bg-light);
  color: var(--accent);
}

.nav-item.cta {
  margin-left: 0.5rem;
}

.nav-item.cta .btn-primary {
  padding: 0.6rem 1.4rem;
}

/* Compact two-item dropdown used by Services & Technology */
.mega-menu.compact {
  min-width: 240px;
  padding: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
}

.nav-item.has-submenu:hover .mega-menu.compact,
.nav-item.has-submenu.active .mega-menu.compact {
  transform: translateX(-50%) translateY(0);
}

.mega-menu.compact .mega-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

.mega-menu.compact .mega-column h4 {
  margin-bottom: 0.5rem;
}

.mega-menu.compact .mega-column li {
  margin-bottom: 0.15rem;
}

.mega-menu.compact .mega-column a {
  display: block;
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.mega-menu.compact .mega-column a:hover {
  background: var(--bg-light);
  color: var(--accent);
  padding-left: 0.85rem;
}

/* ===== Header logo image (added) ===== */
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.header.scrolled .logo-img { height: 34px; }

/* ===== Clients logo wall (added) ===== */
.clients-wall {
  padding: 4rem 0;
  background: var(--bg-light);
}
.clients-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.client-logo {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.client-logo:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.client-logo img {
  max-width: 100%;
  height: auto;
}

/* ===== Nav items: bigger & more vibrant (added) ===== */
.nav-item:not(.cta) > a,
.nav-link {
  font-size: 1.08rem;
  font-weight: 600;
  color: #1e63d6;            /* vibrant brand blue */
  letter-spacing: 0.01em;
}
.nav-item:not(.cta) > a:hover,
.nav-item.has-submenu:hover .nav-link,
.nav-item.has-submenu.active .nav-link {
  color: #0d3d56;            /* deep navy on hover */
  background: rgba(30, 99, 214, 0.10);
}

/* ===== Clients logo wall — screenshot style (override) ===== */
.clients-wall { background: var(--bg-white); }
.clients-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 3rem 2rem;
  margin-top: 1rem;
}
.clients-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2.75rem 1.5rem;
  margin-top: 0;
  align-items: center;
}
.client-logo {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem;
}
.client-logo:hover { transform: none; box-shadow: none; }
.client-logo img {
  height: 42px;
  width: auto;
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}
.client-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@media (max-width: 1023px) {
  .clients-logos { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639px) {
  .clients-logos { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .clients-card { padding: 2rem 1rem; }
}

/* ============================================================
   HEADER — logo-matched dark navy/blue theme (added)
   ============================================================ */
:root {
  --brand-navy: #001848;
  --brand-blue: #0054f0;
}

.header {
  background: linear-gradient(120deg, #001848 0%, #062a83 55%, #0b46c8 100%);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 4px 18px rgba(0, 24, 72, 0.28);
}
.header.scrolled {
  background: linear-gradient(120deg, #00133a 0%, #052470 55%, #093ba8 100%);
  border-bottom-color: rgba(255,255,255,0.12);
  box-shadow: 0 6px 22px rgba(0, 24, 72, 0.35);
}

/* Logo text on dark */
.logo a,
.logo-text { color: #ffffff; }

/* Nav links on dark: bright, legible, vibrant */
.nav-item:not(.cta) > a,
.nav-link {
  color: #eaf1ff;
  font-size: 1.08rem;
  font-weight: 600;
}
.nav-item:not(.cta) > a:hover,
.nav-item.has-submenu:hover .nav-link,
.nav-item.has-submenu.active .nav-link {
  color: #ffffff;
  background: rgba(255,255,255,0.14);
}

/* Contact Us button pops against navy */
.nav-item.cta .btn-primary {
  background: var(--color-cta);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(255,106,61,0.35);
}
.nav-item.cta .btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

/* Mega menu stays light for readability */
.mega-menu { background: #fff; border: 1px solid var(--border); }

/* Mobile hamburger on dark */
.mobile-toggle span { background: #ffffff; }

/* ===== Technology icons (replaces 01/02 numbers) ===== */
.tech-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}
.tech-icon img {
  width: 100%;
  height: 100%;
  display: block;
}
.industry-card:hover .tech-icon img { transform: scale(1.06); transition: var(--transition); }

/* ===== Clients grid: 7 wordmarks ===== */
.clients-logos { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 1.5rem; }
.client-logo img { height: 34px; }
@media (max-width: 1023px) { .clients-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px)  { .clients-logos { grid-template-columns: repeat(2, 1fr); } }

/* Mobile: nav panel is white, so links must be dark (fixes contrast) */
@media (max-width: 1023px) {
  .nav-item:not(.cta) > a,
  .nav-link {
    color: var(--primary);
  }
  .nav-item:not(.cta) > a:hover,
  .nav-item.has-submenu:hover .nav-link,
  .nav-item.has-submenu.active .nav-link {
    color: var(--brand-blue);
    background: rgba(0, 84, 240, 0.08);
  }
}

/* ============================================================
   NEW LOGO LOCKUP — wordmark is inside the image (added)
   Header tuned to the new logo's deep navy background
   ============================================================ */
.header {
  background: linear-gradient(120deg, #020a18 0%, #041634 50%, #06255e 100%);
  border-bottom: 1px solid rgba(0, 132, 255, 0.22);
}
.header.scrolled {
  background: linear-gradient(120deg, #01060f 0%, #03122b 50%, #051d4c 100%);
  border-bottom-color: rgba(0, 132, 255, 0.28);
}

/* Wide lockup: size by height, let width follow */
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.header.scrolled .logo-img { height: 40px; }

/* Logo link no longer holds text — remove text-driven spacing */
.logo a { gap: 0; font-size: 0; line-height: 0; }

@media (max-width: 1023px) {
  .logo-img { height: 40px; }
  .header.scrolled .logo-img { height: 34px; }
}
@media (max-width: 479px) {
  .logo-img { height: 34px; }
}

/* ============================================================
   FINAL OVERRIDES (added)
   - Real client logos in full colour, uniform sizing
   - Larger Crescent logo + darker, logo-matched header
   ============================================================ */

/* Client logo wall: real brand logos, full colour */
.clients-card { padding: 2.75rem 2rem; }
.clients-logos {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.25rem;
}
.client-logo {
  min-height: 92px;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
}
.client-logo img {
  height: auto;
  width: auto;
  max-height: 52px;
  max-width: 100%;
  object-fit: contain;
  filter: none;          /* show real brand colours */
  opacity: 1;
  transition: transform 250ms ease;
}
.client-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.client-logo:hover img { transform: scale(1.04); }
@media (max-width: 1023px) { .clients-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px)  { .clients-logos { grid-template-columns: repeat(2, 1fr); } .client-logo{min-height:78px;} .client-logo img{max-height:44px;} }

/* Header: darker, matched to the logo backdrop */
.header {
  background: linear-gradient(120deg, #01040d 0%, #030f26 55%, #041a45 100%);
  border-bottom: 1px solid rgba(0, 132, 255, 0.20);
  box-shadow: 0 4px 20px rgba(0, 12, 40, 0.45);
}
.header.scrolled {
  background: linear-gradient(120deg, #00030a 0%, #020b1e 55%, #03153a 100%);
}

/* Larger, clearly visible Crescent logo */
.logo-img { height: 64px; }
.header.scrolled .logo-img { height: 52px; }
.header-wrapper { padding: 0.85rem 2rem; }
@media (max-width: 1023px) {
  .logo-img { height: 52px; }
  .header.scrolled .logo-img { height: 44px; }
}
@media (max-width: 479px) {
  .logo-img { height: 44px; }
  .header-wrapper { padding: 0.6rem 1rem; }
}

/* ============================================================
   REBRAND — light logo + cohesive blue palette (UI/UX pass)
   ============================================================ */

/* Harmonised palette keyed to the new logo (navy + brand blue) */
:root {
  --primary: #10275a;         /* logo navy */
  --primary-light: #1c3f86;
  --accent: #1668d8;          /* logo blue (AA on white) */
  --accent-light: #3d8bf0;
  --color-cta: #0f6ae0;       /* buttons */
  --color-cta-hover: #0b56bb;
  --purple: #1668d8;          /* recolour old purple hero shapes -> blue */
  --purple-light: #3d8bf0;
  --brand-navy: #10275a;
  --brand-blue: #1668d8;
  --border: #e7ebf1;
}

/* ---- Header: clean white, logo-matched ---- */
.header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(16, 39, 90, 0.06);
}
.header.scrolled {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 39, 90, 0.10);
}

/* Larger, clearly visible logo (3:1 lockup) */
.logo a { gap: 0; font-size: 0; line-height: 0; }
.logo-img { height: 58px; width: auto; display: block; }
.header.scrolled .logo-img { height: 48px; }
.header-wrapper { padding: 0.7rem 2rem; }

/* Nav links: navy default, brand-blue on hover (desktop, on white) */
.nav-item:not(.cta) > a,
.nav-link {
  color: var(--primary);
  font-size: 1.06rem;
  font-weight: 600;
}
.nav-item:not(.cta) > a:hover,
.nav-item.has-submenu:hover .nav-link,
.nav-item.has-submenu.active .nav-link {
  color: var(--accent);
  background: rgba(22, 104, 216, 0.08);
}

/* CTA button pops in brand blue */
.nav-item.cta .btn-primary {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 106, 224, 0.30);
}
.nav-item.cta .btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-1px);
}

/* Hamburger dark on white header */
.mobile-toggle span { background: var(--primary); }

@media (max-width: 1023px) {
  .logo-img { height: 48px; }
  .header.scrolled .logo-img { height: 42px; }
  /* mobile nav panel is white -> keep dark links */
  .nav-item:not(.cta) > a,
  .nav-link { color: var(--primary); }
}
@media (max-width: 479px) {
  .logo-img { height: 42px; }
  .header-wrapper { padding: 0.6rem 1rem; }
}

/* ---- Client logo wall: clear, evenly padded ---- */
.clients-card { padding: 2.5rem 2rem; }
.clients-logos {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.client-logo {
  min-height: 104px;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo img {
  width: auto;
  height: auto;
  max-height: 46px;
  max-width: 100%;
  object-fit: contain;
}
.client-logo:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(22,104,216,0.25);
}
@media (max-width: 1023px) { .clients-logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px)  { .clients-logos { grid-template-columns: repeat(2, 1fr); gap:1rem; } .client-logo{min-height:88px;padding:1.1rem;} .client-logo img{max-height:40px;} }
