/* ==========================================================================
   TAMQEEN FINANCIAL & MANAGEMENT ADVISORY - RESPONSIVE GEOMETRIC DESIGN
   Inspired by Original Website (2017) & Official PDF Company Profile
   Signature Visual DNA: Chamfered / Slanted Parallelograms ("المستطيلات المشطوفة")
   ========================================================================== */

@font-face {
  font-family: 'DroidSansArabic';
  src: url('../fonts/droidsansarabic.woff2') format('woff2'),
       url('../fonts/droidsansarabic.woff') format('woff'),
       url('../fonts/droidsansarabic.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RalewayLocal';
  src: url('../fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'RalewayLocal';
  src: url('../fonts/Raleway-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'RalewayLocal';
  src: url('../fonts/Raleway-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'RalewayLocal';
  src: url('../fonts/Raleway-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --tmq-navy: #133D69;
  --tmq-navy-deep: #0E2F52;
  --tmq-slate: #2B3E5E;
  --tmq-slate-dark: #22324D;
  --tmq-cyan: #0095D9;
  --tmq-cyan-light: #29B6F6;
  --tmq-ice: #DCE6F0;
  --tmq-ice-mid: #CFDDE8;
  --tmq-bg: #F1F2F2;
  --tmq-bg-soft: #F7F8FA;
  --tmq-text: #1A446F;
  --tmq-grey: #58595B;
  --tmq-border: #949EB1;
  --tmq-white: #FFFFFF;
  --font-ar: 'DroidSansArabic', 'Cairo', 'Tajawal', sans-serif;
  --font-ar-heading: 'Cairo', 'Tajawal', 'DroidSansArabic', sans-serif;
  --font-en: 'RalewayLocal', 'Titillium Web', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--tmq-bg);
  color: var(--tmq-text);
  font-family: var(--font-ar);
  line-height: 1.75;
  overflow-x: hidden;
  position: relative;
}

body[dir="ltr"] {
  font-family: var(--font-en);
  line-height: 1.65;
}

/* Language visibility */
body[dir="rtl"] [data-lang="en"] { display: none !important; }
body[dir="ltr"] [data-lang="ar"] { display: none !important; }

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   SIGNATURE CHAMFERED / PARALLELOGRAM GEOMETRIC SHARDS (الشطرة الهندسية)
   ========================================================================== */

/* Reusable chamfered box (angled top-right & bottom-left cuts like the PDF) */
.chamfer-box {
  position: relative;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
}

/* Slanted Parallelogram Ribbon (المستطيل المشطوف بزاوية مائلة) */
.slanted-ribbon {
  position: relative;
  clip-path: polygon(0 48px, 100% 0, 100% calc(100% - 48px), 0 100%);
}

body[dir="ltr"] .slanted-ribbon {
  clip-path: polygon(0 0, 100% 48px, 100% 100%, 0 calc(100% - 48px));
}

/* PDF Cover-Style Overlapping Translucent Cyan/Navy Parallelogram Shards */
.pdf-shard-cluster {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.shard-bar {
  position: absolute;
  transform: skewY(-40deg);
  transform-origin: top left;
}

.shard-bar.cyan-1 {
  width: 180px;
  height: 360px;
  background: linear-gradient(180deg, rgba(0, 149, 217, 0.82) 0%, rgba(19, 61, 105, 0.35) 100%);
}

.shard-bar.cyan-2 {
  width: 120px;
  height: 260px;
  background: linear-gradient(180deg, rgba(41, 182, 246, 0.75) 0%, rgba(0, 149, 217, 0.2) 100%);
}

.shard-bar.navy-1 {
  width: 150px;
  height: 320px;
  background: rgba(43, 62, 94, 0.92);
}

.shard-bar.outline-1 {
  width: 140px;
  height: 290px;
  border: 1.5px solid rgba(41, 182, 246, 0.55);
  background: transparent;
}

/* ==========================================================================
   HEADER & HERO SECTION (WITH ORIGINAL DIAGONAL SHARDS & LOGO)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 242, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 68, 111, 0.1);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.header-brand img {
  height: 50px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-ar-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--tmq-slate);
  padding: 6px 4px;
  position: relative;
}

body[dir="ltr"] .nav-link {
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 14.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--tmq-cyan);
  transform: scaleX(0) skewX(-35deg);
  transition: transform 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--tmq-navy);
}

.nav-link:hover::after, .nav-link.active::after {
  transform: scaleX(1) skewX(-35deg);
}

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

.lang-switch-btn {
  background: var(--tmq-navy);
  color: var(--tmq-white);
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background 0.25s ease, transform 0.2s ease;
}

.lang-switch-btn:hover {
  background: var(--tmq-cyan);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: var(--tmq-slate);
  color: var(--tmq-white);
  border: none;
  width: 42px;
  height: 42px;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  align-items: center;
  justify-content: center;
}

/* HERO BANNER */
.hero-section {
  position: relative;
  padding: 64px 0 90px;
  overflow: hidden;
  background: linear-gradient(135deg, #F7F9FB 0%, #EAEFF4 55%, #DCE6F0 100%);
}

/* Subtle Floral Motif Watermark */
.hero-motif-watermark {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 1;
}

/* Top-Right & Top-Left Diagonal Architectural/Solar Shards (Exactly like Old Site + PDF) */
.hero-diagonal-wing-right {
  position: absolute;
  top: -30px;
  right: -40px;
  width: 420px;
  height: 460px;
  z-index: 2;
  pointer-events: none;
}

.wing-navy-bar {
  position: absolute;
  top: 0;
  right: 40px;
  width: 240px;
  height: 390px;
  background: var(--tmq-navy);
  clip-path: polygon(0 0, 100% 110px, 100% 100%, 0 calc(100% - 110px));
  box-shadow: -12px 15px 35px rgba(19, 61, 105, 0.22);
}

.wing-cyan-bar {
  position: absolute;
  top: 45px;
  right: 135px;
  width: 165px;
  height: 310px;
  background: linear-gradient(180deg, rgba(0, 149, 217, 0.85), rgba(19, 61, 105, 0.65));
  clip-path: polygon(0 0, 100% 85px, 100% 100%, 0 calc(100% - 85px));
}

.wing-photo-bar {
  position: absolute;
  top: 20px;
  right: 0;
  width: 190px;
  height: 340px;
  background: url('../images/1.jpg') right top / cover no-repeat;
  clip-path: polygon(0 0, 100% 95px, 100% 100%, 0 calc(100% - 95px));
  opacity: 0.9;
}

.hero-diagonal-wing-left {
  position: absolute;
  bottom: -40px;
  left: -30px;
  width: 360px;
  height: 420px;
  z-index: 2;
  pointer-events: none;
}

.wing-left-slate {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 220px;
  height: 360px;
  background: var(--tmq-slate);
  clip-path: polygon(0 110px, 100% 0, 100% calc(100% - 110px), 0 100%);
}

.wing-left-ice {
  position: absolute;
  bottom: 0;
  left: 70px;
  width: 170px;
  height: 300px;
  background: rgba(0, 149, 217, 0.22);
  border: 1.5px solid rgba(0, 149, 217, 0.45);
  clip-path: polygon(0 90px, 100% 0, 100% calc(100% - 90px), 0 100%);
}

.hero-center-box {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 4;
  padding: 20px 16px;
}

.hero-logo-large {
  width: 310px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 6px 18px rgba(19, 61, 105, 0.08));
}

.hero-badge-chamfer {
  display: inline-block;
  background: var(--tmq-navy);
  color: var(--tmq-white);
  font-family: var(--font-ar-heading);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 26px;
  margin-bottom: 18px;
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  letter-spacing: 0.4px;
}

.hero-title {
  font-family: var(--font-ar-heading);
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  color: var(--tmq-navy);
  line-height: 1.35;
  margin-bottom: 18px;
}

body[dir="ltr"] .hero-title {
  font-family: var(--font-en);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--tmq-slate);
  max-width: 680px;
  margin: 0 auto 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-chamfer-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tmq-navy);
  color: var(--tmq-white);
  font-family: var(--font-ar-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 32px;
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: 0 8px 20px rgba(19, 61, 105, 0.2);
}

.btn-chamfer-primary:hover {
  background: var(--tmq-cyan);
  transform: translateY(-2px);
}

.btn-chamfer-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--tmq-white);
  color: var(--tmq-navy);
  font-family: var(--font-ar-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 30px;
  border-right: 4px solid var(--tmq-cyan);
  border-left: 4px solid var(--tmq-navy);
  clip-path: polygon(16px 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
  box-shadow: 0 6px 16px rgba(19, 61, 105, 0.08);
}

.btn-chamfer-outline:hover {
  background: var(--tmq-ice);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION 1: WHAT WE DO / نبذة عن شركتنا (PDF PAGES 2 & 3 + OLD SITE)
   ========================================================================== */

.about-section {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: stretch;
}

/* Right Column: Deep Navy Chamfered Card (Matches PDF Page 2) */
.about-navy-card {
  background: var(--tmq-navy);
  color: var(--tmq-white);
  padding: 54px 44px 64px;
  position: relative;
  overflow: hidden;
  /* Signature slanted top-left & bottom-right chamfer */
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 48px 100%, 0 calc(100% - 48px));
  box-shadow: 0 18px 42px rgba(19, 61, 105, 0.18);
}

/* Decorative translucent cyan shards inside the navy card (exact PDF Page 2 look) */
.about-navy-card::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 30px;
  width: 90px;
  height: 220px;
  background: linear-gradient(180deg, rgba(0, 149, 217, 0.78), rgba(41, 182, 246, 0.15));
  transform: skewY(-42deg);
  pointer-events: none;
}

.about-navy-card::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 95px;
  width: 55px;
  height: 160px;
  background: rgba(207, 221, 232, 0.32);
  transform: skewY(-42deg);
  pointer-events: none;
}

.section-tag-chamfer {
  display: inline-block;
  background: var(--tmq-cyan);
  color: var(--tmq-white);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 18px;
  margin-bottom: 14px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.section-heading {
  font-family: var(--font-ar-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

body[dir="ltr"] .section-heading {
  font-family: var(--font-en);
  text-transform: uppercase;
}

.about-lead {
  font-size: 18px;
  font-weight: 700;
  color: #7AD7FF;
  margin-bottom: 22px;
}

.about-navy-card p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.93);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

/* Left Column: Light Architectural Card + Solar Chamfered Frame (Matches PDF Page 3) */
.about-light-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-light-card {
  background: var(--tmq-white);
  padding: 40px 36px;
  border-right: 6px solid var(--tmq-navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), calc(100% - 36px) 100%, 0 100%);
  box-shadow: 0 10px 30px rgba(26, 68, 111, 0.07);
  position: relative;
}

body[dir="ltr"] .about-light-card {
  border-right: none;
  border-left: 6px solid var(--tmq-navy);
}

.about-light-card p {
  font-size: 15px;
  color: var(--tmq-text);
  margin-bottom: 16px;
}

.about-light-card p:last-child {
  margin-bottom: 0;
}

/* Chamfered Solar Banner Card (TEPCO Egypt / PV Solar Financing) */
.solar-chamfer-banner {
  position: relative;
  min-height: 220px;
  background: url('../images/2_big.jpg') center / cover no-repeat;
  clip-path: polygon(0 32px, 100% 0, 100% calc(100% - 32px), 0 100%);
  display: flex;
  align-items: flex-end;
  padding: 36px 28px 28px;
  color: var(--tmq-white);
  overflow: hidden;
}

.solar-chamfer-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 61, 105, 0.92) 0%, rgba(43, 62, 94, 0.78) 60%, rgba(0, 149, 217, 0.55) 100%);
  z-index: 1;
}

