/* ==========================================================================
   MASARAT TRAVEL - VISUAL IDENTITY STYLE SHEET (EXPANDED LAYOUT)
   ========================================================================== */

/* Typography Imports */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

/* Brand Design Tokens */
:root {
  /* Color Palette */
  --color-primary: #281D5A;       /* Royal Violet */
  --color-accent: #C23A8B;        /* Magenta Rose */
  --color-cta: #FF8A7A;           /* Coral Peach */
  --color-bg: #F5F3EF;            /* Soft Sand */
  --color-body: #33333D;          /* Charcoal */
  --color-white: #ffffff;
  
  /* Fonts */
  --font-en: 'Poppins', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
  --font-family: var(--font-en);
  
  /* Layout Spacing */
  --max-width: 1400px;
  
  /* Layout Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Shadow & Glassmorphism */
  --header-glass: rgba(245, 243, 239, 0.9);
  --shadow-premium: 0 20px 40px rgba(40, 29, 90, 0.04);
  --shadow-hover: 0 30px 60px rgba(40, 29, 90, 0.08);
}

/* RTL Automatic Font Switch */
html[lang="ar"] {
  --font-family: var(--font-ar);
}

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

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY ENGINE
   ========================================================================== */
h1, .h1 {
  font-size: 2.6875rem; /* ~43px */
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  h1, .h1 {
    font-size: 3.3125rem; /* 53px Heading 01 */
  }
}

h2, .h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-accent);
  margin: 1rem auto 0 auto;
}

html[dir="rtl"] h2::after {
  margin: 1rem auto 0 auto;
}

@media (min-width: 992px) {
  h2, .h2 {
    font-size: 2.3125rem; /* 37px Heading 02 */
  }
}

h3, .h3 {
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  h3, .h3 {
    font-size: 1.625rem; /* 26px Heading 03 */
  }
}

p, .body-text {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-body);
}

@media (min-width: 992px) {
  p, .body-text {
    font-size: 1.0625rem; /* 17px Body */
  }
}

.text-accent {
  color: var(--color-accent);
}

.text-cta {
  color: var(--color-cta);
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.btn-primary:hover {
  background-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(194, 58, 139, 0.2);
}

.btn-cta {
  background-color: var(--color-cta);
  color: var(--color-primary);
}

.btn-cta:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 138, 122, 0.4);
}

/* Outline style */
.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  margin-inline-start: 1rem;
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ==========================================================================
   BLOCK 1: PREMIUM NAVIGATION BAR
   ========================================================================== */
.premium-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(40, 29, 90, 0.05);
  box-shadow: var(--shadow-premium);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  height: 80px; /* Logo increased size as requested */
  width: auto;
  object-fit: contain;
}

.header-nav {
  display: none;
}

@media (min-width: 992px) {
  .header-nav {
    display: flex;
    gap: 2rem;
  }
}

.header-nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-body);
  position: relative;
  padding: 0.5rem 0;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

html[dir="rtl"] .header-nav a::after {
  left: auto;
  right: 0;
}

.header-nav a:hover {
  color: var(--color-primary);
}

.header-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

@media (max-width: 991px) {
  .header-actions .btn-primary {
    display: none;
  }
}

.lang-switch-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.lang-switch-btn:hover {
  color: var(--color-accent);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 4px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 1005;
  padding: 8rem 2rem 2rem 2rem;
  box-shadow: 15px 0 40px rgba(40, 29, 90, 0.15);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: var(--transition-smooth);
}

html[dir="rtl"] .mobile-nav-drawer {
  left: auto;
  right: -100%;
  box-shadow: -15px 0 40px rgba(40, 29, 90, 0.15);
}

.mobile-nav-drawer.active {
  left: 0;
}

html[dir="rtl"] .mobile-nav-drawer.active {
  left: auto;
  right: 0;
}

.mobile-nav-drawer a {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1px solid rgba(40, 29, 90, 0.05);
  padding-bottom: 0.75rem;
}

.mobile-nav-drawer a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   BLOCK 2: THE FLOW OF JOURNEY HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(40, 29, 90, 0.45), rgba(40, 29, 90, 0.85)), url('hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: 10rem 2rem 12rem 2rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 750px;
}

.hero-content h1 {
  color: var(--color-white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 3rem;
  font-size: 1.1875rem;
  font-weight: 300;
}

/* Graphic Device Separator */
.wave-separator {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

.wave-separator svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   BLOCK 2A: INTRO SECTION (New Section)
   ========================================================================== */
.intro-section {
  padding: 8rem 2rem;
  background-color: var(--color-bg);
}

.intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--color-body);
}

/* ==========================================================================
   BLOCK 2B: WHO WE ARE (New Section)
   ========================================================================== */
