/* ============================================================================
   A'THURAYYA LANDING PAGE  —  redesign (Rubik, warm cream + gold, RTL-first)
   Ported from the approved design component. Inline styles live in the Blade
   partials; this file holds resets, keyframes, hover micro-interactions,
   reveal-on-scroll, and the responsive grid overrides.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', sans-serif;
  background: #F7F4EE;
  color: #1C1A17;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #C4A962; color: #fff; }
img { max-width: 100%; display: block; }

/* ---- keyframes -------------------------------------------------------- */
@keyframes ath-mq { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes ath-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ath-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196,169,98,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(196,169,98,0); }
  100% { box-shadow: 0 0 0 0 rgba(196,169,98,0); }
}
.ath-float { animation: ath-float 5s ease-in-out infinite; }
.ath-pulse { animation: ath-pulse 2.6s ease-out infinite; }

/* ---- hover micro-interactions ----------------------------------------- */
.ath-svc-card { transition: transform .4s cubic-bezier(.16,.84,.44,1), background .35s ease; }
.ath-svc-card:hover { transform: translateY(-6px); }
.ath-svc-ic { transition: background .35s ease, color .35s ease, transform .45s cubic-bezier(.16,.84,.44,1); }
.ath-svc-card:hover .ath-svc-ic { background: #C4A962; color: #fff !important; transform: rotate(-8deg) scale(1.06); }
.ath-course-card { transition: transform .4s cubic-bezier(.16,.84,.44,1), box-shadow .4s ease; }
.ath-course-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px -26px rgba(28,26,23,.45); }
.ath-plan-feat { transition: transform .4s cubic-bezier(.16,.84,.44,1), box-shadow .4s ease; }
.ath-plan-feat:hover { transform: translateY(-8px); }
.ath-tile-cap { transition: transform .5s cubic-bezier(.16,.84,.44,1); }
.ath-tile:hover .ath-tile-cap { transform: translateY(-6px); }

.ath-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; border: 1px solid rgba(28,26,23,.18);
  border-radius: 50%; background: transparent; cursor: pointer; padding: 0;
}
.ath-burger span { display: block; width: 18px; height: 2px; background: #1C1A17; border-radius: 2px; transition: transform .3s ease, opacity .25s ease; }
.ath-menu.ath-open { visibility: visible !important; opacity: 1 !important; }
.ath-menu.ath-open .ath-menu-panel { transform: translateX(0) !important; }
.ath-menu-link { transition: color .25s ease, padding .25s ease; }
.ath-menu-link:hover { color: #A6884A !important; padding-inline-start: 6px; }

.ath-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.16,.84,.44,1), transform .9s cubic-bezier(.16,.84,.44,1); }
.ath-reveal.ath-in { opacity: 1; transform: none; }

.ath-uline { position: relative; text-decoration: none; }
.ath-uline::after { content: ""; position: absolute; right: 0; bottom: -2px; height: 1px; width: 0; background: currentColor; transition: width .35s ease; }
.ath-uline:hover::after { width: 100%; }

.ath-jcard { transition: transform .5s cubic-bezier(.16,.84,.44,1); }
.ath-jcard:hover { transform: translateY(-7px); }
.ath-jcard .ath-img, .ath-tile .ath-img { transition: transform .8s cubic-bezier(.16,.84,.44,1); }
.ath-jcard:hover .ath-img, .ath-tile:hover .ath-img { transform: scale(1.05); }

.ath-arrowbtn svg { transition: transform .35s ease; }
.ath-arrowbtn:hover svg { transform: translateX(-5px); }