.solar-banner-content {
  position: relative;
  z-index: 2;
}

.solar-banner-badge {
  display: inline-block;
  background: var(--tmq-cyan);
  color: var(--tmq-white);
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 14px;
  margin-bottom: 8px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.solar-banner-content p {
  font-size: 14.5px;
  line-height: 1.7;
  color: #F0F7FF;
}

/* ==========================================================================
   SECTION 2: DIAGONAL CHAMFERED INFOGRAPHIC (الحلول المالية والإدارية)
   Preserves the slanted rectangular ribbons ("المستطيلات اللي فيها شطرة")
   on both Desktop and Mobile!
   ========================================================================== */

.solutions-infographic-section {
  position: relative;
  padding: 70px 0 90px;
  background: linear-gradient(180deg, #EAECEF 0%, #F4F6F8 50%, #EAECEF 100%);
  overflow: hidden;
}

.solutions-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

/* Three Diagonal Stepped Chamfered Tracks on Desktop */
.diagonal-tracks-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
  position: relative;
}

/* Track 1: "هل أنت... / مصنع أو شركة قائمة" (Ice Blue Ribbon + Navy Warning Tip) */
.chamfer-track {
  position: relative;
  transition: transform 0.3s ease;
}

.track-if-you-are {
  background: var(--tmq-ice);
  /* Slanted top and bottom ("مستطيل فيه شطرة") */
  clip-path: polygon(0 44px, 100% 0, 100% calc(100% - 44px), 0 100%);
  padding: 0 0 60px 0;
  box-shadow: 0 16px 36px rgba(26, 68, 111, 0.08);
}

/* Dark Navy Chamfered Tip at Top of Track 1 (Matches the Triangle Alert Tip in Old Site & PDF Page 4) */
.track-alert-tip {
  background: var(--tmq-slate);
  color: var(--tmq-white);
  padding: 56px 28px 38px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), 0 100%);
  display: flex;
  align-items: center;
  gap: 16px;
}

