/* ==========================================================================
   MaskanTanger — Base Styles & Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&display=swap');

/* ── Root & Body ──────────────────────────────────────────────────────── */

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-gold, #C9A84C);
  color: var(--color-deep-blue, #0A1628);
  padding: 8px 16px;
  border-radius: var(--radius-sm, 4px);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height, 72px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--color-dark-text);
  background-color: var(--color-white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Selection ────────────────────────────────────────────────────────── */

::selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}
::-moz-selection {
  background-color: var(--color-gold);
  color: var(--color-white);
}

/* ── Headings ─────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-deep-blue);
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, var(--font-size-5xl));
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, var(--font-size-4xl));
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, var(--font-size-3xl));
}

h4 {
  font-size: clamp(1.125rem, 2vw, var(--font-size-2xl));
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

/* ── Paragraphs ───────────────────────────────────────────────────────── */

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-700);
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-gray-600);
  font-weight: var(--font-weight-normal);
}

.text-muted {
  color: var(--color-gray-500);
  font-size: var(--font-size-sm);
}

/* ── Links ────────────────────────────────────────────────────────────── */

a {
  color: var(--color-secondary-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Lists ────────────────────────────────────────────────────────────── */

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

ul li,
ol li {
  margin-bottom: 0.375rem;
  line-height: var(--line-height-relaxed);
}

ul.unstyled,
ol.unstyled {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Bullet style */
ul:not(.unstyled) li::marker {
  color: var(--color-gold);
}

/* ── Inline elements ──────────────────────────────────────────────────── */

strong, b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-dark-text);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

mark {
  background-color: rgba(201, 168, 76, 0.25);
  color: var(--color-dark-text);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-gray-100);
  color: var(--color-secondary-blue);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  background-color: var(--color-deep-blue);
  color: var(--color-gray-100);
  padding: var(--space-6);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

blockquote {
  border-left: 4px solid var(--color-gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background-color: var(--color-blue-100);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-secondary-blue);
}

[dir="rtl"] blockquote {
  border-left: none;
  border-right: 4px solid var(--color-gold);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ── Section headings ─────────────────────────────────────────────────── */

.section-title {
  font-size: clamp(1.75rem, 4vw, var(--font-size-3xl));
  font-weight: var(--font-weight-extrabold);
  color: var(--color-deep-blue);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--font-size-md);
  color: var(--color-gray-600);
  line-height: var(--line-height-relaxed);
  max-width: 60ch;
}

.section-label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

/* Gold underline accent */
.title-decorated {
  position: relative;
  display: inline-block;
}
.title-decorated::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  border-radius: var(--radius-full);
}

/* ── Utility Typography ───────────────────────────────────────────────── */

.text-xs    { font-size: var(--font-size-xs); }
.text-sm    { font-size: var(--font-size-sm); }
.text-base  { font-size: var(--font-size-base); }
.text-md    { font-size: var(--font-size-md); }
.text-lg    { font-size: var(--font-size-lg); }
.text-xl    { font-size: var(--font-size-xl); }
.text-2xl   { font-size: var(--font-size-2xl); }

.font-light    { font-weight: var(--font-weight-light); }
.font-normal   { font-weight: var(--font-weight-normal); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.text-primary   { color: var(--color-secondary-blue); }
.text-gold      { color: var(--color-gold); }
.text-dark      { color: var(--color-dark-text); }
.text-white     { color: var(--color-white); }
.text-gray      { color: var(--color-gray-500); }

.uppercase  { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Divider ──────────────────────────────────────────────────────────── */

.divider {
  height: 1px;
  background: var(--color-gray-200);
  margin: var(--space-6) 0;
  border: none;
}

.divider--gold {
  background: linear-gradient(to right, var(--color-gold), transparent);
  height: 2px;
}

/* ── Google Translate Cleanup (hide native bar & tooltips) ────────────── */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-l4eHX-hSRGPd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-aZ2wEe-OiiCO,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

html,
body {
  top: 0 !important;
  position: static !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  box-shadow: none !important;
}
