@font-face {
  font-family: Roboto;
  src: url("fonts/Roboto-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html[lang="en"] {
  --font-main: Roboto, Arial, sans-serif;
  --font-primary: var(--font-main);
  --font-inter: var(--font-main);
  --font-poppins: var(--font-main);
  --font-cinzel: var(--font-main);
}
html[lang="en"] body,
html[lang="en"] :is(h1,h2,h3,h4,h5,h6,label,input,select,textarea,button):lang(en):not(.arabic-tile) {
  font-family: var(--font-main);
}
html[lang="en"] :is(.site-header,.page-hero-banner,#home) [data-i18n^="nav."],
html[lang="en"] .site-header .brand-name { font-family: var(--font-main); }
html[lang="en"] body p:lang(en) { font-weight: 400; }
html[lang="en"] body :is(strong,b) { font-weight: 700; }
.site-header .lang-btn[data-lang="en"] { font-family: Roboto, Arial, sans-serif !important; }
.site-header .lang-btn[data-lang="ur"] { font-family: var(--font-urdu) !important; }

@media (min-width: 1024px) {
  html[lang="ur"][dir="rtl"] { font-size: clamp(20px, 1.48vw, 23px) !important; }
  html[lang="ur"] body .page-hero-banner h1 {
    font-size: clamp(42px, 3.5vw, 62px) !important;
    line-height: 1.85 !important;
    text-wrap: balance;
  }
  html[lang="ur"] body :is(.page-hero-banner,.section-header) > p,
  html[lang="ur"] body .page-hero-banner .container > p {
    font-size: 1.13rem !important;
    line-height: 2 !important;
  }
  html[lang="ur"] .site-header .nav-menu .nav-link {
    font-size: clamp(20px, 1.48vw, 25px) !important;
    line-height: 1.8 !important;
  }
  html[lang="ur"] .site-header .dropdown-text strong { font-size: 1rem !important; }
  html[lang="ur"] .site-header .dropdown-text small { font-size: .88rem !important; font-weight: 400; }
  html[lang="ur"] .site-header .top-bar-link, html[lang="ur"] .site-header .top-bar-wrap {
    font-size: .84rem !important;
  }
  html[lang="ur"] .breadcrumb-nav { font-size: .95rem !important; }
}
@media (min-width: 1281px) {
  .site-header .nav-wrap { border-block-start: 1px solid var(--nav-line); }
  html[lang="en"] .site-header .nav-link { font-weight: 500; }
  html[lang="en"] .site-header .nav-link.active { font-weight: 700; }
  html[lang="ur"] .site-header .container.nav-wrap { height: 80px; }
  html[lang="ur"] .site-header .nav-dropdown .dropdown-menu { width: 340px; }
}

/* Footer contact details keep their reading order inside either language. */
.site-footer .footer-links a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
}
.site-footer .footer-links a:hover { padding-inline: 0; }
.site-footer .footer-links i { width: 16px; text-align: center; flex: none; font-size: 14px; }
.site-footer .footer-inbox { display: inline-grid; justify-items: start; gap: 1px; }
.site-footer bdi, .contact-section .channel-info strong, .contact-section .channel-info bdi {
  font-family: Roboto, Arial, sans-serif !important;
  letter-spacing: normal;
}
.site-footer bdi { font-size: 14px; line-height: 1.6; }
.site-footer .footer-bottom-links { display: flex; align-items: baseline; gap: 8px; }
html[lang="ur"] .site-footer {
  --footer-copy: clamp(18px, 1.2vw, 21px);
  font-family: var(--font-urdu);
  font-size: var(--footer-copy);
}
html[lang="ur"] .site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0,1.4fr) repeat(2,minmax(0,1fr)) minmax(0,1.1fr) !important;
  gap: 24px clamp(20px,3vw,44px) !important;
  align-items: start !important;
}
html[lang="ur"] .site-footer :is(.footer-links,.footer-about,.footer-links ul,.footer-links li,.footer-links h4,.footer-about p,.footer-links a) {
  min-width: 0;
  text-align: start !important;
  justify-content: start !important;
}
html[lang="ur"] .site-footer :is(.footer-links,.footer-about,.footer-links ul) { align-items: start !important; }
html[lang="ur"] .site-footer .footer-links ul { gap: 3px !important; }
html[lang="ur"] .site-footer .footer-links :is(li,a), html[lang="ur"] .site-footer .footer-about p {
  font-size: var(--footer-copy) !important;
  line-height: 1.85 !important;
  color: var(--color-text-body);
}
html[lang="ur"] .site-footer .footer-links a:hover { color: var(--color-gold); }
html[lang="ur"] .site-footer .footer-about p { margin: 10px 0 0 !important; }
.site-footer .footer-about .brand-logo { order: 0 !important; }
html[lang="ur"] .site-footer .footer-about .brand-logo {
  margin: 0 !important;
  direction: rtl !important;
  flex-direction: row !important;
}
html[lang="ur"] .site-footer .footer-about .brand-logo img { order: 0 !important; }
html[lang="ur"] .site-footer .footer-about .brand-name { order: 1 !important; }
html[lang="ur"] .site-footer .footer-links h4 {
  font-size: clamp(21px,1.3vw,24px) !important;
  line-height: 1.8 !important;
  margin: 0 0 8px !important;
  color: var(--color-gold);
}
html[lang="ur"] .site-footer .footer-links a { align-items: baseline !important; }
html[lang="ur"] .site-footer .footer-bottom :is(div,span),
html[lang="ur"] .site-footer [data-i18n="footer.architectedBy"] {
  font-size: 17px !important;
  line-height: 1.85 !important;
}
html[lang="ur"] .site-footer .footer-about [data-i18n="footer.architectedBy"] {
  display: block !important;
  text-align: start !important;
}
@media (max-width: 980px) {
  html[lang="ur"] .site-footer .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 600px) {
  html[lang="ur"] .site-footer :is(.footer-about,.footer-links:last-child) { grid-column: 1 / -1; }
  html[lang="ur"] .site-footer .footer-links a { min-height: 36px; }
  html[lang="ur"] .site-footer .footer-bottom [data-i18n="footer.copyrightLine"] { display: block !important; }
  .site-footer .footer-bottom .footer-bottom-links > span { width: auto !important; margin: 0 !important; }
}

