/* ============================================================
   Tamyuz Academy — static recreation of tamyuzacademy.com
   Palette + type extracted from the original WordPress theme:
   --dtr-primary:#3d3ca5  --dtr-secondary:#f2911e
   accent:#d0566b  section bg:#f3f1f4  fonts: Cairo / Manrope
   ============================================================ */

:root {
  --primary: #3d3ca5;
  --secondary: #f2911e;
  --accent: #d0566b;
  --light: #f3f1f4;
  --light-translucent: rgba(243, 241, 244, 0.42);
  --dark: #262628;
  --text: #7a7a7a;
  --text-dark: #54595f;
  --white: #ffffff;
  --font-main: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-num: 'Manrope', 'Cairo', sans-serif;
  --header-h: 90px;
  --shadow-sm: 0 4px 14px rgba(38, 38, 40, 0.08);
  --shadow-md: 0 12px 34px rgba(38, 38, 40, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  direction: rtl;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .3s ease; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 { color: var(--dark); font-weight: 700; line-height: 1.4; }

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  border: 1px solid var(--secondary);
  background: var(--secondary);
  color: var(--white);
  cursor: pointer;
  transition: all .3s ease;
}
.btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(38, 38, 40, 0.06);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.logo img { width: 100px; transition: width .3s ease; }
.site-header.scrolled .logo img { width: 78px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-weight: 700;
  font-size: 16px;
  color: var(--dark);
  position: relative;
  padding-block: 6px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width .3s ease;
}
.main-nav a:hover { color: var(--secondary); }
.main-nav a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--primary);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 100px) 10px 90px;
  background: var(--white);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text { position: relative; padding-inline-end: 40px; }

.hero-kicker {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.hero-headline {
  font-size: 64px;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.15;
  min-height: 1.2em;
  margin-block: 4px 14px;
}
.hero-headline .word {
  display: inline-block;
  animation: wordIn .5s ease both;
}
@keyframes wordIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-desc {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 2;
  margin-bottom: 28px;
}

.hero-social {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, background .3s ease;
}
.hero-social a svg { width: 20px; height: 20px; fill: var(--secondary); transition: fill .3s ease; }
.hero-social a:hover { transform: translateY(-4px); background: var(--secondary); }
.hero-social a:hover svg { fill: var(--white); }

.hero-image img { width: 100%; }

/* rotating decorative shapes */
.rotating-img {
  position: absolute;
  z-index: -1;
  animation: rotating 20s linear infinite;
  pointer-events: none;
}
.hero .rotating-img {
  bottom: 4vw;
  inset-inline-end: auto;
  left: -9vh;
  width: 180px;
}
@keyframes rotating {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------------- Services ---------------- */
.services {
  background: var(--light);
  padding: 80px 0 90px;
}
.services-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 320px;
  background: var(--white);
  padding: 30px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(38, 38, 40, 0.04);
  transition: box-shadow .4s ease, transform .4s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* colour flood on hover (accent), like the original ::before */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  transition: background-color .8s ease;
  z-index: 2;
}
.service-card:hover::before { background: var(--accent); }

.service-icon-box {
  position: relative;
  width: 60px;
  height: 60px;
  background: var(--secondary);
  z-index: 3;
  transition: transform .4s linear;
}
.service-card:hover .service-icon-box { transform: rotate(45deg); }
.service-icon-box svg {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  height: 30px;
  fill: var(--white);
  transform: translate(-50%, -50%);
  transition: transform .4s linear;
}
.service-card:hover .service-icon-box svg { transform: translate(-50%, -50%) rotate(-45deg); }

.service-title {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 30px;
  font-size: 20px;
  z-index: 3;
  opacity: 1;
  transition: all .4s linear;
}
.service-card:hover .service-title { bottom: 20px; opacity: 0; }

.service-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 100%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: translateY(100%);
  transition: transform 1s;
  z-index: 4;
  color: var(--white);
}
.service-card:hover .service-content { transform: translateY(0); transition: transform .6s; }
.service-content h4 { color: var(--white); font-size: 20px; }
.service-content p { margin-top: 20px; color: var(--white); font-weight: 600; }

