/* ============================================================
   Al-Nawras Marine Services — Design System & Main Stylesheet
   Design Tokens, Typography, and Components
   ============================================================ */

:root {
  /* 5.1.1 Colour Palette Tokens */
  --navy: #082a3a; /* Primary dark — navigation, headers, footer background */
  --teal: #087e89; /* Primary action — buttons, links, active states, CTA */
  --teal-hover: #06656e;
  --sand: #d7a64b; /* Accent — highlights, badges, urgency indicators */
  --sand-hover: #c49439;
  --mist: #f3f7f8; /* Light background — page body, card backgrounds */
  --dark: #17272f; /* Text — body text, headings on light backgrounds */
  --white: #ffffff; /* Pure white — card backgrounds, text on dark */
  --error: #d32f2f; /* Error states — validation errors, failed */
  --success: #2e7d32; /* Success states — confirmations, sent indicators */
  --warning: #f57c00; /* Warning states — urgency, attention needed */
  --border: rgba(23, 39, 47, 0.12);
  --border-light: rgba(255, 255, 255, 0.15);

  /* 5.1.2 Typography */
  --font-en: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;

  /* 5.1.3 Spacing Scale */
  --space-xs: 0.25rem; /* 4px */
  --space-sm: 0.5rem; /* 8px */
  --space-md: 1rem; /* 16px */
  --space-lg: 1.5rem; /* 24px */
  --space-xl: 2rem; /* 32px */
  --space-2xl: 3rem; /* 48px */
  --space-3xl: 4rem; /* 64px */

  /* Containers & Shadows */
  --container-max: 1200px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(8, 42, 58, 0.08);
  --shadow-lg: 0 10px 25px rgba(8, 42, 58, 0.12);
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
}

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

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

body {
  font-family: var(--font-en);
  background-color: var(--mist);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Skip Link & Focus States */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--sand);
  color: var(--dark);
  padding: 10px 16px;
  font-weight: 600;
  z-index: 9999;
  border-radius: 4px;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 15px;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Headings Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--navy);
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
p {
  margin-bottom: var(--space-md);
}
p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.main-content {
  flex: 1 0 auto;
}

.section {
  padding: var(--space-2xl) 0;
}

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

.section-dark {
  background-color: var(--navy);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--space-2xl) auto;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #4a5d68;
}

.section-dark .section-subtitle {
  color: #cbd5e1;
}

/* Header & Navigation — Executive Maritime Navy */
.site-header {
  background-color: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(215, 166, 75, 0.22);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-fast);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), #0a5666);
  border: 1px solid rgba(215, 166, 75, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sand);
  flex-shrink: 0;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.6875rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Desktop Navigation */
.nav-desktop {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-link[aria-current='page'] {
  color: var(--sand);
  background-color: rgba(215, 166, 75, 0.1);
  box-shadow: inset 0 -2px 0 var(--sand);
}

.dropdown-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.nav-item-has-dropdown:hover .dropdown-chevron,
.nav-item-has-dropdown:focus-within .dropdown-chevron {
  transform: rotate(180deg);
  color: var(--sand);
}

/* Dropdown Menu Container */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  background-color: #0b3345;
  border: 1px solid rgba(8, 126, 137, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1050;
  pointer-events: none;
}

.nav-item-has-dropdown:hover .nav-dropdown-menu,
.nav-item-has-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
  pointer-events: auto;
}

.nav-dropdown-wide {
  min-width: 600px;
  padding: 14px;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}

.dropdown-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.dropdown-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--sand);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.dropdown-view-all:hover {
  text-decoration: underline;
  color: var(--sand-hover);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.dropdown-item:hover {
  background-color: rgba(8, 126, 137, 0.25);
  text-decoration: none;
  transform: translateX(3px);
}

[dir='rtl'] .dropdown-item:hover {
  transform: translateX(-3px);
}

.dropdown-item-icon {
  font-size: 1.15rem;
  line-height: 1.2;
  flex-shrink: 0;
  padding-top: 2px;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.dropdown-item:hover .dropdown-item-title {
  color: var(--sand);
}

.dropdown-item-desc {
  color: #94a3b8;
  font-size: 0.75rem;
  line-height: 1.35;
  margin-top: 2px;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  color: var(--sand);
  border-color: var(--sand);
  background: rgba(215, 166, 75, 0.1);
  text-decoration: none;
}

.lang-icon {
  flex-shrink: 0;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), #0a9ba8);
  border: 1px solid rgba(215, 166, 75, 0.35);
  box-shadow: 0 4px 12px rgba(8, 126, 137, 0.35);
  color: var(--white);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
  background: linear-gradient(135deg, var(--teal-hover), var(--teal));
  box-shadow: 0 6px 18px rgba(8, 126, 137, 0.5), 0 0 10px rgba(215, 166, 75, 0.3);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
}

.cta-arrow {
  transition: transform var(--transition-fast);
}

.nav-cta-btn:hover .cta-arrow {
  transform: translateX(3px);
}

[dir='rtl'] .nav-cta-btn:hover .cta-arrow {
  transform: translateX(-3px);
}

/* Mobile Toggle Hamburger */
.mobile-toggle-btn {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mobile-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--sand);
  color: var(--sand);
}

