/* Reusable UI Components: Buttons, Service Cards, Snap-Slide Rail, Process Steps, Forms, Cookie Banner */

/* Icons */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

.icon-lg {
  width: 30px;
  height: 30px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 24px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--oropa-blue);
  color: var(--oropa-white);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.28);
}

.btn-primary:hover {
  background: var(--oropa-blue-hover);
  box-shadow: 0 12px 30px rgba(10, 132, 255, 0.38);
}

.btn-white {
  background: var(--oropa-white);
  color: var(--oropa-navy);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.btn-white:hover {
  background: var(--oropa-cyan);
  color: var(--oropa-navy-900);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--oropa-white);
}

.btn-outline-light:hover {
  border-color: var(--oropa-cyan);
  background: rgba(56, 182, 255, 0.14);
}

.btn-outline-dark {
  background: transparent;
  border-color: rgba(11, 27, 43, 0.22);
  color: var(--oropa-navy);
}

.btn-outline-dark:hover {
  border-color: var(--oropa-blue);
  color: var(--oropa-blue);
}

.btn-sm {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.84rem;
}

.btn .icon-arrow-shift {
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover .icon-arrow-shift {
  transform: translateX(4px);
}

/* Home About Editorial Split */
.about-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-principles-panel {
  background: linear-gradient(155deg, #07121E 0%, #0B1B2B 100%);
  color: var(--oropa-white);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  border: 1px solid rgba(56, 182, 255, 0.22);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 20px;
}

.principle-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.principle-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.principle-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--oropa-cyan);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(56, 182, 255, 0.14);
  flex-shrink: 0;
}

.principle-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}

.principle-text {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* Service Cards + Mobile/Tablet Smooth Snap-Slide Support */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: var(--oropa-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-med) var(--ease-out),
    border-color var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(10, 132, 255, 0.35);
  box-shadow: var(--shadow-md);
}

.service-card:hover::before {
  border-top-color: var(--oropa-blue);
}

.service-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #07121E 0%, #0B1B2B 100%);
  color: var(--oropa-cyan);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(56, 182, 255, 0.28);
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out),
    color var(--dur-med) var(--ease-out);
}

.service-card:hover .service-icon-badge {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.25);
  color: var(--oropa-white);
  background: linear-gradient(135deg, var(--oropa-blue) 0%, var(--oropa-cyan) 100%);
}

.service-card-title {
  font-size: 1.12rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.service-card-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--oropa-blue);
}

.service-card:hover .service-card-link .icon {
  transform: translateX(4px);
}

.service-card-link .icon {
  transition: transform var(--dur-fast) var(--ease-out);
}

/* Smooth Horizontal Snap Carousel Controls on Mobile/Tablet */
.slider-controls {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.slider-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--oropa-white);
  color: var(--oropa-navy);
  cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}

.slider-arrow-btn:hover {
  background: var(--oropa-blue);
  color: var(--oropa-white);
}

/* Portfolio Cards & Intentional Empty State */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--oropa-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: var(--oropa-navy);
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.project-card:hover .project-thumb img {
  transform: scale(1.04);
}

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

.project-category {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(10, 132, 255, 0.10);
  color: var(--oropa-blue);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.empty-showcase {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--oropa-surface-soft) 0%, #FFFFFF 100%);
  border: 1px dashed rgba(10, 132, 255, 0.35);
}

.empty-showcase-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--oropa-navy);
  color: var(--oropa-cyan);
  display: grid;
  place-items: center;
}

/* 4-Stage Engineering Process */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.process-card {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: border-color var(--dur-med), background-color var(--dur-med), transform var(--dur-med);
}

.process-card:hover {
  background: rgba(56, 182, 255, 0.08);
  border-color: rgba(56, 182, 255, 0.38);
  transform: translateY(-4px);
}

