/*
 * RAYAN LOGISTICS — Page Layouts & Editorial Design System
 */

/* =====================================================================
   GLOBAL PAGE STRUCTURE & RUNNING FOLIOS
   ===================================================================== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-divider-grey);
  margin-bottom: 24px;
}

.page-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-teal-accent);
  text-transform: uppercase;
}

.page-running-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-slate-muted);
}

.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider-grey);
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--color-slate-muted);
}

.page-num {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-navy-primary);
}

.page-footer-center {
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-slate-muted);
}

.page-content-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Headings */
.editorial-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy-primary);
  line-height: 1.22;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
}

.editorial-lead {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-slate-muted);
  margin-bottom: 20px;
}

.editorial-p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-slate-muted);
  margin: 0 0 12px 0;
}

/* Corporate Logo Styling */
.rayan-brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.logo-symbol {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

.logo-primary {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--color-navy-primary);
  line-height: 1;
}

.logo-secondary {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--color-teal-accent);
  text-transform: uppercase;
}

.logo-arabic {
  font-family: var(--font-ar-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy-primary);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* =====================================================================
   PAGE 01 — FRONT COVER
   ===================================================================== */
.page-cover {
  background: var(--color-bg-ivory);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(218, 221, 216, 0.8);
  box-shadow: inset 0 0 20px rgba(24, 44, 62, 0.03);
}

.cover-header-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--color-navy-primary);
  padding-bottom: 12px;
}

.cover-edition-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-teal-accent);
  text-transform: uppercase;
}

.cover-geo-badge {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-slate-muted);
}

.cover-hero-visual {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(24, 44, 62, 0.14);
  margin: 18px 0;
}

.cover-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cover-hero-visual:hover img {
  transform: scale(1.02);
}

.cover-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(24, 44, 62, 0.45) 0%, transparent 100%);
}

.cover-brand-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cover-tagline-group {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--color-divider-grey);
}

.cover-tagline-en {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy-primary);
  letter-spacing: -0.01em;
}

.cover-tagline-ar {
  font-family: var(--font-ar-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-teal-accent);
  margin-top: 2px;
}

.cover-open-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(100, 140, 135, 0.1);
  border-radius: 4px;
  font-size: var(--text-xs);
  color: var(--color-teal-dark);
  font-weight: 600;
  animation: pulseHint 2.4s infinite;
  cursor: pointer;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.85; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* =====================================================================
   PAGE 02 — ABOUT US
   ===================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  height: 100%;
  align-items: stretch;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-visual-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-photo-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(24, 44, 62, 0.08);
}

.about-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-location-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(24, 44, 62, 0.85);
  color: #FFFFFF;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: var(--text-xs);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.about-highlights-card {
  background: var(--color-bg-warm-grey);
  border-radius: 4px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlight-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--color-divider-grey);
  padding-bottom: 6px;
}

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

.highlight-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-teal-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-val {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-navy-primary);
}

/* =====================================================================
   PAGE 03 — OUR VISION, MISSION & VALUES
   ===================================================================== */
.purpose-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.purpose-card {
  background: var(--color-bg-warm-grey);
  padding: 16px;
  border-radius: 4px;
  border-left: 3px solid var(--color-teal-accent);
}

[data-lang="ar"] .purpose-card {
  border-left: none;
  border-right: 3px solid var(--color-teal-accent);
}

.purpose-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.purpose-desc {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--color-slate-muted);
  margin: 0;
}

.values-section-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-teal-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-divider-grey);
  padding-bottom: 6px;
}

.values-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
}

.value-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.value-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-navy-primary);
}

.value-desc {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--color-slate-muted);
  margin: 0;
}

/* =====================================================================
   PAGE 04 — OUR SERVICES
   ===================================================================== */
.services-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 10px;
}

.service-item-card {
  background: var(--color-bg-ivory);
  border: 1px solid var(--color-divider-grey);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-item-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-teal-accent);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card-glyph {
  width: 24px;
  height: 24px;
  color: var(--color-teal-accent);
}

.service-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy-primary);
}

