/* Fustat */
@font-face {
  font-family: 'Fustat';
  src: url('../fonts/Fustat-Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Fustat';
  src: url('../fonts/Fustat-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Fustat';
  src: url('../fonts/Fustat-Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Fustat';
  src: url('../fonts/Fustat-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Fustat';
  src: url('../fonts/Fustat-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Fustat';
  src: url('../fonts/Fustat-ExtraBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

/* Madani Arabic */
@font-face {
  font-family: 'Madani Arabic';
  src: url('../fonts/Madani Arabic Light.ttf') format('truetype');
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: 'Madani Arabic';
  src: url('../fonts/Madani Arabic Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Madani Arabic';
  src: url('../fonts/Madani Arabic Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Madani Arabic';
  src: url('../fonts/Madani Arabic Semi Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Madani Arabic';
  src: url('../fonts/Madani Arabic Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Madani Arabic';
  src: url('../fonts/Madani Arabic Extra Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --font-base: 'Fustat', sans-serif;
  --font-arabic: 'Madani Arabic', sans-serif;

  --text-color: #1b1b1b;

  --fs-body: 17px;
  --fs-small: 14px;
  --fs-menu: 13px;
  --fs-button: 13px;

  --fs-h1: clamp(2rem, 4vw, 3.4rem);
  --fs-h2: clamp(1.9rem, 3.2vw, 3rem);
  --fs-h3: clamp(1.55rem, 2.4vw, 2.2rem);
  --fs-h4: clamp(1.3rem, 1.8vw, 1.7rem);
  --fs-h5: clamp(1.12rem, 1.4vw, 1.3rem);
  --fs-h6: clamp(1rem, 1.1vw, 1.08rem);
}

body,
input,
textarea,
button,
select {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nectar-fancy-ul ul li,
.nectar-post-grid .content h3,
.swiper-slide .content h2 {
  font-family: var(--font-base);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

h5 {
  font-size: var(--fs-h5);
  font-weight: 600;
}

h6 {
  font-size: var(--fs-h6);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p,
li,
.entry-content,
.nectar-post-grid-item .content {
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0.002em;
}

small,
.text-small,
.meta,
.post-meta,
.subheader {
  font-size: var(--fs-small);
  line-height: 1.5;
}

#header-outer #top nav > ul > li > a,
#header-outer #top .sf-menu > li > a,
#header-secondary-outer,
#mobile-menu .menu-item > a {
  font-family: var(--font-base);
  font-size: var(--fs-menu);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

button,
input[type='submit'],
input[type='button'],
.nectar-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--font-base);
  font-size: var(--fs-button);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

blockquote {
  font-family: var(--font-base);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.6;
}

/* Utilitario para conteudo em arabe */
.ar-font,
[lang='ar'] {
  font-family: var(--font-arabic);
  font-weight: 500;
  direction: rtl;
}

@media (max-width: 999px) {
  :root {
    --fs-body: 16px;
    --fs-menu: 12px;
    --fs-button: 13px;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    line-height: 1.2;
  }
}

@media (max-width: 690px) {
  :root {
    --fs-body: 15px;
    --fs-small: 13px;
    --fs-button: 12px;
  }

  p,
  li,
  .entry-content {
    line-height: 1.65;
  }
}