.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--oropa-blue), var(--oropa-cyan));
  color: var(--oropa-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.process-card-title {
  color: var(--oropa-white);
  margin-bottom: 10px;
}

.process-card-desc {
  color: var(--text-on-dark-muted);
  font-size: 0.93rem;
  margin: 0;
}

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: clamp(36px, 5vw, 60px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 20%, rgba(56, 182, 255, 0.24), transparent 45%),
    linear-gradient(135deg, #07121E 0%, #0B1B2B 60%, #102B46 100%);
  color: var(--oropa-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(56, 182, 255, 0.25);
}

.cta-banner-copy {
  max-width: 620px;
}

.cta-banner-title {
  color: var(--oropa-white);
  margin-bottom: 12px;
}

.cta-banner-desc {
  color: var(--text-on-dark-muted);
  margin: 0;
}

/* Cards & Rich Content */
.card-panel {
  background: var(--oropa-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-sm);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
}

.check-list .icon {
  color: var(--oropa-blue);
  margin-top: 3px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  background: var(--oropa-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--dur-fast);
}

.filter-pill:hover,
.filter-pill.is-active {
  background: var(--oropa-blue);
  border-color: var(--oropa-blue);
  color: var(--oropa-white);
}

/* Legal Prose */
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.prose p {
  color: var(--text-secondary);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(11, 27, 43, 0.20);
  background: var(--oropa-white);
  color: var(--text-primary);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--oropa-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.18);
}

.form-control.is-invalid {
  border-color: var(--status-error);
}

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

.form-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox-wrap input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--oropa-blue);
  flex-shrink: 0;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  margin-bottom: 22px;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--status-success-bg);
  color: #0B6B3B;
  border-color: rgba(15, 157, 88, 0.28);
}

.alert-error {
  background: var(--status-error-bg);
  color: #A51D13;
  border-color: rgba(217, 48, 37, 0.28);
}

.contact-info-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--oropa-surface-soft);
  border: 1px solid var(--border-light);
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--oropa-navy);
  color: var(--oropa-cyan);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Preloader Overlay */
.oropa-preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--oropa-navy-900);
  display: grid;
  place-items: center;
  transition: opacity 380ms var(--ease-out), visibility 380ms;
}

.oropa-preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-core {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(56, 182, 255, 0.22);
  border-top-color: var(--oropa-cyan);
  animation: oropa-preloader-ring 1s linear infinite;
}

.preloader-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(56, 182, 255, 0.35);
  background: var(--oropa-navy);
  color: var(--oropa-white);
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--dur-fast) var(--ease-out);
}

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

.back-to-top:hover {
  background: var(--oropa-blue);
  transform: translateY(-3px);
}

/* Cookie Consent Banner (Slim, Sleek, Non-Obstructive) */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1500;
  max-width: 1020px;
  margin-inline: auto;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  background: rgba(11, 27, 43, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--oropa-white);
  border: 1px solid rgba(56, 182, 255, 0.30);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.cookie-banner-title {
  margin: 0;
  font-size: 0.96rem;
  color: var(--oropa-white);
}

.cookie-banner-desc {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text-on-dark-muted);
  margin-bottom: 12px;
}

.cookie-options {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
}

.cookie-options.is-expanded {
  display: grid;
}

.cookie-option-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

#cookie-options:not(.is-expanded) ~ .cookie-actions #cookie-save-prefs {
  display: none;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cookie-actions #cookie-accept-all {
    grid-column: 1 / -1;
  }
}

/* Responsive Component Adjustments */
@media (max-width: 1120px) {
  .services-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .about-split,
  .empty-showcase,
  .form-grid,
  .cookie-options {
    grid-template-columns: 1fr;
  }

  /* Smooth Snap-Slide Horizontal Rail on Small Screens */
  .services-grid.is-mobile-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .services-grid.is-mobile-slider::-webkit-scrollbar {
    display: none;
  }

  .services-grid.is-mobile-slider .service-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .slider-controls {
    display: flex;
  }
}

@media (max-width: 580px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

/* Layout Utilities (ensures zero inline style attributes in templates) */
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 36px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.flex-row { display: flex; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: 10px; }
.gap-md { gap: 18px; }
.text-muted-sm { font-size: 0.88rem; color: var(--text-muted); }
.full-width { width: 100%; }
.stack-md { display: grid; gap: 22px; align-content: start; }