.track-alert-tip img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.track-alert-tip h4 {
  font-family: var(--font-ar-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.track-factory-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 18px;
  border-bottom: 2px solid rgba(26, 68, 111, 0.12);
  margin-bottom: 14px;
}

.track-factory-title {
  font-family: var(--font-ar-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--tmq-navy);
  line-height: 1.2;
}

.track-factory-sub {
  font-size: 20px;
  font-weight: 700;
  color: var(--tmq-slate);
  margin-top: 4px;
}

.track-factory-banner img {
  width: 64px;
  height: auto;
}

/* Track 2: "استشارات إدارية" (Deep Slate Navy Chamfered Parallelogram Ribbon) */
.track-management {
  background: var(--tmq-slate);
  color: var(--tmq-white);
  clip-path: polygon(0 44px, 100% 0, 100% calc(100% - 44px), 0 100%);
  padding: 64px 26px 68px;
  margin-top: 42px; /* Creates the iconic diagonal stepped cascade on desktop */
  box-shadow: 0 20px 44px rgba(34, 50, 77, 0.22);
}

/* Track 3: "استشارات مالية" (Crisp Architectural White/Ice Chamfered Ribbon with Navy Accents) */
.track-financial {
  background: var(--tmq-white);
  color: var(--tmq-navy);
  clip-path: polygon(0 44px, 100% 0, 100% calc(100% - 44px), 0 100%);
  padding: 64px 26px 68px;
  margin-top: 84px; /* Completes the 3-step diagonal cascade */
  border-top: 6px solid var(--tmq-cyan);
  box-shadow: 0 16px 38px rgba(26, 68, 111, 0.1);
}

.track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 158, 177, 0.35);
}

