
/*
 Theme Name: ASAN Luxury – Astra Child (Perfect Match)
 Template: astra
 Version: 1.1.0
 Text Domain: asan-luxury
*/
/* === Brand Palette === */
:root{
  --navy-deep:#071321;
  --navy:#0A1E31;
  --navy-900:#0A1A2B;
  --gold-1:#D4AF37;
  --gold-2:#F0D38A;
  --text:#F3F6FA;
  --muted:#B8C4D0;
  --shadow-gold: 0 14px 36px rgba(212,175,55,.28);
}
/* === Page Background === */
html,body{
  background:
    radial-gradient(1200px 600px at 80% -120px, rgba(240,211,138,.08), transparent 60%),
    radial-gradient(900px 500px at 10% 120%, rgba(212,175,55,.06), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color:var(--text);
  font-family: Tahoma, "Cairo", Arial, sans-serif;
  background-attachment: fixed;
}
.container{max-width:1200px;margin:0 auto;padding:0 16px}

/* === Header (menu center, brand on right, small emblem) === */
.asan-header{position:fixed;top:0;left:0;right:0;z-index:50;transition:background .3s, box-shadow .3s}
.asan-header.is-scrolled{background:linear-gradient(180deg, rgba(7,19,33,.96), rgba(10,30,49,.92));box-shadow:0 10px 26px rgba(0,0,0,.28)}
.asan-header .inner{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 0}
.asan-left{min-width:120px}
.asan-center{flex:1;display:flex;justify-content:center}
.asan-right{display:flex;align-items:center;gap:18px}
.asan-nav .asan-menu{display:flex;gap:28px;list-style:none;margin:0;padding:0;align-items:center;justify-content:center}
.asan-nav .asan-menu>li>a{display:inline-block;padding:8px 6px;border-bottom:2px solid transparent;color:#E5EAF0;opacity:.95;font-size:18px}
.asan-nav .asan-menu>li>a:hover{opacity:1;border-color:var(--gold-1)}
.asan-cta{background:linear-gradient(135deg,var(--gold-1),var(--gold-2));color:#0A1424;padding:12px 22px;border-radius:14px;font-weight:800;box-shadow:var(--shadow-gold)}
.asan-brand-inline{display:flex;align-items:center;gap:12px}
.asan-brand-text{font-weight:800;letter-spacing:.6px;font-size:18px;background:linear-gradient(90deg,var(--gold-1),var(--gold-2));-webkit-background-clip:text;background-clip:text;color:transparent}
/* exact top-right emblem size */
.asan-brand-icon img{height:28px;width:auto;display:block;filter:drop-shadow(0 2px 8px rgba(0,0,0,.35))}

/* === Hero (perfect match) === */
.asan-hero{position:relative;padding-top:98px;min-height:72vh}
/* layered overlay to match clarity and right-side focus */
.asan-hero.bg-has-image::before{
  content:'';position:absolute;inset:0;z-index:-2;
  background: var(--hero-image) !important;
  background-size:cover, cover, cover;
  background-position: 80% 48%, 80% 48%, 80% 48%;
 background-size: cover !important; background-position: 88% 50% !important; background-attachment: scroll !important; }
.asan-hero .grid{display:grid;grid-template-columns: 1fr !important;gap:36px;align-items:center}
/* Left logo card */
.hero-logo-card{
  background:rgba(9,20,34,.85);
  border:1px solid rgba(255,255,255,.08);
  border-radius:26px;
  padding:28px;
  box-shadow:0 30px 60px rgba(0,0,0,.45);
  max-width:340px;
}
.hero-logo-card img{max-height:210px;width:auto;height:auto;display:block}

/* Right content */
.badge{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:rgba(240,211,138,.15);border:1px solid rgba(240,211,138,.35);color:var(--gold-2);font-weight:700;margin-bottom:12px}
h1.hero-title{font-size:44px;line-height:1.25;margin:0 0 12px;color:#EFE7D0;text-shadow:0 2px 10px rgba(0,0,0,.35)}
.lead{color:#C9D3DF;margin-bottom:22px;text-shadow:0 1px 6px rgba(0,0,0,.22)}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.btn-primary{background:linear-gradient(135deg,var(--gold-1),var(--gold-2));color:#0b1630;padding:12px 22px;border-radius:14px;font-weight:800;box-shadow:var(--shadow-gold)}
.btn-outline{border:1px solid rgba(255,255,255,.35);padding:12px 18px;border-radius:14px;color:#E8EEF6}
.card{background:rgba(10,23,38,.45);border:1px solid rgba(255,255,255,.09);border-radius:22px;padding:18px;backdrop-filter:blur(8px);box-shadow:0 24px 60px rgba(0,0,0,.35)}
.row{display:flex;gap:12px;flex-wrap:wrap}
.input{flex:1;min-width:140px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:var(--text);padding:12px 14px;border-radius:12px}

/* === Plugin area + footer === */
.asan-plugin-anchor{max-width:1200px;margin:0 auto;padding:60px 16px 80px}
.asan-plugin-anchor h2{font-size:26px;margin:0 0 12px;color:#EDEDEF}
.asan-footer{background:linear-gradient(180deg,var(--navy-900),#061222);border-top:1px solid rgba(255,255,255,.08)}
.asan-footer .cols{max-width:1200px;margin:0 auto;padding:40px 16px;display:grid;grid-template-columns:1.2fr 1fr 1fr 1fr;gap:28px}
.asan-footer h4{margin:0 0 10px;background:linear-gradient(90deg,var(--gold-1),var(--gold-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.asan-footer a{color:#AFC0D0}.asan-footer a:hover{color:#EAF1F9}
.asan-footer .bottom{border-top:1px solid rgba(255,255,255,.08);padding:16px 0;color:#93a4b5;font-size:14px;text-align:center}

/* === Astra containers transparent === */
.site-main, .ast-container, .content-area, .entry-content, .ast-plain-container,
.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single,
.ast-page-builder-template .site-content, .ast-page-builder-template .site-main > .ast-container {
  background: transparent !important; box-shadow:none !important;
}
.site-title, .site-description, .site-branding {display:none !important}

/* === Responsive === */
@media (max-width:992px){ .asan-hero{min-height:60vh} .asan-hero .grid{grid-template-columns: 1fr !important;margin-bottom:14px} }
@media (max-width:640px){ .asan-nav{display:none} h1.hero-title{font-size:34px} .asan-footer .cols{grid-template-columns:1fr} }


/* RTL alignment for hero content */
.rtl .asan-hero .hero-content{direction:rtl;text-align:right}
.rtl .asan-hero .actions{justify-content:flex-start;flex-direction:row-reverse}


/* ==== RTL menu alignment fixes ==== */
.rtl .asan-nav .asan-menu{ 
  direction: rtl;
  justify-content: flex-start !important; /* push items to the right */
  gap: 28px;
}
.rtl .asan-nav .asan-menu > li { float: right; }
.rtl .asan-nav .asan-menu > li > a { text-align: right; }

/* Astra fallback (in case Astra header appears) */
.rtl .main-header-menu, .rtl .ast-desktop-menu .main-header-menu{
  direction: rtl;
  justify-content: flex-start !important;
}
.rtl .main-header-menu > li{ float:right; }
.rtl .main-header-menu > li > a{ text-align:right; }

/* Hide accidental raw script text lines if any slipped into layout (visual fail-safe) */
header.site-header > .script-leak, .asan-header > .script-leak{ display:none !important; }

/* Ensure site branding hidden */
.site-title, .site-description, .site-branding{ display:none !important; }

/* ==== Astra header RTL hard alignment (Arabic) ==== */
html[lang="ar"] .main-header-bar .ast-main-header-wrap .ast-builder-menu,
.rtl .ast-desktop-menu .main-header-menu,
.rtl .ast-desktop .ast-main-header-bar-alignment .main-header-menu,
.rtl .main-header-menu,
html[dir="rtl"] .main-header-menu {
  direction: rtl !important;
  justify-content: flex-end !important;
}
html[lang="ar"] .main-header-menu > li,
.rtl .main-header-menu > li { float: right !important; }
html[lang="ar"] .main-header-menu > li > a,
.rtl .main-header-menu > li > a { text-align: right !important; }

/* ===== Sticky header always visible ===== */
.asan-header{position:fixed;top:0;left:0;right:0;z-index:9999;background:linear-gradient(180deg, rgba(7,19,33,.96), rgba(10,30,49,.92));box-shadow:0 4px 16px rgba(0,0,0,.3)}
body{padding-top:110px}

/* ===== Hero buttons alignment (RTL/LTR aware) ===== */
.asan-hero .actions{display:flex;gap:12px;flex-wrap:wrap}
html[dir="rtl"] .asan-hero .actions{justify-content:flex-end;text-align:right}
html[dir="ltr"] .asan-hero .actions{justify-content:flex-start;text-align:left}
.asan-hero .actions a{display:inline-block}


/* === Enlarge logo after HTML reposition === */
.asan-brand-icon img, .custom-logo, .site-logo img { max-height: 80px !important; height: auto; width: auto; }


/* === Logo alignment & size tweak === */
.asan-brand-icon img, .custom-logo, .site-logo img {
    max-height: 95px !important; /* enlarged slightly */
    height: auto !important;
    width: auto !important;
}
.asan-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}


/* === Logo emblem: bigger and on the right next to name (RTL-aware) === */
.asan-right .asan-brand-inline{display:flex;align-items:center;gap:10px}
.asan-brand-icon{display:block}
.asan-brand-icon img{max-height:40px !important;height:auto;width:auto}
/* In Arabic (RTL), place emblem on the far right then the name */
html[dir="rtl"] .asan-right .asan-brand-inline{flex-direction:row-reverse}


/* Keep logo + name paired on the right */
.asan-right .asan-brand-inline{display:flex;align-items:center;gap:10px}
html[dir="rtl"] .asan-right .asan-brand-inline{flex-direction:row-reverse}
.asan-brand-icon img{max-height:40px;height:auto;width:auto}
.asan-brand-text{font-weight:800;letter-spacing:.04em}