.ath-langbtn {
  display: inline-flex; align-items: center; gap: 6px; font-family: 'Rubik';
  font-size: 13px; font-weight: 600; color: #1C1A17; background: transparent;
  border: 1px solid rgba(28,26,23,.2); padding: 9px 15px; border-radius: 100px;
  cursor: pointer; text-decoration: none;
  transition: border-color .3s ease, background .3s ease, color .3s ease;
}
.ath-langbtn:hover { border-color: #1C1A17; background: #1C1A17; color: #fff; }

/* button hover states (replaced the design's style-hover attributes) */
.ath-cta { transition: background .3s ease; }
.ath-cta:hover { background: #C4A962 !important; }
.ath-cta-m:hover { background: #A6884A !important; }
.ath-pbtn-o { transition: background .3s ease, color .3s ease; }
.ath-pbtn-o:hover { background: #1C1A17 !important; color: #fff !important; }
.ath-pbtn-g { transition: background .3s ease; }
.ath-pbtn-g:hover { background: #D8C078 !important; }
.ath-btn-primary { transition: background .3s ease; }
.ath-btn-primary:hover { background: #A6884A !important; }
.ath-btn-ghost { transition: border-color .3s ease, background .3s ease, color .3s ease; }
.ath-btn-ghost:hover { border-color: #1C1A17; background: #1C1A17; color: #fff; }
.ath-outline-btn { transition: background .3s ease, color .3s ease; }
.ath-outline-btn:hover { background: #C4A962; color: #fff; }
.ath-store { transition: background .3s ease; }
.ath-store:hover { background: #3A352E !important; }
.ath-social { transition: background .3s, color .3s; }
.ath-social:hover { background: #C4A962; color: #161310; }
.ath-form input, .ath-form textarea { transition: border-color .3s ease; }
.ath-form input:focus, .ath-form textarea:focus { border-bottom-color: #C4A962 !important; }

/* image fill helper for slots that hold real photos */
.ath-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ath-img-empty {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(196,169,98,.12), rgba(28,26,23,.05)); color: #A6884A;
}
#gallery .ath-img-empty { background: linear-gradient(135deg, #2A2620, #1C1A17); color: rgba(255,255,255,.92); }

/* ---- LTR (English) overrides ----------------------------------------- */
[dir="ltr"] .ath-uline::after { right: auto; left: 0; }
[dir="ltr"] .ath-arrowbtn svg { transform: scaleX(-1); }
[dir="ltr"] .ath-arrowbtn:hover svg { transform: scaleX(-1) translateX(-5px); }
[dir="ltr"] .ath-faq-q { text-align: left !important; }
[dir="ltr"] .ath-form input, [dir="ltr"] .ath-form textarea { text-align: left !important; }
[dir="ltr"] .ath-stat-row > div { padding-left: 28px; padding-right: 0 !important; }
[dir="ltr"] .ath-stat-row > div + div { border-right: none !important; border-left: 1px solid rgba(28,26,23,.14); }

/* ---- responsive ------------------------------------------------------- */
@media (max-width: 980px) {
  .ath-hero-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .ath-hero-media { order: -1 !important; max-width: 440px; }
  .ath-grid-2 { grid-template-columns: 1fr !important; gap: 44px !important; }
  .ath-grid-4 { grid-template-columns: 1fr 1fr !important; }
  .ath-grid-3 { grid-template-columns: 1fr 1fr !important; }
  .ath-plans { grid-template-columns: 1fr !important; }
  .ath-cities { grid-template-columns: 1fr 1fr !important; grid-auto-rows: 200px !important; }
  .ath-cities .ath-city-lg { grid-row: span 1 !important; grid-column: span 2 !important; }
  .ath-gallery { grid-template-columns: 1fr 1fr !important; }
  .ath-contact-grid { grid-template-columns: 1fr !important; }
  .ath-app-grid { grid-template-columns: 1fr !important; gap: 48px !important; }
  .ath-footer-grid { grid-template-columns: 1fr 1fr !important; gap: 40px !important; }
  .ath-mhead { flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; }
  .ath-sec-pad { padding: 90px 32px !important; }
}
@media (max-width: 600px) {
  .ath-nav-links { display: none !important; }
  .ath-burger { display: flex !important; }
  .ath-cta { display: none !important; }
  .ath-grid-4 { grid-template-columns: 1fr !important; }
  .ath-grid-3 { grid-template-columns: 1fr !important; }
  .ath-gallery { grid-template-columns: 1fr !important; grid-auto-rows: 200px !important; }
  .ath-gallery .ath-g-wide { grid-column: span 1 !important; }
  .ath-gallery .ath-g-tall { grid-row: span 1 !important; grid-column: span 1 !important; }
  .ath-cities { grid-template-columns: 1fr !important; }
  .ath-cities .ath-city-lg { grid-column: span 1 !important; }
  .ath-footer-grid { grid-template-columns: 1fr !important; }
  .ath-stat-row { flex-wrap: wrap !important; }
  .ath-sec-pad { padding: 72px 22px !important; }
  .ath-nav-pad { padding: 0 22px !important; }
  .ath-hero-pad { padding: 120px 22px 0 !important; }
  .ath-plan-feat { padding: 38px 26px !important; }
  .ath-quote-card { left: 14px !important; right: auto !important; bottom: 14px !important; }
  .ath-grid-4 { border-right: none !important; }
  .ath-grid-4 > div { border-left: none !important; border-top: 1px solid rgba(28,26,23,.1) !important; }
  .ath-contact-grid > div:first-child { padding: 48px 28px !important; }
  .ath-contact-grid > div:last-child { padding: 48px 28px !important; }
  .ath-form-row { grid-template-columns: 1fr !important; }
}
