/* ============================================================
   Al-Rouby Customs — Production Stylesheet
   Version: 4.0 | Multi-Page | Trilingual (EN/AR/ZH) | Dark Mode
   ============================================================ */

/* --- 1. Design Tokens --- */
:root {
  --primary: #0b1f3a;
  --primary-mid: #162d50;
  --primary-light: #1e3a5f;
  --accent: #17bebb;
  --accent-hover: #14a8a6;
  --accent-glow: rgba(23, 190, 187, 0.15);
  --bg-body: #ffffff;
  --bg-surface: #f6f8fb;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.92);
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-muted: #667085;
  --text-heading: #0b1f3a;
  --text-on-dark: #ffffff;
  --border: #e5e7eb;
  --border-light: #f0f1f3;
  --divider: rgba(0, 0, 0, 0.06);
  --font-main: "Cairo", sans-serif;
  --font-zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --section-py: clamp(56px, 8vw, 96px);
  --section-px: clamp(16px, 4vw, 24px);
  --max-width: 1120px;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-accent: 0 8px 24px rgba(23, 190, 187, 0.2);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
}

/* --- 2. Dark Mode (class-based) --- */
.dark-mode {
  --bg-body: #0a1120;
  --bg-surface: #0f172a;
  --bg-card: #131d30;
  --bg-elevated: #182540;
  --bg-header: rgba(10, 17, 32, 0.94);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #f1f5f9;
  --border: #1e293b;
  --border-light: #172033;
  --divider: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  body:not(.light-mode):not(.dark-mode) {
    --bg-body: #0a1120;
    --bg-surface: #0f172a;
    --bg-card: #131d30;
    --bg-elevated: #182540;
    --bg-header: rgba(10, 17, 32, 0.94);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;
    --border: #1e293b;
    --border-light: #172033;
    --divider: rgba(255, 255, 255, 0.06);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
}

/* --- 3. Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--text-secondary);
  background-color: var(--bg-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="zh"] body,
html[lang="zh"] input,
html[lang="zh"] select,
html[lang="zh"] textarea,
html[lang="zh"] button {
  font-family: var(--font-zh);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
}
h3 {
  font-size: 20px;
}
p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}

/* --- 4. Accessibility --- */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 10000;
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  width: auto;
  height: auto;
  clip: auto;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* --- 5. Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
section {
  padding: var(--section-py) var(--section-px);
}

/* --- 6. Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font-main);
  font-size: 15px;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border: 2px solid transparent;
  white-space: nowrap;
}
html[lang="zh"] .btn {
  font-family: var(--font-zh);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-dark);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-mid);
  border-color: var(--primary-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 31, 58, 0.25);
}
.dark-mode .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #001018;
}
.dark-mode .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #001018;
  font-weight: 800;
  border-color: var(--accent);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn-nav {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.btn-white {
  background: var(--text-on-dark);
  color: var(--primary);
  border-color: var(--text-on-dark);
  font-weight: 800;
}
.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}
.dark-mode .btn-white {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}
.dark-mode .btn-white:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --- 7. Header & Navigation --- */
header {
  background: var(--bg-header);
  box-shadow: var(--shadow-nav);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  transition: color var(--duration) ease;
}
.logo:hover {
  color: var(--accent);
}

.nav-links {
  display: none;
  gap: 24px;
  align-items: center;
}
.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--duration) ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--duration) var(--ease-out);
  border-radius: 1px;
}
.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).nav-active-link::after {
  width: 100%;
}
.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).nav-active-link {
  color: var(--accent);
}

.hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  color: var(--text-heading);
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--duration) ease;
}
.hamburger:hover {
  background: var(--bg-surface);
  border-color: var(--accent);
  color: var(--accent);
}

html[lang="zh"] .faq-question {
  font-family: var(--font-zh);
}

html[lang="zh"] .quote-form input,
html[lang="zh"] .quote-form select,
html[lang="zh"] .quote-form textarea {
  font-family: var(--font-zh);
}

.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-heading);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--duration) ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent);
  color: #001018;
  border-color: var(--accent);
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    color var(--duration) ease,
    border-color var(--duration) ease,
    background-color var(--duration) ease,
    transform var(--duration) ease;
}

.lang-toggle:hover,
.language-switcher.is-open .lang-toggle {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-surface);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity var(--duration) ease,
    visibility var(--duration) ease,
    transform var(--duration) ease;
  z-index: 110;
}

