/*
 * Greek locale font override for Avis.
 *
 * On Greek pages, the "Avis Headline" font lacks Greek glyphs, causing
 * the browser to use a fallback font at a different visual weight.
 * This makes Latin characters (&, VAN, AVIS) appear bolder than Greek text.
 *
 * Fix: Override all headline text to use Arial at weight 400 so both
 * Greek and Latin characters render at uniform size and weight.
 *
 * This file is only loaded for Greek (el) locale pages.
 */

/* Hero banner headline */
[data-testid="hero-banner-headline"],
[data-testid="topherobanner-headline"] {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Hero module headline (fleet/rent-a-car pages) */
[data-testid="hero-headline"] {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 400;
  letter-spacing: -1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fleet car category headings (e.g. ΚΑΤΗΓΟΡΙΑ A - CITY CAR) */
[data-testid="fleet-car-code-group"] {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Hamburger menu navigation items (e.g. ΠΡΟΪΟΝΤΑ & ΥΠΗΡΕΣΙΕΣ) */
[data-testid="mobile-hamburger-navigation-list"] .MuiTypography-root,
[data-testid^="hamburgerMenuColumnTitle-"] {
  font-family: Arial, 'Helvetica Neue', sans-serif;
}

/* Content module headers */
[data-testid="contentmodule-header"],
[data-testid="contentmodule-richtext-header"] {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 400;
}

/* Media module headers */
[data-testid="media-module-header"] {
  font-family: Arial, 'Helvetica Neue', sans-serif;
  font-weight: 400;
}

/* All headings using Avis Headline (h1-h6) */
.MuiTypography-h1,
.MuiTypography-h2,
.MuiTypography-h3,
.MuiTypography-h4,
.MuiTypography-h5,
.MuiTypography-h6 {
  font-family: Arial, 'Helvetica Neue', sans-serif !important;
  font-weight: 400;
}

/* Headings that need bold weight (cards, partnership tiles) */
[data-testid^="image-card-header-contentfragment-text-"],
[data-testid="partner-offer-title"] {
  font-weight: 700 !important;
}

/* Spans inside headings (AEM rich text content) */
.MuiTypography-h1 span,
.MuiTypography-h2 span,
.MuiTypography-h3 span,
.MuiTypography-h4 span,
.MuiTypography-h5 span,
.MuiTypography-h6 span {
  font-family: inherit;
  font-weight: inherit;
}

/* Bold/strong elements inside headings (AEM rich text numbers/Latin) */
.MuiTypography-h1 strong,
.MuiTypography-h1 b,
.MuiTypography-h2 strong,
.MuiTypography-h2 b,
.MuiTypography-h3 strong,
.MuiTypography-h3 b,
.MuiTypography-h4 strong,
.MuiTypography-h4 b,
.MuiTypography-h5 strong,
.MuiTypography-h5 b,
.MuiTypography-h6 strong,
.MuiTypography-h6 b {
  font-family: inherit;
  font-weight: inherit;
}
