/* ==========================================================================
   ROMOTECH TECHNOLOGIES INC. - Modern Enterprise IT Stylesheet
   Montreal, Quebec, Canada
   Inspired by Present.ca & ITI.ca Design Systems
   Trilingual (FR / EN / AR) with Native RTL Support
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-tertiary: #131b2e;
  --bg-card: rgba(19, 27, 46, 0.78);
  --bg-card-hover: rgba(28, 41, 68, 0.88);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(16, 185, 129, 0.35);

  --accent-primary: #10b981;       /* Emerald Green (Present.ca reassurance) */
  --accent-primary-hover: #059669;
  --accent-secondary: #06b6d4;     /* Electric Arctic Cyan (ITI.ca highlight) */
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-glow: rgba(16, 185, 129, 0.16);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-light: #ffffff;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-arabic: 'Cairo', 'Segoe UI Arabic', Tahoma, sans-serif;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------------------
   3. RTL (Right-to-Left) Styles for Arabic Support
   -------------------------------------------------------------------------- */
html[dir="rtl"],
body.is-rtl {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
}

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--font-arabic);
  letter-spacing: normal !important;
}

html[dir="rtl"] .arrow-icon,
body.is-rtl .arrow-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .cadence-item svg,
body.is-rtl .cadence-item svg {
  margin-left: 0.75rem;
  margin-right: 0;
}

html[dir="rtl"] .service-features li svg,
body.is-rtl .service-features li svg {
  margin-left: 0.65rem;
  margin-right: 0;
}

html[dir="rtl"] .service-modal-close,
body.is-rtl .service-modal-close {
  left: 1.5rem;
  right: auto;
}

html[dir="rtl"] .contact-item-icon,
body.is-rtl .contact-item-icon {
  margin-left: 1rem;
  margin-right: 0;
}

html[dir="rtl"] .why-pillar-icon,
body.is-rtl .why-pillar-icon {
  margin-left: 1rem;
  margin-right: 0;
}

/* --------------------------------------------------------------------------
   4. Background Subtle Ambient Glows
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.ambient-glow-1 {
  top: -120px;
  right: -100px;
  background: var(--accent-primary);
}

.ambient-glow-2 {
  top: 45%;
  left: -220px;
  background: var(--accent-secondary);
}

.ambient-glow-3 {
  bottom: 0;
  right: 10%;
  background: #3b82f6;
  opacity: 0.08;
}

/* --------------------------------------------------------------------------
   5. Layout & Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Typography & Headings
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.75rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-primary);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--accent-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.15rem;
}

.section {
  padding: 100px 0;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --------------------------------------------------------------------------
   7. Buttons & Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.78rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.42);
  color: #ffffff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.52rem 1.15rem;
  font-size: 0.88rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. Navigation Bar & Sticky Header
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(9, 13, 22, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
  flex-shrink: 0;
}

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

.brand-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  font-family: var(--font-heading);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover, .nav-link:focus {
  color: var(--text-main);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

/* Trilingual Switcher Pill */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   9. Hero Section & Uptime Cadence
   -------------------------------------------------------------------------- */
.hero {
  padding: 170px 0 100px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

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

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: 1.18rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* 4-Point Uptime & Peace-of-Mind Cadence (Inspired by Present.ca) */
.hero-cadence {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.cadence-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.98rem;
  color: var(--text-main);
}

.cadence-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.cadence-item strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Hero Visual Card */
.hero-visual {
  position: relative;
}

.hero-card-preview {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.12);
  background: var(--bg-tertiary);
}

.hero-card-preview img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.hero-preview-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1.25rem;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-preview-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-preview-text h4 {
  font-size: 1rem;
  color: var(--text-main);
}

.hero-preview-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. Trust & Metrics Bar
   -------------------------------------------------------------------------- */