.language-switcher.is-open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--duration) ease,
    color var(--duration) ease;
}

.lang-option:hover,
.lang-option:focus-visible,
.lang-option.is-current {
  background: var(--bg-surface);
  color: var(--accent);
}

.lang-option.is-current::after {
  content: "•";
  color: var(--accent);
}

.dark-mode .lang-toggle,
.dark-mode .lang-menu {
  background: var(--bg-elevated);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-dropdown > a::before {
  display: none;
}
.dropdown-arrow {
  font-size: 10px;
  transition: transform var(--duration) ease;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--duration) ease,
    visibility var(--duration) ease;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--duration) ease;
}
.dropdown-menu a::after {
  display: none;
}
.dropdown-menu a:hover {
  background: var(--bg-surface);
  color: var(--accent);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown:focus-within .dropdown-arrow,
.nav-dropdown.dropdown-open .dropdown-arrow {
  transform: rotate(180deg);
}

@media (max-width: 1023px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    padding: 20px 24px 28px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border);
    gap: 14px;
  }
  .nav-links.nav-active {
    display: flex;
    animation: slideDown 0.25s var(--ease-out);
  }
  .nav-links .btn-nav {
    width: 100%;
    text-align: center;
  }
  .language-switcher {
    width: 100%;
  }
  .lang-toggle {
    width: 100%;
    justify-content: space-between;
    border-radius: var(--radius-sm);
  }
  .lang-menu {
    position: static;
    width: 100%;
    margin-top: 10px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    display: none;
  }
  .language-switcher.is-open .lang-menu {
    display: block;
  }
  .dropdown-menu {
    display: none;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
  .dropdown-menu::before {
    display: none;
  }
  .nav-dropdown .dropdown-menu {
    display: none;
  }
  .nav-dropdown.dropdown-open .dropdown-menu {
    display: block;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
  .nav-links {
    display: flex;
  }
}

/* --- 8. Breadcrumbs --- */
.breadcrumbs {
  padding: 16px var(--section-px);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 14px;
  list-style: none;
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "›";
  color: var(--text-muted);
}
.breadcrumbs a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color var(--duration) ease;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.breadcrumbs span {
  color: var(--text-heading);
  font-weight: 700;
}
[dir="rtl"] .breadcrumbs li + li::before {
  content: "‹";
}

/* --- 9. Hero --- */
.hero {
  background-color: var(--bg-surface);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(23, 190, 187, 0.1) 0%,
    transparent 70%
  );
  top: -160px;
  right: -160px;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(11, 31, 58, 0.05) 0%,
    transparent 70%
  );
  bottom: -80px;
  left: -80px;
  pointer-events: none;
}