.service-desc {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--color-slate-muted);
  margin: 0;
}

/* =====================================================================
   PAGE 05 — FREIGHT & TRANSPORTATION
   ===================================================================== */
.freight-hero-photo {
  width: 100%;
  height: 210px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(24, 44, 62, 0.08);
}

.freight-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modalities-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.modality-box {
  background: var(--color-bg-warm-grey);
  padding: 12px 14px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modality-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-teal-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modality-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-navy-primary);
}

.modality-desc {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-slate-muted);
  margin: 0;
}

.freight-disclaimer-note {
  font-size: 0.6875rem;
  color: var(--color-slate-muted);
  font-style: italic;
  border-top: 1px solid var(--color-divider-grey);
  padding-top: 8px;
}

/* =====================================================================
   PAGE 06 — WAREHOUSING & DISTRIBUTION
   ===================================================================== */
.warehouse-pullquote {
  font-family: var(--font-en-serif);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-navy-primary);
  font-style: italic;
  border-left: 3px solid var(--color-teal-accent);
  padding-left: 14px;
  margin: 0 0 16px 0;
}

[data-lang="ar"] .warehouse-pullquote {
  font-family: var(--font-ar-sans);
  font-style: normal;
  border-left: none;
  border-right: 3px solid var(--color-teal-accent);
  padding-left: 0;
  padding-right: 14px;
}

.warehouse-visual-photo {
  width: 100%;
  height: 175px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(24, 44, 62, 0.08);
}

.warehouse-visual-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.warehouse-pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.warehouse-pillar-item {
  background: var(--color-bg-ivory);
  padding: 10px 12px;
  border-radius: 4px;
  border-left: 2px solid var(--color-divider-grey);
}

[data-lang="ar"] .warehouse-pillar-item {
  border-left: none;
  border-right: 2px solid var(--color-divider-grey);
}

.pillar-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 3px;
}

.pillar-desc {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-slate-muted);
  margin: 0;
}

/* =====================================================================
   PAGE 07 — CUSTOMS & SUPPLY CHAIN
   ===================================================================== */
.customs-intro-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}

.customs-photo-preview {
  height: 130px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(24, 44, 62, 0.08);
}

.customs-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pipeline-step-card {
  background: var(--color-bg-warm-grey);
  border-radius: 4px;
  padding: 12px 14px;
  position: relative;
}

.step-num-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-teal-accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.step-card-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 4px;
}

.step-card-desc {
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--color-slate-muted);
  margin: 0;
}

/* =====================================================================
   PAGE 08 — INDUSTRIES WE SERVE
   ===================================================================== */
.industries-editorial-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  height: 100%;
}

.industries-list-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.industry-item-row {
  background: var(--color-bg-ivory);
  border: 1px solid var(--color-divider-grey);
  border-radius: 4px;
  padding: 8px 12px;
}

.industry-item-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-navy-primary);
  margin-bottom: 2px;
}

.industry-item-desc {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--color-slate-muted);
  margin: 0;
}

.industries-photo-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.industries-showcase-photo {
  width: 100%;
  height: 290px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(24, 44, 62, 0.08);
}

.industries-showcase-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================================================
   PAGE 09 — WHY CHOOSE RAYAN LOGISTICS?
   ===================================================================== */
.why-manifesto-box {
  background: var(--color-bg-warm-grey);
  padding: 16px 20px;
  border-radius: 4px;
  border-left: 3px solid var(--color-teal-accent);
  margin-bottom: 20px;
}

[data-lang="ar"] .why-manifesto-box {
  border-left: none;
  border-right: 3px solid var(--color-teal-accent);
}

.why-manifesto-text {
  font-family: var(--font-en-serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-navy-primary);
  font-style: italic;
  margin: 0;
}

[data-lang="ar"] .why-manifesto-text {
  font-family: var(--font-ar-sans);
  font-style: normal;
}

.principles-editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

.principle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.principle-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.principle-index {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-teal-accent);
  letter-spacing: 0.05em;
}

.principle-title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-navy-primary);
}