.hamburger-svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  width: 320px;
  max-width: 85vw;
  background-color: #08222f;
  border-inline-end: 1px solid rgba(8, 126, 137, 0.3);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

[dir='rtl'] .mobile-nav-drawer {
  transform: translateX(100%);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 18, 26, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

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

.mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
}

.mobile-drawer-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.mobile-drawer-close:hover {
  color: var(--white);
}

.mobile-drawer-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  color: #e2e8f0;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--sand);
  text-decoration: none;
}

.mobile-accordion-item {
  border-radius: 8px;
  overflow: hidden;
}

.mobile-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: #e2e8f0;
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  text-align: inherit;
  cursor: pointer;
  border-radius: 8px;
}

.mobile-accordion-trigger:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--sand);
}

.mobile-accordion-icon {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.mobile-accordion-item.active .mobile-accordion-icon {
  transform: rotate(45deg);
  color: var(--sand);
}

.mobile-accordion-content {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px 10px 8px 20px;
}

[dir='rtl'] .mobile-accordion-content {
  padding: 4px 20px 8px 10px;
}

.mobile-accordion-item.active .mobile-accordion-content {
  display: flex;
}

.mobile-sublink {
  color: #cbd5e1;
  padding: 8px 12px;
  font-size: 0.875rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.mobile-sublink:hover {
  background-color: rgba(8, 126, 137, 0.2);
  color: var(--sand);
  text-decoration: none;
}

.mobile-sublink.highlight {
  font-weight: 700;
  color: var(--sand);
}

.mobile-drawer-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-contact-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-contact-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-contact-pill.whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
  color: #4ade80;
}

.mobile-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

/* 5.1.4 Component Patterns: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-sm {
  min-height: 38px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.125rem;
}

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

.btn-primary:hover {
  background-color: var(--teal-hover);
  border-color: var(--teal-hover);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn-secondary:hover {
  background-color: var(--mist);
  color: var(--teal-hover);
  border-color: var(--teal-hover);
  text-decoration: none;
}

.btn-accent {
  background-color: var(--sand);
  color: var(--dark);
  border-color: var(--sand);
}

.btn-accent:hover {
  background-color: var(--sand-hover);
  border-color: var(--sand-hover);
  color: var(--dark);
  text-decoration: none;
}

.btn-ghost {
  background-color: transparent;
  color: var(--teal);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(8, 126, 137, 0.08);
  color: var(--teal-hover);
  text-decoration: none;
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb {
  padding: var(--space-md) 0;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
}

.breadcrumb-item::after {
  content: '/';
  margin-left: var(--space-sm);
  color: #94a3b8;
}

.breadcrumb-item:last-child::after {
  content: '';
}

.breadcrumb-item a {
  color: var(--teal);
}

.breadcrumb-item.active {
  color: #64748b;
  font-weight: 500;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: #061e2a;
  background-image: linear-gradient(135deg, rgba(6, 30, 42, 0.92) 0%, rgba(8, 42, 58, 0.85) 55%, rgba(8, 42, 58, 0.65) 100%),
    url('/images/hero-marine-home.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

[dir='rtl'] .hero-section {
  background-image: linear-gradient(-135deg, rgba(6, 30, 42, 0.92) 0%, rgba(8, 42, 58, 0.85) 55%, rgba(8, 42, 58, 0.65) 100%),
    url('/images/hero-marine-home.webp');
}

.hero-section::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 126, 137, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: rgba(215, 166, 75, 0.18);
  color: var(--sand);
  border: 1px solid rgba(215, 166, 75, 0.4);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Unified Inner Page Hero Header (Full Viewport Edge-to-Edge with Image & Overlay) */
.page-hero {
  position: relative;
  width: 100%;
  background-color: #061e2a;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: calc(var(--space-2xl) + 4px) 0 calc(var(--space-3xl) + 2px) 0;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  border-bottom: 2px solid rgba(215, 166, 75, 0.35);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(6, 30, 42, 0.93) 0%, rgba(8, 42, 58, 0.84) 55%, rgba(8, 42, 58, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

[dir='rtl'] .page-hero::before {
  background: linear-gradient(-135deg, rgba(6, 30, 42, 0.93) 0%, rgba(8, 42, 58, 0.84) 55%, rgba(8, 42, 58, 0.65) 100%);
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(8, 126, 137, 0.28) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

[dir='rtl'] .page-hero::after {
  right: auto;
  left: -15%;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Seamless Integrated Breadcrumb inside Hero */
.page-hero .breadcrumb {
  background: transparent;
  padding: 0 0 var(--space-md) 0;
  border-bottom: none;
}

.page-hero .breadcrumb .container {
  padding: 0;
  max-width: 100%;
}

.page-hero .breadcrumb-item {
  color: #94a3b8;
  font-size: 0.875rem;
}

.page-hero .breadcrumb-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.page-hero .breadcrumb-item a:hover {
  color: var(--sand);
  text-decoration: underline;
}

.page-hero .breadcrumb-item::after {
  color: #64748b;
}

[dir='rtl'] .page-hero .breadcrumb-item + .breadcrumb-item::before {
  color: #64748b;
}

.page-hero .breadcrumb-item.active {
  color: var(--sand);
  font-weight: 600;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background-color: rgba(215, 166, 75, 0.16);
  color: var(--sand);
  border: 1px solid rgba(215, 166, 75, 0.45);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.page-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.page-hero-description {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 0;
  max-width: 820px;
}


/* Cards & Bento Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.card {
  background-color: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-normal),
    box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.card-img-top {
  width: calc(100% + (2 * var(--space-lg)));
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-md) calc(-1 * var(--space-lg));
  height: 190px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 11px 11px 0 0;
  background-color: #082a3a;
  position: relative;
}

.card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  content-visibility: auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-img-top img {
  transform: scale(1.06);
}

.page-banner-card {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #082a3a;
  position: relative;
}

.page-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-map-wrapper {
  transition: box-shadow var(--transition-fast);
}

.location-map-wrapper:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(8, 126, 137, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.card-description {
  color: #475569;
  font-size: 0.9375rem;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.card-footer {
  margin-top: auto;
  padding-top: var(--space-sm);
}

/* Offshore Feature Banner */
.offshore-banner {
  position: relative;
  background-color: #0b3246;
  background-image: linear-gradient(135deg, rgba(8, 42, 58, 0.92) 0%, rgba(11, 50, 70, 0.82) 100%),
    url('/images/hero-industries.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(215, 166, 75, 0.35);
  border-radius: 16px;
  padding: var(--space-2xl);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  box-shadow: var(--shadow-lg);
}

[dir='rtl'] .offshore-banner {
  background-image: linear-gradient(-135deg, rgba(8, 42, 58, 0.92) 0%, rgba(11, 50, 70, 0.82) 100%),
    url('/images/hero-industries.webp');
}

.offshore-banner h2 {
  color: var(--sand);
}

.offshore-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Contact Fast Bar */
.contact-fast-bar {
  background-color: var(--navy);
  color: var(--white);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.contact-fast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  align-items: center;
}

.contact-fast-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #e2e8f0;
}

.contact-fast-item a {
  color: var(--white);
  font-weight: 500;
}

.contact-fast-item a:hover {
  color: var(--sand);
}

/* Form Styles */
.form-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

.form-label .required {
  color: var(--error);
}

.form-input,
.form-select,
.form-textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--dark);
  background-color: var(--white);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 48px;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 126, 137, 0.2);
  outline: none;
}

.form-intent-toggle {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  background-color: var(--mist);
  padding: 6px;
  border-radius: 10px;
}

.intent-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--dark);
  transition: all var(--transition-fast);
}

