/* Royal Shipping Services - Dynamic Theme Engine Stylesheet */
:root {
  --theme-primary: #0b3b60;
  --theme-secondary: #062038;
  --theme-accent: #d4a024;
  --theme-bg: #f8fafc;
  --theme-surface: #ffffff;
  --theme-text: #0f172a;
  --theme-muted: #64748b;
  --theme-border: #e2e8f0;
  --theme-heading-font: 'Playfair Display', serif;
  --theme-body-font: 'Poppins', sans-serif;
  --theme-font-size: 16px;
  --theme-radius: 12px;
  --theme-spacing: 72px;
}

html {
  scroll-behavior: smooth;
  font-size: var(--theme-font-size);
}

body {
  font-family: var(--theme-body-font);
  background-color: var(--theme-bg);
  color: var(--theme-text);
  line-height: 1.65;
  margin: 0;
}

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

a {
  color: var(--theme-primary);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--theme-accent);
}

/* Top Utility Bar */
.top-bar {
  background-color: var(--theme-secondary);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.5rem 0;
}
.top-bar a {
  color: #e2e8f0;
}
.top-bar a:hover {
  color: var(--theme-accent);
}

/* Navbar */
.site-navbar {
  background-color: var(--theme-surface);
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  z-index: 1030;
}
.header-dark .site-navbar {
  background-color: var(--theme-secondary);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.header-dark .site-navbar .nav-link,
.header-dark .site-navbar .navbar-brand {
  color: #f8fafc !important;
}
.nav-sticky .site-navbar {
  position: sticky;
  top: 0;
}
.site-navbar .navbar-brand {
  font-family: var(--theme-heading-font);
  font-weight: 700;
  color: var(--theme-primary);
  line-height: 1.15;
}
.site-navbar .navbar-brand small {
  display: block;
  font-family: var(--theme-body-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--theme-accent);
}
.site-navbar .nav-link {
  color: var(--theme-text);
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--theme-accent);
}

/* Buttons */
.btn-theme-primary {
  background-color: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #ffffff;
  border-radius: var(--theme-radius);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn-theme-primary:hover {
  background-color: var(--theme-secondary);
  border-color: var(--theme-secondary);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.btn-theme-accent {
  background-color: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #0f172a;
  border-radius: var(--theme-radius);
  font-weight: 600;
  padding: 0.65rem 1.5rem;
}
.btn-theme-accent:hover {
  filter: brightness(1.06);
  color: #0f172a;
}

/* Hero Slider */
.hero-carousel .carousel-item {
  min-height: 540px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-carousel .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(6, 32, 56, 0.88) 0%, rgba(6, 32, 56, 0.55) 60%, rgba(6, 32, 56, 0.3) 100%);
}
.hero-carousel .hero-content {
  position: relative;
  z-index: 2;
  padding: 110px 0;
  color: #ffffff;
  max-width: 680px;
}
.hero-carousel .hero-content h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 0.75rem;
}
.hero-carousel .hero-kicker {
  display: inline-block;
  background: rgba(212, 160, 36, 0.2);
  border: 1px solid var(--theme-accent);
  color: #fde68a;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Page Hero Banner */
.page-banner {
  background: linear-gradient(135deg, var(--theme-secondary) 0%, var(--theme-primary) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
}
.page-banner h1 {
  color: #ffffff;
  margin-bottom: 0.35rem;
}
.page-banner p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

/* Sections & Cards */
.section-pad {
  padding: var(--theme-spacing) 0;
}
.section-heading {
  margin-bottom: 2.5rem;
}
.section-heading .eyebrow {
  color: var(--theme-accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.section-heading h2 em {
  font-style: normal;
  color: var(--theme-accent);
}
.section-heading p {
  color: var(--theme-muted);
}

.theme-card {
  background-color: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  color: var(--theme-text);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card-elevated .theme-card {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.placement-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.placement-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.vacancy-card {
  border-left: 4px solid var(--theme-accent);
}

.badge-salary {
  background-color: rgba(212, 160, 36, 0.16);
  color: var(--theme-accent);
  border: 1px solid rgba(212, 160, 36, 0.35);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-accent);
}

.surface-band {
  background-color: var(--theme-surface);
  border-top: 1px solid var(--theme-border);
  border-bottom: 1px solid var(--theme-border);
}

/* Footer */
.site-footer {
  background-color: var(--theme-secondary);
  color: #cbd5e1;
  padding: 4rem 0 1.5rem;
}
.site-footer h5 {
  color: #ffffff;
  margin-bottom: 1rem;
}
.site-footer a {
  color: #cbd5e1;
}
.site-footer a:hover {
  color: var(--theme-accent);
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.875rem;
}

/* Form controls theme-aware */
.form-control, .form-select {
  background-color: var(--theme-surface);
  color: var(--theme-text);
  border-color: var(--theme-border);
  border-radius: calc(var(--theme-radius) * 0.65);
}
.form-control:focus, .form-select:focus {
  background-color: var(--theme-surface);
  color: var(--theme-text);
  border-color: var(--theme-accent);
  box-shadow: 0 0 0 0.2rem rgba(212, 160, 36, 0.22);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
