/* =====================================================
  Global Theme Variables | Tetradic Color Palette
===================================================== */
:root {
  /* Main Brand */
  --clr-primary-1: #1e3a8a; /* Navy Blue */
  --clr-primary-2: #0ea5e9; /* Sky Blue */
  --clr-primary-3: #f97316; /* Vivid Orange */
  --clr-primary-4: #10b981; /* Emerald */

  /* Neutrals */
  --clr-dark: #0f172a;
  --clr-mid: #334155;
  --clr-light: #e9ecf1;
  --clr-white: #ffffff;

  /* Shadows */
  --shadow-elevated: 8px 8px 16px rgba(149, 157, 165, 0.3),
    -8px -8px 16px rgba(255, 255, 255, 0.8);

  /* Typography */
  --ff-heading: "Poppins", "Cairo", sans-serif;
  --ff-body: "Work Sans", "Tajawal", sans-serif;

  /* Borders / Radius */
  --radius-lg: 1rem;
  --radius-md: 0.75rem;
  --transition: all 0.35s ease;
}

/* =====================================================
  Base Reset & Typography
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-light);
  color: var(--clr-dark);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75em;
  color: var(--clr-dark);
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

p {
  margin-bottom: 1.25em;
}

section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* =====================================================
  Utility Classes
===================================================== */
.container {
  width: 90%;
  max-width: 1280px;
  margin-inline: auto;
}
.text-center {
  text-align: center;
}
.neumorphic {
  background: var(--clr-light);
  box-shadow: var(--shadow-elevated);
}
.shadow-inset {
  box-shadow: inset 4px 4px 8px rgba(0, 0, 0, 0.05);
}
.is-two-thirds {
  width: 66.666%;
}

/* Smooth Fade Up Animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-animate] {
  opacity: 0;
  transform: translateY(40px);
}
[data-animate].in-view {
  animation: fadeUp 0.8s var(--transition) forwards;
}

/* =====================================================
  Buttons
===================================================== */
.btn,
button,
input[type="submit"] {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--ff-heading);
  cursor: pointer;
  transition: var(--transition);
  background: var(--clr-primary-2);
  color: var(--clr-white);
  box-shadow: 0 6px 12px rgba(14, 165, 233, 0.25);
}

.btn:hover,
input[type="submit"]:hover {
  background: var(--clr-primary-1);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(14, 165, 233, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-primary-1);
  border: 2px solid var(--clr-primary-1);
}
.btn--outline:hover {
  background: var(--clr-primary-1);
  color: var(--clr-white);
}

/* “قراءة المزيد” Links */
.read-more {
  font-weight: 600;
  color: var(--clr-primary-3);
  position: relative;
  transition: var(--transition);
}
.read-more::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary-3);
  transition: var(--transition);
}
.read-more:hover {
  color: var(--clr-primary-1);
}
.read-more:hover::after {
  width: 100%;
}

/* =====================================================
  Header & Navigation
===================================================== */
header {
  backdrop-filter: blur(10px);
  background: rgba(233, 236, 241, 0.8);
}
header a {
  font-weight: 600;
  transition: color 0.25s;
}
header a:hover {
  color: var(--clr-primary-2);
}

#mobileMenu a {
  display: block;
  padding: 0.75rem 0;
}

/* =====================================================
  Hero Section
===================================================== */
#hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  color: var(--clr-white);
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  z-index: 0;
}
#hero > * {
  position: relative;
  z-index: 1;
}

/* Parallax Background */
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

.container {
  padding-inline: 14px;
}

.about-page h1,
.about-page h2 {
  font-size: 30px;
  margin-bottom: 30px;
}

/* =====================================================
  Card Layout
===================================================== */
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--clr-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-6px);
}

.card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}

.card-content {
  flex: 1 1 auto;
}

/* =====================================================
  Success Page
===================================================== */
body.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-light);
}
.success-message {
  text-align: center;
  padding: 4rem;
  border-radius: var(--radius-lg);
  background: var(--clr-white);
  box-shadow: var(--shadow-elevated);
}

/* =====================================================
  Privacy & Terms Padding
===================================================== */
body.legal-page main {
  padding-top: 100px;
}

/* =====================================================
  Footer
===================================================== */
footer {
  text-align: center;
  background: var(--clr-light);
}
footer nav a {
  font-weight: 600;
  color: var(--clr-mid);
  margin: 0 0.75rem;
  transition: color 0.25s;
}
footer nav a:hover {
  color: var(--clr-primary-2);
}

footer .social a {
  font-weight: 600;
  color: var(--clr-primary-3);
  margin: 0 0.5rem;
  transition: color 0.25s;
}
footer .social a:hover {
  color: var(--clr-primary-1);
}

/* =====================================================
  Cookie Popup
===================================================== */
#cookiePopup {
  font-family: var(--ff-body);
}
#cookiePopup button {
  background: var(--clr-primary-4);
}
#cookiePopup button:hover {
  background: var(--clr-primary-3);
}

/* =====================================================
  Parallax Effect on Scroll
===================================================== */
[data-parallax] {
  position: relative;
  will-change: transform;
  transition: transform 0.2s linear;
}

/* Simple parallax script expectation:
   element.style.transform = `translateY(${scrollPosition * speed}px)`; */

/* =====================================================
  Miscellaneous
===================================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.section-bg-image {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}
.section-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

/* Hover-Scale for images in cards */
.card-image img {
  transition: transform 0.4s;
}
.card:hover .card-image img {
  transform: scale(1.05);
}

/* Awards & Testimonials icon placeholder */
.icon-award {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--clr-primary-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-white);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

/* =====================================================
  Responsive Helpers
===================================================== */
@media (max-width: 1024px) {
  .is-two-thirds {
    width: 100%;
  }
  h1 {
    font-size: 2.5rem;
  }
}
