/* ==========================================================================
   DESIGN SYSTEM (CSS Variables)
   ========================================================================== */
:root {
  /* Brand Colours */
  --navy: #0B1D3A;
  --navy-light: #162D50;
  --teal: #00A8A8;
  --teal-dark: #008080;
  --coral: #FF6B5B;

  /* Neutrals */
  --grey-50: #F7F8FA;
  --grey-100: #EDEEF2;
  --grey-300: #C5C8D0;
  --grey-600: #6B7280;
  --grey-800: #2D3748;
  --white: #FFFFFF;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 16px rgba(11,29,58,0.10);
  --shadow-lg: 0 12px 40px rgba(11,29,58,0.14);

  /* Border Radius */
  --radius: 8px;
  --radius-lg: 16px;

  /* Layout */
  --max-width: 1240px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--grey-800);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--grey-600);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-grey {
  background-color: var(--grey-50);
}

.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* ==========================================================================
   COMPONENTS: BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

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

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

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

.btn-navy:hover {
  background-color: var(--navy-light);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--grey-300);
  color: var(--navy);
}

.btn-outline:hover {
  border-color: var(--navy);
  background-color: rgba(11,29,58,0.02);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
  display: flex;
}

/* ==========================================================================
   COMPONENTS: CARDS
   ========================================================================== */
.card {
  background-color: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

/* ==========================================================================
   COMPONENTS: PILLS & BADGES
   ========================================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--white);
  border: 1px solid var(--grey-100);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--teal);
  margin-right: 8px;
}

.meta-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  background-color: var(--grey-50);
  color: var(--grey-600);
  font-size: 0.875rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

.category-label {
  display: inline-block;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--grey-100);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--grey-600);
  font-size: 0.9375rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: 0.3s;
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero {
  background: radial-gradient(circle at right center, rgba(0, 168, 168, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 120px 0;
  overflow: hidden;
}

.hero h1 {
  color: var(--white);
}

.hero p {
  color: var(--grey-300);
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item h4 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.hero-stat-item p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hero-visual-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.mini-job-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.mini-job-card h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}

.mini-job-card p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Page Hero */
.page-hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--grey-300);
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 24px;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--grey-300);
}

.breadcrumb a {
  color: var(--teal);
}

/* ==========================================================================
   SECTION SPECIFIC STYLES
   ========================================================================== */

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* Services */
.service-icon {
  font-size: 2.5rem;
  margin-bottom: 24px;
  display: inline-block;
}

/* Industries */
.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

/* Job Items (List view) */
.job-item {
  background-color: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius);
  padding: 24px 32px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.job-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--grey-300);
}

.job-item-details h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.job-item-actions {
  display: flex;
  gap: 16px;
}

/* Testimonials */
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0;
  text-align: center;
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Filter Bar */
.filter-bar {
  background-color: var(--white);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: -48px;
  margin-bottom: 48px;
  position: relative;
  z-index: 10;
  border: 1px solid var(--grey-100);
}

/* Blog Cards */
.blog-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-header {
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
}

.blog-card-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.blog-card-body p {
  flex-grow: 1;
}

.blog-card-body a {
  color: var(--teal);
  font-weight: 600;
  margin-top: 16px;
  display: inline-block;
}

/* Contact / Two Column Layouts */
.layout-2col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
}

.layout-2col.equal {
  grid-template-columns: 1fr 1fr;
}

.sticky-sidebar {
  position: sticky;
  top: 96px;
}

/* Bullet Lists */
.bullet-list {
  margin-bottom: 24px;
}

.bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--grey-600);
}

.bullet-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--grey-800);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

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

.form-card {
  max-width: 720px;
  margin: 0 auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 80px 0 32px;
}

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

.footer-brand .logo {
  color: var(--white);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--grey-300);
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.125rem;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--grey-300);
  font-size: 0.875rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--grey-300);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
  color: var(--grey-300);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background-color: var(--teal);
  transform: translateY(-2px);
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-404 {
  font-size: 5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* 1024px */
@media (max-width: 1024px) {
  .hero-grid, .layout-2col, .layout-2col.equal {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-4, .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }

  .sticky-sidebar {
    position: static;
  }
}

/* 768px */
@media (max-width: 768px) {
  .header-inner {
    position: relative;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    gap: 16px;
    border-top: 1px solid var(--grey-100);
  }

  .nav-links.active {
    display: flex;
  }

  .header-cta .btn-outline {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 80px 0;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    margin: 0 auto 32px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .filter-bar {
    grid-template-columns: 1fr;
    margin-top: -32px;
  }

  .job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .job-item-actions {
    width: 100%;
  }

  .job-item-actions .btn {
    flex: 1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

/* 480px */
@media (max-width: 480px) {
  .section {
    padding: 64px 0;
  }

  .grid-2, .grid-3, .grid-4, .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 64px 0;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .card {
    padding: 24px;
  }
}

/* Form Handling Styles added for PHPMailer integration */
.form-status { margin-top:16px; font-size:0.9rem; border-radius:8px; padding:12px 16px; display:none; }
.form-status.success { display:block; background:#E6F7F7; color:#007A7A; border-left:4px solid #00A8A8; }
.form-status.error { display:block; background:#FEF2F2; color:#B91C1C; border-left:4px solid #DC2626; }
.input-error { border-color:#DC2626 !important; box-shadow:0 0 0 3px rgba(220,38,38,0.1) !important; }
.form-success-panel { text-align:center; padding:40px 24px; background:#F0FDFA; border-radius:16px; border:1px solid #99F6E4; }
.form-success-panel .check { font-size:2.5rem; color:#00A8A8; margin-bottom:12px; }

/* Form Banner */
.form-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
  animation: formBannerIn 0.3s ease-out;
}
.form-banner-success {
  background: #F0FDFA;
  color: #007A7A;
  border-left: 4px solid #00A8A8;
}
.form-banner-error {
  background: #FEF2F2;
  color: #B91C1C;
  border-left: 4px solid #DC2626;
}
.form-banner-icon {
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.form-banner-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0 4px;
}
.form-banner-close:hover { opacity: 1; }
@keyframes formBannerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