.track-header h3 {
  font-family: var(--font-ar-heading);
  font-size: 26px;
  font-weight: 800;
}

.track-management .track-header h3 {
  color: #CFDDE8;
}

.track-step-tag {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  background: rgba(0, 149, 217, 0.2);
  color: var(--tmq-cyan);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.track-management .track-step-tag {
  background: rgba(255, 255, 255, 0.14);
  color: #7AD7FF;
}

/* Infographic Items List (With the original vertical separator lines & icons!) */
.infographic-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 22px;
}

.track-management .infographic-items-list,
.track-financial .infographic-items-list {
  padding: 0;
}

.info-node-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.65);
  border-right: 3px solid var(--tmq-navy);
  /* Subtle chamfered bottom-left corner on every item */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  transition: transform 0.2s ease, background 0.2s ease;
}

body[dir="ltr"] .info-node-card {
  border-right: none;
  border-left: 3px solid var(--tmq-navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.info-node-card:hover {
  transform: translateX(-4px);
  background: var(--tmq-white);
}

body[dir="ltr"] .info-node-card:hover {
  transform: translateX(4px);
}

.track-management .info-node-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: #7AD7FF;
  color: var(--tmq-white);
}

.track-management .info-node-card:hover {
  background: rgba(255, 255, 255, 0.15);
}

.track-financial .info-node-card {
  background: var(--tmq-bg-soft);
  border-color: var(--tmq-cyan);
}

.info-node-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-node-icon img,
.info-node-icon svg {
  max-width: 40px;
  max-height: 40px;
  width: auto;
  height: auto;
}

/* Invert navy icons to crisp white inside the dark Management Consulting ribbon */
.track-management .info-node-icon img {
  filter: brightness(0) invert(1);
}

.info-node-text {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.55;
}

.track-note-footer {
  margin-top: 16px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tmq-slate);
}

/* ==========================================================================
   SECTION 3: DETAILED MANAGEMENT CONSULTING (FROM PDF PAGE 5)
   ========================================================================== */