.metrics-section {
  padding: 0;
  position: relative;
  z-index: 10;
  margin-top: -30px;
}

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.metric-item {
  text-align: center;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: -0.75rem;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

html[dir="rtl"] .metric-item:not(:last-child)::after {
  right: auto;
  left: -0.75rem;
}

.metric-value {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  line-height: 1.15;
}

.metric-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* --------------------------------------------------------------------------
   11. Core IT Services Grid (6 Equal-Height Cards)
   -------------------------------------------------------------------------- */
.services-section {
  padding-top: 120px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: blur(12px);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(16, 185, 129, 0.12);
}

.service-card-image-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.service-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-card-image-wrap img {
  transform: scale(1.05);
}

.service-card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  color: var(--accent-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

html[dir="rtl"] .service-card-tag {
  left: auto;
  right: 1rem;
}

.service-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card h3 {
  margin-bottom: 0.85rem;
  color: var(--text-main);
}

.service-card-desc {
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex-grow: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.91rem;
  color: #cbd5e1;
}

.service-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-card-action {
  margin-top: auto;
}

.service-card-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   12. Interactive Service Modal Drawer
   -------------------------------------------------------------------------- */
.service-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.service-modal-backdrop.active,
.service-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop-close {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-modal-drawer {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(16, 185, 129, 0.15);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition-normal);
}

.service-modal-backdrop.active .service-modal-drawer,
.service-modal-backdrop.open .service-modal-drawer {
  transform: translateY(0) scale(1);
}

.service-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.service-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(90deg);
}

.service-modal-tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-modal-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.service-modal-desc {
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.service-modal-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.service-modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
  padding: 1.25rem;
  background: rgba(9, 13, 22, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.service-modal-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  color: #cbd5e1;
}

.service-modal-features li svg {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-cta-btn {
  width: 100%;
}

/* --------------------------------------------------------------------------
   13. Quebec Law 25 & Why Us Section
   -------------------------------------------------------------------------- */
.why-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #0c1220 100%);
}

.why-law25-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 4rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.why-law25-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.why-law25-content h3 {
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.why-law25-content p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.why-law25-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-law25-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text-main);
  padding: 0.85rem 1.2rem;
  background: rgba(9, 13, 22, 0.65);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.why-law25-list svg {
  width: 22px;
  height: 22px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* 3 Pillars Grid */
.why-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.why-pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
}

.why-pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.why-pillar-icon svg {
  width: 26px;
  height: 26px;
}

.why-pillar-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.why-pillar-card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   14. Certified Technology Partners
   -------------------------------------------------------------------------- */
.partners-section {
  padding: 80px 0;
  background: rgba(15, 23, 42, 0.45);
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 1060px;
  margin: 0 auto;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  height: 100px;
  width: 240px;
  flex: 0 0 240px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.partner-logo-item img {
  max-height: 70px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.3s ease;
}

.partner-logo-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.25), 0 0 0 2px var(--accent-emerald);
}

.partner-logo-item:hover img {
  transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   15. Contact & Consultation Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 110px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #060910 100%);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.contact-info h3 {
  font-size: 1.9rem;
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  margin: 2.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item-text span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item-text a,
.contact-item-text p {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-item-text a:hover {
  color: var(--accent-primary);
}

/* Consultation Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-form h4 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

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

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 0.88rem 1.15rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.96rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

html[dir="rtl"] select.form-control {
  background-position: left 1rem center;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

/* Form Toast Notification */
.form-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #10b981;
  color: #ffffff;
  padding: 1.1rem 1.6rem;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  font-weight: 600;
  font-size: 0.98rem;
  display: none;
  z-index: 9999;
  animation: toastSlideUp 0.35s ease;
}

html[dir="rtl"] .form-toast {
  right: auto;
  left: 2rem;
}

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

/* --------------------------------------------------------------------------
   16. Enterprise Multi-Column Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 70px 0 35px;
  background: #05080e;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  color: #f1f5f9;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-law25-badge {
  display: inline-block;
  padding: 0.6rem 0.9rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.back-to-top-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.back-to-top-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   17. Responsive Breakpoints & Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual {
    max-width: 550px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-law25-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    height: 72px;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    transform: translateY(-150%);
    transition: transform var(--transition-normal);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .mobile-toggle {
    display: block;
  }
  .metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem;
    gap: 1.5rem 1rem;
  }
  .metric-item:nth-child(2)::after {
    display: none;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .why-pillars-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .contact-wrapper {
    padding: 2rem 1.5rem;
  }
  .service-modal-drawer {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .metrics-bar {
    grid-template-columns: 1fr;
  }
  .metric-item::after {
    display: none !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .nav-actions .btn-quote-header {
    display: none;
  }
}
