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

:root {
  --navy: #0B2545;
  --navy-dark: #061825;
  --teal: #0D9488;
  --teal-light: #14B8A6;
  --emerald: #10B981;
  --emerald-dark: #047857;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 37, 69, 0.12);
  --radius: 12px;
  --transition: 0.3s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== View Switcher Engine ===== */
.main-content {
  min-height: calc(100vh - 72px);
  padding-top: 72px;
}

.page-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
}

.page-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

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

.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-1px);
}

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

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

.btn-block {
  width: 100%;
}

.btn-portal {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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

/* ===== Header & Nav ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--emerald-dark);
  font-weight: 600;
}

.btn-nav {
  background: var(--navy) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 8px;
}

.btn-nav:hover {
  background: var(--navy-dark) !important;
}

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

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

/* ===== Hero ===== */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(160deg, var(--gray-50) 0%, var(--white) 50%, #f0fdf4 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: #d1fae5;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.highlight-text {
  color: var(--emerald-dark);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-trust-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-trust-badges span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-icon {
  color: var(--emerald);
  font-weight: 800;
}

/* ===== Estimator Calculator Widget ===== */
.hero-calculator-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.hero-calculator-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}

.calc-subtitle {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.calc-form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 0.9rem;
  color: var(--gray-700);
  background: var(--gray-50);
  margin-top: 6px;
  outline: none;
}

.calc-result {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px;
  margin: 20px 0;
}

.result-badge {
  font-size: 0.85rem;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}

.result-points {
  list-style: none;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.result-points li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 18px;
}

.result-points li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--emerald);
  font-weight: bold;
}

/* ===== Checklist & Scope ===== */
.checklist-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.chk-tab {
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.chk-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.checklist-panel {
  display: none;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.checklist-panel.active {
  display: block;
}

.checklist-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-items li {
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chk-status.pass {
  background: #d1fae5;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ===== Diagnostic Tool ===== */
.diagnostic-card {
  margin-top: 50px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.diagnostic-header h3 {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.diagnostic-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.diag-q {
  margin-bottom: 18px;
}

.diag-q p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.radio-group label {
  font-size: 0.88rem;
  margin-right: 20px;
  color: var(--gray-600);
  cursor: pointer;
}

.diag-result-box {
  margin-top: 20px;
  background: var(--white);
  border: 1px solid var(--teal);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

/* ===== ROI Risk Calculator ===== */
.roi-card {
  margin-top: 50px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px;
}

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

.roi-output {
  background: var(--navy);
  color: var(--white);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
}

.roi-output h4 {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.roi-amount {
  font-size: 2.2rem;
  font-weight: 800;
  color: #6ee7b7;
  margin-bottom: 10px;
}

.roi-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== Sections ===== */
.section {
  padding: 60px 0 100px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.75;
}

.about-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-standards span {
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--teal-light);
}

.info-icon {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--emerald-dark);
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== Services & CAPA Showcase ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--teal-light);
}

.service-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.capa-showcase {
  margin-top: 40px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px;
}

.capa-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.capa-tab {
  padding: 10px 20px;
  border-radius: 30px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: var(--transition);
}

.capa-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.capa-panel {
  display: none;
}

.capa-panel.active {
  display: block;
}

.capa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.capa-issue, .capa-solution {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.status-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.status-tag.risk {
  background: #fee2e2;
  color: #991b1b;
}

.status-tag.success {
  background: #d1fae5;
  color: #065f46;
}

.capa-grid h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.capa-grid p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ===== Packages ===== */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.package-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}

.package-card:hover {
  box-shadow: var(--shadow-lg);
}

.package-card.featured {
  border: 2px solid var(--navy);
  box-shadow: var(--shadow);
}

.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.package-header {
  margin-bottom: 28px;
  text-align: center;
}

.package-header h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.package-type {
  font-size: 0.9rem;
  color: var(--gray-500);
  font-weight: 500;
}

.package-features {
  list-style: none;
  flex: 1;
  margin-bottom: 32px;
}

.package-features li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  position: relative;
  padding-left: 24px;
}

.package-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
}

.package-features li:last-child {
  border-bottom: none;
}

/* ===== Process & FAQ Accordion ===== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.process-step {
  text-align: center;
  padding: 24px 16px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--teal);
  transition: transform var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 24px;
  background: var(--gray-50);
}

.faq-item.active .faq-answer {
  max-height: 150px;
  padding: 16px 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.contact-info > p {
  font-size: 1.05rem;
  color: var(--gray-600);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item strong {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item span {
  font-size: 1.05rem;
  color: var(--navy);
  font-weight: 500;
}

.contact-form-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-700);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 16px;
}

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  padding: 0;
  transition: all var(--transition);
}

.form-status.success {
  padding: 12px;
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  padding: 12px;
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== Client Portal Modal ===== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 37, 69, 0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  width: 90%;
  max-width: 440px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-500);
  cursor: pointer;
}

/* ===== Footer ===== */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--white);
  border-radius: 8px;
  padding: 4px;
}

.footer-brand strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-brand span {
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--teal-light);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .contact-grid,
  .capa-grid,
  .roi-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
  }

  .nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

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

  .section-header h2 {
    font-size: 1.9rem;
  }

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

  .contact-form-box, .hero-calculator-card, .capa-showcase, .diagnostic-card, .roi-card {
    padding: 24px 18px;
  }
}