/* Only the value reads left to right. The icon and copy follow the page. */
.contact-section .contact-channel-card {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 12px;
  align-items: start;
  text-align: start;
}
.contact-section .channel-icon-circle { width: 42px; height: 42px; font-size: 19px; }
.contact-section .channel-info strong {
  display: block;
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.55;
}
html[lang="ur"] .contact-section .channel-info h4 { font-size: 21px !important; line-height: 1.85 !important; }
html[lang="ur"] .contact-section .channel-info small { font-size: 17px !important; line-height: 1.85 !important; }
.contact-section :is(.contact-form-card,.contact-field-wrap) { min-width: 0; }
html[dir="rtl"] .contact-input-box :is(input,select) { padding: 9px 44px 9px 14px !important; }
html[dir="rtl"] .contact-input-box textarea { padding: 10px 14px !important; }
html[dir="rtl"] .contact-input-box > i { font-size: 16px; width: 20px; text-align: center; }
.contact-input-box input[dir="ltr"], .contact-input-box input[dir="ltr"]::placeholder {
  direction: ltr !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-size: 16px !important;
}
.contact-input-box :is(select,input) { min-height: 50px; }
html[lang="ur"] .contact-input-box :is(select,input) { min-height: max(54px, calc(1.9rem + 21px)); }
html[data-theme="light"] .contact-section .channel-info strong,
html[data-theme="light"] .site-footer .footer-links h4 { color: #775b1b !important; }
html[data-theme="light"] .contact-section a[href*="wa.me"] strong { color: #176c48 !important; }
