﻿/* ==========================================================================
   SAI MARINE SOLUTIONS - SPECIALIZED UI COMPONENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Mobile Navigation Drawer
   -------------------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 14, 27, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: var(--navy-950);
  border-left: 1px solid rgba(200, 138, 44, 0.3);
  z-index: 2010;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  transition: var(--transition-smooth);
  box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-close {
  background: transparent;
  color: var(--slate-300);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.drawer-close:hover {
  color: var(--gold-400);
}

.mobile-nav-links {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  color: var(--slate-200);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(200, 138, 44, 0.15);
  color: var(--gold-400);
}

.mobile-sub-menu {
  margin-left: 1rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(0, 128, 128, 0.4);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.mobile-sub-link {
  font-size: 0.85rem;
  color: var(--slate-300);
  padding: 0.4rem 0.5rem;
  display: block;
}

.mobile-sub-link:hover {
  color: var(--gold-400);
}

/* --------------------------------------------------------------------------
   MARPOL COMPLIANCE RISK ASSESSMENT WIDGET / CALCULATOR
   -------------------------------------------------------------------------- */
.audit-widget {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

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

.audit-progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.audit-progress-bar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--teal-500), var(--gold-500));
  transition: width 0.3s ease;
}

.audit-question-card {
  display: none;
}

.audit-question-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.audit-question-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.audit-question-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

.audit-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.audit-option-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--slate-50);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--slate-800);
}

.audit-option-label:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}

.audit-option-label input[type="radio"] {
  accent-color: var(--teal-600);
  width: 18px;
  height: 18px;
}

.audit-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Assessment Results */
.audit-results {
  display: none;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.audit-results.active {
  display: block;
}

.risk-meter {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy-900);
  color: var(--white);
  border: 6px solid var(--green-500);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.risk-meter.medium {
  border-color: var(--gold-500);
}

.risk-meter.high {
  border-color: var(--magenta-600);
}

.risk-score-value {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.risk-score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate-300);
  margin-top: 2px;
}

.audit-findings-box {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: left;
}

.audit-findings-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.audit-finding-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--slate-700);
}

.audit-finding-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SERVICES FILTER & SEARCH (services.html)
   -------------------------------------------------------------------------- */
.services-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy-800);
  color: var(--gold-400);
  border-color: var(--navy-800);
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-md);
  min-width: 240px;
}

.search-input-box svg {
  width: 16px;
  height: 16px;
  color: var(--slate-400);
}

.search-input-box input {
  background: transparent;
  font-size: 0.88rem;
  color: var(--slate-800);
  width: 100%;
}

/* --------------------------------------------------------------------------
   CONFIDENTIAL OPEN REPORTING & WHISTLEBLOWER SYSTEM
   -------------------------------------------------------------------------- */
.open-reporting-card {
  background: linear-gradient(135deg, var(--navy-950) 0%, #0a2540 100%);
  border: 1px solid rgba(0, 128, 128, 0.4);
  border-radius: var(--radius-xl);
  padding: 3rem;
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.open-reporting-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shield-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: rgba(0, 128, 128, 0.2);
  border: 1px solid var(--teal-400);
  color: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-icon-badge svg {
  width: 32px;
  height: 32px;
}

.open-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-200);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  color: var(--white);
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold-400);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  box-shadow: 0 0 0 3px rgba(200, 138, 44, 0.25);
}

.form-select option {
  background: var(--navy-950);
  color: var(--white);
}

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

.anonymity-assurance {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--teal-400);
  margin: 1rem 0 1.5rem 0;
}

.anonymity-assurance svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Report Success Modal / Box */
.report-success-box {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--green-500);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.report-success-box.active {
  display: block;
}

.ticket-token-display {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed var(--gold-400);
  color: var(--gold-400);
  font-family: monospace;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

/* --------------------------------------------------------------------------
   LIGHT / GENERAL CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.contact-form-card .form-label {
  color: var(--slate-800);
}

.contact-form-card .form-input,
.contact-form-card .form-select,
.contact-form-card .form-textarea {
  background: var(--slate-50);
  border: 1px solid var(--slate-300);
  color: var(--slate-800);
}

.contact-form-card .form-input:focus,
.contact-form-card .form-select:focus,
.contact-form-card .form-textarea:focus {
  border-color: var(--navy-800);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.1);
}

.contact-form-card .form-select option {
  background: var(--white);
  color: var(--slate-800);
}

/* --------------------------------------------------------------------------
   FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-item.active {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: transparent;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--teal-500);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--gold-500);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--slate-50);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   SERVICE DETAIL PAGE COMPONENTS
   -------------------------------------------------------------------------- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.service-main-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.content-block {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.content-block h2, 
.content-block h3 {
  margin-bottom: 1.25rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--slate-800);
}

.checklist-item svg {
  width: 18px;
  height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Service Sidebar */
.service-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold-500);
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-50);
  transition: var(--transition);
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: var(--navy-800);
  color: var(--gold-400);
}

.sidebar-cta-widget {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--teal-600) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
}

.sidebar-cta-widget h4 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.sidebar-cta-widget p {
  color: var(--slate-200);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   LEADERSHIP PROFILE (About Us)
   -------------------------------------------------------------------------- */
.leader-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.leader-avatar-box {
  text-align: center;
}

.leader-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  border: 4px solid var(--gold-400);
  box-shadow: var(--shadow-lg);
}

.leader-avatar svg {
  width: 90px;
  height: 90px;
}

.leader-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--navy-900);
}

.leader-role {
  font-size: 0.9rem;
  color: var(--teal-600);
  font-weight: 600;
}

.leader-bio {
  color: var(--slate-700);
  font-size: 1rem;
  line-height: 1.75;
}

.credentials-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.cred-tag {
  background: var(--navy-50);
  border: 1px solid rgba(10, 37, 64, 0.15);
  color: var(--navy-800);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FLOATING BACK TO TOP & TOASTS
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-400);
  transform: translateY(-4px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-950);
  color: var(--white);
  border: 1px solid var(--gold-400);
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(200, 138, 44, 0.4); }
  50% { box-shadow: 0 0 25px rgba(200, 138, 44, 0.8); }
}

/* Responsive adjustments for components */
@media (max-width: 1024px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  .service-sidebar {
    position: static;
    margin-top: 2rem;
  }
  .leader-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  .credentials-tags {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .open-report-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .checklist-grid {
    grid-template-columns: 1fr;
  }
  .open-reporting-card,
  .audit-widget,
  .contact-form-card,
  .leader-card {
    padding: 1.75rem;
  }
}