.intent-tab.active {
  background-color: var(--white);
  color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.file-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 10px;
  padding: var(--space-xl);
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.file-dropzone:hover {
  border-color: var(--teal);
  background-color: #f0fdfa;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--dark);
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

/* Form Mode Switching & Dynamic Fields */
.form-mode-section {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.form-mode-section.active {
  display: block;
}

.mode-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: rgba(8, 126, 137, 0.1);
  color: var(--teal);
  border-radius: 4px;
  margin-bottom: var(--space-sm);
}

/* Repeatable items list for Ship Supply */
.items-list-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.item-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr auto;
  gap: var(--space-sm);
  align-items: center;
  background-color: var(--mist);
  padding: var(--space-sm);
  border-radius: 8px;
}

@media (max-width: 768px) {
  .item-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
    padding: var(--space-md);
  }
}

.btn-icon-danger {
  background: transparent;
  color: var(--error);
  border: 1px solid rgba(211, 47, 47, 0.3);
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all var(--transition-fast);
}

.btn-icon-danger:hover {
  background-color: rgba(211, 47, 47, 0.1);
}

/* File Upload Attachments UI */
.attachments-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.attachment-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.attachment-remove-btn {
  background: none;
  border: none;
  color: var(--error);
  cursor: pointer;
  font-weight: 600;
  padding: 2px 6px;
}

