/* ACOST Unified Visual System - applies to every public page */
:root{
  --acost-blue:#0756A5;
  --acost-blue-dark:#06366F;
  --acost-blue-deep:#041F46;
  --acost-blue-soft:#EAF4FF;
  --acost-yellow:#F2C300;
  --acost-green:#5A9E3B;
  --acost-red:#C62828;
  --acost-text:#17243A;
  --acost-muted:#64748B;
  --acost-line:#DCE7F2;
  --acost-bg:#F5F8FC;
}

html,body{margin:0!important;padding:0!important;}
body{
  font-family:'Noto Kufi Arabic',Tahoma,Arial,sans-serif!important;
  color:var(--acost-text)!important;
  background:var(--acost-bg)!important;
  line-height:1.9!important;
}
html[lang="en"] body,
html[lang="en"] button,
html[lang="en"] input,
html[lang="en"] textarea,
html[lang="en"] select{
  font-family:'Inter',Arial,sans-serif!important;
}

/* One typography hierarchy everywhere */
h1,h2,h3,h4,h5,h6{
  font-family:inherit!important;
  color:var(--acost-blue-deep)!important;
  line-height:1.45!important;
  letter-spacing:0!important;
}
h1{font-weight:800!important;}
h2{font-weight:800!important;}
h3,h4{font-weight:700!important;}
p,li,td,th,label,span{font-family:inherit!important;}
p,li{line-height:2!important;}
a{font-family:inherit!important;}
button,input,textarea,select{font-family:inherit!important;}

/* Standard page background / containers */
.bg-gray-50,.bg-slate-50{background-color:var(--acost-bg)!important;}
.bg-white{background-color:#fff!important;}
.bg-slate-900,.bg-gray-900{background-color:var(--acost-blue-deep)!important;}
.bg-blue-900,.bg-blue-800,.bg-blue-950{background-color:var(--acost-blue-dark)!important;}
.bg-blue-50{background-color:var(--acost-blue-soft)!important;}
.bg-yellow-500{background-color:var(--acost-yellow)!important;}
.bg-green-50{background-color:#F0F8EC!important;}
.bg-red-50{background-color:#FFF3F3!important;}

/* Standard text palette */
.text-gray-900,.text-gray-800,.text-gray-700{color:var(--acost-text)!important;}
.text-gray-600,.text-gray-500,.text-gray-400{color:var(--acost-muted)!important;}
.text-blue-900,.text-blue-800,.text-blue-700{color:var(--acost-blue-dark)!important;}
.text-yellow-500,.text-yellow-400,.text-yellow-600{color:#9B7A00!important;}
.text-green-600,.text-green-500{color:var(--acost-green)!important;}
.text-red-600,.text-red-500{color:var(--acost-red)!important;}
.text-white{color:#fff!important;}

/* Borders, cards and controls */
.border-gray-100,.border-gray-200,.border-gray-300{border-color:var(--acost-line)!important;}
.border-blue-900,.border-blue-800{border-color:var(--acost-blue)!important;}
.border-yellow-500{border-color:var(--acost-yellow)!important;}
.border-r-4,.border-l-4{border-color:var(--acost-yellow)!important;}
.rounded-xl,.rounded-2xl,.rounded-lg{ }
.shadow-sm,.shadow-md,.shadow-lg{box-shadow:0 8px 28px rgba(4,31,70,.08)!important;}

button,.btn,.button,
a.bg-blue-900,a.bg-blue-800,
a.bg-yellow-500{
  transition:all .2s ease!important;
}
a.bg-blue-900,a.bg-blue-800,.bg-blue-900 button,.bg-blue-800 button{
  background-color:var(--acost-blue)!important;
}
a.bg-blue-900:hover,a.bg-blue-800:hover{background-color:var(--acost-blue-dark)!important;}
a.bg-yellow-500,.bg-yellow-500 button{background-color:var(--acost-yellow)!important;color:var(--acost-blue-deep)!important;}

input,textarea,select{
  border-color:var(--acost-line)!important;
  border-radius:10px!important;
  outline:none!important;
}
input:focus,textarea:focus,select:focus{
  border-color:var(--acost-blue)!important;
  box-shadow:0 0 0 3px rgba(7,86,165,.10)!important;
}

/* Legacy/Tailwind page sections get the same visual rhythm */
main>section,main>.container>section{scroll-margin-top:90px;}
main .container{max-width:1240px;}
main section{line-height:1.9;}
main section h2{margin-bottom:1rem;}
main section h3{margin-bottom:.75rem;}

/* Common top/header elements on content pages */
header.bg-white{border-bottom:1px solid var(--acost-line)!important;}
header a{color:var(--acost-blue-dark);}
header a:hover{color:var(--acost-blue)!important;}

/* Keep homepage hero white text readable */
body.home-page h1,body.home-page h2,body.home-page h3,body.home-page .hero-copy *{color:#fff!important;}
body.home-page{background:#fff!important;}

/* Footer */
footer.bg-slate-900,footer.bg-gray-900,.modern-footer{
  background:var(--acost-blue-deep)!important;
  color:rgba(255,255,255,.82)!important;
  border-top:4px solid var(--acost-yellow)!important;
}
footer h1,footer h2,footer h3,footer h4,footer h5,footer h6{color:#fff!important;}
footer a{color:rgba(255,255,255,.84)!important;}
footer a:hover{color:var(--acost-yellow)!important;}

/* Page hero/banner */
.page-hero,.hero-banner,.bg-slate-900.text-white:first-child{
  background:linear-gradient(135deg,var(--acost-blue-deep),var(--acost-blue-dark))!important;
}

/* Brand accent icons */
.text-yellow-400,.text-yellow-500{color:var(--acost-yellow)!important;}

@media(max-width:768px){
  body{font-size:14px!important;}
  h1{font-size:clamp(28px,7vw,40px)!important;}
  h2{font-size:clamp(24px,6vw,34px)!important;}
  h3{font-size:clamp(18px,5vw,25px)!important;}
  p,li{line-height:1.9!important;}
}
