/* === AQS Avance Quality Solutions Inc — Style Sheet === */

:root {
  --deep-navy: #0A1628;
  --dark-slate: #111D32;
  --midnight: #152238;
  --steel: #1E3355;
  --border: #2A4070;
  --accent-teal: #00C9A7;
  --accent-teal-dark: #00A88C;
  --accent-gold: #F0B90B;
  --accent-gold-light: #FFD43B;
  --text-primary: #FFFFFF;
  --text-secondary: #B8C5D6;
  --text-muted: #7B8FAB;
  --error: #E74C3C;
  --success: #2ECC71;
  --surface-card: #152238;
  --surface-elevated: #1A2D4A;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
  --radius: 6px;
  --radius-lg: 12px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--deep-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TYPOGRAPHY === */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.625rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-teal-dark);
  text-decoration: underline;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

li {
  margin-bottom: 0.5rem;
}

/* === NAVIGATION === */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--dark-slate);
  border-bottom: 1px solid var(--steel);
  padding: 0 2rem;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-icon {
  width: 40px;
  height: 40px;
  background-color: var(--accent-teal);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--deep-navy);
  flex-shrink: 0;
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-teal);
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-teal);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-teal);
}

.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--accent-teal);
  color: var(--deep-navy) !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-teal-dark);
  color: var(--deep-navy) !important;
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: 0.3s;
}

/* === HERO === */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 2rem 80px;
  background-color: var(--deep-navy);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 185, 11, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
  color: var(--accent-teal);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--accent-teal);
  color: var(--deep-navy);
}

.btn-primary:hover {
  background-color: var(--accent-teal-dark);
  color: var(--deep-navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 201, 167, 0.25);
}

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

.btn-outline:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-gold {
  background-color: var(--accent-gold);
  color: var(--deep-navy);
}

.btn-gold:hover {
  background-color: var(--accent-gold-light);
  color: var(--deep-navy);
  text-decoration: none;
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.hero-cell:nth-child(1) { background-color: var(--accent-teal); }
.hero-cell:nth-child(2) { background-color: #00B392; }
.hero-cell:nth-child(3) { background-color: #009E7F; }
.hero-cell:nth-child(4) { background-color: #00896C; }
.hero-cell:nth-child(5) { background-color: var(--accent-gold); }
.hero-cell:nth-child(6) { background-color: #D9A80A; }
.hero-cell:nth-child(7) { background-color: #C29609; }
.hero-cell:nth-child(8) { background-color: var(--steel); }
.hero-cell:nth-child(9) { background-color: #1A2D4A; }
.hero-cell:nth-child(10) { background-color: #243B5E; }
.hero-cell:nth-child(11) { background-color: #2E4A72; }
.hero-cell:nth-child(12) { background-color: #385986; }
.hero-cell:nth-child(13) { background-color: var(--accent-teal); }
.hero-cell:nth-child(14) { background-color: var(--accent-gold); }
.hero-cell:nth-child(15) { background-color: var(--steel); }
.hero-cell:nth-child(16) { background-color: #1A2D4A; }

.hero-cell:hover {
  transform: scale(1.1);
  border-radius: 8px;
}

/* === SECTIONS === */

.section {
  padding: 6rem 2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-teal);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background-color: var(--dark-slate);
}

.section-alt2 {
  background-color: var(--midnight);
}

/* === SERVICES GRID === */

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

.service-card {
  background-color: var(--surface-card);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-teal);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  background-color: rgba(0, 201, 167, 0.1);
  color: var(--accent-teal);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* === STATS RIBBON === */

.stats-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
  background-color: var(--surface-card);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-teal);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* === PROCESS HORIZONTAL === */

.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -12px;
  width: 24px;
  height: 2px;
  background-color: var(--accent-teal);
}

.process-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--accent-teal);
  color: var(--deep-navy);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.process-step h4 {
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* === TESTIMONIAL CARDS === */

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

.testimonial-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
}

.testimonial-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

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

.testimonial-stars {
  color: var(--accent-gold);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* === CLIENTS BAR === */

.clients-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}

.client-logo {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.client-logo:hover {
  color: var(--accent-teal);
}

/* === ABOUT SECTION === */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--accent-teal) 0%, #005A45 100%);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-image-placeholder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--radius-lg) - 4px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.about-img-icon {
  font-size: 5rem;
  color: #B9C3D8;
  position: relative;
  z-index: 1;
}

.about-content h2 {
  margin-bottom: 1.25rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
}

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

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-teal);
}

/* === CONTACT SECTION === */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1rem;
}

.contact-info > p {
  margin-bottom: 2.5rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--steel);
  color: var(--text-secondary);
}

.contact-details li:first-child {
  padding-top: 0;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background-color: var(--surface-elevated);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--accent-teal);
}

.contact-detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.contact-detail-value {
  font-weight: 600;
  color: var(--text-primary);
}

.contact-form-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--surface-card);
  border: 1px solid var(--steel);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

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

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

/* === FOOTER === */

.footer {
  background-color: var(--dark-slate);
  border-top: 1px solid var(--steel);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent-teal);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--steel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* === PAGE HEADER (subpages) === */

.page-header {
  padding: 140px 2rem 80px;
  background-color: var(--deep-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  border-radius: 2px;
}

.page-header h1 {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* === CONTENT PAGE LAYOUT === */

.content-section {
  padding: 5rem 2rem;
}

.content-inner {
  max-width: 860px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
}

.content-block h2 {
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--accent-teal);
}

.content-block h3 {
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 1.3rem;
}

.content-block h3:first-of-type {
  margin-top: 0;
}

.content-block p {
  margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
  margin-top: 0.75rem;
}

.content-block a {
  font-weight: 600;
}

.last-updated {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  text-align: center;
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

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

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

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

  .process-step:nth-child(2)::after {
    display: none;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--dark-slate);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--steel);
    gap: 1rem;
  }

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

  .nav-toggle {
    display: block;
  }

  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 2.25rem; }
  .section { padding: 4rem 1.5rem; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-ribbon {
    grid-template-columns: 1fr;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .process-step::after {
    display: none;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .page-header { padding: 120px 1.5rem 60px; }
  .page-header h1 { font-size: 2rem; }
  .content-section { padding: 3rem 1.5rem; }
  .content-block { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .clients-bar {
    gap: 1.5rem;
  }

  .client-logo {
    font-size: 1.1rem;
  }
}