.pdf-management-section {
  position: relative;
  padding: 84px 0;
  background: linear-gradient(180deg, rgba(241, 242, 242, 0.94), rgba(220, 230, 240, 0.92)),
              url('../images/4_big.jpg') center bottom / cover no-repeat;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.pillar-chamfer-card {
  background: var(--tmq-white);
  padding: 36px 32px;
  position: relative;
  border-top: 4px solid var(--tmq-navy);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  box-shadow: 0 12px 28px rgba(19, 61, 105, 0.08);
}

.pillar-chamfer-card.highlight-navy {
  background: var(--tmq-navy);
  color: var(--tmq-white);
  border-top-color: var(--tmq-cyan);
}

.pillar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ar-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--tmq-navy);
  margin-bottom: 18px;
}

.pillar-chamfer-card.highlight-navy .pillar-title {
  color: var(--tmq-white);
}

.pillar-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--tmq-cyan);
  color: var(--tmq-white);
  font-weight: 800;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.pillar-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 18px;
}

.pillar-list li {
  position: relative;
  padding-right: 20px;
  font-size: 14.5px;
  font-weight: 600;
}

body[dir="ltr"] .pillar-list li {
  padding-right: 0;
  padding-left: 20px;
}

.pillar-list li::before {
  content: '›';
  position: absolute;
  right: 0;
  top: -2px;
  color: var(--tmq-cyan);
  font-size: 20px;
  font-weight: 800;
}

body[dir="ltr"] .pillar-list li::before {
  right: auto;
  left: 0;
}

/* ==========================================================================
   SECTION 4: FINANCIAL ADVISORY FLOW (FROM PDF PAGE 6 - DEEP NAVY SECTION)
   ========================================================================== */

.pdf-advisory-section {
  position: relative;
  padding: 96px 0;
  background: var(--tmq-navy);
  color: var(--tmq-white);
  clip-path: polygon(0 54px, 100% 0, 100% calc(100% - 54px), 0 100%);
  overflow: hidden;
}

/* Translucent Cyan Parallelogram Shard in Bottom Corner (Matches PDF Page 6) */
.pdf-advisory-section::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 40px;
  width: 110px;
  height: 240px;
  background: linear-gradient(180deg, rgba(0, 149, 217, 0.7), rgba(0, 149, 217, 0.1));
  transform: skewY(40deg);
  pointer-events: none;
}

.pdf-advisory-section::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 90px;
  width: 85px;
  height: 190px;
  border: 1.5px solid rgba(122, 215, 255, 0.4);
  transform: skewY(40deg);
  pointer-events: none;
}

.advisory-columns-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 44px;
  position: relative;
  z-index: 2;
}

.advisory-col-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(122, 215, 255, 0.2);
  padding: 30px 24px;
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  transition: transform 0.25s ease, background 0.25s ease;
}

.advisory-col-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--tmq-cyan-light);
}

.advisory-col-title {
  font-family: var(--font-ar-heading);
  font-size: 21px;
  font-weight: 800;
  color: #7AD7FF;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(122, 215, 255, 0.3);
}

.chevron-flow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chevron-flow-step {
  font-size: 15px;
  font-weight: 600;
  color: var(--tmq-white);
  padding: 6px 0;
}

.chevron-down-arrow {
  display: block;
  color: var(--tmq-cyan-light);
  font-size: 18px;
  line-height: 1;
  margin: 2px 0;
  font-weight: 800;
}

/* ==========================================================================
   SECTION 5: CONTACT US & COMPANY PROFILE PDF (MATCHES OLD SITE + PDF PAGE 7)
   ========================================================================== */

