/* =============================================
   Osama Refaat Law Firm — Main Stylesheet
   Bilingual (EN/AR) + RTL Support
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&family=Lato:wght@400;700&family=Playfair+Display:wght@700&family=Merriweather:wght@700&display=swap');

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

:root {
  --navy: #1e2a38;
  --navy-light: #273548;
  --gold: #e0c682;
  --gold-dark: #c2a25a;
  --gold-subtle: #f5edcc;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-bg: #f1f4f8;
  --text-dark: #1e2a38;
  --text-muted: #5a6a7e;
  --border: rgba(224,198,130,0.25);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Arabic mode: switch to Cairo font */
html[lang="ar"] body,
html[lang="ar"] p,
html[lang="ar"] li,
html[lang="ar"] span,
html[lang="ar"] a {
  font-family: 'Cairo', sans-serif;
  line-height: 1.9;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
}

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =============================================
   HEADER & NAVBAR
   ============================================= */
header {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
  
}

.logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: 8%;
}

.logo span {
  color: var(--gold);
}

/* Nav */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
}

.nav-menu a.active,
.nav-menu a:hover {
  color: var(--gold);
  background: rgba(224,198,130,0.1);
}

/* Language Toggle Button */
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.5px;
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(224,198,130,0.4);
  background: linear-gradient(135deg, #f0d896, var(--gold));
}

.lang-btn .lang-icon {
  font-size: 1rem;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 10px;
  transition: var(--transition);
}

.nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* RTL Nav adjustments */
html[dir="rtl"] .header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(30,42,56,0.92) 0%, rgba(30,42,56,0.75) 100%),
    url('../images/ossbg.png') center/cover no-repeat fixed;
  color: var(--white);
  text-align: center;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--off-white), transparent);
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 1;
  animation: heroFadeUp 1s ease-out forwards;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(224,198,130,0.15);
  border: 1px solid rgba(224,198,130,0.4);
  color: var(--gold);
  padding: 6px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 16px;
  font-family: 'Merriweather', serif;
  color: var(--white);
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.hero-content h1::after {
  content: '';
  display: block;
  width: 280px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 14px auto 0;
}

.hero-content .mission {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  margin-bottom: 36px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}

.hero-content .tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  font-style: italic;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0d896, var(--gold));
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(224,198,130,0.4);
  color: var(--navy);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-3px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  color: var(--white);
}

/* =============================================
   SECTIONS
   ============================================= */
.section-light {
  background: var(--white);
  padding: 90px 0;
}

.section-dark {
  background: var(--light-bg);
  padding: 90px 0;
}

.section-navy {
  background: var(--navy);
  padding: 90px 0;
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy p {
  color: var(--white);
}

section > .container > h2,
.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

section > .container > h2::after,
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  border-radius: 2px;
}

html[dir="rtl"] section > .container > h2::after,
html[dir="rtl"] .section-title::after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 50px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

html[dir="rtl"] .value-item {
  border-left: none;
  border-right: 4px solid var(--gold);
  flex-direction: row-reverse;
}

.value-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .value-item:hover {
  transform: translateX(-6px);
}

.value-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.value-text h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.value-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
   SERVICES GRID
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224,198,130,0.3);
  color: inherit;
}

.service-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-subtle), #e8d78a);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--navy);
  line-height: 1.4;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.service-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.service-card:hover .card-arrow {
  gap: 10px;
}

html[dir="rtl"] .service-card .card-arrow {
  flex-direction: row-reverse;
}

/* Legacy .service-box support */
.service-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.service-link {
  text-decoration: none;
  color: inherit;
}

/* =============================================
   LAW LIBRARY SECTION
   ============================================= */
.law-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}

.law-cat-btn {
  padding: 9px 20px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--navy);
  font-family: 'Lato', sans-serif;
}

html[lang="ar"] .law-cat-btn {
  font-family: 'Cairo', sans-serif;
}

.law-cat-btn.active,
.law-cat-btn:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

.law-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.law-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
  cursor: pointer;
}

html[dir="rtl"] .law-card {
  border-left: none;
  border-right: 4px solid var(--gold);
}

.law-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.law-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  line-height: 1.5;
}

.law-card .law-en {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-style: italic;
}

/* =============================================
   CONTRACTS SECTION
   ============================================= */
.contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.contract-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid transparent;
}

.contract-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(224,198,130,0.4);
  color: inherit;
}

.contract-card-icon {
  font-size: 2rem;
}

.contract-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}

.contract-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.contract-card .wa-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  width: fit-content;
}

.contract-card .wa-link:hover {
  background: #128C7E;
  color: white;
  transform: translateY(-2px);
}

