@import url("../fonts/fonts.css");

/* ===================================================================
   Al Tabtabai Hajj & Umrah — standalone template stylesheet
   No CDN. Fonts + grid utilities are all local.
   =================================================================== */

:root {
  --att-green: #0b3d2e;
  --att-green-dark: #07241b;
  --att-gold: #c6a15b;
  --att-cream: #f6f3ea;
  --att-ink: #1c2420;
  --font-body: 'Tajawal', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-head: 'Amiri', 'Tajawal', serif;
  --font-serif: 'Cormorant Garamond', 'Amiri', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--att-ink);
  background: var(--att-cream);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; }
::selection { background: var(--att-gold); color: var(--att-green); }

/* -------------------------------------------------------------------
   Layout: Bootstrap 5 grid subset (container / row / col / gutters)
   ------------------------------------------------------------------- */
.container { width: 100%; padding-right: 12px; padding-left: 12px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }

.row {
  --gx: 1.5rem; --gy: 0;
  display: flex; flex-wrap: wrap;
  margin-top: calc(-1 * var(--gy));
  margin-right: calc(-0.5 * var(--gx));
  margin-left: calc(-0.5 * var(--gx));
}
.row > * {
  flex-shrink: 0; width: 100%; max-width: 100%;
  padding-right: calc(0.5 * var(--gx));
  padding-left: calc(0.5 * var(--gx));
  margin-top: var(--gy);
}
.g-3 { --gx: 1rem;  --gy: 1rem; }
.g-4 { --gx: 1.5rem; --gy: 1.5rem; }
.g-5 { --gx: 3rem;  --gy: 3rem; }

.col      { flex: 1 0 0%; }
.col-6    { flex: 0 0 auto; width: 50%; }
.col-12   { flex: 0 0 auto; width: 100%; }
@media (min-width: 768px) {
  .col-md-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-md-6 { flex: 0 0 auto; width: 50%; }
}
@media (min-width: 992px) {
  .col-lg-2 { flex: 0 0 auto; width: 16.6667%; }
  .col-lg-3 { flex: 0 0 auto; width: 25%; }
  .col-lg-4 { flex: 0 0 auto; width: 33.3333%; }
  .col-lg-5 { flex: 0 0 auto; width: 41.6667%; }
  .col-lg-6 { flex: 0 0 auto; width: 50%; }
  .col-lg-7 { flex: 0 0 auto; width: 58.3333%; }
  .col-lg-8 { flex: 0 0 auto; width: 66.6667%; }
}

/* -------------------------------------------------------------------
   Utilities (flex / display)
   ------------------------------------------------------------------- */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-flex { display: inline-flex; }
.d-none { display: none; }
.flex-wrap { flex-wrap: wrap; }
.flex-column { flex-direction: column; }
.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.align-items-baseline { align-items: baseline; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

@media (min-width: 768px) {
  .d-md-flex { display: flex; }
}
@media (min-width: 992px) {
  .d-lg-none  { display: none; }
  .d-lg-flex  { display: flex; }
  .d-lg-block { display: block; }
}

/* -------------------------------------------------------------------
   Component classes (ported from every page's <helmet><style>)
   ------------------------------------------------------------------- */
@keyframes slowfade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.att-fade { animation: slowfade .8s ease both; }

.att-link { transition: color .2s ease, opacity .2s ease; }
.att-link:hover { color: var(--att-gold) !important; }

.att-card {
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.att-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px -24px rgba(11,61,46,.5);
  border-color: var(--att-gold) !important;
}

.att-btn { transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.att-btn:hover { transform: translateY(-2px); }

/* Direction-specific bits (--dx sign, direction) live in style-rtl.css /
   style-ltr.css — each page links exactly one of them. */
.att-tile { --dx: 6px; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease; }
.att-tile:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -26px rgba(11,61,46,.55); }
.att-tile:hover .att-tilearrow { transform: translateX(var(--dx, 6px)); opacity: 1; }

.att-in { transition: border-color .2s ease, box-shadow .2s ease; font-family: 'Tajawal', sans-serif; }
.att-in:focus { outline: none; border-color: var(--att-gold) !important; box-shadow: 0 0 0 3px rgba(198,161,91,.18) !important; }

.gal { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.gal:hover { transform: translateY(-5px); box-shadow: 0 26px 46px -26px rgba(11,61,46,.55); }
.gal img { transition: transform .5s ease; }
.gal:hover img { transform: scale(1.06); }

/* Header */
/* The panel hangs 6px clear of the button. That gap belongs to no element, so
   the pointer crossing it leaves .hdr-drop and the panel closes underneath it.
   This bridges the gap without showing anything. */
.hdr-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.hdr-link { transition: color .2s ease, background .2s ease; }
.hdr-link:hover { color: var(--att-green) !important; background: #efe9d8 !important; }
.hdr-btn { transition: transform .2s ease, box-shadow .25s ease; }
.hdr-btn:hover { transform: translateY(-2px); }

/* Footer */
.ft-link { transition: color .2s ease; }
.ft-link:hover { color: var(--att-gold) !important; }