/* ---------------- Counters ---------------- */
.stats {
  background: var(--white);
  padding: 65px 0;
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  justify-items: center;
}
.counter {
  position: relative;
  min-width: 220px;
  text-align: center;
}
.counter-number {
  font-family: var(--font-num);
  font-size: 72px;
  line-height: 1;
  font-weight: 700;
  color: var(--secondary);
}
.counter-heading {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 14px;
  background: var(--light-translucent);
  backdrop-filter: blur(2px);
  font-family: var(--font-num), var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}

/* ---------------- Contact ---------------- */
.contact {
  background: var(--light);
  padding: 90px 10px;
}
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.contact-info { padding: 10px 10px 10px 40px; }
.contact-title { font-size: 40px; margin-bottom: 40px; }

.contact-list li + li { margin-top: 28px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  direction: ltr;
}
.contact-list a .txt { direction: ltr; unicode-bidi: embed; }
.contact-list a svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
  flex-shrink: 0;
  transition: fill .3s ease;
}
.contact-list a:hover { color: var(--accent); }
.contact-list a:hover svg { fill: var(--accent); }

.contact-form-col { position: relative; }
.contact-form-col .rotating-img {
  top: -3vw;
  left: -7vh;
  width: 126px;
  z-index: 1;
}
.contact-form-card {
  position: relative;
  z-index: 2;
  background: var(--white);
  padding: 50px;
  margin: 10px;
  box-shadow: var(--shadow-sm);
}
.contact-form label {
  display: block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
  font-size: 15px;
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 15px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--dark);
  background: var(--light);
  border: 1px solid transparent;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
}
.contact-form .btn { margin-top: 10px; }
.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--accent);
  color: var(--white);
  padding: 12px 10px;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer p { color: var(--white); font-size: 15px; }
.site-footer a { color: var(--white); font-size: 15px; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* ---------------- Scroll to top ---------------- */
.to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .35s ease;
  z-index: 900;
  cursor: pointer;
  border: 0;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 18px; height: 18px; fill: currentColor; }
.to-top:hover { background: var(--primary); }

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .15s; }
.reveal-delay-2 { transition-delay: .3s; }
.reveal-delay-3 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rotating-img, .hero-headline .word { animation: none; }
}

/* ---------------- Privacy page ---------------- */
.page-content {
  padding: calc(var(--header-h) + 60px) 10px 80px;
  background: var(--white);
}
.page-content h1 {
  font-size: 38px;
  margin-bottom: 30px;
  color: var(--primary);
}
.page-content h2 {
  font-size: 24px;
  margin: 36px 0 12px;
  color: var(--dark);
}
.page-content h3 { font-size: 18px; margin: 20px 0 6px; color: var(--dark); }
.page-content p, .page-content li { color: var(--text-dark); font-size: 16px; }
.page-content ul { padding-inline-start: 22px; list-style: disc; }
.page-content a { color: var(--secondary); font-weight: 700; }
.page-content a:hover { color: var(--accent); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 50px); }
  .hero .container { grid-template-columns: 1fr; }
  .hero-text { padding-inline-end: 0; }
  .contact .container { grid-template-columns: 1fr; }
  .contact-info { padding: 10px; }
  .contact-form-card { margin: 40px 50px 10px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-number { font-size: 64px; }
}

@media (max-width: 767px) {
  :root { --header-h: 74px; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px 24px 22px;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
    color: #e27e88;
  }
  .main-nav li:last-child a { border-bottom: 0; }

  .hero-headline { font-size: 44px; }
  .hero .rotating-img { display: none; }
  .contact-form-col .rotating-img { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr; gap: 32px; }
  .counter-number { font-size: 56px; }

  .contact-form-card { margin: 10px; padding: 45px 20px 50px; }
  .site-footer .container { justify-content: center; text-align: center; }
}

/* ---------- Honeypot field (hidden from humans, visible to bots) ---------- */
.hp-field {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ---------- 404 page ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 20px 80px;
}
.error-page .error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--secondary, #e27e88);
  line-height: 1;
  margin-bottom: 10px;
}
.error-page h1 {
  font-size: 26px;
  margin-bottom: 12px;
}
.error-page p {
  font-size: 16px;
}
.error-page .btn {
  margin-top: 22px;
  padding: 12px 26px;
  font-size: 15px;
}