.hero-content h1 {
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 17px;
  max-width: 54ch;
  line-height: 1.75;
}
.hero-content .service-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 54ch;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
}
.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: var(--radius) var(--radius) 0 0;
}
.hero-card h3 {
  margin-bottom: 20px;
}
.hero-card ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
}
.check-icon {
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hero {
    grid-template-columns: 1fr 1fr;
  }
  .hero::before {
    width: 520px;
    height: 520px;
    top: -200px;
    right: -200px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .hero-buttons {
    flex-direction: row;
  }
}

/* --- 10. Trust --- */
.trust {
  background: var(--bg-body);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.trust-item {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration);
}
.trust-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.trust-item h3,
.trust-number {
  font-size: clamp(28px, 5vw, 38px);
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
  font-weight: 800;
  line-height: 1.2;
}
.trust-item p {
  margin: 0;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 14px;
}
@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- 11. Services --- */
.services {
  background: var(--bg-surface);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px auto;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-light));
  transform: scaleX(0);
  transition: transform var(--duration) var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--accent);
}
.service-card:hover::after {
  transform: scaleX(1);
}
.service-icon {
  font-size: 40px;
  margin-bottom: 20px;
  display: inline-block;
}
.service-link {
  color: var(--accent);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--duration) var(--ease-out);
}
.service-link:hover {
  gap: 10px;
}
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 12. Process --- */
.process {
  text-align: center;
  background: var(--bg-body);
}
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
.step {
  position: relative;
  padding: 0 16px;
}
.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--text-on-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.2);
  transition: transform var(--duration) var(--ease-spring);
}
.step:hover .step-number {
  transform: scale(1.08);
}
.dark-mode .step-number {
  background: var(--accent);
  color: #001018;
  box-shadow: 0 4px 16px rgba(23, 190, 187, 0.3);
}
.step h3 {
  margin-bottom: 10px;
}
.step p {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 13. Testimonials --- */
.testimonials {
  background: var(--bg-surface);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.review-card {
  background: var(--bg-card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 52px;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.review-card p {
  font-style: italic;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 20px;
}
.client-info {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.client-info h4 {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 16px;
}
.client-info span {
  font-size: 13px;
  color: var(--text-muted);
}
@media (min-width: 1024px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 14. FAQ --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-main);
  transition: color var(--duration) ease;
}
.faq-question:hover {
  color: var(--accent);
}
.faq-question span {
  font-size: 22px;
  transition: transform var(--duration) ease;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-question[aria-expanded="true"] span {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}
.faq-answer p {
  padding-bottom: 20px;
  line-height: 1.75;
}

/* --- 15. Quote Form --- */
.quote {
  background: var(--bg-body);
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.quote-info h2 {
  margin-bottom: 12px;
}
.quote-points li {
  margin: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
}
.quote-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.quote-form label {
  display: block;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  font-size: 14px;
}
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  outline: none;
  font-family: var(--font-main);
  font-size: 15px;
  background: var(--bg-body);
  color: var(--text-primary);
  transition:
    border-color var(--duration) ease,
    box-shadow var(--duration) ease;
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.quote-form input:invalid:not(:placeholder-shown),
.quote-form textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}
.quote-form input:valid:not(:placeholder-shown) {
  border-color: var(--accent);
}
.dark-mode .quote-form input,
.dark-mode .quote-form select,
.dark-mode .quote-form textarea {
  background: var(--bg-elevated);
  border-color: var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.form-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 0;
  text-align: center;
}
.btn-submit {
  width: 100%;
  height: 52px;
  font-size: 16px;
}
.shipment-mode-box {
  background: var(--bg-surface);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.shipment-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}
.radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: normal;
  font-size: 0.95rem;
  user-select: none;
}
.radio-item input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
#fcl-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: none;
  gap: 16px;
  flex-wrap: wrap;
}
.container-input-col {
  flex: 1;
  min-width: 140px;
}
.container-input-col label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}
.container-input-col input {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .quote-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- 16. Final CTA --- */
.final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, #0d2847 100%);
  color: var(--text-on-dark);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent, var(--accent));
}
.final-cta h2 {
  color: var(--text-on-dark);
}
.final-cta p {
  color: #c8d4e3;
  max-width: 560px;
  margin: 0 auto 36px auto;
  font-size: 17px;
}
.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- 17. Contact --- */
.contact {
  background: var(--bg-surface);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition:
    transform var(--duration) var(--ease-out),
    box-shadow var(--duration);
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.contact-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.contact-card a {
  color: var(--text-heading);
  font-weight: 700;
  transition: color var(--duration) ease;
}
.contact-card a:hover {
  color: var(--accent);
}
.contact-card p {
  margin-bottom: 0;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 18. Footer --- */
footer {
  background: #06111f;
  color: var(--text-on-dark);
  padding: 64px 20px 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
}
footer h3 {
  color: var(--text-on-dark);
}
.footer-col h4 {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 16px;
}
.footer-col ul li {
  margin-bottom: 12px;
}
.footer-col a {
  color: #9ca3af;
  transition: color var(--duration) ease;
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--text-on-dark);
}
.footer-about {
  color: #9ca3af;
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.7;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.footer-copyright {
  margin: 0 0 8px 0;
  color: #6b7280;
  font-size: 14px;
}
.footer-credit {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}
.footer-credit a {
  color: var(--accent);
  font-weight: 600;
}
.footer-credit a:hover {
  text-decoration: underline;
}
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

/* --- 19. Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #001018;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  transition: all var(--duration) var(--ease-out);
  z-index: 999;
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(23, 190, 187, 0.45);
}
.back-to-top.visible {
  display: flex;
}

/* --- 20. Scroll-Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}
.reveal-stagger.revealed > *:nth-child(1) {
  transition-delay: 0.05s;
}
.reveal-stagger.revealed > *:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal-stagger.revealed > *:nth-child(3) {
  transition-delay: 0.19s;
}
.reveal-stagger.revealed > *:nth-child(4) {
  transition-delay: 0.26s;
}
.reveal-stagger.revealed > *:nth-child(5) {
  transition-delay: 0.33s;
}
.reveal-stagger.revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- 21. Theme Transitions --- */
body,
header,
section,
.service-card,
.review-card,
.hero-card,
.quote-form,
.trust-item,
.contact-card,
.shipment-mode-box {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

/* --- 22. Inner Page Styles --- */
.page-hero {
  background: var(--bg-surface);
  padding: var(--section-py) var(--section-px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(23, 190, 187, 0.08) 0%,
    transparent 70%
  );
  top: -160px;
  right: -160px;
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  max-width: 60ch;
  line-height: 1.75;
}

.content-section {
  padding: var(--section-py) var(--section-px);
}
.content-section .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.content-section h2 {
  margin-bottom: 20px;
}
.content-section h3 {
  margin-top: 2rem;
  margin-bottom: 12px;
}
.content-section p {
  line-height: 1.8;
  max-width: 72ch;
}
.content-section ul,
.content-section ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.content-section ul {
  list-style: disc;
}
.content-section ol {
  list-style: decimal;
}
.content-section li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 2rem 0;
}
.feature-item {
  background: var(--bg-surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-item h3 {
  font-size: 18px;
  margin-top: 0;
}
@media (min-width: 768px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.related-services {
  background: var(--bg-surface);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.related-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}
.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.related-card h3 {
  font-size: 18px;
}
.related-card a {
  color: var(--accent);
  font-weight: 700;
}
@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog article styles */
.article-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.article-content {
  max-width: 72ch;
}
.article-content h2 {
  margin-top: 2.5rem;
}

/* 404 Page */
.error-page {
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-page h1 {
  font-size: clamp(60px, 10vw, 120px);
  color: var(--accent);
  margin-bottom: 16px;
}
.error-page p {
  font-size: 18px;
  margin-bottom: 2rem;
}
.error-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Inline CTA box */
.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 2rem 0;
  text-align: center;
}
.cta-box h3 {
  margin-top: 0;
}
.cta-box p {
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

/* Port cards on homepage */
.ports-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.port-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease-out);
}
.port-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.port-card h3 {
  font-size: 18px;
}
.port-card a {
  color: var(--accent);
  font-weight: 700;
}
@media (min-width: 768px) {
  .ports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- 23. RTL (Arabic) --- */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .hero-card ul li .check-icon,
[dir="rtl"] .quote-points li .check-icon {
  margin-right: 0;
  margin-left: 10px;
}
[dir="rtl"] .service-link:hover {
  gap: 10px;
}
[dir="rtl"] .quote-form input,
[dir="rtl"] .quote-form select,
[dir="rtl"] .quote-form textarea {
  text-align: right;
}
[dir="rtl"] .faq-question {
  text-align: right;
}
[dir="rtl"] .faq-question span {
  margin-left: 0;
  margin-right: 16px;
}
[dir="rtl"] .faq-answer {
  padding-right: 0;
  padding-left: 20px;
}
[dir="rtl"] footer {
  text-align: right;
}
[dir="rtl"] .back-to-top {
  right: auto;
  left: 28px;
}
[dir="rtl"] .language-switcher {
  font-family: sans-serif;
}
[dir="rtl"] .review-card::before {
  right: auto;
  left: 20px;
}
[dir="rtl"] .nav-links a:not(.btn)::after {
  left: auto;
  right: 0;
}
[dir="rtl"] .content-section ul,
[dir="rtl"] .content-section ol {
  padding-left: 0;
  padding-right: 1.5rem;
}
[dir="rtl"] .dropdown-menu {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}
[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
[dir="rtl"] .lang-option {
  text-align: right;
}
@media (max-width: 1023px) {
  [dir="rtl"] .nav-links {
    left: auto;
    right: 0;
  }
  [dir="rtl"] .dropdown-menu {
    transform: none;
  }
  [dir="rtl"] .lang-menu {
    left: auto;
  }
}

/* --- 24. Print --- */
@media print {
  header,
  .back-to-top,
  .final-cta,
  footer,
  .theme-toggle,
  .language-switcher,
  .breadcrumbs {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
  }
  .service-card,
  .review-card,
  .hero-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* --- 25. Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}

@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
}