/* Legal Disclaimer */
.legal-disclaimer {
  background: linear-gradient(135deg, #fff8e1, #ffefc0);
  border: 1px solid rgba(224,198,130,0.5);
  border-left: 5px solid var(--gold-dark);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-top: 50px;
}

html[dir="rtl"] .legal-disclaimer {
  border-left: 1px solid rgba(224,198,130,0.5);
  border-right: 5px solid var(--gold-dark);
}

.legal-disclaimer h4 {
  color: #8B6914;
  margin-bottom: 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-disclaimer p {
  color: #6B4F10;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* =============================================
   FAQ SECTION
   ============================================= */
.faq-list {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  border-left: 4px solid var(--gold);
  transition: var(--transition);
  font-family: 'Playfair Display', serif;
}

html[dir="rtl"] .faq-item summary {
  border-left: none;
  border-right: 4px solid var(--gold);
  flex-direction: row-reverse;
  font-family: 'Cairo', sans-serif;
}

.faq-item summary:hover {
  background: var(--gold-subtle);
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold-dark);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 12px;
  transition: var(--transition);
}

html[dir="rtl"] .faq-item summary::after {
  margin-left: 0;
  margin-right: 12px;
}

.faq-item[open] summary::after {
  content: '−';
  transform: none;
}

.faq-item .faq-body {
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.8;
  border-top: 1px solid var(--light-bg);
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 50px;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--light-bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

html[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-text strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-text a,
.contact-text span {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
}

.contact-cta-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-cta-box h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-cta-box p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
  font-size: 1rem;
}

.contact-cta-box .cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

.footer-copy {
  font-size: 0.85rem;
  margin-top: 8px;
}

html[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

/* =============================================
   ANIMATIONS & FADE-IN
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stats Bar */
.stats-bar {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--navy);
    padding-top: 80px;
    padding-bottom: 30px;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    overflow-y: auto;
    gap: 0;
  }

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

  .nav-menu.nav-menu-visible {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-menu a {
    display: block;
    padding: 18px 30px;
    font-size: 1.05rem;
    border-radius: 0;
  }

  .lang-btn {
    margin: 16px 30px 0;
    align-self: flex-start;
  }

  .header-inner {
    position: relative;
  }

  .nav-menu .lang-btn-mobile {
    display: flex;
    margin: 20px 30px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  section > .container > h2 {
    font-size: 1.9rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.85rem;
  }
}

/* =============================================
   PAGE-SPECIFIC: SUB-PAGES
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero .page-subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 20px;
}

.page-hero .gold-tag {
  display: inline-block;
  background: rgba(224,198,130,0.2);
  border: 1px solid rgba(224,198,130,0.5);
  color: var(--gold);
  padding: 5px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  margin-bottom: 40px;
}

html[dir="rtl"] .breadcrumb {
  flex-direction: row-reverse;
}

.breadcrumb a {
  color: var(--navy);
  font-weight: 600;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb span {
  color: var(--text-muted);
}

/* Scope / services list inside pages */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.scope-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  transition: var(--transition);
}

.scope-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.scope-item h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.scope-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-item ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}

html[dir="rtl"] .scope-item ul li {
  padding-left: 0;
  padding-right: 16px;
}

.scope-item ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

html[dir="rtl"] .scope-item ul li::before {
  left: auto;
  right: 0;
}

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.why-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.why-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.why-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  padding: 10px 0;
  transition: var(--transition);
  font-size: 0.95rem;
}

.back-btn:hover {
  color: var(--gold-dark);
  gap: 12px;
}

/* Contract detail page */
.contract-detail-img {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: block;
  margin: 30px auto;
}

/* Law library tabs */
.tab-content { display: none; }
.tab-content.active { display: grid; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: var(--radius);
  padding: 50px 40px;
  text-align: center;
  margin-top: 60px;
}

.cta-banner h3 {
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.cta-banner p {
  color: rgba(30,42,56,0.8);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* Service page header nav */
.page-nav-header {
  background: var(--navy);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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


    nav { display: flex; align-items: center; gap: 12px; }
    .nav-menu { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
    .nav-menu a {
      color: rgba(255,255,255,.85);
      text-decoration: none;
      font-size: .88rem;
      padding: 6px 12px;
      border-radius: 6px;
      transition: color .25s, background .25s;
      font-weight: 600;
      letter-spacing: .3px;
    }
    .nav-menu a:hover,
    .nav-menu a.active { color: var(--gold); background: rgba(224,198,130,.08); }

    .lang-btn {
      background: var(--gold);
      color: var(--navy);
      border: none;
      border-radius: 20px;
      padding: 7px 18px;
      font-size: .85rem;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background .25s, transform .2s;
      white-space: nowrap;
    }

    .nav-toggle {
      display: none;
      background: none;
      border: none;
      color: var(--gold);
      font-size: 1.6rem;
      cursor: pointer;
    }

    @media (max-width: 768px) {
      .nav-menu { display: none; }
      .nav-toggle { display: block; }
      .scope-grid, .why-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 500px) {
      .scope-grid, .why-grid { grid-template-columns: 1fr; }
    }