.about-section {
  padding: 8rem 2rem;
  background-color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.about-text h2 {
  text-align: start;
}

.about-text h2::after {
  margin: 1rem 0 0 0;
}

html[dir="rtl"] .about-text h2::after {
  margin: 1rem 0 0 auto;
}

.about-text p {
  margin-bottom: 2rem;
}

.mission-box {
  background-color: var(--color-bg);
  border-inline-start: 4px solid var(--color-primary);
  padding: 2rem;
  border-radius: 4px;
}

.mission-box h4 {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 480px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.value-item {
  padding: 1.5rem;
  background-color: var(--color-bg);
  border-radius: 4px;
}

.value-item h4 {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-item p {
  font-size: 0.875rem;
}

/* ==========================================================================
   BLOCK 3: SERVICES OVERVIEW
   ========================================================================== */
.services-section {
  padding: 8rem 2rem;
  background-color: var(--color-bg);
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-detail-card {
  background-color: var(--color-white);
  border-radius: 6px;
  padding: 3.5rem 2.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
  border-top: 4px solid transparent;
}

.service-detail-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--color-accent);
}

.service-icon-wrapper {
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.service-icon-wrapper svg {
  height: 48px;
  width: 48px;
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.service-detail-card h3 {
  margin-bottom: 1rem;
}

.service-detail-card p {
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

.service-highlights-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .service-highlights-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-highlights-list li {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

.service-highlights-list li::before {
  content: "•";
  color: var(--color-accent);
  font-weight: 900;
  display: inline-block;
  width: 1rem;
  margin-inline-end: 0.5rem;
}

/* ==========================================================================
   BLOCK 4: THE MASARAT DIFFERENCE
   ========================================================================== */
.difference-section {
  padding: 8rem 2rem;
  background-color: var(--color-white);
}

.difference-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .difference-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .difference-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.diff-card {
  padding: 3rem 2rem;
  background-color: var(--color-bg);
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.diff-card:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.diff-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.diff-card:hover h3 {
  color: var(--color-white);
}

.diff-card p {
  font-size: 0.875rem;
}

.diff-card:hover p {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   BLOCK 5: TECHNOLOGY
   ========================================================================== */
.tech-section {
  padding: 8rem 2rem;
  background-color: var(--color-bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 4rem;
}

@media (min-width: 992px) {
  .tech-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.tech-info h2 {
  text-align: start;
}

.tech-info h2::after {
  margin: 1rem 0 0 0;
}

html[dir="rtl"] .tech-info h2::after {
  margin: 1rem 0 0 auto;
}

.capabilities-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.capability-item {
  background-color: var(--color-white);
  padding: 1.75rem 2rem;
  border-radius: 6px;
  box-shadow: var(--shadow-premium);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.capability-bullet {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.capability-item h4 {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.capability-item p {
  font-size: 0.875rem;
}

/* ==========================================================================
   BLOCK 6: HOW WE WORK (TIMELINE PROCESS FLOW)
   ========================================================================== */
.process-section {
  padding: 8rem 2rem;
  background-color: var(--color-white);
}

.process-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 5rem;
  position: relative;
}

@media (min-width: 992px) {
  .process-flow {
    grid-template-columns: repeat(4, 1fr);
  }
  
  /* Horizontal Line linking timeline steps */
  .process-flow::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: rgba(40, 29, 90, 0.15);
    z-index: 1;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.process-step-num {
  height: 60px;
  width: 60px;
  background-color: var(--color-white);
  border: 4px solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.375rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-premium);
  transition: var(--transition-smooth);
}

.process-step:hover .process-step-num {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 0.875rem;
  padding: 0 1rem;
}

/* ==========================================================================
   BLOCK 7: B2B OPERATIONAL CONTACT HUB
   ========================================================================== */
.contact-section {
  padding: 8rem 2rem;
  background-color: var(--color-bg);
}

.contact-hub-container {
  max-width: var(--max-width);
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .contact-hub-container {
    flex-direction: row;
  }
}

/* Column A (80% Weighting) */
.lead-intake-col {
  padding: 4rem 2.5rem;
  flex: 1;
}

@media (min-width: 992px) {
  .lead-intake-col {
    padding: 5rem 4.5rem;
    flex: 0 0 75%;
  }
}

.lead-intake-col h2 {
  text-align: start;
  margin-bottom: 2rem;
}

.lead-intake-col h2::after {
  margin: 1rem 0 0 0;
}

html[dir="rtl"] .lead-intake-col h2::after {
  margin: 1rem 0 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .form-grid-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid rgba(40, 29, 90, 0.15);
  background-color: var(--color-bg);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-body);
  transition: var(--transition-fast);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-white);
}

/* Column B (20% Weighting) */
.support-box-col {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 992px) {
  .support-box-col {
    padding: 5rem 3rem;
    flex: 0 0 25%;
  }
}

.support-icon-box {
  height: 64px;
  width: 64px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  animation: pulse-ring 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
}

.support-icon-box svg {
  height: 30px;
  width: 30px;
  fill: var(--color-white);
}

.support-box-col h3 {
  color: var(--color-white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.support-phone-num {
  font-size: 1.625rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--color-cta);
  display: block;
}

/* Phone pulse ring animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 138, 122, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 15px rgba(255, 138, 122, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 138, 122, 0);
  }
}

/* ==========================================================================
   BLOCK 8: CORPORATE DARK FOOTER
   ========================================================================== */
.corporate-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 2rem 3rem 2rem;
  font-size: 0.875rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand {
  max-width: 380px;
}

.footer-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 480px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
  }
}

@media (min-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col-title {
  color: var(--color-white);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8125rem;
  margin-bottom: 1.5rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-links-list a:hover {
  color: var(--color-cta);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

/* ==========================================================================
   BILINGUAL EXECUTION RULES
   ========================================================================== */
/* Logical properties natively mirror spacing according to text direction: */
/* - margin-inline-start / margin-inline-end */
/* - padding-inline-start / padding-inline-end */
/* - border-inline-start / border-inline-end */
/* - text-align: start / text-align: end */
/* Swapping lang/dir attributes is handled with zero layout layout duplication. */
