/*====================================
  Table of Contents - CSS File
  1. Import Fonts
  2. Root Variables
  3. Reset Styles
  4. Base / General Styles (typography, links, etc.)
  5. Layout (container, grid, flex helpers)
  6. Components (header, navbar, buttons, footer...)
  7. Utilities / Helpers (spacing, shadows...)
  8. Animations & Transitions
  9. Media Queries (Responsive Design)
=====================================*/

/*====== 1. Import Fonts ======*/
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap");

/*====== 2. Root Variables ======*/
:root {
  --main-color: #e20613;
  --secondary-color: #575756;
  --bg-color: #f9f9f9;
  --text-color: #333;
  --radius: 8px;
  --transition: 0.3s ease-in-out;
}

/*====== 3. Reset Styles ======*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/*====== 4. Base / General Styles ======*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Cairo", "Almarai", sans-serif;
  direction: rtl;
  color: var(--text-color);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Almarai", sans-serif;
  font-weight: 700;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
}

/*====== 5. Layout (Grid / Flexbox, sections) ======*/
.container {
  padding: 0 15px;
  margin: 0 auto;
  width: 100%;
  max-width: 1170px;
  /* fallback for large screens */
}

/*====== 6. Components ======*/

/* ====== Scroll to Top Button ====== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background-color: var(--main-color);
  color: #fff;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  box-shadow: 0 0 3px #eee;
}

.scroll-to-top:hover {
  transform: scale(1.1);
}

.scroll-to-top i {
  font-size: 1.8rem;
}

/*====== 7. Utilities / Helpers ======*/
.pd-y {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 25px;
  color: var(--main-color);
}

.section-desc {
  text-align: center;
  font-size: 18px;
  color: var(--text-color);
}

/*====== 8. Animations & Transitions ======*/
/* Spin Animation for pricing section */
@keyframes spin {
  from {
    transform: rotate(0deg) scale(1);
  }

  to {
    transform: rotate(360deg) scale(1.1);
  }
}

/*====== 9. Media Queries (Responsive Design) ======*/

/* ------ container on large screen ------ */

/*Small devices (Mobile phones)*/
@media (max-width: 768px) {
  .container {
    width: 100%;
  }
}

/* Medium devices (tablet) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 750px;
  }
}

/* Large devices (laptops) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 970px;
  }
}

/* Extra Large devices (desktops) */
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
}
@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }

  .section-desc {
    font-size: 25px;
  }
}