.attachment-remove-btn:hover {
  text-decoration: underline;
}

/* Validation & Alerts */
.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid,
.items-list-container.is-invalid {
  border-color: var(--error) !important;
  background-color: #fef2f2 !important;
}

.field-error-msg {
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-top: 4px;
}

.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: 8px;
  margin-bottom: var(--space-xl);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */

.site-footer {
  background-color: var(--navy);
  color: #cbd5e1;
  padding: var(--space-3xl) 0 var(--space-lg) 0;
  border-top: 1px solid var(--border-light);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--sand);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--sand);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.875rem;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  /* Hide duplicated language toggle and Request CTA from top bar on mobile; they live in the drawer */
  .header-actions .lang-toggle,
  .header-actions .nav-cta-btn {
    display: none !important;
  }

  .mobile-toggle-btn {
    display: inline-flex;
  }

  .brand-tagline {
    display: none;
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .page-hero {
    padding: calc(var(--space-xl) + 4px) 0 var(--space-2xl) 0;
    margin-bottom: var(--space-xl);
  }

  .page-hero-title {
    font-size: 1.85rem;
  }

  .page-hero-description {
    font-size: 1.05rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

/* ============================================================
   RTL (Arabic) Layout Rules
   ============================================================ */

/* 5.4.1 Font and Base Direction */
[dir='rtl'],
body.rtl,
body.lang-ar {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

[dir='rtl'] .skip-link {
  left: auto;
  right: 20px;
}

/* Breadcrumbs RTL chevron */
[dir='rtl'] .breadcrumb-item + .breadcrumb-item::before {
  content: '‹';
  margin: 0 var(--space-sm);
}

/* Nav & Header mirroring */
[dir='rtl'] .brand-link {
  flex-direction: row;
}

[dir='rtl'] .brand-icon {
  margin-inline-end: 12px;
  margin-inline-start: 0;
}

[dir='rtl'] .header-actions {
  flex-direction: row;
}

[dir='rtl'] .nav-menu {
  flex-direction: row;
}

@media (max-width: 768px) {
  [dir='rtl'] .nav-menu {
    flex-direction: column;
    text-align: right;
  }
}

/* Form Fields & Alignment */
[dir='rtl'] .form-label {
  text-align: right;
}

[dir='rtl'] .form-input,
[dir='rtl'] .form-select,
[dir='rtl'] .form-textarea {
  text-align: right;
}

[dir='rtl'] .form-checkbox {
  flex-direction: row;
}

[dir='rtl'] .form-checkbox input {
  margin-inline-end: var(--space-sm);
  margin-inline-start: 0;
}

/* Card grids and cards */
[dir='rtl'] .card {
  text-align: right;
}

[dir='rtl'] .card-footer {
  text-align: start;
}

/* Footer RTL */
[dir='rtl'] .footer-col h3::after,
body.rtl .footer-col h3::after,
body.lang-ar .footer-col h3::after {
  left: auto;
  right: 0;
}

/* Hero Section */
[dir='rtl'] .hero-actions {
  flex-direction: row;
}

[dir='rtl'] .contact-fast-grid {
  direction: rtl;
}

/* Values that MUST STAY LTR
   Phone numbers, IMO numbers, reference numbers (ANM-YYYY-NNNNNN), emails, URLs */
.ltr-locked,
[dir='ltr'],
.reference-badge,
a[href^='tel:'],
a[href^='mailto:'] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  text-align: left !important;
  display: inline-block;
}

[dir='rtl'] .ltr-locked,
[dir='rtl'] a[href^='tel:'],
[dir='rtl'] a[href^='mailto:'] {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* Mobile 375px Guard — No clipped Arabic text */
@media (max-width: 480px) {
  html,
  body {
    overflow-x: hidden;
  }

  .container {
    padding-inline: 1rem;
  }

  .hero-title,
  .page-hero-title,
  .section-header h1,
  .page-title {
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 1.75rem;
    line-height: 1.35;
  }

  .hero-description,
  .page-hero-description,
  .section-subtitle {
    font-size: 0.95rem;
    overflow-wrap: break-word;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