.principle-desc {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--color-slate-muted);
  margin: 0;
}

/* =====================================================================
   PAGE 10 — CONTACT & BACK COVER
   ===================================================================== */
.page-backcover {
  background: var(--color-bg-ivory);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(218, 221, 216, 0.8);
}

.contact-card-box {
  background: #FFFFFF;
  border: 1px solid var(--color-divider-grey);
  border-radius: 4px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-teal-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-detail-value {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-navy-primary);
}

.contact-detail-value a {
  color: var(--color-navy-primary);
  text-decoration: none;
}

.contact-detail-value a:hover {
  text-decoration: underline;
  color: var(--color-teal-accent);
}

.backcover-qr-group {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--color-bg-warm-grey);
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.qr-code-canvas {
  width: 64px;
  height: 64px;
  background: #FFFFFF;
  padding: 4px;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(24, 44, 62, 0.08);
  flex-shrink: 0;
}

.qr-instructions-text {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--color-slate-muted);
}

.backcover-closing-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider-grey);
}

.backcover-tagline-en {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy-primary);
  letter-spacing: 0.04em;
}

.backcover-tagline-ar {
  font-family: var(--font-ar-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-teal-accent);
}

.backcover-barcode-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.barcode-svg {
  height: 24px;
  opacity: 0.7;
}

/* =====================================================================
   MOBILE EDITORIAL ADAPTATIONS
   ===================================================================== */
@media (max-width: 860px), (orientation: portrait) and (max-width: 1024px) {
  .book-page {
    padding: 16px 14px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
  }

  .page-header {
    margin-bottom: 8px;
    padding-bottom: 5px;
  }

  .page-footer {
    margin-top: auto;
    padding-top: 6px;
    font-size: 0.65rem;
  }

  .page-content-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
  }

  .page-content-body::-webkit-scrollbar {
    display: none;
  }

  .editorial-title {
    font-size: 1.08rem;
    line-height: 1.25;
    margin: 0 0 8px 0;
  }

  .editorial-lead {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }

  .editorial-p {
    font-size: 0.7rem;
    line-height: 1.45;
    margin: 0 0 6px 0;
  }

  .about-grid,
  .purpose-pillars,
  .modalities-container,
  .customs-intro-split,
  .industries-editorial-split,
  .contact-card-box {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .values-editorial-grid,
  .services-editorial-grid,
  .warehouse-pillars-grid,
  .process-pipeline,
  .principles-editorial-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  .service-item-card {
    padding: 8px 10px;
    gap: 3px;
  }

  .service-title {
    font-size: 0.72rem;
  }

  .service-desc {
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .cover-hero-visual {
    height: min(170px, 25vh);
    margin: 10px 0;
  }

  .cover-tagline-en {
    font-size: 0.95rem;
  }

  .cover-tagline-ar {
    font-size: 0.9rem;
  }

  .about-photo-wrapper {
    height: min(130px, 18vh);
  }

  .freight-hero-photo {
    height: min(120px, 16vh);
    margin-bottom: 8px;
  }

  .warehouse-visual-photo {
    height: min(110px, 15vh);
    margin-bottom: 8px;
  }

  .warehouse-pullquote {
    font-size: 0.82rem;
    margin-bottom: 8px;
    padding-left: 10px;
  }

  [data-lang="ar"] .warehouse-pullquote {
    padding-right: 10px;
  }

  .customs-photo-preview {
    display: none;
  }

  .industries-showcase-photo {
    height: min(120px, 16vh);
  }

  .why-manifesto-box {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .why-manifesto-text {
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .contact-card-box {
    padding: 10px 12px;
    margin: 8px 0;
    gap: 6px;
  }

  .backcover-qr-group {
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 12px;
  }

  .qr-code-canvas {
    width: 52px;
    height: 52px;
  }

  .qr-instructions-text {
    font-size: 0.65rem;
  }

  .backcover-closing-lockup {
    padding-top: 8px;
    gap: 2px;
  }

  .backcover-barcode-strip {
    margin-top: 4px;
  }
}