.contact-section {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

/* Decorative Bottom-Left Solar Diagonal Shards (Matches Old Site 6.jpg) */
.contact-diagonal-shard {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 280px;
  height: 340px;
  background: url('../images/6_big.jpg') left bottom / cover no-repeat;
  clip-path: polygon(0 80px, 100% 0, 100% calc(100% - 80px), 0 100%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 3;
}

.contact-form-card {
  background: var(--tmq-white);
  padding: 44px 40px;
  clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 36px 100%, 0 calc(100% - 36px));
  box-shadow: 0 14px 36px rgba(26, 68, 111, 0.08);
}

.form-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.tmq-input {
  width: 100%;
  height: 44px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #939496;
  color: var(--tmq-navy);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s ease;
}

.tmq-input:focus {
  outline: none;
  border-bottom-color: var(--tmq-cyan);
}

.tmq-textarea {
  width: 100%;
  min-height: 110px;
  padding: 12px;
  background: var(--tmq-bg);
  border: none;
  border-bottom: 2px solid var(--tmq-navy);
  color: var(--tmq-navy);
  font-family: inherit;
  font-size: 15px;
  resize: vertical;
  margin-top: 8px;
}

.tmq-textarea:focus {
  outline: none;
  border-bottom-color: var(--tmq-cyan);
}

.tmq-submit-btn {
  margin-top: 20px;
  background: var(--tmq-slate);
  color: var(--tmq-white);
  border: none;
  font-family: var(--font-ar-heading);
  font-size: 17px;
  font-weight: 700;
  padding: 12px 42px;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: background 0.25s ease, transform 0.2s ease;
}

.tmq-submit-btn:hover {
  background: var(--tmq-navy);
  transform: translateY(-2px);
}

/* Company Profile Download Box + Direct Contact Card */
.profile-side-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.company-profile-card {
  background: var(--tmq-navy);
  color: var(--tmq-white);
  padding: 42px 34px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
  box-shadow: 0 16px 36px rgba(19, 61, 105, 0.2);
}

.company-profile-card::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 20px;
  width: 70px;
  height: 180px;
  background: rgba(0, 149, 217, 0.35);
  transform: skewY(-40deg);
  pointer-events: none;
}

.profile-card-title {
  font-family: var(--font-ar-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
}

.profile-download-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 14px 22px;
  background: var(--tmq-white);
  color: var(--tmq-navy);
  font-weight: 800;
  font-size: 16px;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.profile-download-link:hover {
  background: var(--tmq-cyan);
  color: var(--tmq-white);
}

.download-arrow-box {
  width: 42px;
  height: 42px;
  background: var(--tmq-slate);
  color: var(--tmq-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.direct-info-card {
  background: var(--tmq-ice);
  padding: 32px 30px;
  border-right: 5px solid var(--tmq-navy);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}

body[dir="ltr"] .direct-info-card {
  border-right: none;
  border-left: 5px solid var(--tmq-navy);
}

.direct-info-item {
  margin-bottom: 14px;
  font-size: 15px;
}

.direct-info-item strong {
  display: block;
  color: var(--tmq-navy);
  font-size: 16px;
  margin-bottom: 2px;
}

/* FOOTER */
.site-footer {
  background: var(--tmq-navy-deep);
  color: var(--tmq-white);
  padding: 36px 0;
  border-top: 4px solid var(--tmq-cyan);
  position: relative;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo-white {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-address {
  font-size: 14.5px;
  color: #DCE6F0;
}

.scroll-top-btn {
  width: 44px;
  height: 44px;
  background: var(--tmq-cyan);
  color: var(--tmq-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.scroll-top-btn:hover {
  background: var(--tmq-white);
  color: var(--tmq-navy);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE PERFECTION)
   Keeps the signature slanted/chamfered shapes without any overflow!
   ========================================================================== */

@media (max-width: 1080px) {
  .diagonal-tracks-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .track-management,
  .track-financial {
    margin-top: 0;
  }

  .infographic-items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: rgba(19, 61, 105, 0.98);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 14px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), 0 100%);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-link {
    color: var(--tmq-white);
    width: 100%;
    text-align: center;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .about-grid,
  .pillars-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-diagonal-wing-right {
    width: 220px;
    height: 260px;
    opacity: 0.45;
  }

  .hero-diagonal-wing-left {
    width: 180px;
    height: 220px;
    opacity: 0.35;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 44px 0 64px;
  }

  .hero-logo-large {
    width: 220px;
  }

  /* Keep the slanted rectangular cut ("الشطرة") on mobile at a clean 28px angle */
  .track-if-you-are,
  .track-management,
  .track-financial {
    clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%);
  }

  .track-management,
  .track-financial {
    padding: 46px 18px 50px;
  }

  .infographic-items-list,
  .advisory-columns-grid,
  .form-grid-2col {
    grid-template-columns: 1fr;
  }

  .about-navy-card {
    padding: 36px 22px 44px;
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  }

  .about-light-card,
  .contact-form-card {
    padding: 28px 20px;
  }

  .pdf-advisory-section {
    padding: 68px 0;
    clip-path: polygon(0 30px, 100% 0, 100% calc(100% - 30px), 0 100%);
  }
}
